81trust / 100

Perpcheck Lite

by PerpCheck by YourAITools in Markets & finance

x402 APIPassing, checked 6 h ago

Hyperliquid order checker API (pre-trade). Pre-trade check of a Hyperliquid perp order before you send it: REJECT_LIKELY / CAUTION / OK, each exchange-rule issue with a fix value (size decimals, price tick, $10 minimum, max leverage by margin tier, isolated-only, OI cap, delisted, far-from-mark limit), warnings and the coin rules. Read-only; never places or signs orders. Fail-closed: a failed source is listed, never OK. Not financial advice; the exchange decides whether an order is accepted.

GET
https://api.youraitools.co/perpcheck/v1/lite
Price
$0.003
per call in USDC
Uptime
100%
last 30 days
Response time
78 ms
266 ms slowest 5%
Last check
Passed
6 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://api.youraitools.co/perpcheck/v1/lite

Each call costs $0.003 in USDC on Polygon, 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.

GET https://api.youraitools.co/perpcheck/v1/lite?coin=BTC&leverage=10&side=long&size=0.001

Parameters

ParameterTypeRequiredDescription
coinstringYesHyperliquid main-dex perp name, e.g. BTC, ETH, SOL, HYPE, kPEPE
leveragenumberNoLeverage, e.g. 10 (default 1)
marginstringNocross (default) or isolated One of: cross, isolated.
notionalnumberNoOrder value in USD (instead of size), e.g. 100
pricestringNoLimit price exactly as you would send it (tick rule is checked). Omit for a market order (then taker impact is estimated from the L2 book).
reduceOnlybooleanNotrue if the order only reduces a position (exempt from the minimum and OI cap)
sidestringYeslong/buy or short/sell One of: long, short, buy, sell.
sizestringNoOrder size in coins, exactly as you would send it (decimals are checked), e.g. 0.001. Give size or notional.

Example response

The provider's example. We can't check it without paying.

Example response, 52 lines
{
  "checked_at": "2026-10-23T19:20:07.798Z",
  "coin": "ETH",
  "confidence": "high",
  "disclaimer": "Not financial advice; the exchange decides whether an order is accepted. PerpCheck is a read-only pre-trade check: it never places, signs or holds orders, has no custody and never asks for keys.",
  "issues": [
    {
      "code": "min_notional",
      "msg": "order value $3.70 is below Hyperliquid's $10 minimum"
    },
    {
      "code": "size_decimals",
      "fix": 0.0012,
      "msg": "size has 7 decimals; this coin allows 4 (szDecimals)"
    },
    {
      "code": "price_tick",
      "fix": 3000.1,
      "msg": "price has 3 decimals; max for this coin is 2"
    },
    {
      "code": "leverage",
      "fix": 25,
      "msg": "leverage 60x is above the 25x maximum for this coin at $4 notional"
    }
  ],
  "leverage": 60,
  "margin": "cross",
  "notional_usd": 3.7,
  "order_type": "limit",
  "reduce_only": false,
  "rules": {
    "max_leverage": 25,
    "max_leverage_at_size": 25,
    "min_notional_usd": 10,
    "only_isolated": false,
    "price_max_decimals": 2,
    "price_max_sig_figs": 5,
    "szDecimals": 4
  },
  "side": "long",
  "size": 0.0012,
  "sources_failed": [],
  "tier": "lite",
  "verdict": "REJECT_LIKELY",
  "warnings": [
    {
      "code": "marketable_limit",
      "msg": "limit buy above mark by 25.37%: fills immediately as taker"
    }
  ]
}

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.003.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.youraitools.co/perpcheck/v1/lite?coin=BTC&leverage=10&side=long&size=0.001'

# 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 - 'https://api.youraitools.co/perpcheck/v1/lite?coin=BTC&leverage=10&side=long&size=0.001' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: 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.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
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.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.youraitools.co%2Fperpcheck%2Fv1%2Flite
const res = await pay("https://api.youraitools.co/perpcheck/v1/lite?coin=BTC&leverage=10&side=long&size=0.001");
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.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://api.youraitools.co/perpcheck/v1/lite?coin=BTC&leverage=10&side=long&size=0.001")
    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

WhenResultHTTPTimePrice
6 h agoPassed40238 ms$0.003
14 h agoPassed402170 ms$0.003
22 h agoPassed40227 ms$0.003
29 h agoPassed40269 ms$0.003
37 h agoPassed40269 ms$0.003
Show 10 older checks
44 h agoPassed402108 ms$0.003
2 days agoPassed402101 ms$0.003
2 days agoPassed402109 ms$0.003
3 days agoPassed40278 ms$0.003
3 days agoPassed402196 ms$0.003
3 days agoPassed40242 ms$0.003
4 days agoPassed40296 ms$0.003
4 days agoPassed40278 ms$0.003
4 days agoPassed40231 ms$0.003
4 days agoPassed40278 ms$0.003