80trust / 100
Perps Venue Comparison Invoke
by SolEnrich in Company & people data
x402 APIPassing, checked 2 h ago
Builds on cross-venue funding with size-aware fields: Jupiter Quote spot slippage at requested size, per-venue fee, OI cap headroom, first-hour borrow cost, and total entry cost. Returns rankings by entry cost / borrow APR / headroom plus a recommendation venue with warnings. Use when sizing a real position; use perps-cross-venue-funding for rates-only context.
POST https://api.solenrich.com/entrypoints/perps-venue-comparison/invoke
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 183 ms typical, 183 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.solenrich.com/entrypoints/perps-venue-comparison/invoke" \
-H "content-type: application/json" \
-d '{"format":"json","market":"SOL","side":"long","size_usd":5000}'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%2Fapi.solenrich.com%2Fentrypoints%2Fperps-venue-comparison%2Finvoke
const res = await pay("https://api.solenrich.com/entrypoints/perps-venue-comparison/invoke", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"format":"json","market":"SOL","side":"long","size_usd":5000}),
});
console.log(await res.json());Example input
{
"format": "json",
"market": "SOL",
"side": "long",
"size_usd": 5000
}Example output
{
"output": {
"checked_at": 1790035810602,
"market": "SOL",
"rankings": {
"by_borrow_apr": [
"dydx-v4",
"adrena",
"hyperliquid"
],
"by_entry_cost": [
"hyperliquid",
"dydx-v4",
"adrena"
],
"by_headroom": [
"jupiter-perps"
]
},
"recommendation": {
"reasoning": "adrena cheapest at 0.060% total entry cost (0.001pt below jupiter-perps at 0....",
"venue": "adrena",
"warnings": [
"best_venue_tilted"
]
},
"side": "long",
"size_usd": 5000,
"spot_slippage_pct": 0,
"spot_slippage_source": "jupiter-quote",
"spot_slippage_tier_used": 10000,
"venues": [
{
"available": true,
"borrow_apr_long": 12.739,
"borrow_apr_short": 12.739,
"estimated_slippage_pct": 0,
"fee_pct": 0.06,
"first_hour_borrow_pct": 0.0014542,
"flags": [],
"health": "TILTED",
"oi_cap_headroom_usd": 211720000,
"open_interest_usd": 38218000,
"total_entry_cost_pct": 0.061454,
"type": "solana-onchain",
"venue": "jupiter-perps"
}
]
},
"run_id": "uuid",
"status": "succeeded"
}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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 342 ms | $0.02 |
| 7 h ago | Passed | 402 | 183 ms | $0.02 |