Giter Club home page Giter Club logo

bpdealmanager's Introduction

DISCLAIMER

This script should be used at your own risk, I will not be responsible for any errors encountered while using the script or caused by the script. Use of the script means that you understand this warning and agree that you are using the script at your own risk.

All of that said, I have been using this script to manage my deals and it is working as expected.

BPDealManager

This Python script is intended to manage the Active Trader style of the Block Party Strategy. It will check the status of your active deals every minute and update the Take Profit level based on the number of completed Safety Orders based on the strategy document.

Completed Safety Orders Take Profit Level
1 No Change
2 No Change
3 1%
4 2%
5 3%
6 4%
7 5%
8 6%

Requirements

  • Python version 3.X
  • py3cw Python module available at the Project Homepage or via pip pip install py3cw.

Configuration

The script requires minimal configuration. All of the necessary changes are made at the top of the file. Replace the *** with your information as required.

It is also important to note that the configuration may be passed via environment variables for those running this script within a Docker container.

API_KEY = os.getenv('API_KEY', '***') An API key for your 3Commas account. The required permission are BotsRead and BotsWrite.

API_SECRET = os.getenv('API_SECRET', '***') The API secret that matches the API key used.

BOT_NAME = os.getenv('BOT_NAME', '***') The name of the bot that we are managing.

Running

Running the script is rather straightforward python bp_deal_manager.py

Sample Output

2021-05-18 15:40:30,234 - INFO - Checking the status of the active deals.
2021-05-18 15:40:31,041 - INFO - Check complete, there are 6 active deals and 0 required updating.
2021-05-18 15:41:31,076 - INFO - Checking the status of the active deals.
2021-05-18 15:41:31,423 - INFO - Deal 529667701 on pair USDT_VTHO has 3 completed safety orders and a take profit value of 0.42 which is below the strategy recommended value.
2021-05-18 15:41:31,423 - INFO - Updating deal 529667701 take profit to 1.0
2021-05-18 15:41:32,592 - INFO - Deal 529667701 successfully updated
2021-05-18 15:41:32,592 - INFO - Check complete, there are 6 active deals and 1 required updating.

Questions or Problems

If you run into any issues, please create an issue on this repository and I will do what I can to help out.

bpdealmanager's People

Contributors

n5qm avatar

Stargazers

 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.