78trust / 100

Perpcheck Full

by PerpCheck by YourAITools in Markets & finance

x402 APIPassing, checked 2 h ago

Hyperliquid pre-trade risk check API. Full pre-trade check of a Hyperliquid perp order: everything in lite (verdict, rule issues with fixes) plus the isolated liquidation price and distance, taker impact and average fill from the live L2 book for market orders, funding carry per day (who pays), mark/oracle premium, open interest and size vs 24 h volume. Read-only; never places or signs orders. Fail-closed. Not financial advice; the exchange decides whether an order is accepted.

GET
https://api.youraitools.co/perpcheck/v1/full
Price
$0.01
per call in USDC
Uptime
92.9%
last 30 days
Response time
26 ms
144 ms slowest 5%
Last check
Passed
2 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/full

Each call costs $0.01 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/full?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, 54 lines
{
  "checked_at": "2026-10-23T19:20:07.089Z",
  "coin": "BTC",
  "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.",
  "execution": {
    "book_depth_covered": 1,
    "book_time": 1792783206472,
    "est_avg_fill": 81275,
    "est_impact_bps": 0.06,
    "mid": 81274.5,
    "spread_bps": 0.12
  },
  "funding": {
    "apr_pct": 10.95,
    "direction": "you pay",
    "est_cost_per_day_usd": 0.0244,
    "hourly_rate": 0.0000125
  },
  "issues": [],
  "leverage": 10,
  "liquidation": {
    "distance_pct": 8.86,
    "estimate_isolated": 74072.5,
    "note": "cross margin: the real liquidation price depends on your whole account; this is the isolated-equivalent worst case"
  },
  "margin": "cross",
  "market": {
    "day_volume_usd": 1978449099,
    "mark": 81274,
    "open_interest_usd": 3634646602,
    "oracle": 81279.6,
    "premium_bps": -0.69,
    "size_vs_day_volume_pct": 0
  },
  "notional_usd": 81.27,
  "order_type": "market",
  "reduce_only": false,
  "rules": {
    "max_leverage": 40,
    "max_leverage_at_size": 40,
    "min_notional_usd": 10,
    "only_isolated": false,
    "price_max_decimals": 1,
    "price_max_sig_figs": 5,
    "szDecimals": 5
  },
  "side": "long",
  "size": 0.001,
  "sources_failed": [],
  "tier": "full",
  "verdict": "OK",
  "warnings": []
}

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

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/full?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/full?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.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
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.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.youraitools.co%2Fperpcheck%2Fv1%2Ffull
const res = await pay("https://api.youraitools.co/perpcheck/v1/full?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.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
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/full?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
2 h agoPassed40225 ms$0.01
9 h agoPassed40228 ms$0.01
17 h agoPassed40217 ms$0.01
25 h agoPassed402110 ms$0.01
32 h agoPassed40234 ms$0.01
Show 9 older checks
40 h agoTimed out---
47 h agoPassed40227 ms$0.01
2 days agoPassed40222 ms$0.01
3 days agoPassed40228 ms$0.01
3 days agoPassed402144 ms$0.01
3 days agoPassed40215 ms$0.01
3 days agoPassed40226 ms$0.01
4 days agoPassed40221 ms$0.01
4 days agoPassed40216 ms$0.01