Quick References

Decimals

  • USDC: 6

  • Strikes: 8

  • Prices: 8

  • WETH: 18 (not used if USDC-only)

  • CBBTC: 8

Referrer

  • Use a unique address for your platform.

  • Pass as the 3rd arg to fillOrder() on every trade.

  • Filter user portfolios by position.referrer.

Endpoints

Orders:    https://round-snowflake-9c31.devops-118.workers.dev/
Trigger:   https://optionbook-indexer.thetanuts.finance/api/v1/update
Positions: https://optionbook-indexer.thetanuts.finance/api/v1/user/{address}/positions
History:   https://optionbook-indexer.thetanuts.finance/api/v1/user/{address}/history
Stats:     https://optionbook-indexer.thetanuts.finance/api/v1/stats

Example Flow (condensed)

Last updated