66trust / 100
Perps Orderbook
by Aayat AI in Markets & finance
x402 APIFailing, checked 1 h ago
Live order book for a perpetual futures market on Hyperliquid or dYdX: best bid and ask, spread in bps, USD depth within 10/50/100 bps of mid, and the average fill price and slippage of a market buy and sell of your size. Pass ?coin=ETH&sizeUsd=25000 (&venue=dydx).
GET https://aayatai.com/perps/orderbook
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 50.0%
- Response time
- 51 ms typical, 51 ms slowest 5%
- Last check
- 1 h ago: Connection failed (UND_ERR_CONNECT_TIMEOUT)
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://aayatai.com/perps/orderbook?coin=BTC&levels=3&sizeUsd=100000"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Faayatai.com%2Fperps%2Forderbook
const res = await pay("https://aayatai.com/perps/orderbook?coin=BTC&levels=3&sizeUsd=100000");
console.log(await res.json());Example input
{
"coin": "BTC",
"levels": 3,
"sizeUsd": 100000
}Example output
{
"asOf": "2026-09-29T23:30:00.000Z",
"asks": [
{
"px": 83716,
"sz": 6.50975
},
{
"px": 83717,
"sz": 0.09
},
{
"px": 83718,
"sz": 0.0002
}
],
"attribution": "Data from Hyperliquid's public info API (api.hyperliquid.xyz).",
"bestAsk": 83716,
"bestBid": 83715,
"bids": [
{
"px": 83715,
"sz": 5.49445
},
{
"px": 83714,
"sz": 0.83782
},
{
"px": 83713,
"sz": 1.45594
}
],
"bookSpanBps": {
"asks": 2.33,
"bids": 2.33
},
"bookTime": "2026-09-29T23:28:06.140Z",
"buy": {
"avgPx": 83716,
"complete": true,
"filledCoins": 1.19451479,
"filledUsd": 100000,
"sizeUsd": 100000,
"slippageBps": 0.06
},
"coin": "BTC",
"depthUsd": {
"asks": {
"within100bps": 4457024,
"within10bps": 4457024,
"within50bps": 4457024
},
"bids": {
"within100bps": 3830099,
"within10bps": 3830099,
"within50bps": 3830099
}
},
"mid": 83715.5,
"sell": {
"avgPx": 83715,
"complete": true,
"filledCoins": 1.19452906,
"filledUsd": 100000,
"sizeUsd": 100000,
"slippageBps": 0.06
},
"spreadBps": 0.119,
"venue": "hyperliquid"
}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 |
|---|---|---|---|---|
| 1 h ago | Connection failed (UND_ERR_CONNECT_TIMEOUT) | - | - | - |
| 7 h ago | Passed | 402 | 51 ms | $0.002 |