Authentication
All requests must be sent with a valid token parameter in the URL. You can purchase an API token through our website, then go to your dashboard to view your token.
Making your first request
You can copy the following command into your terminal, or copy just the URL and paste it into your browser. Make sure to replace the token parameter with your own token.
curl -L "https://api.orats.io/datav2/cores?token=my-token&ticker=AAPL"
Always keep your token safe and contact us at support@orats.com if you suspect it has been compromised.
Connecting to live data
Live data is calculated in real-time with less than 10 seconds of market delay. To connect to live data, you must sign the agreements here. Once completed, your requests to the live endpoints will no longer be blocked.
curl -L "https://api.orats.io/datav2/live/strikes?token=my-token&ticker=AAPL"
Data format
For the Data API, you can get data in JSON or CSV format by passing in the extension of the format type. The default type is JSON. Requests to the Intraday Data API will always return a CSV response.
curl -L "https://api.orats.io/datav2/cores.csv?token=my-token&ticker=AAPL"