backtestport

v0.1.0
io.github.CloudCorpRecords/backtestport Checked 4 days ago Published 1 month ago

Backtesting engine client: indicators, strategy validation, backtests, signals and market data.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

engine_info

Engine version, API contract, health.

get_me

What the configured key can do: permission scopes, limits, current usage, capability flags.

get_catalog

Reference catalogs: operators, execution modes, stop types, sizing methods, bar frequencies, metric sections.

ParameterTypeDescription
catalogstringCatalog name to retrieve.

list_indicators

Indicator discovery; per-indicator parameter schemas.

ParameterTypeDescription
searchstringSearch text filter (optional).

list_templates

Predesigned strategy templates — discover compactly, fetch one in full, ready to validate and run.

ParameterTypeDescription
idstringIdentifier of the record to operate on.

get_strategy_schema

JSON Schema for strategy documents.

validate_strategy

Validate a strategy without running it — returns structured, locatable errors.

ParameterTypeDescription
strategy *object | stringStrategy definition, as an object or a JSON string.

run_backtest

Run a backtest of a strategy over historical data for the given symbol and date range.

ParameterTypeDescription
strategy *object | stringStrategy definition, as an object or a JSON string.
dataobjectData payload for this call.
endstringEnd date for the range (ISO 8601).
includearraySections to include in the response (optional).
max_series_pointsintegerMaximum number of series points to return (optional).
response_detailstringLevel of detail for the response (optional).
startstringStart date for the range (ISO 8601).
symbolstringTicker symbol, e.g. AAPL.

get_latest_signal

Evaluate the most recent bar only (no P&L).

ParameterTypeDescription
strategy *object | stringStrategy definition, as an object or a JSON string.
symbolstringTicker symbol, e.g. AAPL.

compare_backtests

Run several strategies on the same data, side by side.

ParameterTypeDescription
strategies *arrayStrategy definitions or identifiers to compare.
includearraySections to include in the response (optional).
max_series_pointsintegerMaximum number of series points to return (optional).
response_detailstringLevel of detail for the response (optional).

compute_stats

Compute the metric set from an externally produced returns series.

ParameterTypeDescription
returns *arraySeries of returns values.

search_tickers

Search the fetchable symbol universe.

ParameterTypeDescription
query *stringSearch query text.

list_tickers

List the fetchable symbol universe.

get_data_range

Available history and bar-count estimate for a symbol.

ParameterTypeDescription
symbol *stringTicker symbol, e.g. AAPL.

get_ticker_info

Symbol identity and data coverage in a single call.

ParameterTypeDescription
symbol *stringTicker symbol, e.g. AAPL.

get_quote

Latest available price for a symbol.

ParameterTypeDescription
symbol *stringTicker symbol, e.g. AAPL.

get_price_history

OHLCV price history over a date range.

ParameterTypeDescription
symbol *stringTicker symbol, e.g. AAPL.
endstringEnd date for the range (ISO 8601).
frequencystringBar frequency, e.g. daily or weekly.
startstringStart date for the range (ISO 8601).

list_macro_series

List the macroeconomic series catalog.

get_macro_series

Fetch one macro series' observations.

ParameterTypeDescription
series *stringSeries identifier.
endstringEnd date for the range (ISO 8601).
startstringStart date for the range (ISO 8601).