OIOption API Reference

Build on top of the OIOption Eagle Eye system

A production-oriented REST reference for market data, signal intelligence, risk state, trading execution, account configuration and operational monitoring.

System API
https://oioption.com/app/api

Dashboard, market data, risk, trading and monitoring.

Landing API
https://oioption.com/api/v1

Account, payment, user API-key configuration and RFQ.

Browser same-origin
/app/api/* or /api/v1/*

Recommended for frontend clients.

The public website, system frontend and API gateway are separated. Browser traffic should use the same-origin paths below.

Authentication

API access is available only to users with an active paid subscription. Public flows are limited to login/session bootstrap and basic service checks; market data, signals, risk state and trading execution require an active plan.

Plan-gated access

If a user has not purchased a plan, or the plan has expired, protected API requests are rejected. Trading APIs require the corresponding quantitative trading entitlement.

Cookie session

Default browser session for website and dashboard users.

Bearer token

Authorization: Bearer <access_token>

Endpoint groups

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
MethodEndpointAuthDescription
GET/api/pingPublic flowLightweight service health check.
POST/api/auth/loginPublic flowCreate a browser session after account authentication.
POST/api/auth/exchange-ssoPublic flowExchange a one-time SSO code for a system session.
POST/api/auth/refreshPublic flowRefresh an existing access session.
GET/api/auth/sessionUserReturn current authenticated user and plan scope.
POST/api/auth/logoutUserClear browser session cookies.

Market Data

Options, VIX, OHLCV, net-position, visualization and news data used by the dashboard and research workflow.

11 endpoints
MethodEndpointAuthDescription
GET/api/data/options/recentUserRecent normalized options rows.
GET/api/data/options/statisticsUserOptions statistics and summary metrics.
GET/api/data/options/table-countsUserData table counts for operational visibility.
GET/api/data/kline/ohlcvUserOHLCV candles for supported underlyings.
GET/api/data/net-positions/snapshotUserLatest net-position snapshot.
GET/api/data/net-positions/gridUserNet-position grid for strike/expiry structure.
GET/api/data/visualization/anomaliesUserAnomaly visualization data.
GET/api/data/visualization/vol-surfaceUserVolatility surface data.
GET/api/data/trading/vix/historyUserVIX history records.
GET/api/data/trading/vix/signal/latestUserLatest VIX-derived signal.
GET/api/data/news/recentUserRecent macro and market news context.

Signals & Decisions

Signal history, doomsday options evaluation, Eagle fusion decision output, and strategy signal records.

9 endpoints
MethodEndpointAuthDescription
GET/api/data/signals/recentUserRecent signal events.
GET/api/data/signals/historyUserSignal history series.
GET/api/data/signals/doomsday/evaluateUserDoomsday options signal evaluation.
GET/api/data/signals/doomsday/historyUserHistorical doomsday signal rows.
GET/api/data/eagle-decision/fusionUserEagle decision fusion output.
GET/api/data/trading/portfolioTradingTrading portfolio data view.
GET/api/data/trading/strategy-signalsTradingStrategy signal records by strategy/underlying.
GET/api/strategy/statusTradingStrategy runtime status.
GET/api/strategy/signalsTradingRecent 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
MethodEndpointAuthDescription
GET/api/trading/realtime-priceTradingRealtime underlying price.
GET/api/trading/sr-levelsTradingSupport/resistance levels.
GET/api/trading/positionsTradingScoped open positions.
GET/api/trading/orders/activeTradingScoped active orders.
GET/api/trading/orders/recentTradingRecent order history.
POST/api/trading/execute/buy-optionTradingOption buy IOC/taker execution.
POST/api/trading/execute/buy-from-supportTradingSR support-side execution.
POST/api/trading/execute/sell-from-resistanceTradingSR resistance-side execution.
POST/api/trading/positions/close-longTradingClose scoped long exposure.
POST/api/trading/positions/close-shortTradingClose scoped short exposure.
POST/api/trading/positions/reduceTradingReduce scoped position by percentage.
GET/api/trading/order-eventsTradingOrder execution audit events.
GET/api/trading/option-scanTradingAutomated option candidate scan.
GET/api/trading/signal-gate/historyTradingSignal gate decision history.

Risk & Controls

Risk control state, circuit breakers, tactical controls, global hedge status, and emergency shutdown.

13 endpoints
MethodEndpointAuthDescription
GET/api/risk/strategy-controller/statusUserPer-user strategy controller status.
POST/api/risk/strategy-controller/toggleUserEnable/disable user strategy controller.
GET/api/risk/controls/statusUserRisk control status.
POST/api/risk/controls/toggleAdminToggle global risk controls.
GET/api/risk/circuit-breaker/statusUserCircuit breaker state.
POST/api/risk/circuit-breaker/resetUserReset user circuit breaker state.
GET/api/risk/tactical-cb/statusUserTactical circuit breaker state.
GET/api/risk/vix/statusUserVIX factor status.
GET/api/risk/systemic/statusUserSystemic risk state.
GET/api/risk/global-hedge/statusUserGlobal hedge status.
GET/api/risk/emergency/statusUserEmergency shutdown status.
POST/api/risk/emergency/triggerAdminTrigger emergency shutdown.
POST/api/risk/emergency/resetAdminReset emergency shutdown.

System & Configuration

System status, monitoring, scheduler visibility, configuration and credential metadata.

12 endpoints
MethodEndpointAuthDescription
GET/api/system/healthUserSystem health view with role-based redaction.
GET/api/system/statsUserSystem statistics.
GET/api/system/control-planeUserControl-plane snapshot.
GET/api/system/exchange-statusUserExchange connection and freshness status.
POST/api/system/cache/clearAdminClear cache by feature.
GET/api/monitor/scheduler/statusUserScheduler status.
GET/api/monitor/scheduler/tasksUserScheduler task list.
GET/api/monitor/signal-modules/statusUserSignal module health.
GET/api/config/me/credentialsUserCurrent user credential metadata, never raw secrets.
GET/api/config/strategiesAdminStrategy configuration summary.
GET/api/config/signalsAdminSignal configuration.
POST/api/config/signalsAdminUpdate signal configuration.

Landing Account API

Account and license surfaces used to enter the Eagle Eye system and manage exchange API-key metadata.

6 endpoints
MethodEndpointAuthDescription
POST/api/v1/auth/loginPublic flowLanding account login.
POST/api/v1/auth/generate-sso-codeUserGenerate one-time SSO code for system entry.
GET/api/v1/user/dashboardUserDashboard account/license status.
POST/api/v1/user/api-settingsUserSave encrypted exchange API credentials.
GET/api/v1/user/api-settingsUserList masked exchange API settings.
POST/api/v1/user/test-connectionUserTest exchange API credentials.

Request examples

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}'

Exchange API key setup

OIOption connects to exchanges using official APIs. API keys should use the minimum permission required by the purchased product tier.

OKX

Read + Trade only when auto trading is enabled. Never enable Withdraw.

Deribit

Read for analytics; read_write only for trading workflows.

Binance

Read info by default; trading permission only if explicitly needed.

Rate limits & errors

All APIs are protected by rate limits. If the request frequency exceeds the limit, the API returns an error response. Reduce request frequency before retrying.

Production note

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.