Skip to main content
GET
/
api
/
markets
/
{marketId}
/
trades
Get recent trades
curl --request GET \
  --url https://api-testnet.mayybee.com/api/markets/{marketId}/trades
[
  {
    "id": "trade_1704067200_xyz789",
    "marketId": "jd7ay8vzqtcsyj48zyapp6aa9h7yfq2d",
    "tokenId": "25930605474857043641926317989588861972412542680030529942514995269236952683597",
    "price": 52,
    "size": "10000000000000000000",
    "buyer": "0xBuyer...",
    "seller": "0xSeller...",
    "timestamp": 1704067200000,
    "txHash": "0xabc..."
  }
]

Path Parameters

marketId
string
required

Market identifier

Query Parameters

limit
integer
default:50

Maximum number of trades to return (default: 50)

Required range: 1 <= x <= 100

Response

200 - application/json

Array of recent trades

id
string

Unique trade identifier in format trade_{timestamp}_{random}.

Example:

"trade_1704067200_xyz789"

marketId
string

Market identifier where this trade occurred.

tokenId
string

ERC1155 token ID that was traded (YES or NO token).

price
number

Execution price in cents (1-99). The price at which the trade was matched.

size
string

Trade size in wei (18 decimals). Amount of tokens exchanged.

buyer
string

Wallet address of the buyer (the one who placed the BUY order).

seller
string

Wallet address of the seller (the one who placed the SELL order).

timestamp
integer

Unix timestamp (milliseconds) when the trade was executed.

txHash
string

Blockchain transaction hash if trade was settled on-chain. May be null for pending trades.