get_orderbook
Retrieve real-time order book depth for Avanza instruments to analyze market liquidity, bid-ask spreads, and price levels with current buy/sell orders.
Instructions
Get real-time order book depth for an instrument.
Shows current buy and sell orders with prices and volumes at each level. Useful for understanding market depth, liquidity, and bid-ask spread.
Args: ctx: MCP context for logging instrument_id: Avanza instrument ID
Returns: Order book depth data with: - receivedTime: Timestamp of order book data - levels: Array of price levels, each containing: - buySide: Buy order with price, volume, priceString - sellSide: Sell order with price, volume, priceString
Examples: Get current order book: >>> get_orderbook(instrument_id="5269")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instrument_id | Yes |