Custom trading bot for Deriv Rise/Fall contracts.
-
Copy
.env.exampleto.envand fill in your API token:cp .env.example .env -
Install dependencies:
pip install -r requirements.txt -
Run on demo account:
python bot.py
| Variable | Default | Description |
|---|---|---|
| DERIV_API_TOKEN | - | Your Deriv API token (Read + Trade) |
| DERIV_APP_ID | 1089 | Deriv app ID |
| SYMBOL | R_75 | Symbol to trade |
| STAKE | 1.0 | Stake amount in USD |
| DURATION | 5 | Contract duration |
| DURATION_UNIT | t | t=ticks, s=seconds, m=minutes |
| MAX_TRADES | 10 | Number of trades to execute |
Edit bot.py to switch between CALL (Rise) and PUT (Fall) — or implement your own signal logic.