Get started in minutes with our free plan!

Documentation

Real Time Price Data

Use the following call as a guideline for requesting real time price data for a single stock or ETF. Timestamps are in UTC.

Request Example

curl --request POST 'https://okamistocks.io/api/quote/real-time' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "token":"5212fe68bc73a33bae33", "ticker" : "SPY" }'

Response Example

{
"ticker": "SPY",
"bid_price": 381.97,
"bid_size": 4,
"ask_price": 382.10,
"ask_size": 1,
"timestamp": "2022-07-06T14:44:17.901134052Z"
}

Minute Bar Data

Use the following call as a guideline for requesting data for a one minute interval window. Timestamps are in UTC.

Request Example

curl --request POST 'https://okamistocks.io/api/quote/minute' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "token":"5212fe68bc73a33bae33", "ticker" : "SPY" }'

Response Example

{
"ticker": "SPY",
"minute_open_price": 381.97,
"minute_high_price": 385.17,
"minute_low_price": 380.91,
"minute_close_price": 383.55,
"minute_volume": 12999291,
"timestamp": "2022-07-06T14:44:17.901134052Z"
}

Daily Bar Data

Use the following call as a guideline for requesting data at the daily interval window. Timestamps are in UTC.

Request Example

curl --request POST 'https://okamistocks.io/api/quote/daily' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "token":"5212fe68bc73a33bae33", "ticker" : "SPY" }'

Response Example

{
"ticker": "SPY",
"daily_open_price": 381.97,
"daily_high_price": 385.17,
"daily_low_price": 380.91,
"daily_close_price": 383.55,
"daily_volume": 12999291,
"timestamp": "2022-07-06T14:44:17.901134052Z"
}

Get started for free.

Our free plan does not require a credit card to start making API calls, give it a shot!