The post-trade check everything else skips
402.com.tr/api/x402/position-health
The post-trade check everything else skips: given a token, your position size and (optionally) entry price, returns live price & P&L, whether the position can still be EXITED at that size, and the token's current rug score — combined into a healthy / watch / exit_now verdict with reasons. The risk that changes after you buy is exactly the risk holders miss.
GET
https://402.com.tr/api/x402/position-healthUptime100% of 1 check 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://402.com.tr/api/x402/position-health?address=0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed&entryPrice=0.0012&size=1000");
console.log(await res.json());Example input
{
"address": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
"entryPrice": "0.0012",
"size": "1000"
}