https://oioption.com/app/apiDashboard, market data, risk, trading and monitoring.
https://oioption.com/api/v1Account, payment, user API-key configuration and RFQ.
/app/api/* or /api/v1/*Recommended for frontend clients.
官网、系统前端和 API Gateway 是分层部署的。浏览器侧调用应优先使用同源路径,避免跨域直连后端服务。
认证方式
API 仅对已购买且授权有效的套餐用户开放。公开流程只包含登录/会话建立和基础服务检查;行情数据、信号、风控状态、交易执行都必须具备有效套餐授权。
未购买套餐、套餐过期或权限不足时,受保护 API 会拒绝访问。交易类 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. |
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
Live execution endpoints. These require quant trading entitlement and are protected by user scoping, risk controls, and audit logging.
14 endpoints
Trading Execution
Live execution endpoints. These require quant trading entitlement and are protected by 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>"Buy option through IOC/taker execution
curl -X POST https://oioption.com/app/api/trading/execute/buy-option \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{"inst_id":"BTC-20260529-70000-C","side":"buy","n_contracts":0.1,"tolerance_pct":0.05}'交易所 API Key 配置
OIOption 通过交易所官方 API 接入行情、账户和交易能力。API Key 应按照已购买产品层级使用最小必要权限。
Binance
Read info by default; trading permission only if explicitly needed.
限频与错误
所有 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.