|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > BINANCE API - Cryptocurrency Trading > BINANCE.Init - Initialize Binance API |
Initializes the Binance API with default settings. Optionally configure to use the Binance testnet (paper trading) instead of live trading.
Syntax:
BINANCE.Init[|$$TESTNET]
Parameters:
$$TESTNET (String, optional) - Set to "1" to use Binance testnet (paper trading), or "0" or omit for live trading.
Return Value:
None. The command initializes the Binance API subsystem.
Examples:
Initialize for live trading
BINANCE.Init
Initialize for testnet (paper trading)
BINANCE.Init|1
Notes:
Testnet uses separate API credentials from live trading.Default symbol is set to BTCUSDT.Always use testnet for development and testing.
See Also:
BINANCE.SetKey - Set API keyBINANCE.SetSecret - Set API secretBINANCE API Overview