REST API 股票数据 股票信息 支持主流市场股票(美国、香港、中国、新加坡、日本等)、全球外汇、指数以及加密货币的实时、历史数据。

实时成交

GET
/stock/info

请求参数

typestring必填
市场类型
regionenum必填
港股
市场代码,支持HK(港股)、SH(上证)、SZ(深证)、US(美股)、SG(新加坡)、JP(日本)
codestring必填
产品代码

响应参数

codenumber
响应code
msgstring
响应描述
dataobject
响应结果
snstring
股票代码
estring
交易所
ctstring
国家Code
crstring
币种Code
tystring
类型
sestring
所属行业
instring
所属板块
costring
公司CEO
wustring
公司网站URL
bdstring
公司简介
mcbstring
总市值
tsostring
总股本
petstring
市盈率
fccstring
货币代码

代码示例

import requests

url = "https://api.itick.org/stock/info?type=stock&region=HK&code=700"

headers = {
"accept": "application/json"
"token": "Your Token"
}

response = requests.get(url, headers=headers)

print(response.text)

查询 URL

GET
https://api.itick.org/stock/info?type=stock&region=HK&code=700
iTick, 即可运行查询
运行查询

响应结果

{
  "code": 0,
  "msg": "ok",
  "data": {
    "e": "NASDAQ",
    "l": "Anterix Inc.",
    "pn": "100",
    "sn": "ATEX",
    "en": "Anterix Inc.",
    "ln": "Anterix Inc.",
    "pc": "100",
    "ct": "US",
    "cr": "USD",
    "ty": "stock",
    "bd": "Anterix, Inc. engages in commercializing spectrum assets to enable targeted utility and critical infrastructure customers to deploy private broadband networks, technologies and solutions. Its solutions include Private LTE and Active Ecosystem. The company was founded by Peter Joel Lasensky and Richard Edward Rohmann in 1997 and is headquartered in Woodland Park, NJ.",
    "wu": "http://www.anterix.com",
    "co": "Scott A. Lang",
    "se": "Communications",
    "in": "Wireless Telecommunications",
    "mcb": 418646911,
    "tso": 18739790,
    "pet": 13.886043533930858,
    "fcc": "USD"
  }
}