Place order
Deprecated
/futures/cross/orderPrivateDeprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Place a new BTC/USD cross margin order. Returns the order.
- Limit order:
type="limit"andpricemust be included - Market order:
type="market"andpricemust be omitted
Permissions: futures:cross:write
application/json- body
side*stringOrder side: buy (long) or sell (short)
"buy""sell"quantity*integerQuantity
0 < valueclientId?stringOptional custom data field (max 64 characters)
length <= 64type*"limit"Order type
"limit"price*numberEntry price
0.50 < valueOK
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.newOrder({
side: 'buy',
quantity: 10,
type: 'limit',
price: 101000
}){
"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"
}Cancel order POST
Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Cancel an open cross order by its id. Returns the…
Get open orders GET
Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get all your cross orders that are still open.