Skip to content

lllyin/stock-helper

Repository files navigation

体验链接

Demo Online

数据源格式

export interface Stock {
  name?: string;
  // 股票代码
  symbol: number | string;
  // 成本价
  costPrice: number;
  // 仓位,多少股
  position: number;
}

第三方 api

首先感谢第三方的提供的数据支持。

  • 第三方股市价格 api
// 网易[jsonp]
export const API_BASE_URL = 'https://api.money.126.net/data/feed/';

// 请求示例:
http://api.money.126.net/data/feed/0000001,1399300,0600684,UD_HS3Z,UD_HS3D,UD_HS3P,money.api?callback=_ntes_quote_callback5655258
  • 第三方股市财务 api
// 雪球[有同源限制,需要反代]
export const API_QUOTE_URL = 'https://stock.xueqiu.com/v5/stock/quote.json?symbol=SH601318&extend=detail';

// 请求示例:
https://stock.xueqiu.com/v5/stock/quote.json?symbol=SH601318&extend=detail'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published