Get funding settlements
/perp/funding-settlementsPublicGet the funding settlement history of a perpetual market. Paginated, newest first. An unknown market, or one you have no access to, fails with NOT_FOUND. See the Funding documentation for more information.
from?stringStart date, unix epoch 0 by default
date-time"1970-01-01T00:00:00.000Z"to?stringEnd date, default to current time
date-time"2026-11-20T18:52:46.880Z"limit?integerNumber of entries to return, default to 1000
1 <= value <= 10001000cursor?Cursor for pagination: the nextCursor of the previous page, passed as cursor[value] and cursor[id]
instrument*stringInstrument of the market
"inverse_perp""quanto_perp"pair*stringPair of the market
OK
application/json- response
data*array<>nextCursor*|Cursor to use for fetching the next page of results: the last row's sort date and id. Pass it back as the cursor parameter of the next request. Returns null when there are no more results.
instrument*stringInstrument of the market
"inverse_perp""quanto_perp"pair*stringPair of the market
import { createHttpClient } from '@ln-markets/sdk/rest/v3'
const client = createHttpClient()
const result = await client.perp.getFundingSettlements({
from: '1970-01-01T00:00:00.000Z',
to: '2025-09-01T15:04:21.129Z',
limit: 500,
instrument: 'inverse_perp',
pair: 'btc_usd'
}){
"data": [
{
"id": "f0b9f9a0-4f6e-4a5a-8b7a-7f0f5f9a8a1e",
"time": "2025-01-01T00:00:00.000Z",
"fixingPrice": 43250,
"fundingRate": 0.0001,
"quantoAdjustmentRate": 0
}
],
"nextCursor": {
"value": "2024-01-15T10:30:00.000Z",
"id": "d0b9f9a0-4f6e-4a5a-8b7a-7f0f5f9a8a1e"
},
"instrument": "inverse_perp",
"pair": "btc_usd"
}Get candles GET
Get the candles (OHLC) of a perpetual market at the range resolution, 1 minute by default. Paginated, newest first. An unknown market, or one you have no…
Get trade GET
Get one of your trades in any state, of any perpetual market, by its id or its clientId (pass exactly one). A running trade pl is the unrealized P&L…