GithubHelp home page GithubHelp logo

entropy-market-maker's Introduction

Entropy Market Maker

This repo contains a simple typescript market making bot for Entropy. NOTE: This version does not include delta hedging for the power perps currently

Docs: https://org-docs.friktion.fi/entropy/market-making-bot-python/overview

Trade: https://entropy.trade

Setup

To run the market maker you will need:

  • A Solana account with some SOL deposited to cover transaction fees
  • A Entropy Account with some collateral deposited and a name (tip: use the UI)
  • Your wallet keypair saved as a JSON file
  • node and yarn
git clone https://github.com/Friktion-Labs/entropy-market-maker
cd market-maker-ts
yarn install

## Set mangoAccountName in entropy-market-maker/params/quote_params.json file to reflect the name of your MangoAccount

Run via terminal

ts-node src/mm2.ts

Market Maker Params

See params/default.json for an example

Variable Default Description
group mainnet.1 Name of the group in ids.json
interval 10000 Milliseconds to wait before updating quotes
mangoAccountName N/A The MangoAccount name you input when initializing the MangoAccount via UI
mangoAccountPubkey N/A If no MangoAccount name, just pass in the pubkey
assets N/A Mapping of symbols to trade and their specific params
size_perc 0.1 The size of each order as a percentage of equity
edge 0.0010 How much to increase quote width from centralized exchange
lean_coeff 0.0005 How much to move the quotes per unit size of inventory
bias 0 Fixed amount to bias. Negative values bias downward. e.g. -0.0005 biases down 5bps
requoteThresh 0 How much new bid/ask price must change to requote; e.g. 0.0002 implies 2bps
ftxSize 100000 How much to look up spread on centralized exchange
disableFtxBooks false Whether to try to find a FTX market for quoting.

Caveats

  • Use Ctrl-C to stop the market maker so that it will try to cancel all orders when exiting. (Ctrl-Z will not cancel orders)

entropy-market-maker's People

Contributors

gaburipeach avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.