当前位置:网站首页>API data interface of A-share index component data

API data interface of A-share index component data

2022-07-07 03:36:00 DevOpenClub

Total data of stock index components , Support index list acquisition , Return all index component data .

[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-S99BIAZg-1656946122467)(https://static.gugudata.com/api_cover_stock_cn_index_contains.png)]

1. Product function

  • Support all index data queries ;
  • Return all the basic information of the included stocks according to the index code ;
  • Including the collection time data ;
  • Millisecond query performance ;
  • Data is constantly updated and maintained ;
  • Full interface support HTTPS(TLS v1.0 / v1.1 / v1.2 / v1.3);
  • Full compatibility Apple ATS;
  • National multi node CDN Deploy ;
  • The interface is extremely responsive , Build multiple servers API Interface load balancing ;
  • Interface call status and status monitoring

2. API file

Interface details :https://www.gugudata.com/api/details/stockcnindexcontains

Address of the interface : https://api.gugudata.com/stock/cn/index/contains

Returns the format : application/json; charset=utf-8

Request mode : GET

Request protocol : HTTPS

Request example : https://api.gugudata.com/stock/cn/index/contains?appkey=YOUR_APPKEY&symbol=YOUR_VALUE

Data preview :https://www.gugudata.com/preview/stockcnindexcontains

The interface test :https://api.gugudata.com/stock/cn/index/contains/demo

3. Request parameters

Parameter name Parameter type Whether must The default value is remarks
appkeystring yes YOUR_APPKEY Paid for APPKEY
symbolstring yes YOUR_VALUE Pass the index code obtained above , Such as : 000001. It can be through the front interface or see A Stock index code parameter enumeration page

4. Returns the parameter

Parameter name Parameter type remarks
DataStatus.StatusCodeint Interface return status code
DataStatus.StatusDescriptionstring Interface return status description
DataStatus.ResponseDateTimestring Interface data return time
DataStatus.DataTotalCountint The total amount of data under this condition , Generally used for paging calculation
Data.Symbolstring Stock code
Data.StockNamedouble The name of the stock
Data.FeaturedDateTimedouble Included in index time

5. Interface HTTP Respond to the standard status code

Status code State code interpretation remarks
200 Normal interface response See below for business status code Interface custom status code
403 Request frequency overrun CDN Layers pass through IP Request frequency intelligent judgment , General high frequency requests will not trigger this status code

6. Interface response status code

Status code State code interpretation remarks
100 Normal return By judging this status code, it can be asserted that the interface returns normally
-1 request was aborted Request processing request failed
501 Parameter error Please check the number of parameters you pass and whether the parameter types match
502 Request frequency Limited It is generally recommended that requests per second should not exceed 100 Time
503APPKEY Permission overrun / Order due Please check your APPKEY Whether or not the permission is expired
504APPKEY error Please check the delivery APPKEY Whether it is the value obtained by the developer center
505 The number of requests exceeded the interface limit Please check whether there is a limit on the number of requests for the corresponding interface and the remaining number of requests for your current interface
900 Interface internal response error Interface availability is 99.999%, If you can get this status code, please contact us by email

7. Development language request sample code

The example code contains the development language :C#, Go, Java, jQuery, Node.js, Objective-C, PHP, Python, Ruby, Swift etc. , Other languages RESTful API The request can be realized .

code demo

8. common problem Q&A

  • Q: Is there a cache for data requests ?

    A: All data is returned directly , Some periodic data is cached during the update cycle .

  • Q: How to ensure that when requested key The security of ?

    A: General advice will be helpful to us API The request is placed in the back-end service of your application , All front-end requests of your application should point to your own back-end service , Such an architecture is also more pure and easy to maintain .

  • Q: Which development languages can the interface be used in ?

    A: It can be used in all development languages that can make network requests , For your project to build data quickly .

  • Q: Can the performance of the interface be guaranteed ?

    A: The interface background architecture is consistent with the commercial project architecture we provide to the enterprise , You can access the test interface to view the performance and information returned by the interface .


Goo Goo data , Professional data provider , Provide professional and comprehensive data interface 、 Business data analysis , Make data your raw material .

image-20200716141435988

Gugu data is based on the 100 billion level data storage and performance optimization we have provided for enterprise customers in the past seven years 、 Relevant massive basic data support , Part of the general data of compliance 、 General functions are abstracted into product level data API, Greatly meet the user's needs for basic data in the process of product development , At the same time, it reduces the storage, operation and maintenance cost of massive data , And the technical threshold and human development cost of complex functions .

In addition to our open classified data and functional interfaces , There is also a huge amount of data being sorted out 、 cleaning 、 Integrate 、 In the building , Later, more data and cloud function interfaces will be opened API For user's use .

Open data interface at present API

原网站

版权声明
本文为[DevOpenClub]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207062026536094.html