Developer Surface

PromoGrind Calc API

PromoGrind exposes calculator math through a lightweight REST surface for partner tools, content embeds, and internal integrations.

Current posture: the calc API is implementation-ready in the repo, but production deployment and public promotion should stay aligned with launch-state truth. Core public calculators are live now with free Vault membership. Partner or developer usage should be staged deliberately.

Status: API function exists in supabase/functions/calc-api. Deployment is still a manual activation step.

Deploy command: supabase functions deploy calc-api

Auth: None required for the current calculator endpoints.

POST
/bonus-bet

Convert bonus bets into guaranteed-cash outputs.

POST
/arb

Return arbitrage stake sizing and locked profit math.

POST
/ev

Expected-value calculation against a supplied fair probability.

POST
/profit-boost

Boosted-odds value and optimal hedge sizing.

POST
/no-vig

Fair-odds and implied probability output.

POST
/kelly

Kelly fraction and bankroll sizing guidance.

Example request
{
  "odds": "+300",
  "hedgeOdds": "-320",
  "stake": 100
}

Recommended use cases

Partner embeds, internal Studio surfaces, creator tools, and future public developer docs once deployment, support expectations, and rate posture are finalized.

Need embed-ready surfaces instead? Use the public iframe docs for the fastest path.