Use the API URL for your target environment:Documentation Index
Fetch the complete documentation index at: https://docs.b1nary.app/llms.txt
Use this file to discover all available pages before exploring further.
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, ortslax
chain,asset,strike,expiry,premium,delta,iv,spotavailable_amount,otoken_addressoption_type:PUTorCALL- quote data:
signature,mm_address,bid_price_raw,deadline,quote_id,max_amount_raw,maker_nonce
GET /positions/{address}
All positions for a wallet. Response fields:otoken_address,vault_id,amountstrike_price,expiry,is_putis_settled,is_itm,settlement_type,outcomenet_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.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 arecompleted, mint_completed, mint_completed_trade_failed, or failed.
Market maker endpoints
RequireX-API-Key header. See the Market Making guide for details.
| Method | Endpoint | Description |
|---|---|---|
| POST | /mm/quotes | Submit signed EIP-712 quotes |
| GET | /mm/quotes | Active, non-expired quotes |
| DELETE | /mm/quotes | Cancel all active quotes |
| GET | /mm/fills | Filled trades |
| GET | /mm/positions | Open positions by oToken |
| GET | /mm/exposure | Risk summary |
| GET | /mm/market | Market data: spot, IV, fee, gas, available oTokens |
| WS | /mm/stream | Real-time fill notifications |