Skip to content
Fourohtwo

finops.halowerk.com/v1/daily-futures-variation-ledger

Original signed daily futures fills and settlement captures determine rounded one-contract money values, carried positions, daily variation, deposited-cash balances and hypothetical account-threshold topup requirements. Normal rounding is half away from zero at each price before multiplying by quantity. Input prices are thousandths of a quote currency unit; money outputs are hundredths; multiplier

BaseAnswering
POSThttps://finops.halowerk.com/v1/daily-futures-variation-ledger

Uptime100% 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://finops.halowerk.com/v1/daily-futures-variation-ledger", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"days":[{"deposit":0,"settlement_domain":[1000],"trades":[{"price_milli":900,"quantity":2}]},{"deposit":0,"settlement_domain":[1200],"trades":[{"price_milli":1100,"quantity":-1}]}],"initial_target":1000,"maintenance":500,"multiplier":10,"opening_cash":1000,"report":{"balances":[1200,1500],"contract_values":[1000,1200],"ending_balance":1500,"positions":[2,1],"required_topups":[0,0],"total_deposits),
});
console.log(await res.json());

Example input

{"days":[{"deposit":0,"settlement_domain":[1000],"trades":[{"price_milli":900,"quantity":2}]},{"deposit":0,"settlement_domain":[1200],"trades":[{"price_milli":1100,"quantity":-1}]}],"initial_target":1000,"maintenance":500,"multiplier":10,"opening_cash":1000,"report":{"balances":[1200,1500],"contract_values":[1000,1200],"ending_balance":1500,"positions":[2,1],"required_topups":[0,0],"total_deposits