U.S. stock historical market data API interface
All historical trading data of U.S. stocks, complete historical trading/inquiry at any time period.
1. Product function
- Support all historical U.S. stock transaction inquiries;
- Support to specify any time period to query;
- Super high query efficiency, return in seconds;
- All transaction data is unrestored data;
- Full interface supports HTTPS (TLS v1.0 / v1.1 / v1.2 / v1.3);
- Fully compatible with Apple ATS;
- National multi-node CDN deployment;
- The interface responds quickly, and multiple servers build API interface load balancing.
2. API documentation
API details address: https://www.gugudata.com/api/details/stockus
Interface request address: https://api.gugudata.com/stock/us
Return format: application/json; charset=utf-8
Request method: GET
Request protocol: HTTPS
Example request: https://api.gugudata.com/stock/us?appkey=YOUR_APPKEY&symbol=YOUR_VALUE&beginDate=YOUR_VALUE&endDate=YOUR_VALUE
Interface test: https://api.gugudata.com/stock/us/demo
3. Request parameters (if it is a POST request, the parameters are passed in JSON format)
parameter name | Parameter Type | Do you have to | Defaults | Remarks |
---|---|---|---|---|
appkey | string | Yes | YOUR_APPKEY | APPKEY obtained after payment |
symbol | string | Yes | YOUR_VALUE | U.S. stock code, case insensitive |
startDate | string | Yes | YOUR_VALUE | Start time of stock trading, format is 20200101 |
endDate | string | Yes | YOUR_VALUE | The stock transaction end time, in the format of 20200101, and the maximum time span of the start time supports 31 calendar days. Please obtain the full data in batches |
4. Return parameters
parameter name | Parameter Type | Remarks |
---|---|---|
DataStatus.StatusCode | int | Interface return status code |
DataStatus.StatusDescription | string | Interface return status description |
DataStatus.ResponseDateTime | string | Interface data return time |
DataStatus.DataTotalCount | int | The total amount of data under this condition, generally used for paging calculations |
Data.Symbol | string | U.S. stock code |
Data.Date | int | transaction date |
Data.Open | double | Opening price |
Data.Close | double | Closing price |
Data.High | double | highest |
Data.Low | double | lowest |
Data.Volume | double | Total |
5. Interface response status code
error code | Error content | Remarks |
---|---|---|
100 | Normal return | |
101 | Parameter error | |
102 | Limited request frequency | No more than 100 requests per second |
103 | Account arrears | |
104 | APPKEY error | Please check whether the passed APPKEY is the value obtained by the developer center |
110 | Interface response error |
6. Develop sample code for language request
Development languages included in the sample code: C#, Go, Java, jQuery, Node.js, Objective-C, PHP, Python, Ruby, Swift, etc. Other languages can be implemented by corresponding RESTful API requests.
Cuckoo Data, a professional data provider, provides professional and comprehensive data interfaces and business data analysis, making data your raw materials for production.
Cuckoo Data is based on the massive data support we have provided for corporate customers over the past five years. It abstracts some general data and general functions into product-level APIs, which greatly meets the user’s needs for basic data in the product development process and reduces the cost of complex functions. Realize the threshold and labor cost.
In addition to the classified data and interfaces that we have opened, there is also a huge amount of data that is being sorted, cleaned, integrated, and constructed. Later, more data and cloud functional interfaces will be opened for users to use.
Currently open data interface API
-
[Area/Coordinates] Basic information of universities and colleges across the country
-
[Area/Coordinates] Geographical coordinate system conversion
-
[Metadata/Dictionary] Provincial admission scores for college entrance examinations over the years
-
[Metadata/Dictionary] Admission scores for college entrance examinations over the years
-
[News/Information] Software development technology blog post headlines
-
[News/Information] Get the cover of the official account article
-
[Text/Text] Standardization of Chinese and English typesetting