DEVELOPER REFERENCE

Collateral Credit & LTV Risk API

Integrate real-time LTV telemetry, programmatic margin top-ups, and automated repayment workflows.

Fixed-Point Precision & Risk Enforcement

Authenticate via Authorization: Bearer <token>. All LTV ratios are computed in deterministic BigInt basis points (10,000 bps = 100%). Any origination exceeding max initial LTV is rejected with HTTP 422.

curl -X POST https://api.moin.group/api/loan/v1/contracts \
  -H "Authorization: Bearer mk_live_***" \
  -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000" \
  -H "Content-Type: application/json"
POST/api/loan/v1/quotes

Simulate exact initial LTV, margin-call price, liquidation price, and accrued interest schedule.

POST/api/loan/v1/contracts

Atomically lock collateral via G4 hold and disburse principal from segregated treasury:loan pool.

POST/api/loan/v1/contracts/{id}/repay

Settle partial or full principal + interest and immediately release proportional collateral holds.

Margin-Call & Health Webhooks

Signed HMAC-SHA256 webhooks fire instantaneously when contract LTV crosses warning (70%), margin-call (75%), or liquidation thresholds.

Header: X-Moin-Signature: t=1764633600,v1=<hmac_sha256_hex> · Origin: https://moin.loan