Use the following call as a guideline for requesting real time price data for a single stock or ETF. Timestamps are in UTC.
curl --request POST 'https://okamistocks.io/api/quote/real-time' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"token":"5212fe68bc73a33bae33",
"ticker" : "SPY"
}'
{
"ticker": "SPY",
"bid_price": 381.97,
"bid_size": 4,
"ask_price": 382.10,
"ask_size": 1,
"timestamp": "2022-07-06T14:44:17.901134052Z"
}
Use the following call as a guideline for requesting data for a one minute interval window. Timestamps are in UTC.
curl --request POST 'https://okamistocks.io/api/quote/minute' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"token":"5212fe68bc73a33bae33",
"ticker" : "SPY"
}'
{
"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"
}
Use the following call as a guideline for requesting data at the daily interval window. Timestamps are in UTC.
curl --request POST 'https://okamistocks.io/api/quote/daily' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"token":"5212fe68bc73a33bae33",
"ticker" : "SPY"
}'
{
"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"
}