Oops!
Something went wrong. Please try again later.
Success!
We have sent you an email verification. Please confirm your email before you can login.
Stocks
By: Qymera
Make better stock predictions and marketing calls with our Stock APIs. It analyzes and delivers latest data with historical algorithms while delivering current market news. Our integrations also allow you to manage existing capital and stocks all in a single system.
Overview
- Retrieve current or historical stock data by the current day or by period.
- Data is available in JSON, XML, or HTML format
Using the API
We built the API documentation to be as self-documenting as possible, but if you find yourself overwhelmed, we organized this site into four major areas.
- Getting started introduces you to the operations offered by the API.
- API calls gives you a hands-on experience of those operations with an interactive console.
- Field reference lists and describes the type of information provided by the API.
- Frequently Asked Questions (FAQ) Here are answers to some frequently asked questions.
- Contact Us If you need support or need to get in touch, this is the place to look.
Getting Started
The current version of the API lives at https://gateway.qymera.tech/qymera/sb/stocks/v1/.
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/intraday?ticker=JBFCF
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/intraday?ticker=JBFCF&interval=5
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/intraday?ticker=JBFCF&interval=5&size=compact
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF&time=daily
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF&time=daily&size=compact
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF&time=adjusted
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF&time=adjusted&size=compact
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF&time=weekly
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF&time=weekly&size=compact
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF&time=monthly
-
https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF&time=monthly&size=compact
Endpoints
Endpoint | What it does |
---|---|
/intraday |
Gets the stock data points by interval specified. |
/period |
Gets the stock data points by period specified. |
API Calls
Headers
Key | Value Description |
---|---|
accept |
application/json |
x-ibm-client-id |
Use the given application credential id |
x-ibm-client-secret |
Use the given application credential secret |
/intraday
Implementation Notes
Gets the intraday stock data points (timestamp, open, high, low, close, volume) of the equity by interval specified.
Parameters:
Parameter | Data Type | Necessity | Location | Description |
---|---|---|---|---|
ticker |
string | required | query | Stock symbol. Abbreviation used to uniquely identify publicly traded shares of a particular stock on a particular stock market. e.g.(ticker=JBFCF, ticker=MSFT) |
interval |
integer | not required | query | Time interval between two consecutive data points in minutes. Supported values are 1, 5, 15, 30, 60. Default: interval=30 |
size |
string | not required | query | Specify response size by compact or full. Default: size=full |
Sample Request:
curl --request GET \intraday
--url 'https://gateway.qymera.tech/qymera/sb/stocks/v1/intraday?ticker=JBFCF&interval=60&size=compact'
--header 'accept: application/json' \
--header 'x-ibm-client-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-secret: REPLACE_THIS_VALUE'
Request
GET
https://gateway.qymera.tech/qymera/sb/stocks/v1/intraday?ticker=JBFCF&interval=60&size=compact
Response:
200
{
"message":"Success.",
"data":{
"Meta Data":{
"1. Information":"Intraday (60min) open, high, low, close prices and volume",
"2. Symbol":"JBFCF",
"3. Last Refreshed":"2019-10-07 13:30:00",
"4. Interval":"60min",
"5. Output Size":"Compact",
"6. Time Zone":"US/Eastern"
},
"Time Series (60min)":{
"2019-10-07 13:30:00":{
"1. open":"4.2325",
"2. high":"4.2325",
"3. low":"4.2325",
"4. close":"4.2325",
"5. volume":"2014"
},
"2019-10-07 11:30:00":{
"1. open":"4.2300",
"2. high":"4.2300",
"3. low":"4.2300",
"4. close":"4.2300",
"5. volume":"5020"
},
"2019-10-07 09:30:00":{
"1. open":"4.3100",
"2. high":"4.3100",
"3. low":"4.3100",
"4. close":"4.3100",
"5. volume":"156"
},
/*
More entries in between
*/
"2019-07-26 15:30:00":{
"1. open":"5.0400",
"2. high":"5.0400",
"3. low":"5.0400",
"4. close":"5.0400",
"5. volume":"100"
}
}
}
}
500
{
"code": -19,
"message": "Something went wrong to stocks service."
}
400
{
"code": -20,
"message": "Missing ticker query parameter."
}
/period
Implementation Notes
Gets the periodic stock data points (timestamp, open, high, low, close, volume) of the equity by period specified.
Parameters:
Parameter | Data Type | Necessity | Location | Description |
---|---|---|---|---|
ticker |
string | required | query | Stock symbol. Abbreviation used to uniquely identify publicly traded shares of a particular stock on a particular stock market. e.g.(ticker=JBFCF, ticker=MSFT) |
period |
string | not required | query | Interval by periodicity. Supported values are daily, adjusted(daily), weekly, monthly. Default: time=monthly |
size |
string | not required | query | Specify response size by compact or full. Default: size=full |
Sample Request:
curl --request GET \period
--url 'https://gateway.qymera.tech/qymera/sb/stocks/v1/period?ticker=JBFCF&interval=60&size=compact' \
--header 'accept: application/json' \
--header 'x-ibm-client-id: REPLACE_THIS_VALUE' \
--header 'x-ibm-client-secret: REPLACE_THIS_VALUE'
Request
GET
https://gateway.qymera.tech/qymera/sb/nasa/v1/period?ticker=jbfcf&period=adjusted&size=compact
Response:
200
{
"message":"Success.",
"data":{
"Meta Data":{
"1. Information":"Daily Time Series with Splits and Dividend Events",
"2. Symbol":"JBFCF",
"3. Last Refreshed":"2019-10-09",
"4. Output Size":"Compact",
"5. Time Zone":"US/Eastern"
},
"Time Series (Daily)":{
"2019-10-09":{
"1. open":"4.5000",
"2. high":"4.5000",
"3. low":"4.5000",
"4. close":"4.5000",
"5. adjusted close":"4.5000",
"6. volume":"200",
"7. dividend amount":"0.0000",
"8. split coefficient":"1.0000"
},
"2019-10-08":{
"1. open":"4.2300",
"2. high":"4.2300",
"3. low":"4.2300",
"4. close":"4.2300",
"5. adjusted close":"4.2300",
"6. volume":"0",
"7. dividend amount":"0.0000",
"8. split coefficient":"1.0000"
},
/*
more entries
*/
"2019-05-21":{
"1. open":"5.3200",
"2. high":"5.3200",
"3. low":"5.2900",
"4. close":"5.3000",
"5. adjusted close":"5.3000",
"6. volume":"2500",
"7. dividend amount":"0.0000",
"8. split coefficient":"1.0000"
},
"2019-05-20":{
"1. open":"5.2700",
"2. high":"5.2700",
"3. low":"5.2500",
"4. close":"5.2500",
"5. adjusted close":"5.2500",
"6. volume":"500",
"7. dividend amount":"0.0000",
"8. split coefficient":"1.0000"
}
}
}
}
404
{
"code":-8,
"message":"Endpoint not found."
}
500
{
"code": -19,
"message": "Something went wrong to stocks service."
}
400
{
"code": -20,
"message": "Missing ticker query parameter."
}