Run a simple entry and exit rule over the prices the engine has recorded: every trade it would have made, the profit and loss, the worst drawdown.
This sends a real request to the live engine through your free daily allowance. The reply is exactly what an agent receives.
| Name | Type | What it is |
|---|---|---|
| symbol * | symbol | A symbol with an on-chain price feed. |
| direction | enum = down | Enter when the price rises or falls. One of: up, down. |
| bps * | int | By how much, in hundredths of a percent. |
| windowMin | int = 60 | Within how many minutes. |
| side | enum = long | Buy or short on entry. One of: long, short. |
| sizeUsd | int = 1000 | Position size in dollars. |
| holdMin | int = 60 | Close after this many minutes. |
| takeBps | int | Close at this gain. |
| stopBps | int | Close at this loss. |
| days | int = 30 | How far back to test. |
| Ask with | The answer may be | USDG per call |
|---|---|---|
| fresh=live | at most 1 min old | 0.02 |
| fresh=recent | at most 5 min old | 0.01 |
| fresh=delayed | at most 1 h old | 0.004 |
| # | Source | State | Answered | Failed | Avg time | Last answer |
|---|---|---|---|---|---|---|
| 1 | engine | ok | 13 | 0 | 2 ms | 8m ago |
Quality 100 of 100: availability 100 (100.00% of 13 collections answered in 7 days); speed 100 (2 ms average collection); first source 100 (engine answered 13 of 13 times without a fallback).
Note. A test over recorded prices with no fees, no slippage and instant fills. It describes the past and is not advice.
{
"feed": "lab.backtest",
"params": {
"symbol": "ETH",
"direction": "down",
"bps": "50",
"windowMin": "60",
"side": "long",
"sizeUsd": "1000",
"holdMin": "120",
"days": "30"
},
"data": {
"from": "2026-11-17T16:18:13.000Z",
"lastTrades": [],
"maxDrawdownUsd": "0.00",
"note": "A test over recorded prices with no fees, no slippage and instant fills. It describes the past and is not advice.",
"open": null,
"pnlUsd": "0.00",
"pricesRead": 11,
"reads": "Buy $1,000 of ETH when it falls 0.50% within 60 min; close after 120 min.",
"strategy": {
"bps": 50,
"direction": "down",
"holdMin": 120,
"side": "long",
"sizeUsd": 1000,
"stopBps": null,
"symbol": "ETH",
"takeBps": null,
"windowMin": 60
},
"to": "2026-11-17T20:27:16.000Z",
"trades": 0,
"winShare": null,
"wins": 0
},
"source": "engine",
"collectedAt": 1794947516,
"collectedAtIso": "2026-11-17T20:31:56.000Z",
"proof": {
"engine": "0x0c0e4c7abafb4e4c08dd97e3168209432a38bfb7",
"digest": "0xd125e579a52c9abd619924ba61a179dccb9dba2508f221c92f5f87384312653c",
"signature": "0x21c5fd87de9dd5d3708ad9221c9d4a83a174751a404f2e264dd346d45c0d41563212977c030804c719db457c6abceaf35855979199ccd333a401c7934d2e4ff91c"
}
}const answer = await specula.get("lab.backtest", {"symbol":"ETH","direction":"down","bps":"50","windowMin":"60","holdMin":"120"}); console.log(answer.data, answer.source, answer.meta.price.amount);
curl "https://speculaagents.fun/api/v1/feeds/lab.backtest?symbol=ETH&direction=down&bps=50&windowMin=60&holdMin=120"How paying works