Skip to main content
GET
/
api
/
v1
/
onchain-trades
Get list of onchain fills
curl --request GET \
  --url https://dev-prediction-markets-api.dflow.net/api/v1/onchain-trades \
  --header 'x-api-key: <api-key>'
{
  "trades": [
    {
      "createdAt": 1,
      "eventType": "<string>",
      "feeAmount": 123,
      "feeMint": "<string>",
      "fillRecipient": "<string>",
      "id": 123,
      "inputAmount": 123,
      "inputMint": "<string>",
      "orderAccount": "<string>",
      "outputAmount": 123,
      "outputMint": "<string>",
      "refundRecipient": "<string>",
      "transactionSignature": "<string>",
      "wallet": "<string>",
      "contracts": 123,
      "marketTicker": "<string>",
      "side": "<string>",
      "usdPricePerContract": 123
    }
  ],
  "cursor": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication. Contact hello@dflow.net to obtain an API key.

Query Parameters

limit
integer<int32>

Maximum number of trades to return (1-250, default 100)

Required range: x >= 0
cursor
string

Pagination cursor (trade ID) to start from

wallet
string

Filter by wallet address

mint
string

Filter by mint address (input_mint or output_mint)

ticker
string

Filter by market ticker

sortBy
string

Sort by column: "createdAt" (default), "inputAmount", or "outputAmount"

sortOrder
string

Sort direction: "desc" (default) or "asc"

minAmount
integer<int64>

Minimum trade amount in raw token units (6 decimals). Matches if input_amount or output_amount >= this value.

maxAmount
integer<int64>

Maximum trade amount in raw token units (6 decimals). Matches if input_amount or output_amount <= this value.

Response

List of onchain trades

trades
object[]
required
cursor
string | null