mirror of
https://github.com/zhangxiangliang/stock-api.git
synced 2025-01-23 14:20:23 +08:00
feat: 增加 接口相关更新
This commit is contained in:
parent
2777acb3d1
commit
a6b26123d5
@ -1,5 +1,5 @@
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Stock from "types/utils/stock";
|
||||
|
||||
/**
|
||||
* 基础股票代码接口
|
||||
|
@ -2,12 +2,12 @@
|
||||
import { SZ, SH, HK, US } from "@utils/constant";
|
||||
|
||||
// Types
|
||||
import Transform from "types/transform";
|
||||
import ExchangeTransform from "types/stocks/transforms/exchange";
|
||||
|
||||
/**
|
||||
* 基础股票代码转换
|
||||
*/
|
||||
class BaseExchangeTransform implements Transform {
|
||||
class BaseExchangeTransform implements ExchangeTransform {
|
||||
/**
|
||||
* 构造函数
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Stock from "types/utils/stock";
|
||||
|
||||
/**
|
||||
* 基础股票数据解析
|
||||
|
@ -7,7 +7,7 @@ import NeteaseExchangeTransform from "@stocks/netease/transforms/exchange";
|
||||
import fetch from "@utils/fetch";
|
||||
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Stock from "types/utils/stock";
|
||||
|
||||
/**
|
||||
* 网易股票代码接口
|
||||
|
@ -2,8 +2,8 @@
|
||||
import BaseStockTransform from "@stocks/base/transforms/stock";
|
||||
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Dictionary from "types/dictionary";
|
||||
import Stock from "types/utils/stock";
|
||||
import Dictionary from "types/utils/dictionary";
|
||||
|
||||
/**
|
||||
* 网易股票数据解析
|
||||
|
@ -8,7 +8,7 @@ import fetch from "@utils/fetch";
|
||||
import iconv from "@utils/iconv";
|
||||
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Stock from "types/utils/stock";
|
||||
|
||||
/**
|
||||
* 新浪股票代码接口
|
||||
|
@ -5,7 +5,7 @@ import BaseStockTransform from "@stocks/base/transforms/stock";
|
||||
import { SZ, HK, US, SH } from "@utils/constant";
|
||||
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Stock from "types/utils/stock";
|
||||
|
||||
/**
|
||||
* 新浪股票数据解析
|
||||
|
@ -8,7 +8,7 @@ import fetch from "@utils/fetch";
|
||||
import iconv from "@utils/iconv";
|
||||
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Stock from "types/utils/stock";
|
||||
|
||||
/**
|
||||
* 腾讯股票代码接口
|
||||
|
@ -2,7 +2,7 @@
|
||||
import BaseStockTransform from "@stocks/base/transforms/stock";
|
||||
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Stock from "types/utils/stock";
|
||||
|
||||
/**
|
||||
* 腾讯股票数据解析
|
||||
|
@ -7,8 +7,8 @@ import XueqiuExchangeTransform from "@stocks/xueqiu/transforms/exchange";
|
||||
import fetch from "@utils/fetch";
|
||||
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Dictionary from "types/dictionary";
|
||||
import Stock from "types/utils/stock";
|
||||
import Dictionary from "types/utils/dictionary";
|
||||
|
||||
/**
|
||||
* 雪球股票代码接口
|
||||
|
@ -2,8 +2,8 @@
|
||||
import BaseStockTransform from "@stocks/base/transforms/stock";
|
||||
|
||||
// Types
|
||||
import Stock from "types/stock";
|
||||
import Dictionary from "types/dictionary";
|
||||
import Stock from "types/utils/stock";
|
||||
import Dictionary from "types/utils/dictionary";
|
||||
|
||||
/**
|
||||
* 雪球股票数据解析
|
||||
|
Loading…
Reference in New Issue
Block a user