Overview
Theorders_histogram table stores complete order book snapshots - all buy orders and sell orders at each price level, similar to a stock market depth chart. This data shows market liquidity and the bid-ask spread.
Data Source: itemordershistogram API endpoint
Update Frequency: Real-time (seconds)
Use Case: Analyze market depth, track bid-ask spreads, identify support/resistance levels
Table Schema
Auto-incrementing primary key for each record
When this snapshot was taken (UTC)
Steam application ID (730 for CS2, 570 for Dota 2, etc.)
Exact Steam market name
Steam’s internal numeric item ID (required for this endpoint)
ISO 4217 currency code (USD, EUR, GBP, etc.)
Two-letter country code used for the request
Language used for the request
JSON array of buy orders:
[{"price": 5.25, "quantity": 10}, ...]Each object contains:price(float) - The bid pricequantity(int) - Number of orders at this price
JSON array of sell orders:
[{"price": 5.50, "quantity": 8}, ...]Each object contains:price(float) - The ask pricequantity(int) - Number of orders at this price
JSON array for visualization:
[[price, quantity, label], ...]Structured for charting librariesJSON array for visualization:
[[price, quantity, label], ...]Structured for charting librariesTotal number of buy orders in the order book
Total number of sell orders in the order book
Best bid price (highest price someone is willing to pay)
Best ask price (lowest price someone is willing to sell for)
Indexes
Example Queries
Get Current Bid-Ask Spread
Extract Full Order Book
Track Order Book Depth Over Time
Query Top Buy Order Using JSON
Analyze Spread Volatility
JSON Structure Examples
buy_order_table Format
sell_order_table Format
Data Flow
Working with JSON Data
SQLite provides powerful JSON functions:Related Tables
price_overview
Current market prices and trading volume
orders_activity
Recent trade activity feed