forked from igorek17000/alunajs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIBitfinexMarketSchema.ts
52 lines (41 loc) · 972 Bytes
/
IBitfinexMarketSchema.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
export interface IBitfinexMarketsSchema {
tickers: IBitfinexTicker[]
enabledMarginCurrencies: string[][]
pairsInfo: TBitfinexPairInfo[]
}
export interface IBitfinexMarketSchema {
ticker: IBitfinexTicker
enabledMarginCurrency: string | undefined
pairInfo: TBitfinexPairInfo
}
export interface IBitfinexTicker extends TBitfinexTicker {}
type TBitfinexTicker = [
MARKET: string,
BID: number,
BID_SIZE: number,
ASK: number,
ASK_SIZE: number,
DAILY_CHANGE: number,
DAILY_CHANGE_RELATIVE: number,
LAST_PRICE: number,
VOLUME: number,
HIGH: number,
LOW: number,
]
export type TBitfinexPairInfo = [
MARKET: string,
MARKET_INFO: [
PLACEHOLDER: null,
PLACEHOLDER: null,
PLACEHOLDER: null,
MIN_TRADE_AMOUNT: string,
MAX_TRADE_AMOUNT: string,
PLACEHOLDER: null,
PLACEHOLDER: null,
PLACEHOLDER: null,
INITIAL_MARGIN: number,
MIN_MARGIN: number,
PLACEHOLDER: null,
PLACEHOLDER: null,
]
]