Skip to content

Binance Automatic Stop Daemon constantly and securely listens to Binance account and if a BUY order is FILLED, it will automatically place a Stop Loss, Take Profit or OCO order based on your choice

License

Notifications You must be signed in to change notification settings

escomputers/Automatic-Stop-Daemon

Repository files navigation

BASD

acronym for

Binance Automatic Stop Daemon

· Report Bug » · Request Feature »

Web demo (under dev)

Link hosted on Python Anywhere »

Why BASD?

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.

Threat Intelligence Portal Analysis powered by Kaspersky

Prerequisites

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.

Getting started

Docker version

docker pull escomputers/basd

docker run -e DJANGO_SECRET_KEY='' -dp 8000:8000 escomputers/basd

Binary version

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 Windows
  • Tested on Ubuntu
  • MacOS users can install Parallels and then run BASD within it.

Usage

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:

  1. Binance will not accept any buy or sell order whose values is less than 11 USD
  2. 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.

Contributing

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!

License

Distributed under the Apache 2.0 License. See license for more information.

About

Binance Automatic Stop Daemon constantly and securely listens to Binance account and if a BUY order is FILLED, it will automatically place a Stop Loss, Take Profit or OCO order based on your choice

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages