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

positionFunding

Get accounts position fundings

get
/api/v1/positionFunding
Query parameters
account_indexinteger · int64Required

Account index to query.

cursorstringOptional

Opaque pagination cursor returned by the previous response; pass it unchanged.

limitinteger · int64 · min: 1 · max: 100Required

Maximum number of records to return.

sidestring · enumOptional

Position or trade side filter.

Default: allPossible values:
start_timestampinteger · int64Optional

Inclusive start of the requested time range, as a Unix timestamp in milliseconds.

end_timestampinteger · int64Optional

End of the requested time range, as a Unix timestamp in milliseconds.

market_idsinteger · int64[]Optional

comma-separated int64s, e.g. "1,2"

market_idinteger · int64OptionalDeprecated

Deprecated: use market_ids.

Default: 255
Header parameters
authorizationstringRequired

Auth token in the Authorization header. Required for main accounts.

Responses
200

A successful response.

application/json
codeinteger · int32RequiredExample: 200
messagestringOptional
next_cursorstringOptional
get/api/v1/positionFunding
GET /api/v1/positionFunding?account_index=1&limit=1 HTTP/1.1
Host: mainnet.zklighter.elliot.ai
authorization: text
Accept: */*
{
  "code": 200,
  "message": "text",
  "position_fundings": [
    {
      "timestamp": 1640995200,
      "market_id": 1,
      "funding_id": 1,
      "change": "1",
      "discount": "1",
      "rate": "1",
      "position_size": "1",
      "position_side": "long"
    }
  ],
  "next_cursor": "text"
}

Last updated

Was this helpful?