API Documentation
Professional REST API for Credit Spread Analysis
Getting Started Authentication Endpoints Rate Limits Error Handling
Getting Started
The PowerOptions API provides programmatic access to real-time credit spread opportunities with multi-model probability analysis. All data is sourced from live market feeds with institutional-grade calculations.
Base URL
Features
- Real-time market scanning for credit spread opportunities
- Multi-model probability analysis (Black-Scholes, Monte Carlo, Historical Volatility, Delta-based)
- Symbol-specific analysis with customizable parameters
- Current price data for any stock symbol
- Comprehensive risk/reward metrics and collateral calculations
Authentication
All endpoints (except /docs and /status) require API key authentication. You can authenticate using either a header or query parameter:
Header Authentication (Recommended)
Query Parameter Authentication
API Endpoints
1. Market Scanner
Scan multiple symbols for top credit spread opportunities with real-time market data.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
symbols |
string | SPY,AAPL,TSLA,NVDA,META | Comma-separated list of symbols |
days |
integer | 7 | Days to expiration (1-90) |
min_premium |
float | 0.30 | Minimum premium in dollars |
limit |
integer | 5 | Maximum results to return (1-20) |
Code Examples
cURL
Python
JavaScript (Node.js)
Response Example
2. Symbol Analysis
Analyze a specific symbol for credit spread opportunities with customizable parameters.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
symbol |
string | required | Stock symbol (path parameter) |
days |
integer | 7 | Days to expiration (1-90) |
delta_threshold |
float | 0.20 | Max delta for short leg (0.05-0.50) |
spread_width |
integer | 5 | Spread width in dollars (1-50) |
min_premium |
float | 0.30 | Minimum premium in dollars |
Code Examples
cURL
Python
JavaScript (fetch)
3. Current Price
Get current market price for a stock symbol.
Code Examples
cURL
Python
JavaScript
Response Example
4. API Documentation
Get complete API documentation in JSON format. No authentication required.
Code Example
5. API Status
Check API health and status. No authentication required.
Code Example
Response Example
Rate Limits & Pricing
Rate limits are enforced per API key per hour. Limits reset at the top of each hour.
| Plan | Rate Limit | Price | Features |
|---|---|---|---|
| Free | 100 requests/hour | $0/month | Basic market scanning |
| Standard | 1,000 requests/hour | $29/month | Advanced analysis, historical data |
| Professional | 10,000 requests/hour | $99/month | Real-time data, priority support |
X-RateLimit-Limit: Your hourly rate limitX-RateLimit-Remaining: Requests remaining this hourX-RateLimit-Reset: Timestamp when limit resets
Error Handling
The API uses standard HTTP status codes to indicate success or failure.
HTTP Status Codes
| Code | Status | Description |
|---|---|---|
200 |
OK | Request succeeded |
401 |
Unauthorized | Missing or invalid API key |
403 |
Forbidden | API key is inactive or revoked |
429 |
Too Many Requests | Rate limit exceeded |
500 |
Internal Server Error | Server-side error occurred |
Error Response Format
Rate Limit Error Example
Best Practices
- Always check the
successfield in responses - Implement exponential backoff for rate limit errors
- Monitor rate limit headers to avoid hitting limits
- Handle errors gracefully in your application
- Use appropriate timeouts for API requests (recommended: 30 seconds)
OpenAPI Schema
Download the complete OpenAPI 3.0 specification for integration with API tools like Postman, Insomnia, or code generators:
Need Help?
For technical support, questions, or to upgrade your plan:
- Email: support@poweroptions.com
- Documentation: Developer Docs
- Pricing: View Plans
PowerOptions