Coder Social home page Coder Social logo

delist_util's Introduction

delist_util

This is a small utility that polls binance news for any delisted pairs every 15 seconds, and then blacklists pairs via each freqtrade bot's api as well as config file if the pairs aren't already blacklisted.

Requirements

Installation (Source)

Clone the repo.

Run npm install inside the cloned folder to install dependencies. Alternatively you can use yarn, should you wish to do so.

Adjust the instances.json file to your needs (see below).

Run the util with node ., preferably inside a screen or tmux session so you can detach.

For each bot you have, add an object to the instances.json file with the following contents:

{
    "ip": "127.0.0.1",                                          // IP of the api server.
    "port": 8080,                                               // Port of the api server
    "user": "myuser",                                           // Username of the api server
    "pass": "MySecretPassword",                                 // Password of the api server
    "config": "/home/myuser/ft_userdata/user_data/config.json"  // Config file location, this can either be relative or absolute.
}

Installation (Docker)

Clone the repo.

Run docker-compose build to build the docker image.

Add this to the bottom of your freqtrade's docker-compose.yml:

networks:
  freqtrade:
    name: freqtrade
    driver: bridge
    ipam:
      config:
        - subnet: 172.31.0.0/16
          gateway: 172.31.0.1

Add this to each freqtrade service, incrementing the last number in the ip for each service:

networks:
  freqtrade:
    ipv4_address: 172.31.0.100

Adjust the volume mapping in the delist_util's docker-compose.yml so that it is properly mapped to your freqtrade folder.

For each bot you have, add an object to the instances.json file with the following contents:

{
    "ip": "172.31.0.100",                                       // IP of the api server.
    "port": 8080,                                               // Port of the api server.
    "user": "myuser",                                           // Username of the api server.
    "pass": "MySecretPassword",                                 // Password of the api server.
    "config": "/freqtrade/user_data/config.json"                // Config file location, this can either be relative or absolute.
}

The ip should match the ipv4_address you've specified in your freqtrade docker-compose.yml, and the port should match the port set in your config.json as docker networks ignore the port mapping done in the file.

If the docker-compose.yml volume mapping is set up like the example, then the config path should match the config path you'd normally use in your --config argument in the command section of your freqtrade services.

Finally, start up the docker container with docker-compose up -d.

The instances.json file has three dummy instances added to give you an example of how the file should look.

delist_util's People

Contributors

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