binance_get_avg_price
Retrieve the current average price over Binance's 5-minute window to use as a smoothed reference for market order sanity checks.
Instructions
Fetch the current average price over Binance's configured window (typically 5 min).
Calls GET /api/v3/avgPrice (weight 2).
When to Use:
As a smoothed reference price, e.g. for MARKET order sanity checks.
When NOT to Use:
For the latest tick price — use
binance_get_ticker_price.
Returns:
Markdown: the price, the averaging window in minutes, and the close time. JSON: the
raw {mins, price, closeTime} object.
Examples: params = {"symbol": "BTCUSDT"}
Error Handling:
An unknown symbol raises Binance -1121 Invalid symbol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |