Giter Club home page Giter Club logo

fin-market-maker's Introduction

Functional Market Maker for FIN

This implements a simple market maker, based on Hummingbot's Pure Market Making algorithm

Getting Up and Running

1. Create and fund a wallet.

  • The easiest way to get a wallet is to use the Keplr browser extension and create a new account.
  • Write down the seed phrase
  • Transfer funds to this wallet either via IBC in Keplr, or bridge from EVM chains and exchanges at https://blue.kujira.app/bridge

2. Configure the connection

export MNEMONIC="your seed phrase from step one ..."

export RPC_ENDPOINT="https://rpc.kaiyo.kujira.setten.io"

export GAS_PRICE="0.00125ukuji" (optional)

3. Configure markets and strategies

Option up config.ts. Currently this is set to only run on the FIN-DEMO pair on the harpoon-4 testnet.

3. Tune the settings for the algorithm

Open up src/strategies/pure_market_making.ts and tweak the following params to suit your strategy.

// Space from mid price to orders in smallest amount of precision (currently hard-coded to 3 decimal places)
private TARGET_SPREAD = 10;

// Space between orders in smallest amount of precision (currently hard-coded to 3 decimal places)
private ORDER_GAP = 10;

// Total orders either side of the mid price
private ORDER_COUNT = 10;

// Total in quote denom
private ORDER_SIZE = 1 * 10 ** 6;

// ms delay between cycles
private FREQUENCY = 30000;

4. Start the Bot

Install deps yarn

There's a very basic run script in yarn start, but you will probably want to use your favourite method of keeping processes alive.

TODO (pull requests welcome)

  1. Variable strategy configuration per-market
  2. Accommodate different precision types (different decimal places, and also significant figures)
  3. Extract config to a .gitignored file and provide sample values
  4. Better logging levels

fin-market-maker's People

Contributors

codehans 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.