|
<< 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.GetPrice - Get Symbol Price |
Retrieves the current price for a cryptocurrency trading pair. This is a public API call that does not require authentication.
Syntax:
BINANCE.GetPrice|$$SYMBOL|$$RET_VAR
Parameters:
$$SYMBOL (String, required) - Trading pair symbol (e.g., BTCUSDT, ETHUSDT, BNBBTC).
$$RET_VAR (Variable, required) - Variable to receive the price as a string.
Return Value:
Current price as a string (e.g., "45231.50") in the $$RET_VAR variable.
Examples:
; Get Bitcoin price in USD
BINANCE.GetPrice|BTCUSDT|btcPrice
MSGBOX "Bitcoin: $" & btcPrice
; Get Ethereum price in Bitcoin
BINANCE.GetPrice|ETHBTC|ethBtcPrice
See Also: