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 funding settlements GET
Deprecated: use GET /perp/funding-settlements instead. Get the BTC/USD funding settlement history. A settlement happens every 8 hours (00:00, 08:00, 16:00…
Place trade POST
Deprecated: use POST /perp/isolated/trade instead. Place a new BTC/USD isolated trade. Returns the trade. Limit order: type="limit" and price must be…