Simulate
Offload the CPU-bound backtest to a worker thread so the single-worker event loop keeps answering /health (prevents watchdog false-restarts).
Request
- Base URL: https://api.pruviq.com (the document declares no server; this is the origin it was published from)
- URL: https://api.pruviq.com/simulate
- Auth: none declared
Request body
Capture actual engine/input hashes for a fresh registry-strategy execution; bypass result cache, retain compute limits
Strategy ID
long | short | both (null = use strategy default)
Stop Loss %
Take Profit %
Max holding period (bars)
spot | futures
Specific symbols (null = use top_n)
Single-symbol alias for symbols. Auto-mapped (prevents silent ignore of a singular field).
Number of coins (null = top 50)
Include stablecoins (USDC, DAI…) in the top_n universe. Default false — ~0 volatility → empty backtests. Ignored when symbols is set (explicit picks always honored).
Backtest start date (YYYY-MM-DD)
Backtest end date (YYYY-MM-DD)
Only candles closed by this UTC instant; null = current closed hour. Does not freeze historical source revisions.
Candle timeframe: 1H, 2H, 4H, 6H, 12H, 1D, 1W
True = reinvest profits (compound), False = fixed position size (simple)
UTC hours to avoid entering trades (0-23). null = use strategy default
Months to avoid entering trades (1-12). null = no month filter
Minimum ATR ratio (current ATR / 14-period ATR MA) to allow entry. e.g., 0.7 = skip low-volatility periods. null = no filter
If true, only allow LONG entries when BTC is above its 50-period SMA. Improves LONG edge in bull regimes.
Fee per side (0.0005 = 0.05%). None = use market_type default
Leverage multiplier for PnL calculation
Response
Successful Response
The top_n this run resolved to. null for explicit symbols= requests (no top-N universe).
Coins eligible for a top-N universe at run time (stablecoins unless include_stablecoins, non-crypto and liquidity-dead markets excluded), read in the same selection as the coins run. null for symbols= requests (and on /backtest when the strategy is invalid, is_valid=false).
eligible_universe < top_n_requested: the request asked for more coins than exist, so the whole eligible universe ran. A cap only — coins lacking data are reported in coins_missing_data. null for symbols= requests.
min(top_n_requested, eligible_universe) - (selected coins with at least one candle inside start_date..end_date). Counts selected coins with no complete candle up to the cutoff AND coins whose candles all fall outside the requested window (those stay in coins_used, so this can exceed min(top_n_requested, eligible_universe) - coins_used). null for symbols= requests.
계약은 build_reliability_warning 한 곳이 소유한다(룰3).
Changes
No recorded changes to this operation across all 2 revisions of this API.