Market probability history

GET/api/v1/px/markets/{idOrSlug}/historyPublic

PX Discovery & AccountE6 decimal strings throughoutA | B

Trend sampling, not trading candles. outcome is YES or NO only. Times and prices are strings.

Path parameters

  • idOrSlugstringpathrequired

    PX market marketId or slug (same id set as the engine market)

    Example"mkt-0001"

Query parameters

  • outcomeYES | NOqueryoptional

    Settlement side; defaults to YES

    Default"YES"Example"YES"

  • interval1h | 6h | 1d | 1w | 1m | maxqueryoptional

    Default"1d"Example"1h"

  • fidelityintegerqueryoptional

    Number of buckets, default 10, cap 500

    Default10Range1 – 500Example1

Response

200Sample points
  • pointsobject(PxHistoryPoint)[]
  • tsMsstring

    Sample time, as a millisecond string

  • priceE6string

    Price at that moment, as an E6 string

Switch status codes in the response example to view errors. For all codes, see the Errors page.