https://oioption.com/app/apiAuthenticated dashboard, market data, risk and monitoring. Trading routes are enterprise-only.
https://oioption.com/api/v1Public market research, account, payment, user API-key configuration and RFQ.
/app/api/* or /api/v1/*Recommended for frontend clients.
官网、系统前端和 API Gateway 是分层部署的。浏览器侧调用应优先使用同源路径,避免跨域直连后端服务。
认证方式
这是产品接口,不是无限制的开发者 API。OIOption 公开行情路由提供延迟研究数据;账户、信号历史、风控状态和系统数据需要有效套餐授权。交易连接仅限企业定制,并需单独书面范围与审查。
未购买套餐、套餐过期或权限不足时,受保护 API 会拒绝访问。交易类接口、私有化部署、源码交付和定制集成不属于标准订阅权益,仅限企业授权,并需完成技术与合规审查。
Cookie session
Default browser session for website and dashboard users.
Bearer token
Authorization: Bearer <access_token>接口分组
Public System Flows
Only login/session bootstrap and lightweight health checks are public flows. They do not grant market, signal, risk or trading data access.
6 endpoints
Public System Flows
Only login/session bootstrap and lightweight health checks are public flows. They do not grant market, signal, risk or trading data access.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/ping | 公开流程 | Lightweight service health check. |
| POST | /api/auth/login | 公开流程 | Create a browser session after account authentication. |
| POST | /api/auth/exchange-sso | 公开流程 | Exchange a one-time SSO code for a system session. |
| POST | /api/auth/refresh | 公开流程 | Refresh an existing access session. |
| GET | /api/auth/session | 用户 | Return current authenticated user and plan scope. |
| POST | /api/auth/logout | 用户 | Clear browser session cookies. |
Market Data
Options, VIX, OHLCV, net-position, visualization and news data used by the dashboard and research workflow.
11 endpoints
Market Data
Options, VIX, OHLCV, net-position, visualization and news data used by the dashboard and research workflow.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/data/options/recent | 用户 | Recent normalized options rows. |
| GET | /api/data/options/statistics | 用户 | Options statistics and summary metrics. |
| GET | /api/data/options/table-counts | 用户 | Data table counts for operational visibility. |
| GET | /api/data/kline/ohlcv | 用户 | OHLCV candles for supported underlyings. |
| GET | /api/data/net-positions/snapshot | 用户 | Latest net-position snapshot. |
| GET | /api/data/net-positions/grid | 用户 | Net-position grid for strike/expiry structure. |
| GET | /api/data/visualization/anomalies | 用户 | Anomaly visualization data. |
| GET | /api/data/visualization/vol-surface | 用户 | Volatility surface data. |
| GET | /api/data/trading/vix/history | 用户 | VIX history records. |
| GET | /api/data/trading/vix/signal/latest | 用户 | Latest VIX-derived signal. |
| GET | /api/data/news/recent | 用户 | Recent macro and market news context. |
Public OIOption Market API
Public, delayed research endpoints used by the OIOption marketing site. These routes expose market observations only; they do not grant account, order or trading access.
11 endpoints
Public OIOption Market API
Public, delayed research endpoints used by the OIOption marketing site. These routes expose market observations only; they do not grant account, order or trading access.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/v1/market/options/meta | 公开流程 | Supported underlyings, option types, sort modes, source weights and venue heartbeat metadata. |
| GET | /api/v1/market/options/summary?underlying=BTC | 公开流程 | Aggregated BTC/ETH option summary with asOf, ATM IV, total OI, 24h volume, source coverage and stale-row count. |
| GET | /api/v1/market/options/snapshot?underlying=BTC&type=all&expiry=all&sortBy=oi&hideStale=false&limit=1500 | 公开流程 | Aggregated option chain rows with bid/ask/mark, IV, Greeks, openInterest, volume24h, spreadPct, updatedAt and stale. |
| GET | /api/v1/market/options/stream?underlying=BTC&type=all&expiry=all&sortBy=oi&hideStale=false&limit=1500 | 公开流程 | Server-sent event stream for the same aggregated option snapshot filters. |
| GET | /api/v1/market/kline/ohlcv?symbol=BTC&timeframe=1h&limit=120&exchange=okx | 公开流程 | Public OHLCV candles with asOf, cached and stale indicators. |
| GET | /api/v1/market/search-trends?geo=US,GB | 公开流程 | Public search-interest trend observations for supported geographies. |
| GET | /api/v1/market/equity/options-universe | 公开流程 | Validated US-equity option universe and capability metadata. |
| GET | /api/v1/market/equity/options-chain?symbol=SPY&limit=20000 | 公开流程 | Delayed US-equity option chain; numeric fields include an observation quality marker. |
| GET | /api/v1/market/equity/market-summary | 公开流程 | Delayed QQQ/SPY/DIA benchmark regime summary with coverage and option breadth. |
| GET | /api/v1/market/equity/options-turnover-breadth | 公开流程 | Delayed top-symbol option turnover, OI and session-volume breadth summary. |
| GET | /api/v1/onchain-whale/public | 公开流程 | Public delayed BTC/ETH whale-rank flow research payload. |
Signals & Decisions
Signal history, doomsday options evaluation, Eagle fusion decision output, and strategy signal records.
9 endpoints
Signals & Decisions
Signal history, doomsday options evaluation, Eagle fusion decision output, and strategy signal records.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/data/signals/recent | 用户 | Recent signal events. |
| GET | /api/data/signals/history | 用户 | Signal history series. |
| GET | /api/data/signals/doomsday/evaluate | 用户 | Doomsday options signal evaluation. |
| GET | /api/data/signals/doomsday/history | 用户 | Historical doomsday signal rows. |
| GET | /api/data/eagle-decision/fusion | 用户 | Eagle decision fusion output. |
| GET | /api/data/trading/portfolio | 交易权限 | Trading portfolio data view. |
| GET | /api/data/trading/strategy-signals | 交易权限 | Strategy signal records by strategy/underlying. |
| GET | /api/strategy/status | 交易权限 | Strategy runtime status. |
| GET | /api/strategy/signals | 交易权限 | Recent strategy-level signals. |
Trading Execution
Enterprise-only live execution endpoints. These are not a public developer API and require separate written scope, technical review, compliance review, user scoping, risk controls and audit logging.
14 endpoints
Trading Execution
Enterprise-only live execution endpoints. These are not a public developer API and require separate written scope, technical review, compliance review, user scoping, risk controls and audit logging.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/trading/realtime-price | 交易权限 | Realtime underlying price. |
| GET | /api/trading/sr-levels | 交易权限 | Support/resistance levels. |
| GET | /api/trading/positions | 交易权限 | Scoped open positions. |
| GET | /api/trading/orders/active | 交易权限 | Scoped active orders. |
| GET | /api/trading/orders/recent | 交易权限 | Recent order history. |
| POST | /api/trading/execute/buy-option | 交易权限 | Option buy IOC/taker execution. |
| POST | /api/trading/execute/buy-from-support | 交易权限 | SR support-side execution. |
| POST | /api/trading/execute/sell-from-resistance | 交易权限 | SR resistance-side execution. |
| POST | /api/trading/positions/close-long | 交易权限 | Close scoped long exposure. |
| POST | /api/trading/positions/close-short | 交易权限 | Close scoped short exposure. |
| POST | /api/trading/positions/reduce | 交易权限 | Reduce scoped position by percentage. |
| GET | /api/trading/order-events | 交易权限 | Order execution audit events. |
| GET | /api/trading/option-scan | 交易权限 | Automated option candidate scan. |
| GET | /api/trading/signal-gate/history | 交易权限 | Signal gate decision history. |
Risk & Controls
Risk control state, circuit breakers, tactical controls, global hedge status, and emergency shutdown.
13 endpoints
Risk & Controls
Risk control state, circuit breakers, tactical controls, global hedge status, and emergency shutdown.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/risk/strategy-controller/status | 用户 | Per-user strategy controller status. |
| POST | /api/risk/strategy-controller/toggle | 用户 | Enable/disable user strategy controller. |
| GET | /api/risk/controls/status | 用户 | Risk control status. |
| POST | /api/risk/controls/toggle | 管理员 | Toggle global risk controls. |
| GET | /api/risk/circuit-breaker/status | 用户 | Circuit breaker state. |
| POST | /api/risk/circuit-breaker/reset | 用户 | Reset user circuit breaker state. |
| GET | /api/risk/tactical-cb/status | 用户 | Tactical circuit breaker state. |
| GET | /api/risk/vix/status | 用户 | VIX factor status. |
| GET | /api/risk/systemic/status | 用户 | Systemic risk state. |
| GET | /api/risk/global-hedge/status | 用户 | Global hedge status. |
| GET | /api/risk/emergency/status | 用户 | Emergency shutdown status. |
| POST | /api/risk/emergency/trigger | 管理员 | Trigger emergency shutdown. |
| POST | /api/risk/emergency/reset | 管理员 | Reset emergency shutdown. |
System & Configuration
System status, monitoring, scheduler visibility, configuration and credential metadata.
12 endpoints
System & Configuration
System status, monitoring, scheduler visibility, configuration and credential metadata.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| GET | /api/system/health | 用户 | System health view with role-based redaction. |
| GET | /api/system/stats | 用户 | System statistics. |
| GET | /api/system/control-plane | 用户 | Control-plane snapshot. |
| GET | /api/system/exchange-status | 用户 | Exchange connection and freshness status. |
| POST | /api/system/cache/clear | 管理员 | Clear cache by feature. |
| GET | /api/monitor/scheduler/status | 用户 | Scheduler status. |
| GET | /api/monitor/scheduler/tasks | 用户 | Scheduler task list. |
| GET | /api/monitor/signal-modules/status | 用户 | Signal module health. |
| GET | /api/config/me/credentials | 用户 | Current user credential metadata, never raw secrets. |
| GET | /api/config/strategies | 管理员 | Strategy configuration summary. |
| GET | /api/config/signals | 管理员 | Signal configuration. |
| POST | /api/config/signals | 管理员 | Update signal configuration. |
Landing Account API
Account and license surfaces used to enter the Eagle Eye system and manage exchange API-key metadata.
6 endpoints
Landing Account API
Account and license surfaces used to enter the Eagle Eye system and manage exchange API-key metadata.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /api/v1/auth/login | 公开流程 | Landing account login. |
| POST | /api/v1/auth/generate-sso-code | 用户 | Generate one-time SSO code for system entry. |
| GET | /api/v1/user/dashboard | 用户 | Dashboard account/license status. |
| POST | /api/v1/user/api-settings | 用户 | Save encrypted exchange API credentials. |
| GET | /api/v1/user/api-settings | 用户 | List masked exchange API settings. |
| POST | /api/v1/user/test-connection | 用户 | Test exchange API credentials. |
请求示例
Login and create browser session
curl -X POST https://oioption.com/app/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"desk@example.com","password":"********"}'Read recent signal events
curl https://oioption.com/app/api/data/signals/recent?limit=50 \
-H "Authorization: Bearer <access_token>"Read public aggregated option data
curl "https://oioption.com/api/v1/market/options/snapshot?underlying=BTC&type=all&expiry=all&sortBy=oi&hideStale=false&limit=1500" \
-H "Accept: application/json"交易所 API Key 配置
OIOption 通过交易所官方 API 接入行情和账户能力。默认使用只读 API Key;交易权限仅适用于明确批准的企业工作流,提币权限任何情况下都不得开启。
OKX
Read-only by default. Trading permission is restricted to an explicitly approved workflow. Never enable Withdraw.
Deribit
Read for analytics. Use read_write only under an explicitly approved enterprise trading workflow.
Binance
Read info by default. Trading permission requires explicit product authorization.
限频与错误
所有 API 都有限频保护。超过限频后接口会自动返回错误,请降低请求频率后再访问。
Trading APIs are live-money surfaces. Human operators should control global switches and strategy switches; strategy execution itself is automated and must be governed by risk controls, audit logs and exchange-side API permissions.