blockrun_price
Retrieve real-time quotes and OHLC history for crypto, forex, commodities, and global stocks using Pyth data.
Instructions
Realtime quotes and OHLC history for crypto, FX, commodities and 12 global stock markets (Pyth-backed).
action="price" — realtime quote for a symbol
action="history" — OHLC bars between from/to (unix seconds)
action="list" — discovery: list available symbols (free)
Pricing:
crypto / fx / commodity: FREE across price, history and list
stocks / usstock: $0.001 per price or history call (list free)
Stocks markets: us, hk, jp, kr, gb, de, fr, nl, ie, lu, cn, ca (required when category="stocks").
Examples:
{ action: "price", category: "crypto", symbol: "BTC-USD" }
{ action: "price", category: "stocks", symbol: "AAPL", market: "us" }
{ action: "history", category: "crypto", symbol: "ETH-USD", resolution: "D", from: 1700000000, to: 1710000000 }
{ action: "list", category: "crypto", query: "sol" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which endpoint to hit: price, history, or list. | |
| category | Yes | Market category. | |
| symbol | No | Ticker (required for price+history). e.g. BTC-USD, AAPL, EUR-USD. | |
| market | No | Stock market code — required when category='stocks'. | |
| session | No | Equity session hint (pre/post/on); ignored for non-equity. | |
| resolution | No | Bar resolution for history (default D). | |
| from | No | History window start (unix seconds). | |
| to | No | History window end (unix seconds). | |
| query | No | Free-text filter for list. | |
| limit | No | Max items for list (default 100, max 2000). | |
| agent_id | No | Agent identifier for budget tracking and enforcement. |