-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathindex.d.ts
50 lines (44 loc) · 1.13 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
declare module "wstock" {
namespace wstock {
interface Stock {
/**
* 股票代码
*/
code: string;
/**
* 股票名称
*/
name: string;
/**
* 今日开盘价格
*/
open: string;
/**
* 昨日收盘价格
*/
last_close: string;
/**
* 当前价格
*/
current: string;
/**
* 今日最高价格
*/
high: string;
/**
* 今日最低价格
*/
low: string;
/**
* 涨幅
*/
percentage: string;
}
function queryStockInfo(key: string): Promise<Array<Stock>>;
function queryStockStatus(code: string): Promise<Stock>;
function queryStockListStatus(): Promise<Array<Stock>>;
function addStock(code: string): Promise<string>;
function removeStock(code: string): Promise<string>;
}
export = wstock;
}