Trades

Retrieve trade history for markets and users.

Get Trade History

Returns recent trades for a market.

GET /api/v1/trades/{marketId}

Path Parameters

ParameterTypeDescription
marketIdbytes32Market identifier

Response

{
  "marketId": "0x1234...abcd",
  "trades": [
    {
      "price": 550000,
      "size": 10000000,
      "buyer": "0xBuyerAddress...",
      "seller": "0xSellerAddress...",
      "outcome": 0,
      "timestamp": 1735689000,
      "txHash": "0xTransactionHash..."
    }
  ],
  "count": 5
}
FieldTypeDescription
priceuint64Trade price (6 decimals). 550000 = $0.55
sizeuint64Trade size (6 decimals). 10000000 = 10 shares
buyeraddressBuyer's wallet address
selleraddressSeller's wallet address
outcomeuint80 = YES, 1 = NO
timestampint64Unix timestamp of the trade
txHashstringOn-chain settlement transaction hash

Returns up to 100 most recent trades, sorted by timestamp descending.

Example

curl "https://api.turbinefi.com/api/v1/trades/0x1234...abcd"

Get User Activity

Returns trade history and settlement activity for a user on a specific chain.

GET /api/v1/users/{address}/activity

Path Parameters

ParameterTypeDescription
addressaddressUser's wallet address

Query Parameters

ParameterTypeRequiredDescription
chain_idintegerYesChain ID (e.g., 137)
limitintegerNoNumber of results (default: 50, max: 100)

Response

FieldTypeDescription
activityarrayUser's trades with market context
settlementsarrayUser's market settlement payouts

Example

curl "https://api.turbinefi.com/api/v1/users/0xYourAddress/activity?chain_id=137&limit=20"