Skip to main content
GET
/
api
/
v1
/
pfun
/
{market_id}
/
tradehistory
[
  {
    "exchange": "<string>",
    "market_id": "<string>",
    "yes_price": 123,
    "no_price": 123,
    "count": 123,
    "taker_side": "<string>",
    "last_update": "2023-11-07T05:31:56Z"
  }
]

Authorizations

X-API-Key
string
header
required

Your API key (get one from the test-key endpoint above)

Path Parameters

market_id
string
required

Pfun market identifier

Query Parameters

limit
integer
default:10

Maximum number of rows to return (default: 10, max: 10,000)

Required range: x <= 10000

Response

Trade history data

exchange
string

Exchange identifier

market_id
string

Market identifier

yes_price
number

YES outcome price

no_price
number

NO outcome price

count
integer

Number of contracts traded

taker_side
string

Taker side (buy/sell)

last_update
string<date-time>

Timestamp of this trade