metadata: version: "1.0.1"
{{name}} Trading Strategy
{{description}}
HTTP API
This strategy runs as an HTTP server. All interaction goes through HTTP.
| Action | Method | URL | |
|---|
| Strategy info | GET | http://localhost:{{port}}/info | |
| Stats & P&L | GET | http://localhost:{{port}}/stats | |
| Trade history | GET | http://localhost:{{port}}/trades?days=7 | |
| Health check | GET | http://localhost:{{port}}/health | |
| Stop trading | POST | http://localhost:{{port}}/stop | |
| Resume trading | POST | http://localhost:{{port}}/start | |
CLI
bash
cd {{strategy_dir}}
npm install
node server.js --port {{port}}
Backtest
bash
node backtest.js --days 30 --pair {{pair_symbol}} --interval 5m