Skip to main content
GET
/
api
/
v1
/
market
/
by-mint
/
{mint_address}
/
candlesticks
Get market candlesticks by mint address
curl --request GET \
  --url https://dev-prediction-markets-api.dflow.net/api/v1/market/by-mint/{mint_address}/candlesticks \
  --header 'x-api-key: <api-key>'
{
  "code": "<string>",
  "msg": "<string>"
}
There is a maximum of 5,000 candlesticks per request. If your startTs, endTs, and periodInterval parameters would produce more than 5,000 results, the request will return a 400 error. Either narrow the time range or increase the period interval.

Authorizations

x-api-key
string
header
required

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

Path Parameters

mint_address
string
required

Market mint address (ledger or outcome mint)

Query Parameters

startTs
integer<int64>
required

Start timestamp (Unix timestamp in seconds, not milliseconds)

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

End timestamp (Unix timestamp in seconds, not milliseconds)

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