PRDS API范例数据

62 阅读3分钟

获取韩国股票API行情数据、马来西亚股票API行情接口,印度股票API行情接口,港股API行情接口,美股API行情接口,沙特股票API行情接口,日本股票API行情接口,韩国股票API行情接口,越南股票API行情接口,新加坡股票API行情,数据等新兴及成熟市场的股票行情数据成为开发者的常见需求。本文以PRDS API 为例,

实时行情范例数据 以下数据均已美股为例

1:实时行情输出范例

[

{

"State": 1,

"Msg": {

"code": "AAPL",

"price": "269.3",

"open": "268.96",

"high": "273.73",

"low": "267.455",

"volume": "40747044",

"close": "268.47",

"average": "270.0676",

"amount": "11004456380.1744",

"up": "0.309",

"Market": "NASDAQ",

"varieties": "XNAS_CS",

"name": "Apple Inc.",

"MRTA": "1",

"dealTransaction": "1762806072,269.3,100,1,",

"tick": 1762806072,

"ticks": 1762806072951,

"LP": "269.3",

"change": "0.830",

"NV": "100",

"B1": "269.02",

"B1V": 300,

"S1": "269.04",

"S1V": 500

},

"Code": "AAPL",

"Cmd": "rm"

}

]

2:K线输出范例

{ "status": 0, "interval": "1min", "market": "NASDAQ", "code": "AAPL", "message": "SUCCESS", "data": "1762809480,269.43,269.43,269.43,269.43,26943.0,100.0;1762808400,269.42,269.42,269.42,269.42,4028367.84,14952.0;1762805760,269.29,269.21,269.3182,269.205,2066619.031464,7675.0;1762805700,269.2,269.3194,269.33,269.2,7820717.286207,29044.0;1762805640,269.33,269.33,269.39,269.26,3929076.21953,14588.0;1762805580,269.3055,269.3,269.34,269.25,3860718.403184,14336.0;1762805520,269.31,269.3506,269.4116,269.29,3634205.665545,13493.0;1762805460,269.4,269.3399,269.4,269.2785,7836077.892887,29093.0;1762805400,269.34,269.3241,269.3675,269.18,6253756.482265,23224.0;1762805340,269.245,269.31,269.3429,269.24,5359066.995823,19901.0;1762805280,269.2824,269.35,269.39,269.2582,7736589.259859,28724.0;1762805220,269.34,269.28,269.3606,269.22,3370303.367061,12516.0;1762805160,269.29,269.37,269.4,269.29,4442251.931302,16492.0;1762805100,269.3899,269.4015,269.537,269.3,3086850.483642,11460.0;1762805040,269.42,269.36,269.5454,269.3051,1847228.16051,6857.0;1762804980,269.35,269.428,269.5576,269.26,3706521.284462,13763.0;1762804920,269.35,269.51,269.5799,269.3,7454977.720422,27674.0;1762804860,269.515,269.57931,269.6019,269.515,2327600.310324,8635.0;1762804800,269.585,269.53,269.63,269.49,6922784.979686,25680.0;1762804740,269.494684,269.6321,269.6446,269.45,8784657.325875,32595.0;1762804680,269.62008,269.64,269.681,269.52,17429106.657896,64642.0;1762804620,269.661308,269.7,269.707212,269.5802,6705243.249977,24866.0;1762804560,269.705043,269.6381,269.78,269.6039,5350230.081218,19838.0;1762804500,269.65,269.61,269.67,269.5203,3518829.491597,13051.0;1762804440,269.62,269.67,269.6999,269.535,3447642.671315,12786.0;1762804380,269.66,269.595,269.661,269.5006,2295810.58089,8515.0;1762804320,269.59,269.5875,269.6209,269.4909,3687103.590573,13677.0;}

3:公司介绍输出范例

`{

"status": 0,

"message": "SUCCESS",

"data": {

"country": "america",

"website": "http://www.apple.com",

"founded": "1976",

"description": "Apple, Inc engages in the design, manufacture, and sale of smartphones, personal computers, tablets, wearables and accessories, and other variety of related services. It operates through the following geographical segments: Americas, Europe, Greater China, Japan, and Rest of Asia Pacific. The Americas segment includes North and South America. The Europe segment consists of European countries, as well as India, the Middle East, and Africa. The Greater China segment comprises of China, Hong Kong, and Taiwan. The Rest of Asia Pacific segment includes Australia and Asian countries. Its products and services include iPhone, Mac, iPad, AirPods, Apple TV, Apple Watch, Beats products, Apple Care, iCloud, digital content stores, streaming, and licensing services. The company was founded by Steven Paul Jobs, Ronald Gerald Wayne, and Stephen G. Wozniak in 1976 and is headquartered in Cupertino, CA.",

"language": "en",

"industry": "Telecommunications equipment",

"type": "stock",

"ceo": "Timothy Donald Cook",

"indexes": "[{\"name\": \"S&P 500\", \"proname\": \"SP:SPX\"}, {\"name\": \"NASDAQ 100\", \"proname\": \"NASDAQ:NDX\"}, {\"name\": \"Dow Jones Industrial Average\", \"proname\": \"DJ:DJI\"}, {\"name\": \"NASDAQ Composite\", \"proname\": \"NASDAQ:IXIC\"}, {\"name\": \"S&P 500 Information Technology\", \"proname\": \"SP:S5INFT\"}, {\"name\": \"S&P 100\", \"proname\": \"SP:OEX\"}, {\"name\": \"Russell 3000\", \"proname\": \"TVC:RUA\"}, {\"name\": \"Dow Jones Composite Average\", \"proname\": \"DJ:DJA\"}, {\"name\": \"NASDAQ-100 Technology Sector\", \"proname\": \"NASDAQ:NDXT\"}, {\"name\": \"Russell 1000\", \"proname\": \"TVC:RUI\"}, {\"name\": \"NASDAQ Computer\", \"proname\": \"NASDAQ:IXCO\"}, {\"name\": \"S&P 500 ESG\", \"proname\": \"CBOE:SPESG\"}, {\"name\": \"NASDAQ CB Insights Metaverse US Index\", \"proname\": \"NASDAQ:NYMETA\"}]",

"head_office": "Cupertino",

"name": "Apple Inc.",

"sector": "Electronic technology"

},

"total": 0,

"page": 0,

"market": "NASDAQ",

"symbol": "AAPL",

"code": "AAPL",

"interval": null

}`