This Flask application listens for TradingView webhooks on /webhook.
When a JSON payload is received it forwards the order to the Whitebit API
using credentials from the environment (WHITEBIT_API_KEY and WHITEBIT_API_SECRET).
All requests and responses are logged to logs.txt with a UTC timestamp.
To run locally:
pip install -r requirements.txt
export WHITEBIT_API_KEY=your_key
export WHITEBIT_API_SECRET=your_secret
python app.pyDeploy the same code on PythonAnywhere using a WSGI configuration pointing
to app:app.