forked from tiagosiebler/binance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
55 lines (37 loc) · 1.57 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
51
52
53
54
55
type Callback = (err: Error, data: object) => void;
declare class BinanceRest {
new({
key,
secret,
recvWindow,
timeout,
disableBeautification,
handleDrift
}: {
key: string,
secret: string,
recvWindow?: number,
timeout?: number,
disableBeautification?: boolean,
handleDrift?: boolean
}): BinanceRest;
account: (query: object | Callback, callback?: Callback) => Promise<object> | void;
aggTrades: (query: object | string, callback?: Callback) => Promise<object> | void;
allBookTickers: (callback?: Callback) => Promise<object> | void;
allOrders: (query: object | string, callback?: Callback) => Promise<object> | void;
allPrices: (callback?: Callback) => Promise<object> | void;
bookTicker: (query: object, callback?: Callback) => Promise<object> | void;
exchangeInfo: (callback?: Callback) => Promise<object> | void;
historicalTrades: (query: object | string, callback?: Callback) => Promise<object> | void;
depth: (query: object | string, callback?: Callback) => Promise<object> | void;
klines: (query: object, callback?: Callback) => Promise<object> | void;
ping: (callback?: Callback) => Promise<object> | void;
ticker24hr: (query: object, callback?: Callback) => Promise<object> | void;
tickerPrice: (query: object, callback?: Callback) => Promise<object> | void;
time: (callback?: Callback) => Promise<object> | void;
trades: (query: object | string, callback?: Callback) => Promise<object> | void;
}
declare class Beautifier {
new(): Beautifier
beautify(obj: object, type: object | string): object
}