Coder Social home page Coder Social logo

beast_mm_bot's Introduction

Beastlorion's Hubble Market Maker Bot

Setup

git clone https://github.com/Beastlorion/hubble_exchange_bot
cd hubble_exchange_bot

pip install hubble-exchange --include-deps
pip install python-binance --include-deps
sudo apt install python3-env

vi .env.secret
i

paste this with your private key/keys:

export AVAX_PRIVATE_KEY=""
export ETH_PRIVATE_KEY=""
export SOL_PRIVATE_KEY=""

Then press :wq to write the file and exit the editor

You may also need to add the python packages in your .bashrc file:

vi ~/.bashrc
i

paste this in on the last line and then type :wq to save an quit

export PATH="/.local/bin:$PATH"

Check the settings for each market in .env.shared and adjust them to your liking. The spreads are in %. So "spread":0.1 = 0.1%

Run

Run with your market of choice: AVAX, ETH, or SOL

python3 main.py AVAX

To stop press ctr+c It may be necessary to press multiple times

Flow

  1. Starts Binance price feed for asset/usdt
  2. Begins loop to get usdt/usd price from kraken
  3. Starts orderUpdater loop:
  • Fetches all open orders for the market and cancels them
  • Calculates prices and quantities for orders
  • Places orders
  • waits 5 seconds if successful. If unsuccessful try again
  1. On shutdown cancels all open orders for the market

beast_mm_bot's People

Contributors

beastlorion avatar bhanusanghi 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.