GET /api/v1/positionFunding
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lighter/api/v1/positionFundingCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freePublic historical position funding payments for an account or pool.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
account_index | query | int | required | Account index. example: 281474976710654 |
limit | query | int | required | Max funding entries. example: 5 |
cursor | query | str | optional | Pagination cursor. |
side | query | str | optional | Filter by position side (long, short, all). |
Response
type: object
data key: position_fundings
cursor key: next_cursor
pagination: cursor
sample: {
"code": "int",
"position_fundings": "array[5]",
"next_cursor": "str"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/positionFunding?account_index=281474976710654&limit=5"