|
@@ -1,13 +1,74 @@
|
1
|
|
-package org.AlphaVantage;
|
|
1
|
+package AlphaVantage;
|
|
2
|
+
|
|
3
|
+import AlphaVantage.input.Function;
|
|
4
|
+import AlphaVantage.input.Symbol;
|
|
5
|
+import org.AlphaVantage.input.technicalindicators.Interval;
|
|
6
|
+import org.AlphaVantage.output.technicalindicators.ADX;
|
|
7
|
+import org.AlphaVantage.output.technicalindicators.AD;
|
|
8
|
+import org.AlphaVantage.output.technicalindicators.ADXR;
|
|
9
|
+import org.AlphaVantage.output.technicalindicators.APO;
|
|
10
|
+import org.AlphaVantage.output.technicalindicators.AROON;
|
|
11
|
+import org.AlphaVantage.output.technicalindicators.AROONOSC;
|
|
12
|
+import org.AlphaVantage.output.technicalindicators.ATR;
|
|
13
|
+import org.AlphaVantage.output.technicalindicators.BBANDS;
|
|
14
|
+import org.AlphaVantage.output.technicalindicators.BOP;
|
|
15
|
+import org.AlphaVantage.output.technicalindicators.CCI;
|
|
16
|
+import org.AlphaVantage.output.technicalindicators.CMO;
|
|
17
|
+import org.AlphaVantage.output.technicalindicators.DEMA;
|
|
18
|
+import org.AlphaVantage.output.technicalindicators.DX;
|
|
19
|
+import org.AlphaVantage.output.technicalindicators.EMA;
|
|
20
|
+import org.AlphaVantage.output.technicalindicators.HT_DCPERIOD;
|
|
21
|
+import org.AlphaVantage.output.technicalindicators.HT_DCPHASE;
|
|
22
|
+import org.AlphaVantage.output.technicalindicators.HT_PHASOR;
|
|
23
|
+import org.AlphaVantage.output.technicalindicators.HT_SINE;
|
|
24
|
+import org.AlphaVantage.output.technicalindicators.HT_TRENDLINE;
|
|
25
|
+import org.AlphaVantage.output.technicalindicators.HT_TRENDMODE;
|
|
26
|
+import org.AlphaVantage.output.technicalindicators.KAMA;
|
|
27
|
+import org.AlphaVantage.output.technicalindicators.MACD;
|
|
28
|
+import org.AlphaVantage.output.technicalindicators.MACDEXT;
|
|
29
|
+import org.AlphaVantage.output.technicalindicators.MAMA;
|
|
30
|
+import org.AlphaVantage.output.technicalindicators.MFI;
|
|
31
|
+import org.AlphaVantage.output.technicalindicators.MIDPOINT;
|
|
32
|
+import org.AlphaVantage.output.technicalindicators.MIDPRICE;
|
|
33
|
+import org.AlphaVantage.output.technicalindicators.MINUS_DI;
|
|
34
|
+import org.AlphaVantage.output.technicalindicators.MINUS_DM;
|
|
35
|
+import org.AlphaVantage.output.technicalindicators.MOM;
|
|
36
|
+import org.AlphaVantage.output.technicalindicators.NATR;
|
|
37
|
+import org.AlphaVantage.output.technicalindicators.OBV;
|
|
38
|
+import org.AlphaVantage.output.technicalindicators.PLUS_DI;
|
|
39
|
+import org.AlphaVantage.output.technicalindicators.PLUS_DM;
|
|
40
|
+import org.AlphaVantage.output.technicalindicators.PPO;
|
|
41
|
+import org.AlphaVantage.output.technicalindicators.ROC;
|
|
42
|
+import org.AlphaVantage.output.technicalindicators.ROCR;
|
|
43
|
+import org.AlphaVantage.output.technicalindicators.RSI;
|
|
44
|
+import org.AlphaVantage.output.technicalindicators.SAR;
|
|
45
|
+import org.AlphaVantage.output.technicalindicators.SMA;
|
|
46
|
+import org.AlphaVantage.output.technicalindicators.STOCH;
|
|
47
|
+import org.AlphaVantage.output.technicalindicators.STOCHF;
|
|
48
|
+import org.AlphaVantage.output.technicalindicators.STOCHRSI;
|
|
49
|
+import org.AlphaVantage.output.technicalindicators.T3;
|
|
50
|
+import org.AlphaVantage.output.technicalindicators.TEMA;
|
|
51
|
+import org.AlphaVantage.output.technicalindicators.TRANGE;
|
|
52
|
+import org.AlphaVantage.output.technicalindicators.TRIMA;
|
|
53
|
+import org.AlphaVantage.output.technicalindicators.TRIX;
|
|
54
|
+import org.AlphaVantage.output.technicalindicators.ULTOSC;
|
|
55
|
+import org.AlphaVantage.output.technicalindicators.WILLR;
|
|
56
|
+import org.AlphaVantage.output.technicalindicators.WMA;
|
|
57
|
+import org.AlphaVantage.input.technicalindicators.TimePeriod;
|
|
58
|
+import org.AlphaVantage.input.technicalindicators.SeriesType;
|
|
59
|
+import org.AlphaVantage.input.technicalindicators.FastPeriod;
|
|
60
|
+import org.AlphaVantage.input.technicalindicators.SlowPeriod;
|
|
61
|
+import org.AlphaVantage.input.technicalindicators.SignalPeriod;
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+import org.jetbrains.annotations.Nullable;
|
2
|
70
|
|
3
|
|
-import org.AlphaVantage.input.Function;
|
4
|
|
-import org.AlphaVantage.input.Symbol;
|
5
|
|
-import org.AlphaVantage.input.technicalindicators.*;
|
6
|
|
-import org.AlphaVantage.output.technicalindicators.*;
|
7
|
|
-import org.AlphaVantage.input.technicalindicators.*;
|
8
|
|
-import org.AlphaVantage.output.technicalindicators.*;
|
9
|
71
|
|
10
|
|
-import javax.annotation.Nullable;
|
11
|
72
|
|
12
|
73
|
// TODO add optional in docs to optional values
|
13
|
74
|
|
|
@@ -34,9 +95,9 @@ public class TechnicalIndicators {
|
34
|
95
|
* @param interval the interval between two consecutive data points in the time series {@link Interval}.
|
35
|
96
|
* @return {@link AD} indicator data.
|
36
|
97
|
*/
|
37
|
|
- public AD ad(String symbol, Interval interval) {
|
|
98
|
+ public org.AlphaVantage.output.technicalindicators.AD ad(String symbol, org.AlphaVantage.input.technicalindicators.Interval interval) {
|
38
|
99
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.AD, interval);
|
39
|
|
- return AD.from(interval, json);
|
|
100
|
+ return org.AlphaVantage.output.technicalindicators.AD.from(interval, json);
|
40
|
101
|
}
|
41
|
102
|
|
42
|
103
|
/**
|
|
@@ -48,12 +109,12 @@ public class TechnicalIndicators {
|
48
|
109
|
* @param slowPeriod the time period of the fast EMA, default 10 {@link SlowPeriod}.
|
49
|
110
|
* @return {@link ADOSC} indicator data.
|
50
|
111
|
*/
|
51
|
|
- public ADOSC adosc(String symbol,
|
52
|
|
- Interval interval,
|
53
|
|
- @Nullable FastPeriod fastPeriod,
|
54
|
|
- @Nullable SlowPeriod slowPeriod) {
|
|
112
|
+ public org.AlphaVantage.output.technicalindicators.ADOSC adosc(String symbol,
|
|
113
|
+ Interval interval,
|
|
114
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastPeriod fastPeriod,
|
|
115
|
+ @Nullable org.AlphaVantage.input.technicalindicators.SlowPeriod slowPeriod) {
|
55
|
116
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.ADOSC, interval, fastPeriod);
|
56
|
|
- return ADOSC.from(interval, json);
|
|
117
|
+ return org.AlphaVantage.output.technicalindicators.ADOSC.from(interval, json);
|
57
|
118
|
}
|
58
|
119
|
|
59
|
120
|
/**
|
|
@@ -64,9 +125,9 @@ public class TechnicalIndicators {
|
64
|
125
|
* @param timePeriod Number of data points used to calculate each moving average value. Positive integers are accepted {@link TimePeriod}.
|
65
|
126
|
* @return {@link ADX} indicator data.
|
66
|
127
|
*/
|
67
|
|
- public ADX adx(String symbol, Interval interval, TimePeriod timePeriod) {
|
|
128
|
+ public org.AlphaVantage.output.technicalindicators.ADX adx(String symbol, Interval interval, org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod) {
|
68
|
129
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.ADX, timePeriod, interval);
|
69
|
|
- return ADX.from(interval, json);
|
|
130
|
+ return org.AlphaVantage.output.technicalindicators.ADX.from(interval, json);
|
70
|
131
|
}
|
71
|
132
|
|
72
|
133
|
/**
|
|
@@ -77,7 +138,7 @@ public class TechnicalIndicators {
|
77
|
138
|
* @param timePeriod Number of data points used to calculate each moving average value. Positive integers are accepted {@link TimePeriod}.
|
78
|
139
|
* @return {@link ADX} indicator data.
|
79
|
140
|
*/
|
80
|
|
- public ADXR adxr(String symbol, Interval interval, TimePeriod timePeriod) {
|
|
141
|
+ public org.AlphaVantage.output.technicalindicators.ADXR adxr(String symbol, Interval interval, org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod) {
|
81
|
142
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.ADXR, timePeriod, interval);
|
82
|
143
|
return ADXR.from(interval, json);
|
83
|
144
|
}
|
|
@@ -95,10 +156,10 @@ public class TechnicalIndicators {
|
95
|
156
|
*/
|
96
|
157
|
public APO apo(String symbol,
|
97
|
158
|
Interval interval,
|
98
|
|
- SeriesType seriesType,
|
99
|
|
- @Nullable FastPeriod fastPeriod,
|
100
|
|
- @Nullable SlowPeriod slowPeriod,
|
101
|
|
- @Nullable MaType maType) {
|
|
159
|
+ org.AlphaVantage.input.technicalindicators.SeriesType seriesType,
|
|
160
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastPeriod fastPeriod,
|
|
161
|
+ @Nullable org.AlphaVantage.input.technicalindicators.SlowPeriod slowPeriod,
|
|
162
|
+ @Nullable org.AlphaVantage.input.technicalindicators.MaType maType) {
|
102
|
163
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.APO, interval, seriesType, fastPeriod, slowPeriod, maType);
|
103
|
164
|
return APO.from(interval, json);
|
104
|
165
|
}
|
|
@@ -111,7 +172,7 @@ public class TechnicalIndicators {
|
111
|
172
|
* @param timePeriod Number of data points used to calculate each moving average value. Positive integers are accepted {@link TimePeriod}.
|
112
|
173
|
* @return {@link AROON} indicator data.
|
113
|
174
|
*/
|
114
|
|
- public AROON aroon(String symbol, Interval interval, TimePeriod timePeriod) {
|
|
175
|
+ public AROON aroon(String symbol, Interval interval, org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod) {
|
115
|
176
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.AROON, interval, timePeriod);
|
116
|
177
|
return AROON.from(interval, json);
|
117
|
178
|
}
|
|
@@ -124,7 +185,7 @@ public class TechnicalIndicators {
|
124
|
185
|
* @param timePeriod Number of data points used to calculate each moving average value. Positive integers are accepted {@link TimePeriod}.
|
125
|
186
|
* @return {@link AROONOSC} indicator data.
|
126
|
187
|
*/
|
127
|
|
- public AROONOSC aroonosc(String symbol, Interval interval, TimePeriod timePeriod) {
|
|
188
|
+ public AROONOSC aroonosc(String symbol, Interval interval, org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod) {
|
128
|
189
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.AROONOSC, interval, timePeriod);
|
129
|
190
|
return AROONOSC.from(interval, json);
|
130
|
191
|
}
|
|
@@ -137,7 +198,7 @@ public class TechnicalIndicators {
|
137
|
198
|
* @param timePeriod Number of data points used to calculate each moving average value. Positive integers are accepted {@link TimePeriod}.
|
138
|
199
|
* @return {@link ATR} indicator data.
|
139
|
200
|
*/
|
140
|
|
- public ATR atr(String symbol, Interval interval, TimePeriod timePeriod) {
|
|
201
|
+ public ATR atr(String symbol, Interval interval, org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod) {
|
141
|
202
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.ATR, interval, timePeriod);
|
142
|
203
|
return ATR.from(interval, json);
|
143
|
204
|
}
|
|
@@ -155,11 +216,11 @@ public class TechnicalIndicators {
|
155
|
216
|
*/
|
156
|
217
|
public BBANDS bbands(String symbol,
|
157
|
218
|
Interval interval,
|
158
|
|
- TimePeriod timePeriod,
|
159
|
|
- SeriesType seriesType,
|
160
|
|
- @Nullable NBDevUp nbDevUp,
|
161
|
|
- @Nullable NBDevDn nbDevDn,
|
162
|
|
- @Nullable MaType maType) {
|
|
219
|
+ org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod,
|
|
220
|
+ org.AlphaVantage.input.technicalindicators.SeriesType seriesType,
|
|
221
|
+ @Nullable org.AlphaVantage.input.technicalindicators.NBDevUp nbDevUp,
|
|
222
|
+ @Nullable org.AlphaVantage.input.technicalindicators.NBDevDn nbDevDn,
|
|
223
|
+ @Nullable org.AlphaVantage.input.technicalindicators.MaType maType) {
|
163
|
224
|
String json = apiConnector.getRequest(new Symbol(symbol),
|
164
|
225
|
Function.BBANDS,
|
165
|
226
|
interval,
|
|
@@ -191,7 +252,7 @@ public class TechnicalIndicators {
|
191
|
252
|
* @param timePeriod Number of data points used to calculate each moving average value. Positive integers are accepted {@link TimePeriod}.
|
192
|
253
|
* @return {@link CCI} indicator data.
|
193
|
254
|
*/
|
194
|
|
- public CCI cci(String symbol, Interval interval, TimePeriod timePeriod) {
|
|
255
|
+ public CCI cci(String symbol, Interval interval, org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod) {
|
195
|
256
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.CCI, interval, timePeriod);
|
196
|
257
|
return CCI.from(interval, json);
|
197
|
258
|
}
|
|
@@ -205,7 +266,7 @@ public class TechnicalIndicators {
|
205
|
266
|
* @param seriesType The desired price type in the time series {@link SeriesType}.
|
206
|
267
|
* @return {@link CMO} indicator data.
|
207
|
268
|
*/
|
208
|
|
- public CMO cmo(String symbol, Interval interval, TimePeriod timePeriod, SeriesType seriesType) {
|
|
269
|
+ public CMO cmo(String symbol, Interval interval, org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod, org.AlphaVantage.input.technicalindicators.SeriesType seriesType) {
|
209
|
270
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.CMO, timePeriod, interval, seriesType);
|
210
|
271
|
return CMO.from(interval, json);
|
211
|
272
|
}
|
|
@@ -219,7 +280,7 @@ public class TechnicalIndicators {
|
219
|
280
|
* @param seriesType The desired price type in the time series {@link SeriesType}.
|
220
|
281
|
* @return {@link DEMA} indicator data.
|
221
|
282
|
*/
|
222
|
|
- public DEMA dema(String symbol, Interval interval, TimePeriod timePeriod, SeriesType seriesType) {
|
|
283
|
+ public DEMA dema(String symbol, Interval interval, org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod, org.AlphaVantage.input.technicalindicators.SeriesType seriesType) {
|
223
|
284
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.DEMA, timePeriod, interval, seriesType);
|
224
|
285
|
return DEMA.from(interval, json);
|
225
|
286
|
}
|
|
@@ -232,7 +293,7 @@ public class TechnicalIndicators {
|
232
|
293
|
* @param timePeriod Number of data points used to calculate each moving average value. Positive integers are accepted {@link TimePeriod}.
|
233
|
294
|
* @return {@link DX} indicator data.
|
234
|
295
|
*/
|
235
|
|
- public DX dx(String symbol, Interval interval, TimePeriod timePeriod) {
|
|
296
|
+ public DX dx(String symbol, Interval interval, org.AlphaVantage.input.technicalindicators.TimePeriod timePeriod) {
|
236
|
297
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.DX, interval, timePeriod);
|
237
|
298
|
return DX.from(interval, json);
|
238
|
299
|
}
|
|
@@ -246,7 +307,7 @@ public class TechnicalIndicators {
|
246
|
307
|
* @param seriesType The desired price type in the time series {@link SeriesType}.
|
247
|
308
|
* @return {@link EMA} indicator data.
|
248
|
309
|
*/
|
249
|
|
- public EMA ema(String symbol, Interval interval, TimePeriod timePeriod, SeriesType seriesType) {
|
|
310
|
+ public EMA ema(String symbol, Interval interval, TimePeriod timePeriod, org.AlphaVantage.input.technicalindicators.SeriesType seriesType) {
|
250
|
311
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.EMA, timePeriod, interval, seriesType);
|
251
|
312
|
return EMA.from(interval, json);
|
252
|
313
|
}
|
|
@@ -359,7 +420,7 @@ public class TechnicalIndicators {
|
359
|
420
|
Interval interval,
|
360
|
421
|
TimePeriod timePeriod,
|
361
|
422
|
SeriesType seriesType,
|
362
|
|
- @Nullable FastPeriod fastPeriod,
|
|
423
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastPeriod fastPeriod,
|
363
|
424
|
@Nullable SlowPeriod slowPeriod,
|
364
|
425
|
@Nullable SignalPeriod signalPeriod) {
|
365
|
426
|
String json = apiConnector.getRequest(
|
|
@@ -394,9 +455,9 @@ public class TechnicalIndicators {
|
394
|
455
|
@Nullable FastPeriod fastPeriod,
|
395
|
456
|
@Nullable SlowPeriod slowPeriod,
|
396
|
457
|
@Nullable SignalPeriod signalPeriod,
|
397
|
|
- @Nullable FastMaType fastMaType,
|
398
|
|
- @Nullable SlowMaType slowMaType,
|
399
|
|
- @Nullable SignalMaType signalMaType) {
|
|
458
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastMaType fastMaType,
|
|
459
|
+ @Nullable org.AlphaVantage.input.technicalindicators.SlowMaType slowMaType,
|
|
460
|
+ @Nullable org.AlphaVantage.input.technicalindicators.SignalMaType signalMaType) {
|
400
|
461
|
String json = apiConnector.getRequest(
|
401
|
462
|
new Symbol(symbol),
|
402
|
463
|
Function.MACDEXT,
|
|
@@ -426,8 +487,8 @@ public class TechnicalIndicators {
|
426
|
487
|
Interval interval,
|
427
|
488
|
TimePeriod timePeriod,
|
428
|
489
|
SeriesType seriesType,
|
429
|
|
- @Nullable FastLimit fastLimit,
|
430
|
|
- @Nullable SlowLimit slowLimit) {
|
|
490
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastLimit fastLimit,
|
|
491
|
+ @Nullable org.AlphaVantage.input.technicalindicators.SlowLimit slowLimit) {
|
431
|
492
|
String json = apiConnector.getRequest(
|
432
|
493
|
new Symbol(symbol),
|
433
|
494
|
Function.MAMA,
|
|
@@ -586,7 +647,7 @@ public class TechnicalIndicators {
|
586
|
647
|
SeriesType seriesType,
|
587
|
648
|
@Nullable FastPeriod fastPeriod,
|
588
|
649
|
@Nullable SlowPeriod slowPeriod,
|
589
|
|
- @Nullable MaType maType) {
|
|
650
|
+ @Nullable org.AlphaVantage.input.technicalindicators.MaType maType) {
|
590
|
651
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.PPO, interval, seriesType, fastPeriod, slowPeriod, maType);
|
591
|
652
|
return PPO.from(interval, json);
|
592
|
653
|
}
|
|
@@ -644,8 +705,8 @@ public class TechnicalIndicators {
|
644
|
705
|
*/
|
645
|
706
|
public SAR sar(String symbol,
|
646
|
707
|
Interval interval,
|
647
|
|
- @Nullable Acceleration acceleration,
|
648
|
|
- @Nullable Maximum maximum) {
|
|
708
|
+ @Nullable org.AlphaVantage.input.technicalindicators.Acceleration acceleration,
|
|
709
|
+ @Nullable org.AlphaVantage.input.technicalindicators.Maximum maximum) {
|
649
|
710
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.SAR, interval, acceleration, maximum);
|
650
|
711
|
return SAR.from(interval, json);
|
651
|
712
|
}
|
|
@@ -678,11 +739,11 @@ public class TechnicalIndicators {
|
678
|
739
|
*/
|
679
|
740
|
public STOCH stoch(String symbol,
|
680
|
741
|
Interval interval,
|
681
|
|
- @Nullable FastKPeriod fastKPeriod,
|
682
|
|
- @Nullable SlowKPeriod slowKPeriod,
|
683
|
|
- @Nullable SlowDPeriod slowDPeriod,
|
684
|
|
- @Nullable SlowKMaType slowKMaType,
|
685
|
|
- @Nullable SlowDMaType slowDMaType) {
|
|
742
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastKPeriod fastKPeriod,
|
|
743
|
+ @Nullable org.AlphaVantage.input.technicalindicators.SlowKPeriod slowKPeriod,
|
|
744
|
+ @Nullable org.AlphaVantage.input.technicalindicators.SlowDPeriod slowDPeriod,
|
|
745
|
+ @Nullable org.AlphaVantage.input.technicalindicators.SlowKMaType slowKMaType,
|
|
746
|
+ @Nullable org.AlphaVantage.input.technicalindicators.SlowDMaType slowDMaType) {
|
686
|
747
|
String json = apiConnector.getRequest(
|
687
|
748
|
new Symbol(symbol),
|
688
|
749
|
Function.STOCH,
|
|
@@ -708,9 +769,9 @@ public class TechnicalIndicators {
|
708
|
769
|
*/
|
709
|
770
|
public STOCHF stochf(String symbol,
|
710
|
771
|
Interval interval,
|
711
|
|
- @Nullable FastKPeriod fastKPeriod,
|
712
|
|
- @Nullable FastDPeriod fastDPeriod,
|
713
|
|
- @Nullable FastDMaType fastDMaType) {
|
|
772
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastKPeriod fastKPeriod,
|
|
773
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastDPeriod fastDPeriod,
|
|
774
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastDMaType fastDMaType) {
|
714
|
775
|
String json = apiConnector.getRequest(
|
715
|
776
|
new Symbol(symbol),
|
716
|
777
|
Function.STOCHF,
|
|
@@ -738,9 +799,9 @@ public class TechnicalIndicators {
|
738
|
799
|
Interval interval,
|
739
|
800
|
TimePeriod timePeriod,
|
740
|
801
|
SeriesType seriesType,
|
741
|
|
- @Nullable FastKPeriod fastKPeriod,
|
742
|
|
- @Nullable FastDPeriod fastDPeriod,
|
743
|
|
- @Nullable FastDMaType fastDMaType) {
|
|
802
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastKPeriod fastKPeriod,
|
|
803
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastDPeriod fastDPeriod,
|
|
804
|
+ @Nullable org.AlphaVantage.input.technicalindicators.FastDMaType fastDMaType) {
|
744
|
805
|
String json = apiConnector.getRequest(
|
745
|
806
|
new Symbol(symbol),
|
746
|
807
|
Function.STOCHRSI,
|
|
@@ -833,9 +894,9 @@ public class TechnicalIndicators {
|
833
|
894
|
*/
|
834
|
895
|
public ULTOSC ultosc(String symbol,
|
835
|
896
|
Interval interval,
|
836
|
|
- @Nullable TimePeriod1 timePeriod1,
|
837
|
|
- @Nullable TimePeriod2 timePeriod2,
|
838
|
|
- @Nullable TimePeriod3 timePeriod3) {
|
|
897
|
+ @Nullable org.AlphaVantage.input.technicalindicators.TimePeriod1 timePeriod1,
|
|
898
|
+ @Nullable org.AlphaVantage.input.technicalindicators.TimePeriod2 timePeriod2,
|
|
899
|
+ @Nullable org.AlphaVantage.input.technicalindicators.TimePeriod3 timePeriod3) {
|
839
|
900
|
String json = apiConnector.getRequest(new Symbol(symbol), Function.ULTOSC, timePeriod1, timePeriod2, timePeriod3);
|
840
|
901
|
return ULTOSC.from(interval, json);
|
841
|
902
|
}
|