Skip to main content
Use the API URL for your target environment: https://api.b1nary.app (production) or https://optionsprotocolbackend-staging.up.railway.app (testnet).

Public endpoints

No authentication required.

GET /prices

Live option price sheet. Returns the best bid per oToken across all market makers for Base and Solana markets. Parameters:
  • asset (optional): eth, btc, sol, or tslax
Response fields per entry:
  • chain, asset, strike, expiry, premium, delta, iv, spot
  • available_amount, otoken_address
  • option_type: PUT or CALL
  • quote data: signature, mm_address, bid_price_raw, deadline, quote_id, max_amount_raw, maker_nonce
Returns 503 if the circuit breaker is active. Wait and retry.

GET /positions/{address}

All positions for a wallet. Response fields:
  • otoken_address, vault_id, amount
  • strike_price, expiry, is_put
  • is_settled, is_itm, settlement_type, outcome
  • net_premium, collateral, asset

GET /b1nary-account

Returns the b1nary account, members, and verified wallets linked to a Privy user.

GET /b1nary-account/by-wallet

Resolves a b1nary account from a verified wallet address.

GET /b1nary-account/positions

Returns unified positions for all verified trading wallets in a b1nary account.

GET /spot

Current spot price for an asset.

GET /capacity

Market capacity, max position size, market status (active/degraded/full).

GET /prices/simulate

Back-test a 7-day put at a given strike. Returns premium, assignment outcome, comparison vs hold/stake/DCA.

POST /faucet

Testnet only. Sends test tokens + gas.
One claim per wallet. Receives 0.005 ETH (gas), 50 LETH (test WETH), 100,000 LUSD (test USDC).

Bridge and trade endpoints

These endpoints support USDC consolidation across Base and Solana with Circle CCTP V2. Use them when a user has enough USDC across chains but not enough on the target chain for the selected quote.

POST /api/bridge-and-trade/reserve

Reserve a Base -> Solana bridge-and-trade job before burning USDC on Base. This prevents duplicate burns for the same quote. For Solana destinations, mint_recipient must be the user’s Solana USDC associated token account (ATA), not the wallet owner. If the ATA does not exist, backend validates and creates it with the operator hot wallet as payer.

POST /api/bridge-and-trade

Create or finalize a bridge job after the source burn transaction exists. Used for Base -> Solana bridge-and-trade and bridge-only flows.

POST /api/bridge/solana-cctp-burn/prepare

Prepare a sponsored Solana -> Base CCTP burn transaction. Backend uses the operator as fee payer; the user signs only as the Solana USDC owner.

POST /api/bridge/solana-cctp-burn/submit

Submit the user-signed Solana burn transaction. Backend broadcasts it, creates the bridge job, waits for attestation, and mints on Base.

GET /api/bridge-status/{job_id}

Poll bridge progress. Terminal statuses are completed, mint_completed, mint_completed_trade_failed, or failed.

Market maker endpoints

Require X-API-Key header. See the Market Making guide for details.