Get order book
tossinvest_get_orderbookRetrieve the current bid/ask ladder for a stock to assess liquidity and spread before choosing a limit price. Returns asks and bids with price and volume.
Instructions
Get the current bid/ask ladder (호가) for one stock.
Use this to judge liquidity and spread before choosing a limit price. For the single last-traded price use tossinvest_get_prices instead — it is cheaper and supports batching.
Args:
symbol (string): One symbol. KRX = 6 digits, US = ticker.
response_format ('markdown' | 'json'): default 'markdown'.
Returns { symbol, currency, timestamp, asks: [{ price, volume }], bids: [{ price, volume }] }. asks are ascending by price (best ask first), bids descending (best bid first). Both arrays may be empty outside trading hours.
Errors: 404 stock-not-found for unknown symbols.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock symbol. KRX: 6 digits (e.g. '005930' for Samsung Electronics). US: ticker (e.g. 'AAPL'). | |
| response_format | No | Output format: 'markdown' for a compact human-readable summary, 'json' for the complete raw payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asks | Yes | Sell side, ascending by price | |
| bids | Yes | Buy side, descending by price | |
| symbol | Yes | ||
| currency | No | KRW or USD | |
| timestamp | No |