Get market history
get_market_historyReturns OHLC history for a fiat, gold, or crypto market. Days are clamped to 1-365.
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": {
"assetType": "<assetType>",
"code": "<code>"
},
"name": "get_market_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Market code, such as USD, EMAMI, GOLD_GRAM, USDT, BTC. | |
| days | No | Number of days of history to return, from 1 to 365. | |
| assetType | Yes | Asset type: fiat, gold, or crypto. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| source | Yes | ||
| disclaimer | Yes | ||
| generatedAtUtc | Yes |