Deployments API
List Deployments
GET /api/deploymentsGet Deployment
GET /api/deployments/:idCreate Deployment
POST /api/deploymentsBody:
json
{
"strategyId": "str_abc123",
"credentialId": "cred_xyz",
"symbols": ["BTCUSDT"],
"params": { "lookback": "20" }
}Subject to your plan's live bot limit.
Stop Deployment
POST /api/deployments/:id/stopGracefully stops the strategy and closes open positions.
Restart Deployment
POST /api/deployments/:id/restartDelete Deployment
DELETE /api/deployments/:idStops the deployment if running, then removes it.
Get Deployment Logs
GET /api/deployments/:id/logsReturns structured log entries:
json
[
{
"timestamp": "2024-02-01T14:20:00Z",
"level": "info",
"message": "Strategy started on BTCUSDT"
}
]WebSocket
Real-time order updates are available on channel deployment:<id>:orders.