Set a bot book leg
post
https://api.dogabot.com/api/v1/bots/{id}/books Sets one bot book leg (signed position). Default book-only; optional place_on_venue. Session or MCP OAuth only — API keys are rejected. Requires the listed write scope and feat:api:write on an Institutional account. Send Idempotency-Key.
Scopes
write:lifecycle write Path parameters
id integer required Headers
Idempotency-Key string required Unique key per mutation so retries stay safe.
Body parameters
application/json
JSON Example body
{
"exchange": "aster_dex",
"symbol": "ETHUSDT",
"position": 0,
"reason": "accounting_correction",
"place_on_venue": false
} Responses
200 OK
401 Unauthorized
403 Forbidden — missing scope or feature gate
404 Not found
429 Rate limited