Skip to content

Commit

Permalink
GUI dev (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
escomputers authored Nov 12, 2022
2 parents 3d1858f + 6754f1f commit 0fa423b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ Binance is unquestionably the world greatest and most secure cryptocurrency exch
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 a Stop Loss, Take Profit or OCO order if we're sleeping, trekking or just working?
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 condition is being triggered it will automatically place a Stop Loss, Take Profit or OCO order basing on your choice.


<!-- Prerequisites -->
### Prerequisites
BASD requires <b>Binance.com API key and API secret key</b>. If you don't know how to create API keys, follow these [instructions](https://www.binance.com/en/support/faq/how-to-create-api-360002502072). note that Binance.us is not currently supported.
BASD requires <b>Binance.com API key and API secret key</b>. If you don't know how to create API keys, follow these [instructions](https://www.binance.com/en/support/faq/how-to-create-api-360002502072). note that Binance.us is not currently supported.ins

<!-- GETTING STARTED -->
## Getting started
Just download last stable binary file from [releases](https://github.com/escomputers/BASD/releases) page and run it.

<!-- USAGE -->
## Usage
When program starts you will asked for these <u>required</u> parameters:
When program starts you will asked for these <ins>required</ins> parameters:
* Timezone continent + city <sup>1</sup>
* Start time <sup>2</sup>
* Number of active hours <sup>3</sup>
Expand All @@ -58,11 +58,18 @@ When program starts you will asked for these <u>required</u> parameters:

<sup>3</sup> Number of active hours, used for end time calculation, <b>e.g. 8</b>

<sup>4</sup> Supported order types are <u>only for sell</u> side: [Take Profit](https://academy.binance.com/en/articles/what-is-a-stop-limit-order) - [Stop Loss](https://academy.binance.com/en/articles/what-is-a-stop-limit-order) - [OCO](https://academy.binance.com/en/articles/what-is-an-oco-order)
<sup>4</sup> Supported order types are <ins>only for sell</ins> side: [Take Profit](https://academy.binance.com/en/articles/what-is-a-stop-limit-order) - [Stop Loss](https://academy.binance.com/en/articles/what-is-a-stop-limit-order) - [OCO](https://academy.binance.com/en/articles/what-is-an-oco-order)

<sup>5</sup> BASD will calculate order sell price with your desired percentage, <b>e.g. 2.45</b>


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 (<ins><b>not</b></ins> your Gmail password)
- Receiver email address

Note that only Gmail accounts are currently supported. Follow these [instructions](https://support.google.com/mail/answer/185833?hl=en), if you don't know how to create a Gmail application password.

### Supported OS
* ![Linux][Linux]
* ![MacOS][MacOS]
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

from module.order import websocket_connect
from modules.order import websocket_connect

import webbrowser
import PySimpleGUI as sg
Expand Down Expand Up @@ -95,7 +95,7 @@ def main():
]

# Create the window
window = sg.Window('Binance Algorithmic Stop Daemon [INPUT]', icon='templates/icon.ico').Layout(layout)
window = sg.Window('Binance Automatic Stop Daemon [INPUT]', icon='templates/icon.ico').Layout(layout)

# Display and interact with the Window using an Event Loop
while True:
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion templates/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block powered-by">
Powered by <a href="https://github.com/escomputers/BASD" target="_blank">Binance Algorithmic Stop Daemon v1.15.0</a>
Powered by <a href="https://github.com/escomputers/BASD" target="_blank">Binance Automatic Stop Daemon</a>
</td>
</tr>
</table>
Expand Down

0 comments on commit 0fa423b

Please sign in to comment.