Live price
get_market_priceReturns the live price for one stock, crypto, forex, futures or index symbol, with today's change. For a US stock outside regular hours, extendedHours holds the pre-market or after-hours price.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "get_market_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Asset class. | CRYPTO |
| symbol | Yes | Ticker, e.g. BTCUSDT, AAPL, EURUSD. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Live price (regular session). | |
| source | No | Data source. | |
| symbol | Yes | Echoed ticker. | |
| extendedHours | No | US stocks and ETFs outside the regular session: { session: "Pre-market" | "After hours", price, changePercent, asOf, settled, note }. Absent otherwise. |