Agara

List your fills

GET
/trade/v1/portfolio/trades

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: portfolio:read

Query Parameters

limitinteger

Page size. Default 500, max 500.

Minimum: 0Format: "int32"

cursorstring

Opaque cursor from a prior response's next_cursor; omit for the first page.

curl -X GET "https://app.agara.xyz/trade/v1/portfolio/trades?limit=0&cursor=string" \
  -H "Authorization: Bearer <token>"

Fill history sorted newest-first, keyset-paginated.

{
  "as_of": "2019-08-24T14:15:22Z",
  "events": {
    "property1": {
      "display": {
        "event": {}
      },
      "event_title": "string"
    },
    "property2": {
      "display": {
        "event": {}
      },
      "event_title": "string"
    }
  },
  "markets": {
    "property1": {
      "display": {
        "market": {},
        "outcome": {}
      },
      "event_slug": "string",
      "logo_url": "string",
      "market_id": "6364d859-8e1b-477a-bacc-de8305a9292b",
      "market_title": "string",
      "outcome_name": "string"
    },
    "property2": {
      "display": {
        "market": {},
        "outcome": {}
      },
      "event_slug": "string",
      "logo_url": "string",
      "market_id": "6364d859-8e1b-477a-bacc-de8305a9292b",
      "market_title": "string",
      "outcome_name": "string"
    }
  },
  "pagination": {
    "limit": 100,
    "next_cursor": "string"
  },
  "trades": [
    {
      "exchange": "AGARA",
      "executed_at": "2019-08-24T14:15:22Z",
      "fee_micro": "1000000",
      "fill_id": "string",
      "order_id": "string",
      "price_micro": "1000000",
      "role": "MAKER",
      "shares_micro": "1000000",
      "side": "BUY",
      "status": "string",
      "token_id": "string",
      "trade_id": "string",
      "transaction_hash": "string"
    }
  ],
  "unavailable_exchanges": [
    "AGARA"
  ]
}