FAQ · Reamer Research and Reamer Server: what they are and who they fit

Can I backtest a trading strategy on OKX data?

Yes. Ask your agent in the Reamer Research app for OKX bars, such as "a year of BTC-USDT 1-hour bars from OKX", and it downloads them from OKX's public candlestick history endpoint into a CSV ready to backtest. No OKX account or key is needed. The same spec covers spot pairs and perpetual swaps. Reamer Research is a quant workstation built on a high-performance C++ core. Describe a strategy in plain English, and your AI agent writes it, backtests it and shows you every trade.

Yes. Ask your agent in the Reamer Research app for OKX bars, such as "a year of BTC-USDT 1-hour bars from OKX", and it downloads them from OKX's public candlestick history endpoint into a CSV ready to backtest. No OKX account or key is needed. The same spec covers spot pairs and perpetual swaps. Reamer Research is a quant workstation built on a high-performance C++ core. Describe a strategy in plain English, and your AI agent writes it, backtests it and shows you every trade.

How it works

  1. Install the app with uv tool install reamer-research and start it with reamer-research.
  2. Ask for the bars in the chat. Your agent reads OKX's API docs with web_fetch, and the app asks you before each page it reads.
  3. The agent writes the spec, sources/okx.json, and runs test_source, which fetches BTC-USDT and checks every bar: prices, high and low, volume, duplicate times, spacing against the timeframe and the time grid.
  4. Once every check passes, fetch_bars writes one CSV per symbol to data/, from the start up to, not including, the end, and the bars are ready to backtest.

The spec is saved in your workspace, so later asks for OKX bars skip straight to the download.

What you get

  • OKX's history-candles endpoint serves spot instruments such as BTC-USDT and swaps such as BTC-USDT-SWAP with no key.
  • Each CSV has Date, Time (UTC), Open, High, Low, Close and Volume.
  • Timeframes: 1m, 5m, 15m, 30m, 1h, 4h, 1d and 1w, with daily and weekly bars on UTC boundaries.
  • Each request returns up to 100 bars, and the app splits a long range into as many requests as it needs. OKX leaves out both ends of each requested range; the app 5.7.1 and the MCP server 0.5.1 reach one bar past each end, so every bar arrives.

On 2026-12-05, 2025 of BTC-USDT 1-hour bars came back as 8,760 bars, every hour of the year, and the same spec passed on BTC-USDT-SWAP.

The spec

This spec passed test_source on 2026-12-05, with OKX's my.okx.com host in place of www.okx.com, which serves the same API. Your agent writes its own from OKX's docs, and it will look much like this:

{
  "spec": 1,
  "name": "OKX",
  "url": "https://www.okx.com/api/v5/market/history-candles",
  "params": {
    "instId": "{symbol}",
    "bar": "{timeframe}",
    "after": "{end}",
    "before": "{start}",
    "limit": "100"
  },
  "time_param": "unix_ms",
  "timeframes": {
    "1m": "1m",
    "5m": "5m",
    "15m": "15m",
    "30m": "30m",
    "1h": "1H",
    "4h": "4H",
    "1d": "1Dutc",
    "1w": "1Wutc"
  },
  "rows": "data",
  "layout": "arrays",
  "fields": {
    "time": 0,
    "open": 1,
    "high": 2,
    "low": 3,
    "close": 4,
    "volume": 5
  },
  "time_format": "unix_ms",
  "timezone": "UTC",
  "bar_time": "open",
  "pages": {
    "type": "window",
    "size": 100
  },
  "per_minute": 600
}

From your own MCP client

The Reamer Research MCP server has the same source_spec, test_source and fetch_bars tools, so Claude Code, Cursor or any MCP client can fetch OKX bars the same way. See Data from any REST API.

The app and the server are free to install. Evaluation Mode backtests one ticker over up to 30 days or 50,000 bars, and $20 a month removes the limits. See pricing and Can I backtest on data from any market data API?

Try it in Reamer Research

Install the app with uv tool install reamer-research, start it with reamer-research, and paste this into the chat:

Paste into Reamer Research
Fetch the last 30 days of BTC-USDT-SWAP 1-hour bars from OKX, then backtest a breakout strategy on them with realistic costs and run Monte Carlo on the trades.

Next questions

Can I backtest on data from any market data API?Yes, from any vendor with a REST API for historical bars. In the Reamer Research app, your agent reads the vendor's API docs, writes a short spec describing the endpoint, and tests it until every bar passes the checks. Then it downloads the range you ask for into CSV files ready to backtest. Alpaca, Databento and MetaTrader 5 are built in, and a spec covers the rest. Reamer Research is a quant workstation built on a high-performance C++ core. Describe a strategy in plain English, and your AI agent writes it, backtests it and shows you every trade.Where does the market data come from?Reamer Research has market data built in: ask your AI agent for "a year of AAPL 5-minute bars" and it downloads them from Alpaca, Databento or any vendor with a REST API, ready to backtest. Alpaca crypto bars need no account at all, US stock bars need only the free key from an Alpaca paper account, and Databento adds stocks and futures, including continuous contracts, with each request priced before it runs. From code, the same fetchers pull bars into a backtest in one call, live trading streams closed bars from Alpaca, a ccxt exchange or a MetaTrader 5 terminal, and bars from any other source go in as arrays or CSV. Reamer Server takes orders from your strategies, which price from your own feed.Can I use my own AI agent with Reamer Research?Yes. Reamer Research is built around the AI agent you already use. The app starts with whichever of Claude Code, Codex, Gemini CLI, Cursor or OpenCode is already on your computer, on its own sign-in or an API key kept in your system keychain, and you can switch any time in the Agent dialog. The agent runs on your own plan, so the app adds no AI charge of its own, and your prompts go only to the provider you chose. If the agent needs installing or signing in, the app shows the command to run.What is Reamer Research?Reamer Research is a quant workstation built on a high-performance C++ core. Describe a strategy in plain English, and your AI agent writes it, backtests it and shows you every trade. It runs on your own computer (Linux, macOS or Windows) as a local app: chat with Claude Code, Codex, Gemini CLI, Cursor or OpenCode on the left, and Strategy, Data, Analysis, Backtest, Trade diagnostics and Live tabs fill on the right. Every order fills tick by tick on a seeded path inside each bar, and the same data, settings and seed give byte-identical results. Quants who code use the same core as a Python and C++ library. Free to install with uv tool install reamer-research; $20 per seat per month for the full workstation.

Every answer here restates the documents that ship in the kit, which are authoritative. All questions.

Reamer Research

Put your next idea to the test

The quant workstation built on a high-performance C++ core. Describe a strategy in plain English, and your AI agent writes it, backtests it and shows you every trade.

$uv tool install reamer-research; reamer-research

No uv yet? Install uv first, or use pipx install reamer-research.

Free to try · $20 a month for the full workstation

Trade diagnostics
Recorded in the app on sample data, 15 s, real time

Running a trading firm? Reamer Server is the institutional order-management core from Reamer Labs.