OHLC candles of the mid price of a pair, with data gaps and coverage reported.
market_ohlcOHLC candles of the mid price of a pair, with data gaps and coverage reported. Use when: You need candles (open, high, low, close per interval) of an XRPL DEX pair for indicators or backtests. Candles are built from 5-minute mid-price samples; gaps are reported, never filled. Price: 0.001 RLUSD per call, or the equivalent in XRP, paid on the XRP Ledger with x402 (the first call returns the payment requirements).
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": {
"pair": "<pair>"
},
"name": "market_ohlc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | ||
| period | No | ||
| interval | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gaps | No | ||
| pair | Yes | ||
| basis | No | ||
| period | Yes | ||
| candles | Yes | ||
| network | Yes | ||
| product | Yes | ||
| interval | Yes | ||
| data_as_of | Yes | ||
| disclaimer | Yes | ||
| coverage_pct | No | ||
| source_ledger | No | ||
| price_convention | Yes |