Git Product home page Git Product logo

dexalotbot_python's Introduction

Dexalot Bot - Python

This is an open source bot for automated trading on Dexalot.

Install

Build envrionment

If this is your first time using python, you'll need to set up your build environment.

sudo apt-get install build-essential
sudo apt-get update
sudo apt install python3-pip
vi ~/.bashrc
i

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

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

Then type: escape -> :wq -> enter

close and reopen your terminal instance or disconnect and reconnect for the changes to take hold.

Download and add private key

git clone https://github.com/Beastlorion/dexalotBot_python.git
cd dexalotBot_python
vi .env.secret
i

paste this and enter your hot wallet private key:

export AVAX_USDC_pk=""

Then type: escape -> :wq -> enter to save and exit the editor

Install dependencies:

pip install web3
pip install python-dotenv
pip install python_binance
pip install shortuuid

See settings in .env.shared

Run

python3 main.py AVAX_USDC

Workflow

  1. Starts Pricefeed using Binance prices
  2. Cancels open orders
  3. Places fresh orders of qty and spread as set in .env.shared
  4. After delay as set in .env.shared (~10 seconds by default), start checking to see if price has moved more than the refreshTolerance % setting in .env.shared
  5. If the price has moved by refreshTolerance % or more, cancel and place new orders.

Disclaimer

This is an open source project. I take no responsibility for any losses incured by using this code. Please be responsible.

dexalotbot_python's People

Contributors

beastlorion avatar

Stargazers

 avatar

Watchers

Costantino Giuliodori avatar  avatar Kostas Georgiou avatar  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.