Spot price
get_spotUse when an agent needs a spot price without choosing a venue. Returns the on-chain DEX price for SOL, BTC or ETH, the median of deep USDC pools on Solana, Ethereum and Base read from chain state, and the pools that served it. Any other symbol answers 400 with the supported list and is never billed. Costs 0.001 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_spot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | SOL, BTC or ETH (default SOL). Any other symbol answers 400 with the supported list |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_spot payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_spot | |
| tool | Yes | the tool that produced this payload |