Get FX (currency) bars
get_fxAnswers 'what did EURUSD (or USDJPY) do?' Give a symbol (currency pair, e.g. EURUSD) and optionally interval (1min, 5min, 15min, 30min, 1hour or 1day, default 1day) plus start and end. Returns OHLC bars, times in US Eastern, clipped to as_of. Covers 79 currency pairs (EURUSD, USDJPY, GBPUSD and more) since January 2010. Free keys get daily bars for the last 12 months; paid keys get every bar size.
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": {
"symbol": "<symbol>"
},
"name": "get_fx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| as_of | No | Point-in-time cutoff (YYYY-MM-DD). Nothing dated after this is returned, preventing look-ahead bias. Defaults to today (UTC). | |
| start | No | ||
| symbol | Yes | Currency pair, e.g. EURUSD or USDJPY. | |
| interval | No |