Hyperstock API — Bring options analysis into your systems.
RESTful endpoints, JSON format, average response 200ms.
Quick Start
Base URL
plain
Copy
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
| Method | Path | Description |
|---|---|---|
| POST | /analyze/sell-put | Single-symbol Sell Put analysis |
| POST | /analyze/batch | Multi-symbol batch analysis |
| POST | /analyze/spread | Spread strategy generation |
| GET | /today-picks | Daily top strategy recommendations |
| GET | /account/usage | Query 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Ticker symbol, e.g. "AAPL" |
| expiry_range | int | No | Days to expiration range, default 30, range 7–90 |
| top_n | int | No | Return top N results, default 5, max 20 |
| min_annual_return | float | No | Minimum 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
| Field | Description |
|---|---|
| underlying_price | Current underlying stock price |
| analysis_time_ms | Analysis duration (milliseconds) |
| strike | Strike price |
| expiry | Expiration date |
| premium | Premium (per share) |
| annual_return | Annualized return (decimal) |
| assignment_prob | Probability of profit at expiration (%) |
| span_margin_est | Estimated buying-power effect (per share) |
| score | AI composite score |
| delta/theta/vega | Greeks |
2. Multi-Symbol Batch Analysis
POST /analyze/batch
Analyze multiple symbols at once; returns the top pick for each.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbols | array | Yes | Array of ticker symbols, max 10 |
| expiry_range | int | No | Days 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Ticker symbol |
| strategy | string | Yes | Strategy type: "bull_call" or "bear_put" |
| price_low | float | Yes | Expected price range lower bound |
| price_high | float | Yes | Expected price range upper bound |
|---|---|---|---|
| expiry_range | int | No | Days 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
| Parameter | Type | Required | Description |
|---|---|---|---|
| direction | string | No | Direction: "all" (default) / "put" / "call" |
| sort_by | string | No | Sort: "score" (default) / "annual_return" / "assignment_prob" |
| limit | int | No | Number 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 Code | Description | Resolution |
|---|---|---|
| 200 | Success | — |
| 400 | Invalid request parameters | Check request body format and required fields |
| 401 | Authentication failed | Verify your API Key |
| 403 | Insufficient permissions | Insufficient Token balance or endpoint access denied |
| 404 | Symbol not found | Verify the ticker symbol |
| 429 | Rate limit exceeded | Reduce request frequency |
| 500 | Server error | Retry later or contact support |
Error response format
JSON
Copy
{ "success": false, "error": { "code": 400, "message": "Invalid symbol: AAPL1" }}
Rate Limits
| Plan | Requests per Second (QPS) | Daily Limit |
|---|---|---|
| Free trial | 1 | 100 |
| Starter | 5 | 10,000 |
| Professional | 20 | 50,000 |
| Enterprise | Unlimited | Unlimited |
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
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.


