BitMart Futures Positions & Leverage REST API Reference
Query open BitMart futures positions and risk details, set leverage and margin mode, and configure one-way or hedge position modes using FuturesClientV2.
Use this file to discover all available pages before exploring further.
The position and leverage endpoints give you full control over how your futures exposure is managed — from viewing current open positions and their liquidation prices, to adjusting leverage and switching between one-way and hedge position modes. All methods on this page require authentication (SIGNED).
Leverage amplifies both gains and losses. High leverage significantly increases the risk of liquidation. Always verify your margin balance and liquidation price before increasing leverage on an open position. Never risk more than you can afford to lose.
Enhanced version of getFuturesAccountPositions with additional fields including position_side, unrealized_pnl, liquidation_price, initial_margin, and max_notional_value.Signature
Prefer getFuturesAccountPositionsV2 for new integrations. The V2 response includes liquidation_price and unrealized_pnl as top-level fields, making risk monitoring simpler.
Leverage multiplier as a string (e.g. "20"). Omit to query the current leverage without changing it.
Response fields (FuturesAccountSetLeverageResult)
Field
Type
Description
symbol
string
Contract symbol
leverage
string
Applied leverage value
open_type
string
Margin mode (cross or isolated)
max_value
string
Maximum allowed leverage for the contract
Increasing leverage on an existing open position will immediately change your liquidation price. Ensure you have sufficient margin before doing so. Reducing leverage requires enough available margin to absorb the change.
import { FuturesClientV2 } from 'bitmart-api';const client = new FuturesClientV2({ apiKey: process.env.API_KEY!, apiSecret: process.env.API_SECRET!, apiMemo: process.env.API_MEMO!,});const result = await client.setFuturesLeverage({ symbol: 'BTCUSDT', open_type: 'cross', leverage: '10',});console.log(`Leverage set to ${result.data.leverage}x (max: ${result.data.max_value}x)`);
BitMart futures supports two position modes. The mode you choose determines whether you can hold simultaneous long and short positions on the same contract.
In one-way mode (one_way_mode), you can only hold one directional position per contract at a time. Opening a position in the opposite direction will reduce or fully close your existing position.
Simpler to manage
Lower margin requirements
Suitable for directional strategies
In hedge mode (hedge_mode), you can simultaneously hold both a long and a short position on the same contract. Each side is tracked independently with its own margin and PnL.
Allows holding longs and shorts simultaneously
Useful for hedging strategies
Higher total margin requirement
Requires explicit side values that distinguish open/close intent
Changing position mode will fail if you have any open orders or open positions. Close all positions and cancel all orders before switching modes.