For the complete documentation index, see llms.txt. This page is also available as Markdown.

fundings

Get fundings. At most 750 funding entries are returned per call. count_back indicates the number of fundings you would like to be returned, starting from start_timestamp, if set to 0, all fundings will be returned.

get
/api/v1/fundings
Query parameters
market_idinteger · int16Required

Public market identifier returned by orderBooks or events.

resolutionstring · enumRequired

Time interval for each returned data point. Allowed values: 1h, 1d.

Possible values:
start_timestampinteger · int64 · max: 5000000000000Required

Inclusive start of the requested time range, as a Unix timestamp in milliseconds. These history endpoints also accept Unix seconds.

end_timestampinteger · int64 · max: 5000000000000Required

End of the requested time range, as a Unix timestamp in milliseconds. These history endpoints also accept Unix seconds.

count_backinteger · int64Required

Backward-window sizing hint when start_timestamp is 0. An explicit start/end range takes precedence; this is not a strict limit on response length.

Responses
200

A successful response.

application/json
codeinteger · int32RequiredExample: 200
messagestringOptional
resolutionstringRequiredExample: 1h
get/api/v1/fundings
GET /api/v1/fundings?market_id=1&resolution=1h&start_timestamp=1&end_timestamp=1&count_back=1 HTTP/1.1
Host: mainnet.zklighter.elliot.ai
Accept: */*
{
  "code": 200,
  "message": "text",
  "resolution": "1h",
  "fundings": [
    {
      "timestamp": 1640995200,
      "value": "0.0001",
      "rate": "0.0001",
      "direction": "long"
    }
  ]
}

Last updated

Was this helpful?