Giter Club home page Giter Club logo

backpack-amm-bot's Introduction

Automate Market Maker (for backpack.exchange)

This Python code implements a simple Automate Market Maker (AMM) strategy for backpack.exchange. The strategy involves opening both Bid and Ask orders from the mid price to facilitate trading.

Strategy Overview

The AMM strategy follows these steps:

  1. Calculate the mid price by averaging the Bid and Ask prices.
  2. Determine the spread percentage (e.g., 1% or 2%) to set the Bid and Ask prices.
  3. Open Bid orders slightly below the mid price and Ask orders slightly above the mid price.
  4. Refresh order in every specific seconds (e.g., 15 seconds).

How to use

  1. Open the account on backpack.exchange Link to Backpack with Affiliate - little tip to dev
  2. Create API Key from Settings page in backpack, Please note API_KEY and API_SECRET you may use in next section
  3. Install Python 3 on your computer
  4. Clone this repository git clone https://github.com/tanutcho/backpack-amm-bot.git
  5. Edit sample.env file to your API_KEY and API_SECRET from (2)
  6. Rename sample.env to .env
  7. Install dependency and run backpack.py script
pip install python-dotenv
python backpack.py

Warning: Experimental Use Only

Love this code? Buy me a coffee

_ Solana Address:_ 4pPe7iUZikn4C8miw8C3WLQvyy6YZ24qWnvw52U7nHYP

backpack-amm-bot's People

Contributors

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