Futures Data
Get leaderboard
Deprecated
GET
/futures/leaderboardPublicDeprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the top 10 users by P&L over the last day, 7 days, 30 days and all time. Users who hide from the leaderboard show as Anonymous.
OK
application/json- response
daily*array<>weekly*array<>monthly*array<>all-time*array<>import { createHttpClient } from '@ln-markets/sdk/rest/v3'
const client = createHttpClient()
const result = await client.futures.getLeaderboard(){
"daily": [
{
"username": "string",
"pl": 0,
"direction": 0
}
],
"weekly": [
{
"username": "string",
"pl": 0,
"direction": 0
}
],
"monthly": [
{
"username": "string",
"pl": 0,
"direction": 0
}
],
"all-time": [
{
"username": "string",
"pl": 0,
"direction": 0
}
]
}Get candles GET
Deprecated: use GET /perp/candles instead. Get the BTC/USD candles (OHLC) at the range resolution, 1 minute by default. Paginated, newest first.
Add margin to trade POST
Deprecated: use POST /perp/isolated/trade/add-margin instead. Move amount sats from your balance to the margin of a running trade. This lowers the trade…