Binance Automatic Stop Daemon
·
Report Bug »
·
Request Feature »
Link hosted on Python Anywhere »
Binance is unquestionably the world greatest and most secure cryptocurrency exchange and many of us trade there. For those like me that open and close positions within the same day or few hours, it's extremely important to carefully watch graphs to monitor price movements.
Sometimes (very often in my case) we cannot monitor price during a trade. Expecially if an order is being filled during nightime, how can we place an order if we're sleeping, trekking or just working?
BASD solves the problem by constantly and securely listening to Binance account and if a BUY order is FILLED, it will automatically place a Stop Loss, Take Profit or OCO order basing on your choice.
BASD DOES NOT store or save or get your API keys. Keys are temporarily saved into your device RAM and after you close BASD, everything get deleted and you have to insert them again. If you read source code line by line, there's no hidden treat.
BASD requires Binance.com API key and API secret key. If you don't know how to create API keys, follow these instructions. Note that Binance.us is not currently supported.
docker pull escomputers/basd
docker run -e DJANGO_SECRET_KEY='' -dp 8000:8000 escomputers/basd
For Windows and Ubuntu/Debian just download last stable binary file from releases page. Extract zip archive and run BASD
Do not move or delete templates
directory, otherwise it won't work!
- Tested on
- Tested on
- MacOS users can install Parallels and then run BASD within it.
When program starts you will asked for these required parameters:
- Timezone continent + city 1
- Start time 2
- Number of active hours 3
- Order type 4
- Sell percentage 5
1 Here you can find a complete list of all supported timezones, e.g. Europe/Berlin
2 When you want program starts working, e.g. 23:55
3 Number of active hours, used for end time calculation, e.g. 8
4 Supported order types are only for sell side: Take Profit - Stop Loss - OCO
5 BASD will calculate order sell price with your desired percentage, e.g. 2.45
You can optionally be notified whenever a job is started or order is placed. If you select "Email Alert", you will asked for:
- Sender Gmail address
- Gmail app password (not your Gmail password)
- Receiver email address
Note that only Gmail accounts are currently supported. Follow these instructions, if you don't know how to create a Gmail application password.
When placing orders always REMEMBER these trading rules:
- Binance will not accept any buy or sell order whose values is less than 11 USD
- For OCO sell order, you must have the following price schema: Limit Price > Last Price > Stop Price. Last price is not symbol price when buy order is filled but it's symbol last price when sell order will be placed!
After you fill all required fields, another window will popup, just click Start
and you're done, then first window can be safely closed.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
If BASD was useful don't forget to give the project a star!
Distributed under the Apache 2.0 License. See license for more information.