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 · enumOptionalDefault:
Position or trade side filter.
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 · int64OptionalDeprecatedDefault:
Deprecated: use market_ids.
255Header parameters
authorizationstringRequired
Auth token in the Authorization header. Required for main accounts.
Responses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
next_cursorstringOptional
400
Bad request
application/json
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?