forked from alleyway/add-tradingview-alerts-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterfaces.d.ts
39 lines (39 loc) · 1 KB
/
interfaces.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
export interface ISingleAlertSettings {
condition: {
primaryLeft?: string;
primaryRight?: string;
secondary?: string;
tertiaryLeft?: string | number;
tertiaryRight?: string | number;
quaternaryLeft?: string | number;
quaternaryRight?: string | number;
};
option?: string;
actions?: {
notifyOnApp?: boolean;
showPopup?: boolean;
sendEmail?: boolean;
webhook?: {
enabled: boolean;
url: string;
};
};
name?: string;
message?: string;
}
export declare enum Classification {
SPOT = "SPOT",
LEVERAGED_TOKEN = "LEVERAGED_TOKEN",
FUTURES_PERPETUAL = "FUTURES_PERPETUAL",
FUTURES_DATED = "FUTURES_DATED"
}
export declare type ClassificationType = keyof typeof Classification;
export interface IBaseSymbol {
source: string;
id: string;
prefix: string;
ticker: string;
quoteAsset: string;
instrument: string;
classification: ClassificationType;
}