news_prediction_get_market_orderbook
[Read] Live current order book only (mode=current). depth 1-20 (default 20). polymarket: market_id=venue_market_id; needs opensearch.predictionMarketIndex for token lookup (else not_implemented); yes/no CLOB /book in parallel—partial if one side fails, tool error only if both fail. predict_fun: official numeric market_id (not polymarket ids); needs predictFunAPIKey—empty/missing config returns partial_not_configured (no HTTP); API/parse errors return partial (not internal); 404 resource_not_found. Rejects history/granularity/time/page_token. snapshot_time/book_levels/best_* may be null when partial. Event list/signal -> search_events / get_event_signal. Read-only public research data. No account access, no order placement or fund transfers. Not investment advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Empty or current only (default current). history and other values rejected. | |
| depth | No | yes_bids/yes_asks top-N levels; default 20; allowed 1-20 inclusive; out of range invalid_param. | |
| venue | Yes | Required. polymarket or predict_fun. polymarket needs predictionMarketIndex; predict_fun needs predictFunAPIKey (else partial_not_configured, not a tool error). | |
| end_time | No | Unsupported; if set, request is rejected. | |
| market_id | Yes | Required. polymarket: venue_market_id in dws_prediction_market_hf (token lookup). predict_fun: official numeric id (e.g. 356640), not polymarket venue_market_id. | |
| page_token | No | Unsupported; if set, request is rejected. | |
| start_time | No | Unsupported; if set, request is rejected. | |
| granularity | No | Unsupported; if set, request is rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| venue | Yes | ||
| partial | Yes | ||
| market_id | Yes | ||
| source_api | Yes | ||
| book_levels | Yes | nullable | |
| duration_ms | Yes | ||
| snapshot_time | Yes | nullable | |
| missing_sources | Yes | ||
| source_data_status | Yes |