Skip to main content
GET
/
api
/
v1
/
market
/
{ticker}
/
candlesticks
Get market candlesticks by ticker
curl --request GET \
  --url https://prediction-markets-api.dflow.net/api/v1/market/{ticker}/candlesticks \
  --header 'x-api-key: <api-key>'
{
  "code": "<string>",
  "msg": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication. Contact [email protected] to obtain an API key.

Path Parameters

ticker
string
required

Market ticker

Query Parameters

startTs
integer<int64>
required

Start timestamp (Unix timestamp)

Required range: x >= 0
endTs
integer<int64>
required

End timestamp (Unix timestamp)

Required range: x >= 0
periodInterval
integer<int32>
required

Time period length of each candlestick in minutes (1, 60, or 1440)

Required range: x >= 0

Response

Market candlesticks retrieved successfully