API Documentation

Hyperstock API — Bring options analysis into your systems.

RESTful endpoints, JSON format, average response 200ms.


Quick Start

Base URL

plain

Copy

https://api.hyperstock.net/v1

Authentication

plain

Copy

Header: Authorization: Bearer YOUR_API_KEY

Get an API Key: Log in to Hyperstock → User Settings → API Management → Generate Key

Endpoint Reference

MethodPathDescription
POST/analyze/sell-putSingle-symbol Sell Put analysis
POST/analyze/batchMulti-symbol batch analysis
POST/analyze/spreadSpread strategy generation
GET/today-picksDaily top strategy recommendations
GET/account/usageQuery usage balance

1. Sell Put Analysis

POST /analyze/sell-put

Full-chain Sell Put scan for a single symbol; returns a ranked list of recommended contracts.

Request parameters

ParameterTypeRequiredDescription
symbolstringYesTicker symbol, e.g. "AAPL"
expiry_rangeintNoDays to expiration range, default 30, range 7–90
top_nintNoReturn top N results, default 5, max 20
min_annual_returnfloatNoMinimum annualized return filter, e.g. 0.15 for 15%

Request example

JSON

Copy

{ "symbol": "AAPL", "expiry_range": 30, "top_n": 5}

Response example

JSON

Copy

{ "success": true, "data": { "symbol": "AAPL", "underlying_price": 189.52, "analysis_time_ms": 2300, "recommendations": [ { "rank": 1, "strike": 185.00, "expiry": "2025-06-20", "days_to_expiry": 30, "premium": 1.85, "annual_return": 0.285, "annual_return_pct": "28.5%", "assignment_prob": 4.2, "span_margin_est": 2100.00, "score": 8450, "delta": -0.18, "theta": 0.032, "vega": -0.15, "iv": 0.25

}, { "rank": 2, "strike": 180.00, "expiry": "2025-06-20", "days_to_expiry": 30, "premium": 1.25, "annual_return": 0.221, "annual_return_pct": "22.1%", "assignment_prob": 2.1, "span_margin_est": 1800.00, "score": 7820, "delta": -0.09, "theta": 0.028, "vega": -0.10, "iv": 0.25 } ] }}

Field reference

FieldDescription
underlying_priceCurrent underlying stock price
analysis_time_msAnalysis duration (milliseconds)
strikeStrike price
expiryExpiration date
premiumPremium (per share)
annual_returnAnnualized return (decimal)
assignment_probProbability of profit at expiration (%)
span_margin_estEstimated buying-power effect (per share)
scoreAI composite score
delta/theta/vegaGreeks

2. Multi-Symbol Batch Analysis

POST /analyze/batch

Analyze multiple symbols at once; returns the top pick for each.

Request parameters

ParameterTypeRequiredDescription
symbolsarrayYesArray of ticker symbols, max 10
expiry_rangeintNoDays to expiration range, default 30

Request example

JSON

Copy

{ "symbols": ["AAPL", "MSFT", "NVDA"], "expiry_range": 30}

Response example

JSON

Copy

{ "success": true, "data": { "results": [ { "symbol": "AAPL", "underlying_price": 189.52, "top_pick": { "strike": 185.00, "expiry": "2025-06-20", "annual_return_pct": "28.5%", "assignment_prob": 4.2, "score": 8450

} }, { "symbol": "MSFT", "underlying_price": 420.15, "top_pick": { "strike": 410.00, "expiry": "2025-06-20", "annual_return_pct": "18.2%", "assignment_prob": 3.5, "score": 7230 } } ] }}


3. Spread Strategy Analysis

POST /analyze/spread

Generate optimal Bull Call or Bear Put spread pairings.

Request parameters

ParameterTypeRequiredDescription
symbolstringYesTicker symbol
strategystringYesStrategy type: "bull_call" or "bear_put"
price_lowfloatYesExpected price range lower bound
price_highfloatYesExpected price range upper bound
expiry_rangeintNoDays to expiration range, default 30

Request example

JSON

Copy

{ "symbol": "AAPL", "strategy": "bull_call", "price_low": 185, "price_high": 205, "expiry_range": 30}

Response example

JSON

Copy

{ "success": true, "data": { "symbol": "AAPL", "strategy": "bull_call", "underlying_price": 189.52, "recommendations": [ { "rank": 1, "buy_leg": { "strike": 185.00, "expiry": "2025-06-20", "premium": 8.50, "type": "call"

}, "sell_leg": { "strike": 205.00, "expiry": "2025-06-20", "premium": 2.20, "type": "call" }, "net_cost": 6.30, "max_profit": 13.70, "max_profit_pct": "217%", "max_loss": 6.30, "breakeven": 191.30, "score": 9200, "greeks": { "net_delta": 0.42, "net_theta": 0.03, "net_vega": -0.15 } } ] }}


4. Daily Top Picks

GET/today-picks

Get the day's top Sell Put recommendations from pre-market AI market scan.

Request parameters

ParameterTypeRequiredDescription
directionstringNoDirection: "all" (default) / "put" / "call"
sort_bystringNoSort: "score" (default) / "annual_return" / "assignment_prob"
limitintNoNumber of results, default 20, max 50

Request example

plain

Copy

GET /today-picks?direction=put&sort_by=score&limit=10

Response example

JSON

Copy

{ "success": true, "data": { "date": "2025-05-20", "picks": [ { "rank": 1, "symbol": "CIEN", "direction": "sell_put", "annual_return_pct": "50.1%", "days_remaining": 7, "score": 5334, "earnings_warning": false

}, { "rank": 2, "symbol": "NVDL", "direction": "sell_put", "annual_return_pct": "39.7%", "days_remaining": 7, "score": 4686, "earnings_warning": false } ] }}


5. Usage Query

GET /account/usage

Query account Token balance and usage statistics.

Request example

plain

Copy

GET /account/usage

Response example

JSON

{ "success": true, "data": { "permanent_token": 5083, "period_token": 0, "period_token_reset_date": "2025-06-01", "used_this_month": 127, "plan": "free" }}


Error Codes

Status CodeDescriptionResolution
200Success—
400Invalid request parametersCheck request body format and required fields
401Authentication failedVerify your API Key
403Insufficient permissionsInsufficient Token balance or endpoint access denied
404Symbol not foundVerify the ticker symbol
429Rate limit exceededReduce request frequency
500Server errorRetry later or contact support

Error response format

JSON

Copy

{ "success": false, "error": { "code": 400, "message": "Invalid symbol: AAPL1" }}


Rate Limits

PlanRequests per Second (QPS)Daily Limit
Free trial1100
Starter510,000
Professional2050,000
EnterpriseUnlimitedUnlimited

Rate limit exceeded returns HTTP 429; the Retry-After header indicates wait time in seconds.


SDK & Code Examples

Python

Python

Copy

import requests API_KEY = "your_api_key" BASE_URL = "https://api.hyperstock.net/v1" headers = { "Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"} # Sell Put analysis response = requests.post( f"{BASE_URL}/analyze/sell-put", headers=headers, json={ "symbol": "AAPL", "expiry_range": 30, "top_n": 5 })

data = response.json()print(data["data"]["recommendations"][0]["score"])

JavaScript

JavaScript

Copy

const analyze = async (symbol) => { const res = await fetch('https://api.hyperstock.net/v1/analyze/sell-put', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ symbol, expiry_range: 30 }) }); return await res.json();};


Technical Support

Documentation: Continuously updated Integration support: Dedicated technical WeChat group Response time: 7×12 on business days

📧service@hyperstock.net


Base URL: https://api.hyperstock.net/v1 | Protocol: RESTful + JSON | Auth: Bearer Token | Avg response: 200ms | SLA: 99.9%

[Request API Key] [Download Full Documentation PDF]

Hyperstock API — 3-second options analysis, integrated into your product.