Portfolio

Get Trades

Retrieve all AMM trades executed by the authenticated user

get/portfolio/trades

Response

List of user trades with details

blockTimestampstring required

Timestamp of the block containing the trade

collateralAmountstring

Collateral amount traded (in token decimals)

outcomeIndexnumber required

Index of the outcome traded (0 = YES, 1 = NO)

outcomeTokenAmountstring

Amount of outcome tokens traded

outcomeTokenAmountsstring[] required

Collateral per outcome token

outcomeTokenNetCoststring required

Net cost of the outcome tokens

outcomeTokenPricestring

Price of the outcome token at trade time

strategy'Buy' | 'Sell'

Trade direction

transactionHashstring required

On-chain transaction hash

Example response

[
  {
    "blockTimestamp": "2025-09-01T11:30:31.000Z",
    "collateralAmount": "5000000",
    "market": {
      "conditionId": "0x812f578437dc...",
      "expirationDate": "Sep 1, 2025",
      "id": "0x76d3e2098Be6...",
      "slug": "doge-above-021-sep-1",
      "title": "$DOGE above $0.21652 on Sep 1?"
    },
    "outcomeTokenAmount": "10000000",
    "outcomeTokenAmounts": [
      "5000000",
      "0"
    ],
    "outcomeTokenNetCost": "4950000",
    "outcomeTokenPrice": "0.50",
    "strategy": "Buy",
    "transactionHash": "0xabc123..."
  }
]

Changes

Changed in 4 of the 32 revisions of this API.15

    • the endpoint scheme security HmacAuth was added to the API

      api-security-added

    • the endpoint scheme security ApiKeyAuth was removed from the API

      api-security-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the endpoint scheme security ApiKeyAuth was added to the API

      api-security-added

    • the endpoint scheme security bearer was removed from the API

      api-security-removed

    • the response's body type changed from object to array for status

      response-body-type-changed

    • the endpoint scheme security limitless_session was removed from the API

      api-security-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog