Binance Futures API in the SDK
The Binance Futures API covers USD-M and COIN-M contracts. In the SDK, use USDMClient for USD-M futures and CoinMClient for COIN-M futures. Those clients are separate from Spot (MainClient) and from Portfolio Margin (PortfolioClient). Symbols, keys and rate limits are not interchangeable across those products.
First request
This public USD-M ticker request needs no API key:
import { USDMClient } from 'binance';
async function main() {
const client = new USDMClient();
const result = await client.getSymbolPriceTicker({ symbol: 'BTCUSDT' });
if (Array.isArray(result)) throw new Error('Expected a single-symbol ticker.');
console.log('BTCUSDT USD-M last price:', result.price);
}
main().catch((error) => {
console.error(error instanceof Error ? error.message : 'Request failed. See the troubleshooting guide.');
process.exitCode = 1;
});CoinMClient follows the same pattern for COIN-M contracts, with that product's symbols.
Authentication and keys
Account reads and orders need a futures-capable API key. Create it with the permissions you need, then pass api_key and api_secret into USDMClient or CoinMClient. See API key setup and authentication.
For a futures demo environment (called a testnet in Binance futures documentation), set demoTrading: true and use demo credentials. Leave testnet false or omitted. See Futures Testnet and demo trading.
Market data and streams
Use the futures client for REST snapshots such as getSymbolPriceTicker() and getOrderBook(), and the matching WebSocket market for live updates. Public streams need no key. See market data and WebSocket streams for the pattern, then switch the client to USDMClient or CoinMClient.
To collect liquidations from the futures streams, see How do I get Binance futures liquidations in Node.js?
Place and cancel a USD-M order
The USD-M order walkthrough covers account reads, a post-only order, cancellation, position mode and recovery on production USD-M futures, with optional demo trading configuration.
Rate limits and account updates
Futures REST traffic has its own request-weight and order-count limits. Read them with getExchangeInfo() and getRateLimitStates() on the futures client. See rate limits. Follow fills and position changes on the user data stream, using the futures WebSocket client.