Agara

Place a batch of pre-signed orders

POST
/trade/v1/orders/signed/batch

Authorization

Authorization
Required
Bearer <token>

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

In: header

Scope: orders:place_signed

Request Body

application/jsonRequired

orders
Required
array<object>

The pre-signed orders to submit: at least 1, at most 32. An empty array or more than 32 orders is rejected outright with 400.

curl -X POST "https://app.agara.xyz/trade/v1/orders/signed/batch" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "orders": [
      {
        "builder": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "chain_token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
        "maker": "0x1111111111111111111111111111111111111111",
        "maker_amount": "600000",
        "metadata": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "order_hash": "0xfe738cc74603ab4700a9e2b28a3d3e2d2f4f2b6b1b9b3a5b7c9d1e3f5a7b9c1d",
        "post_only": false,
        "price_micro": "600000",
        "salt": "84629103847263918473",
        "shares_micro": "1000000",
        "side": "BUY",
        "side_u8": 0,
        "signature": "0x4f3a8e9b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b",
        "taker_amount": "1000000",
        "time_in_force": "GTC",
        "timestamp": "0",
        "token_id": "21742633143463906290569050155826241533067272736897614950488156847949938836455",
        "type": "LIMIT"
      }
    ]
  }'

Batch accepted; results carries one per-order outcome in request order — each is independently accepted or rejected.

{
  "as_of": "2019-08-24T14:15:22Z",
  "results": [
    {
      "as_of": "2019-08-24T14:15:22Z",
      "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",
      "pending_operation": "SUBMIT",
      "source": "AGARA",
      "status": "PENDING",
      "outcome": "accepted",
      "index": 0
    }
  ]
}