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 free

Public historical position funding payments for an account or pool.

Parameters

nameintypedescription
account_indexqueryintrequiredAccount index.
example: 281474976710654
limitqueryintrequiredMax funding entries.
example: 5
cursorquerystroptionalPagination cursor.
sidequerystroptionalFilter 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"