Skip to content
Fourohtwo

Cost and payback of one StonkFun trade at one size, no swap

api.solenrich.com/entrypoints/stonk-quote/invoke

Cost and payback of one StonkFun trade at one size, no swap: entry and exit cost (transfer tax + price impact at size), round-trip % and the breakeven price move, your pro-rata share of each payout with a dust warning, expected payout over the hold from the yield window with real history, and a PAYS / MARGINAL / COSTS / NOT_PAYING verdict with breakeven hold days. Composes stonk-reward-risk, stonk

SolanaBaseAnswering
POSThttps://api.solenrich.com/entrypoints/stonk-quote/invoke

Uptime100% of 2 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.solenrich.com/entrypoints/stonk-quote/invoke", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"format":"json","hold_days":7,"mint":"HcRLc9VDgjLeK154xDawfb1dmVJ98DoSqcwTHGqiDeJR","size_usd":100}),
});
console.log(await res.json());

Example input

{
  "format": "json",
  "hold_days": 7,
  "mint": "HcRLc9VDgjLeK154xDawfb1dmVJ98DoSqcwTHGqiDeJR",
  "size_usd": 100
}

More from SolEnrichProvider status