Agent (x402)

Run grid-bot backtest (x402, $0.10)

Simulate a KuCoin-style grid bot on historical candles. All crypto pairs unlocked for x402 callers (payment IS entitlement).

Pricing: $0.10 USDC pay-per-call (x402). No account / no API key. On-demand backtest, computed inline (no DB-persistence for anonymous x402 callers).

post/api/v1/agent/backtests/grid

Request

  • Base URL: https://tradingstrategies.work
  • URL: https://tradingstrategies.work/api/v1/agent/backtests/grid
  • Auth: none declared

Request body

pairstring required
start_datestring date required
end_datestring date required
total_investmentnumber required
low_pricenumber required
high_pricenumber required
grid_countinteger required
grid_type'arithmetic' | 'geometric'
fee_ratenumber
entry_pricenumber
stop_loss_pricenumber
take_profit_pricenumber
stop_on_range_exitboolean

Default false (grid pauses outside the range). true: stop at the first close outside the range, coins sold at that close.

Response

Settled payment + data payload.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.