Agara

Submit an account batch

POST/trade/v1/batches

Authorization

personal_access_token batches:submit
AuthorizationBearer <token>

Personal access token issued from the web app's Settings → API tokens page. Send as Authorization: Bearer agt_….

In: header

Scope: batches:submit

Request Body

application/json

Presigned submission body: typed ops plus the signed binding tuple.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/trade/v1/batches" \  -H "Content-Type: application/json" \  -d '{    "deadline_unix_seconds": 0,    "ops": [      {        "condition_id": "string",        "kind": "SPLIT",        "market_id": "6364d859-8e1b-477a-bacc-de8305a9292b",        "shares_micro": 0      }    ],    "seq": 0,    "signature": "string"  }'
{  "batch_hash": "string"}