ReadonlynameThe name of the exchange
ReadonlytestnetWhether the exchange is connected to testnet
Format an asset to a trading symbol
The base asset (e.g., "ETH")
The quote asset (default: "USDT")
Formatted symbol (e.g., "ETHUSDT")
Parse a symbol into base and quote assets
The trading pair symbol
Object with base and quote assets
Initialize the Binance exchange with API credentials
API key and secret
Verify that the API credentials are valid by fetching account info
True if credentials are valid
Get account balances
Optionalasset: stringOptional specific asset to filter
Array of balances
Get current price for a trading pair
Trading pair symbol (e.g., "BTCUSDT")
Current price information
Get all available trading pairs
Array of trading pair symbols
Place a market buy order
Trading pair symbol
Amount to buy
If true, quantity is in quote currency
The created order
Place a market sell order
Trading pair symbol
Amount to sell
The created order
Place a limit buy order
Trading pair symbol
Amount to buy
Limit price
The created order
Place a limit sell order
Trading pair symbol
Amount to sell
Limit price
The created order
Place a stop loss order
Trading pair symbol
Amount to sell
Stop trigger price
OptionallimitPrice: numberOptional limit price
The created order
Place a take profit order
Trading pair symbol
Amount to sell
Take profit trigger price
OptionallimitPrice: numberOptional limit price
The created order
Cancel an existing order
The order ID to cancel
The trading pair symbol
True if cancellation was successful
Get order status
The order ID to check
The trading pair symbol
The order details
Get open orders
Optionalsymbol: stringOptional symbol to filter by
Array of open orders
Binance exchange implementation using the official binance npm package