@oanda/labs-sentiment-widget 1.0.117 → 1.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +924 -0
- package/dist/main/gql/types/graphql.js +37 -1
- package/dist/main/gql/types/graphql.js.map +1 -1
- package/dist/module/gql/types/graphql.js +36 -0
- package/dist/module/gql/types/graphql.js.map +1 -1
- package/dist/types/gql/types/graphql.d.ts +118 -15
- package/package.json +3 -3
- package/src/gql/types/graphql.ts +141 -17
package/src/gql/types/graphql.ts
CHANGED
|
@@ -18,15 +18,47 @@ export type Scalars = {
|
|
|
18
18
|
|
|
19
19
|
export type AssetClass = {
|
|
20
20
|
__typename?: 'AssetClass';
|
|
21
|
-
instruments
|
|
22
|
-
name
|
|
21
|
+
instruments: Array<Instrument>;
|
|
22
|
+
name: Scalars['String']['output'];
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
export enum AssetClassName {
|
|
26
|
+
Commodities = 'COMMODITIES',
|
|
27
|
+
Cryptocurrency = 'CRYPTOCURRENCY',
|
|
28
|
+
Currency = 'CURRENCY',
|
|
29
|
+
EquityShares = 'EQUITY_SHARES',
|
|
30
|
+
Indices = 'INDICES',
|
|
31
|
+
Rates = 'RATES'
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
export enum BookType {
|
|
26
35
|
Order = 'ORDER',
|
|
27
36
|
Position = 'POSITION'
|
|
28
37
|
}
|
|
29
38
|
|
|
39
|
+
export type CorrelationHeatmap = {
|
|
40
|
+
__typename?: 'CorrelationHeatmap';
|
|
41
|
+
baseInstrument: Scalars['String']['output'];
|
|
42
|
+
heatmap: Array<Heatmap>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type CorrelationMatrix = {
|
|
46
|
+
__typename?: 'CorrelationMatrix';
|
|
47
|
+
baseTimeUnit: CorrelationTimeUnit;
|
|
48
|
+
matrix: Array<Matrix>;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export enum CorrelationTimeUnit {
|
|
52
|
+
H1 = 'H1',
|
|
53
|
+
H4 = 'H4',
|
|
54
|
+
H24 = 'H24',
|
|
55
|
+
M1 = 'M1',
|
|
56
|
+
M3 = 'M3',
|
|
57
|
+
M6 = 'M6',
|
|
58
|
+
W1 = 'W1',
|
|
59
|
+
Y1 = 'Y1'
|
|
60
|
+
}
|
|
61
|
+
|
|
30
62
|
export enum CurrencyName {
|
|
31
63
|
Aud = 'AUD',
|
|
32
64
|
Cad = 'CAD',
|
|
@@ -62,6 +94,12 @@ export enum CurrencyPowerBalanceTimeUnit {
|
|
|
62
94
|
W1 = 'W1'
|
|
63
95
|
}
|
|
64
96
|
|
|
97
|
+
export type CurrencyStrength = {
|
|
98
|
+
__typename?: 'CurrencyStrength';
|
|
99
|
+
currency: CurrencyName;
|
|
100
|
+
strengthRelation?: Maybe<Array<StrengthRelation>>;
|
|
101
|
+
};
|
|
102
|
+
|
|
65
103
|
export enum DataSource {
|
|
66
104
|
Ny4 = 'NY4',
|
|
67
105
|
Ty3 = 'TY3'
|
|
@@ -75,13 +113,32 @@ export enum Division {
|
|
|
75
113
|
Oel = 'OEL',
|
|
76
114
|
Ogm = 'OGM',
|
|
77
115
|
Oj = 'OJ',
|
|
116
|
+
Ola = 'OLA',
|
|
78
117
|
Otms = 'OTMS'
|
|
79
118
|
}
|
|
80
119
|
|
|
120
|
+
export type Heatmap = {
|
|
121
|
+
__typename?: 'Heatmap';
|
|
122
|
+
instrument: Scalars['String']['output'];
|
|
123
|
+
timeCorrelation: Array<TimeCorrelation>;
|
|
124
|
+
};
|
|
125
|
+
|
|
81
126
|
export type Instrument = {
|
|
82
127
|
__typename?: 'Instrument';
|
|
83
|
-
displayName
|
|
84
|
-
name
|
|
128
|
+
displayName: Scalars['String']['output'];
|
|
129
|
+
name: Scalars['String']['output'];
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export type InstrumentCorrelation = {
|
|
133
|
+
__typename?: 'InstrumentCorrelation';
|
|
134
|
+
instrument: Scalars['String']['output'];
|
|
135
|
+
value?: Maybe<Scalars['Float']['output']>;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export type Matrix = {
|
|
139
|
+
__typename?: 'Matrix';
|
|
140
|
+
instrument: Scalars['String']['output'];
|
|
141
|
+
instrumentCorrelation: Array<InstrumentCorrelation>;
|
|
85
142
|
};
|
|
86
143
|
|
|
87
144
|
export type OrderPositionBucket = {
|
|
@@ -106,15 +163,20 @@ export type OrderPositionData = {
|
|
|
106
163
|
export type Query = {
|
|
107
164
|
__typename?: 'Query';
|
|
108
165
|
assetClasses?: Maybe<Array<Maybe<AssetClass>>>;
|
|
166
|
+
correlationHeatmap: CorrelationHeatmap;
|
|
167
|
+
correlationMatrix: CorrelationMatrix;
|
|
109
168
|
currencyPowerBalance?: Maybe<Array<CurrencyPowerBalance>>;
|
|
169
|
+
currencyStrength?: Maybe<Array<CurrencyStrength>>;
|
|
110
170
|
orderPositionBooks: Array<Maybe<OrderPositionData>>;
|
|
111
171
|
sentiment?: Maybe<Array<SentimentInstrument>>;
|
|
112
172
|
sentimentList?: Maybe<Array<SentimentInstrument>>;
|
|
113
173
|
topicalInstruments?: Maybe<Array<TopicalInstrument>>;
|
|
114
174
|
topicalInstrumentsCharts?: Maybe<Array<TopicalInstrumentChart>>;
|
|
115
175
|
topicalInstrumentsTotalCount: Scalars['Int']['output'];
|
|
176
|
+
valueAtRiskAssetClasses?: Maybe<Array<AssetClass>>;
|
|
177
|
+
valueAtRiskChart?: Maybe<ValueAtRiskChart>;
|
|
116
178
|
volatilityChart?: Maybe<Array<Maybe<VolatilityChart>>>;
|
|
117
|
-
volatilityChartAssetClasses?: Maybe<Array<
|
|
179
|
+
volatilityChartAssetClasses?: Maybe<Array<AssetClass>>;
|
|
118
180
|
};
|
|
119
181
|
|
|
120
182
|
|
|
@@ -123,6 +185,16 @@ export type QueryAssetClassesArgs = {
|
|
|
123
185
|
};
|
|
124
186
|
|
|
125
187
|
|
|
188
|
+
export type QueryCorrelationHeatmapArgs = {
|
|
189
|
+
division: Division;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
export type QueryCorrelationMatrixArgs = {
|
|
194
|
+
division: Division;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
|
|
126
198
|
export type QueryCurrencyPowerBalanceArgs = {
|
|
127
199
|
timeUnit: CurrencyPowerBalanceTimeUnit;
|
|
128
200
|
};
|
|
@@ -150,6 +222,7 @@ export type QuerySentimentListArgs = {
|
|
|
150
222
|
|
|
151
223
|
|
|
152
224
|
export type QueryTopicalInstrumentsArgs = {
|
|
225
|
+
assetClass?: InputMaybe<AssetClassName>;
|
|
153
226
|
count?: InputMaybe<Scalars['Int']['input']>;
|
|
154
227
|
division?: InputMaybe<Division>;
|
|
155
228
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -164,11 +237,25 @@ export type QueryTopicalInstrumentsChartsArgs = {
|
|
|
164
237
|
|
|
165
238
|
|
|
166
239
|
export type QueryTopicalInstrumentsTotalCountArgs = {
|
|
240
|
+
assetClass?: InputMaybe<AssetClassName>;
|
|
167
241
|
division?: InputMaybe<Division>;
|
|
168
242
|
sort: TopicalSort;
|
|
169
243
|
};
|
|
170
244
|
|
|
171
245
|
|
|
246
|
+
export type QueryValueAtRiskAssetClassesArgs = {
|
|
247
|
+
division?: InputMaybe<Division>;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
export type QueryValueAtRiskChartArgs = {
|
|
252
|
+
bars: ValueAtRiskBars;
|
|
253
|
+
division?: InputMaybe<Division>;
|
|
254
|
+
duration: ValueAtRiskDuration;
|
|
255
|
+
instrument: Scalars['String']['input'];
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
|
|
172
259
|
export type QueryVolatilityChartArgs = {
|
|
173
260
|
division?: InputMaybe<Division>;
|
|
174
261
|
instrument: Scalars['String']['input'];
|
|
@@ -206,8 +293,21 @@ export enum Sort {
|
|
|
206
293
|
Bullish = 'BULLISH'
|
|
207
294
|
}
|
|
208
295
|
|
|
296
|
+
export type StrengthRelation = {
|
|
297
|
+
__typename?: 'StrengthRelation';
|
|
298
|
+
currency: CurrencyName;
|
|
299
|
+
percentage: Scalars['Float']['output'];
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
export type TimeCorrelation = {
|
|
303
|
+
__typename?: 'TimeCorrelation';
|
|
304
|
+
timeUnit: CorrelationTimeUnit;
|
|
305
|
+
value?: Maybe<Scalars['Float']['output']>;
|
|
306
|
+
};
|
|
307
|
+
|
|
209
308
|
export type TopicalInstrument = {
|
|
210
309
|
__typename?: 'TopicalInstrument';
|
|
310
|
+
assetClass?: Maybe<AssetClassName>;
|
|
211
311
|
displayName: Scalars['String']['output'];
|
|
212
312
|
name: Scalars['String']['output'];
|
|
213
313
|
sentiment: Sentiment;
|
|
@@ -228,6 +328,42 @@ export enum TopicalSort {
|
|
|
228
328
|
Volatile = 'VOLATILE'
|
|
229
329
|
}
|
|
230
330
|
|
|
331
|
+
export enum ValueAtRiskBars {
|
|
332
|
+
C100 = 'C100',
|
|
333
|
+
C200 = 'C200',
|
|
334
|
+
C300 = 'C300'
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export type ValueAtRiskChart = {
|
|
338
|
+
__typename?: 'ValueAtRiskChart';
|
|
339
|
+
down: ValueAtRiskChartData;
|
|
340
|
+
up: ValueAtRiskChartData;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
export type ValueAtRiskChartData = {
|
|
344
|
+
__typename?: 'ValueAtRiskChartData';
|
|
345
|
+
average: Scalars['Float']['output'];
|
|
346
|
+
max: Scalars['Float']['output'];
|
|
347
|
+
median: Scalars['Float']['output'];
|
|
348
|
+
points?: Maybe<Array<ValueAtRiskChartPoint>>;
|
|
349
|
+
threshold: Scalars['Float']['output'];
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
export type ValueAtRiskChartPoint = {
|
|
353
|
+
__typename?: 'ValueAtRiskChartPoint';
|
|
354
|
+
percent: Scalars['Float']['output'];
|
|
355
|
+
pips: Scalars['Float']['output'];
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
export enum ValueAtRiskDuration {
|
|
359
|
+
C1 = 'C1',
|
|
360
|
+
C2 = 'C2',
|
|
361
|
+
C3 = 'C3',
|
|
362
|
+
C4 = 'C4',
|
|
363
|
+
C5 = 'C5',
|
|
364
|
+
C10 = 'C10'
|
|
365
|
+
}
|
|
366
|
+
|
|
231
367
|
export type VolatilityChart = {
|
|
232
368
|
__typename?: 'VolatilityChart';
|
|
233
369
|
pips: Scalars['Float']['output'];
|
|
@@ -235,18 +371,6 @@ export type VolatilityChart = {
|
|
|
235
371
|
point: Scalars['String']['output'];
|
|
236
372
|
};
|
|
237
373
|
|
|
238
|
-
export type VolatilityChartAssetClass = {
|
|
239
|
-
__typename?: 'VolatilityChartAssetClass';
|
|
240
|
-
instruments: Array<VolatilityChartInstrument>;
|
|
241
|
-
name: Scalars['String']['output'];
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
export type VolatilityChartInstrument = {
|
|
245
|
-
__typename?: 'VolatilityChartInstrument';
|
|
246
|
-
displayName: Scalars['String']['output'];
|
|
247
|
-
name: Scalars['String']['output'];
|
|
248
|
-
};
|
|
249
|
-
|
|
250
374
|
export enum VolatilityChartTimeSpan {
|
|
251
375
|
/** Valid for: H */
|
|
252
376
|
D5 = 'D5',
|