TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tiagosiebler/bitget-api/llms.txt
Use this file to discover all available pages before exploring further.
RestClientV3 trading methods provide complete order lifecycle management for the Bitget V3/UTA interface. A single unified order placement endpoint handles spot, margin, and all futures categories (USDT-FUTURES, COIN-FUTURES, USDC-FUTURES) — you select the target market via the category field. All trading methods require API key authentication with trading permissions.
submitNewOrder(params)
Places a new order for spot, margin, or futures markets. ThePlaceOrderRequestV3 type covers all supported order variations through a single schema.
Endpoint: POST /api/v3/trade/place-order
PlaceOrderRequestV3 Parameters
Market category:
SPOT, MARGIN, USDT-FUTURES, COIN-FUTURES, or USDC-FUTURES.Trading pair symbol, e.g.
BTCUSDT.Order direction:
buy or sell.Order type:
limit or market.Order quantity as a decimal string, e.g.
"0.01".Limit price as a decimal string. Required when
orderType is limit.Time-in-force policy:
gtc (default), ioc, fok, or post_only.Position side for hedge mode:
long or short. Required in hedge mode.Futures only. Margin mode:
crossed (default) or isolated.Whether this is a reduce-only order:
yes or no.Client-assigned order ID for idempotency and tracking.
Self-trade prevention:
none, cancel_taker, cancel_maker, or cancel_both.Attach a take-profit trigger price at order placement.
Attach a stop-loss trigger price at order placement.
Trigger type for TP:
mark_price or last_price.Trigger type for SL:
mark_price or last_price.timeInForce options:gtc— Good Till Cancelled (default): order remains active until filled or manually cancelled.ioc— Immediate or Cancel: fills whatever quantity is available immediately, cancels the rest.fok— Fill or Kill: must fill the entire quantity immediately or the whole order is cancelled.post_only— Maker only: order is rejected if it would immediately match as a taker.
Spot Limit Order Example
Futures Market Order Example
Futures Limit Order with TP/SL
cancelOrder(params)
Cancels a single active order identified byorderId or clientOid.
Endpoint: POST /api/v3/trade/cancel-order
Bitget-assigned order ID. Provide either
orderId or clientOid.Client-assigned order ID. Provide either
orderId or clientOid.cancelAllOrders(params)
Cancels all open orders for a given category, optionally scoped to a single symbol. Endpoint:POST /api/v3/trade/cancel-symbol-order
One of
SPOT, MARGIN, USDT-FUTURES, COIN-FUTURES, USDC-FUTURES.Optional symbol filter. Cancels all open orders in the category if omitted.
batchModifyOrders(params)
Modifies multiple open orders in a single request. Each item in the array targets one order byorderId or clientOid.
Endpoint: POST /api/v3/trade/batch-modify-order
Bitget order ID to modify.
Client order ID to modify.
New quantity for the order.
New limit price for the order.
Whether to auto-cancel the order:
yes or no.cancelBatchOrders(params)
Cancels multiple orders in a single request. Each entry requirescategory and symbol plus either orderId or clientOid.
Endpoint: POST /api/v3/trade/cancel-batch
Market category for the order being cancelled.
Trading symbol for the orders.
Bitget order ID.
Client order ID.
countdownCancelAll(params)
Sets or refreshes a dead man’s switch that automatically cancels all open orders if the countdown expires without being reset. Setcountdown to "0" to disable an active countdown.
Endpoint: POST /api/v3/trade/countdown-cancel-all
Seconds until auto-cancel. Acceptable values:
5–60, or 0 to disable.closeAllPositions(params)
Closes all open futures positions for a category, optionally filtered by symbol or position side. Endpoint:POST /api/v3/trade/close-positions
One of
USDT-FUTURES, COIN-FUTURES, USDC-FUTURES.Optional symbol to close. Omit to close all positions in the category.
Optional position side to close:
long or short.cancelStrategyOrder(params)
Cancels an active strategy (plan / TP-SL) order identified byorderId or clientOid.
Endpoint: POST /api/v3/trade/cancel-strategy-order
Strategy order ID assigned by Bitget.
Client-assigned strategy order ID.
Copy Trading Methods
These methods are for lead traders in Bitget’s copy-trading system. They require Futures Copy-Trading permissions on your API key.getCopyFuturesTradingPairs()
Returns the futures pairs that are eligible for copy trading on your lead account.getCopyFuturesMaxTransferable(params)
Returns the maximum transferable balance and available balance for the copy-trading lead account.Coin to query, e.g.
USDT.copyFuturesTransfer(params)
Transfers funds between spot/funding and the copy-trading lead account.Coin to transfer.
Transfer amount.
Direction of the transfer —
in (to lead account) or out (from lead account).