Script consists from two different parts: webhook and trading endpoint.
Both of them are executed in different threads.
Webhook implements thread pool. What for? I don't know how much time take your trading algorithms (calculations).
You can put them into callbacks that get json alert description (only json!). Now this json alert is just printed out
to the console.
Secret key is used for filtering of alerts.
Webhook implements placing, cancelling of orders and monitoring of their status. All REST API parameters are
configurable. You can find example in the main.py file.
All configuration parameters are hardcoded. It's bad approach, but I don't know how your environment is organized,
so I think that you will change configuration according to your project rules. Or I can help you to integrate my
scripts into your code using best approaches.
post_empty.sh is a script for testing alerts.
Pipenv is used for creating virtual environment.

