v1

latestOpenAPI 3.0.02026-07-265081124.2 KB
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..."
  }
]