Skip to content
Fourohtwo

Position sizing as a service

api.vex402.online/depth

Position sizing as a service. For a ladder of USD sizes, measure what the chain ACTUALLY pays: entry via the best route, immediate exit of the exact position, per-size impact %, round-trip cost %, and the largest size that stays under your cost tolerance. This is what pool-reserve-dollar figures cannot tell you: what a real block gives you for YOUR size.

BaseSolanaAnswering
POSThttps://api.vex402.online/depth

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.vex402.online/depth", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"baseSymbol":"USDC","chainId":1,"sizesUsd":[100,1000,10000,100000],"tokenAddress":"WETH"}),
});
console.log(await res.json());

Example input

{
  "baseSymbol": "USDC",
  "chainId": 1,
  "sizesUsd": [
    100,
    1000,
    10000,
    100000
  ],
  "tokenAddress": "WETH"
}