Backtest
by EdgeCheck in Onchain & crypto
Honest crypto prediction test: pick a Binance coin, timeframe (1h/4h/1d), range and horizon. Trains a scikit-learn random forest walk-forward (past data only, tested on unseen later candles) and reports accuracy vs baselines (always up, majority, last move repeats), p-values, feature importance, a fee-aware strategy vs buy-and-hold, and the latest prediction with a clear no-edge verdict. Body: {"symbol":"BTC","interval":"1d","bars":1000}
https://backtest.thaikit.dev/backtest- Price
- $0.1
- per call in USDC
- Uptime
- 76.3%
- last 30 days
- Response time
- 743 ms
- 975 ms slowest 5%
- Last check
- Failed
- 17 h ago, next in 8 h
Reliability
Latest check failed 17 h ago: Expected HTTP 402, got 502
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://backtest.thaikit.dev/backtest
Each call costs $0.1 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://backtest.thaikit.dev/backtest
content-type: application/json
{
"bars": 1000,
"horizon": 1,
"interval": "1d",
"symbol": "BTC"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
bars | integer | No | Candles to test, ending now or at end (default 1000) |
end | string | No | Last day, YYYY-MM-DD (default: latest closed candle) |
feeBps | integer | No | Trading fee per side for the strategy simulation, basis points (default 10) |
horizon | integer | No | Predict the close this many candles ahead (default 1) |
interval | string | No | Candle size (default 1d) One of: 1h, 4h, 1d. |
quote | string | No | Quote currency when symbol is a bare coin (default USDT) |
start | string | No | Instead of bars: first day, YYYY-MM-DD |
symbol | string | Yes | Coin or Binance spot pair: "BTC" (= BTCUSDT), "ETHUSDC", "SOL-USDC", "ETH/BTC" |
Example response
The provider's example. We can't check it without paying.
Example response, 76 lines
{
"backtest": {
"baselines": {
"alwaysUp": {
"accuracy": 0.5018
},
"majority": {
"accuracy": 0.4667
},
"persistence": {
"accuracy": 0.4982
}
},
"bestBaseline": "alwaysUp",
"foldsWon": 1,
"model": {
"accuracy": 0.4544,
"balancedAccuracy": 0.4548,
"brierScore": 0.2596,
"brierSkill": -0.0359
},
"significance": {
"independentSamples": 570,
"pValueVsBestBaseline": 0.9331,
"pValueVsCoinFlip": 0.9868
},
"testRows": 570
},
"data": {
"candles": 1000,
"from": "2024-01-24T00:00:00Z",
"source": "Binance spot",
"to": "2026-10-20T00:00:00Z"
},
"featureImportance": [
{
"accuracyDropPct": -0.47,
"clear": false,
"feature": "ret_3"
}
],
"featureImportanceNote": "No feature clearly helped on unseen data; the ranking is noise.",
"horizon": 1,
"interval": "1d",
"prediction": {
"asOf": "2026-10-20T00:00:00Z",
"direction": "down",
"note": "The backtest found no edge, so this prediction is no better than a coin flip.",
"probabilityUp": 0.4125,
"target": "2026-10-21T00:00:00Z",
"track": {
"confidenceBand": "0.55-0.60 probability for the predicted side",
"testAccuracy": 0.456,
"testSamples": 193
}
},
"strategy": {
"buyAndHold": {
"maxDrawdownPct": 52.97,
"timeInMarketPct": 100,
"totalReturnPct": -3.14,
"trades": 1
},
"model": {
"maxDrawdownPct": 54.24,
"timeInMarketPct": 38.8,
"totalReturnPct": -43.96,
"trades": 83
}
},
"symbol": "BTCUSDT",
"verdict": {
"edge": "none",
"summary": "No real edge. On 570 unseen candles the model was right 45.4% of the time and 'always guess up' was right 50.2%, so it did worse than the simple rule. Treat its prediction as a coin flip."
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.1.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://backtest.thaikit.dev/backtest' \
-H 'content-type: application/json' \
--data-raw '{"bars":1000,"horizon":1,"interval":"1d","symbol":"BTC"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://backtest.thaikit.dev/backtest' \
-H 'content-type: application/json' \
--data-raw '{"bars":1000,"horizon":1,"interval":"1d","symbol":"BTC"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.1 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.1" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.1 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fbacktest.thaikit.dev%2Fbacktest&method=POST
const res = await pay("https://backtest.thaikit.dev/backtest", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"bars": 1000,
"horizon": 1,
"interval": "1d",
"symbol": "BTC"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.1 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.1"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://backtest.thaikit.dev/backtest",
json={
"bars": 1000,
"horizon": 1,
"interval": "1d",
"symbol": "BTC",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 17 h ago | Expected HTTP 402, got 502 | 502 | 871 ms | - |
| 2 days ago | Expected HTTP 402, got 502 | 502 | 720 ms | - |
| 4 days ago | Timed out | - | - | - |
| 7 days ago | Expected HTTP 402, got 530 | 530 | 145 ms | - |
| 8 days ago | Expected HTTP 402, got 530 | 530 | 103 ms | - |
Show 10 older checks
| 10 days ago | Expected HTTP 402, got 530 | 530 | 174 ms | - |
| 10 days ago | Expected HTTP 402, got 530 | 530 | 158 ms | - |
| 11 days ago | Expected HTTP 402, got 530 | 530 | 141 ms | - |
| 11 days ago | Passed | 402 | 1.0 s | $0.1 |
| 12 days ago | Passed | 402 | 743 ms | $0.1 |
| 12 days ago | Passed | 402 | 844 ms | $0.1 |
| 13 days ago | Passed | 402 | 710 ms | $0.1 |
| 13 days ago | Passed | 402 | 873 ms | $0.1 |
| 14 days ago | Passed | 402 | 826 ms | $0.1 |
| 14 days ago | Passed | 402 | 807 ms | $0.1 |