Developers

API Reference

Comprehensive documentation for the rlx-search HTTP API. Manage datasets, compute pattern matches, run ANN searches, and train RL agents.

Introduction

The rlx-search service exposes JSON endpoints to manage historical datasets, compute pattern matches, and run ANN searches. All responses are UTF-8 JSON. Errors return an HTTP 4xx/5xx along with { "error": "CODE" }.

Base URL (Production)
https://aipricepatterns.com
Base URL (Local)
http://localhost:3000
requires PATTERNS_RUST_BASE pointing to local service

Quick Testing With curl

Set the base URL once per shell:

Send requests with curl and pipe to jq for readability:

Common Concepts

ParamTypeDefaultDescription
symbolstringBTCUSDTTrading pair to analyse.
intervalstring1hCandle interval.
qinteger40Query window length (10–400).
finteger30Forecast horizon (5–300).
startintegerlatestOptional explicit start offset (0 = first bar).
cursorinteger0Match pagination cursor.
limitinteger32Number of matches (5–128).
filtersJSONnoneSerialized PatternFilters object.
sortstringsimilaritysimilarity, recent, historic, corr, or rmse.
forceboolfalseForce-refresh candles from Binance.

Note: Dataset mutations automatically clear the in-memory cache and ANN index; the next analytics request will rebuild state transparently.