Skip to content

Guides Get started

Requests and responses

Every endpoint speaks JSON over HTTPS and answers with the same envelope.

Requests

  • Base URL: https://www.optionsprofitcalculator.com/api/v1
  • GET endpoints take query parameters. POST endpoints take a JSON body with Content-Type: application/json.
  • The full contract is in the OpenAPI spec, which you can use to generate a client.

The response envelope

{"success": true, "data": {"symbol": "AAPL", "price": 344.87}}

Check success, then read data, or error.code for what went wrong. See Errors.

Conventions

MoneyDollars for the whole position (100 shares per contract). netCost is negative for a credit.
Option pricesPer share, as quoted by brokers.
VolatilityWhole percent: 28.5 means 28.5%.
Probabilities0 to 1.
DatesYYYY-MM-DD, New York market dates.
PricesDelayed by at least 15 minutes. Send your own prices to use live ones.

Caching

Identical /finder and /calculate requests within 2 minutes return the same result, with X-Cache: HIT. They still count towards your quota.