Market price
get_priceWhat is X trading at on Hyperliquid? The latest mark price of one market as a single number: native perps, HIP-3 builder perps (e.g. xyz:NVDA-PERP) and spot. For the oracle price and funding use get_mark_prices; for price history use get_candles; to compare many markets at once use get_markets_snapshot.
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": {
"market": "<market>"
},
"name": "get_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | Market: BTC-PERP, xyz:NVDA-PERP, HYPE/USDC, or a Hyperliquid name (BTC, @107, xyz:NVDA) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Price in USD | |
| market | No | Display symbol, e.g. "BTC-PERP" or "xyz:NVDA-PERP" | |
| notice | No | A note from the API: how a market name was read, why data starts later than asked, or a next step such as a free key |