getPriceHistory
Fetch OHLC price history for any Stellar asset pair using SDEX trade aggregations. Specify base and counter assets, resolution, and candle count to get structured market data.
Instructions
Get OHLC price history for a Stellar asset pair from SDEX trade aggregations
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": {
"baseAsset": "<baseAsset>",
"counterAsset": "<counterAsset>"
},
"name": "getPriceHistory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of candles | |
| baseAsset | Yes | Base asset: "XLM" or "CODE:ISSUER" | |
| resolution | No | Candle resolution | 1h |
| counterAsset | Yes | Counter asset: "XLM" or "CODE:ISSUER" |