Close position
Deprecated
/futures/cross/position/closePrivateDeprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Close the running cross margin position with a market order opposite to it. Returns that order.
Permissions: futures:cross:write
OK
application/json- response
id*stringInternal order ID
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidtype*"limit"Order type: limit or market
"limit"side*stringOrder side: b (buy) or s (sell)
"buy""sell"quantity*numberNumber of contracts in the order
price*numberBitcoin price when the order was filled (in USD)
tradingFee*integerTrading fee
createdAt*stringTimestamp when the order was created
date-timefilledAt*nullTimestamp when filled (null while order is open)
canceledAt*nullTimestamp when the order was canceled (null if not canceled)
open*booleanWhether the order is open (not yet filled)
filled*booleanWhether the order was filled
canceled*booleanWhether the order was canceled
clientId*|Optional custom data field (max 64 characters)
import { createHttpClient } from '@ln-markets/sdk/rest/v3'
const client = createHttpClient({
key: 'your-key',
secret: 'your-secret',
passphrase: 'your-passphrase',
})
const result = await client.futures.cross.close(){
"id": "d0b9f9a0-4f6e-4a5a-8b7a-7f0f5f9a8a1e",
"type": "limit",
"side": "buy",
"quantity": 100,
"price": 20000,
"tradingFee": 10,
"createdAt": "2025-09-01T15:04:21.129Z",
"filledAt": null,
"canceledAt": null,
"open": true,
"filled": false,
"canceled": false,
"clientId": "test-client-id-123"
}Get filled orders GET
Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get your filled cross orders. Paginated, newest first…
Get funding fees GET
Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the funding fees of your cross margin position, one…