-
Notifications
You must be signed in to change notification settings - Fork 69
/
Topic.java
112 lines (109 loc) · 2.75 KB
/
Topic.java
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
package io.github.jeog.tosdatabridge;
/**
* Enumerated object containing all the valid 'Topics' the Engine/TOS accepts.
*
* @author Jonathon Ogden
* @version 0.9
*/
public enum Topic {
VOL_DIFF ("VOL_DIFF"),
AX ("AX"),
BACK_VOL ("BACK_VOL"),
LOW ("LOW"),
PE ("PE"),
HTB_ETB ("HTB_ETB"),
BIDX ("BIDX"),
CALL_VOLUME_INDEX ("CALL_VOLUME_INDEX"),
NET_CHANGE ("NET_CHANGE"),
EPS ("EPS"),
OPTION_VOLUME_INDEX ("OPTION_VOLUME_INDEX"),
STRIKE ("STRIKE"),
MARKET_CAP ("MARKET_CAP"),
MARK_PERCENT_CHANGE ("MARK_PERCENT_CHANGE"),
FRONT_VOL ("FRONT_VOL"),
YIELD ("YIELD"),
STRENGTH_METER ("STRENGTH_METER"),
ASKX ("ASKX"),
DIV_FREQ ("DIV_FREQ"),
LX ("LX"),
DESCRIPTION ("DESCRIPTION"),
EX_DIV_DATE ("EX_DIV_DATE"),
SHARES ("SHARES"),
BETA ("BETA"),
EXTRINSIC ("EXTRINSIC"),
SYMBOL ("SYMBOL"),
OPEN ("OPEN"),
MARK_CHANGE ("MARK_CHANGE"),
BID_SIZE ("BID_SIZE"),
VOLUME ("VOLUME"),
WEIGHTED_BACK_VOL ("WEIGHTED_BACK_VOL"),
LAST ("LAST"),
LAST_SIZE ("LAST_SIZE"),
BID ("BID"),
MRKT_MKR_MOVE ("MRKT_MKR_MOVE"),
PUT_CALL_RATIO ("PUT_CALL_RATIO"),
RHO ("RHO"),
PERCENT_CHANGE ("PERCENT_CHANGE"),
HIGH52 ("52HIGH"),
MT_NEWS ("MT_NEWS"),
VOL_INDEX ("VOL_INDEX"),
GAMMA ("GAMMA"),
LOW52 ("52LOW"),
PUT_VOLUME_INDEX ("PUT_VOLUME_INDEX"),
DIV ("DIV"),
ASK ("ASK"),
DELTA ("DELTA"),
NULL_TOPIC ("NULL_TOPIC"), // <-- DONT USE
INTRINSIC ("INTRINSIC"),
BACK_EX_MOVE ("BACK_EX_MOVE"),
VEGA ("VEGA"),
BX ("BX"),
EXPIRATION ("EXPIRATION"),
MARK ("MARK"),
LASTX ("LASTX"),
THETA ("THETA"),
FRONT_EX_MOVE ("FRONT_EX_MOVE"),
BA_SIZE ("BA_SIZE"),
FX_PAIR ("FX_PAIR"),
ASK_SIZE ("ASK_SIZE"),
IMPL_VOL ("IMPL_VOL"),
EXCHANGE ("EXCHANGE"),
EX_MOVE_DIFF ("EX_MOVE_DIFF"),
HIGH ("HIGH"),
OPEN_INT ("OPEN_INT"),
CUSTOM1 ("CUSTOM1"),
CUSTOM2 ("CUSTOM2"),
CUSTOM3 ("CUSTOM3"),
CUSTOM4 ("CUSTOM4"),
CUSTOM5 ("CUSTOM5"),
CUSTOM6 ("CUSTOM6"),
CUSTOM7 ("CUSTOM7"),
CUSTOM8 ("CUSTOM8"),
CUSTOM9 ("CUSTOM9"),
CUSTOM10 ("CUSTOM10"),
CUSTOM11 ("CUSTOM11"),
CUSTOM12 ("CUSTOM12"),
CUSTOM13 ("CUSTOM13"),
CUSTOM14 ("CUSTOM14"),
CUSTOM15 ("CUSTOM15"),
CUSTOM16 ("CUSTOM16"),
CUSTOM17 ("CUSTOM17"),
CUSTOM18 ("CUSTOM18"),
CUSTOM19 ("CUSTOM19");
public final String val;
Topic(String t){
this.val = t;
}
/* package-private */
static Topic
toEnum(String val){
/* 2 cases where .name() != .val */
if(val.equals("52HIGH")) {
return HIGH52;
}else if(val.equals("52LOW")) {
return LOW52;
}else {
return valueOf(val);
}
}
}