@oanda/labs-order-book-widget 1.0.129 → 1.0.131

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.
@@ -18,27 +18,36 @@ export type Scalars = {
18
18
 
19
19
  export type AssetClass = {
20
20
  __typename?: 'AssetClass';
21
- instruments?: Maybe<Array<Maybe<Instrument>>>;
22
- name?: Maybe<Scalars['String']['output']>;
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
 
30
- export type Correlation = {
31
- __typename?: 'Correlation';
32
- timeUnit: CorrelationTimeUnit;
33
- value: Scalars['Float']['output'];
34
- };
35
-
36
39
  export type CorrelationHeatmap = {
37
40
  __typename?: 'CorrelationHeatmap';
38
- baseInstrument: Scalars['String']['output'];
41
+ baseInstrument: Instrument;
39
42
  heatmap: Array<Heatmap>;
40
43
  };
41
44
 
45
+ export type CorrelationMatrix = {
46
+ __typename?: 'CorrelationMatrix';
47
+ baseTimeUnit: CorrelationTimeUnit;
48
+ matrix: Array<Matrix>;
49
+ };
50
+
42
51
  export enum CorrelationTimeUnit {
43
52
  H1 = 'H1',
44
53
  H4 = 'H4',
@@ -72,6 +81,7 @@ export type CurrencyPowerBalance = {
72
81
  __typename?: 'CurrencyPowerBalance';
73
82
  currency: CurrencyName;
74
83
  power: Array<CurrencyPower>;
84
+ updatedAt: Scalars['String']['output'];
75
85
  };
76
86
 
77
87
  export enum CurrencyPowerBalanceTimeUnit {
@@ -89,6 +99,7 @@ export type CurrencyStrength = {
89
99
  __typename?: 'CurrencyStrength';
90
100
  currency: CurrencyName;
91
101
  strengthRelation?: Maybe<Array<StrengthRelation>>;
102
+ updatedAt: Scalars['String']['output'];
92
103
  };
93
104
 
94
105
  export enum DataSource {
@@ -104,19 +115,32 @@ export enum Division {
104
115
  Oel = 'OEL',
105
116
  Ogm = 'OGM',
106
117
  Oj = 'OJ',
118
+ Opt = 'OPT',
107
119
  Otms = 'OTMS'
108
120
  }
109
121
 
110
122
  export type Heatmap = {
111
123
  __typename?: 'Heatmap';
112
- correlation: Array<Correlation>;
113
- instrument: Scalars['String']['output'];
124
+ instrument: Instrument;
125
+ timeCorrelation: Array<TimeCorrelation>;
114
126
  };
115
127
 
116
128
  export type Instrument = {
117
129
  __typename?: 'Instrument';
118
- displayName?: Maybe<Scalars['String']['output']>;
119
- name?: Maybe<Scalars['String']['output']>;
130
+ displayName: Scalars['String']['output'];
131
+ name: Scalars['String']['output'];
132
+ };
133
+
134
+ export type InstrumentCorrelation = {
135
+ __typename?: 'InstrumentCorrelation';
136
+ instrument: Instrument;
137
+ value?: Maybe<Scalars['Float']['output']>;
138
+ };
139
+
140
+ export type Matrix = {
141
+ __typename?: 'Matrix';
142
+ instrument: Instrument;
143
+ instrumentCorrelation: Array<InstrumentCorrelation>;
120
144
  };
121
145
 
122
146
  export type OrderPositionBucket = {
@@ -142,16 +166,20 @@ export type Query = {
142
166
  __typename?: 'Query';
143
167
  assetClasses?: Maybe<Array<Maybe<AssetClass>>>;
144
168
  correlationHeatmap: CorrelationHeatmap;
169
+ correlationMatrix: CorrelationMatrix;
145
170
  currencyPowerBalance?: Maybe<Array<CurrencyPowerBalance>>;
146
171
  currencyStrength?: Maybe<Array<CurrencyStrength>>;
172
+ mapInstrumentNames?: Maybe<Array<Maybe<Instrument>>>;
147
173
  orderPositionBooks: Array<Maybe<OrderPositionData>>;
148
174
  sentiment?: Maybe<Array<SentimentInstrument>>;
149
175
  sentimentList?: Maybe<Array<SentimentInstrument>>;
150
176
  topicalInstruments?: Maybe<Array<TopicalInstrument>>;
151
177
  topicalInstrumentsCharts?: Maybe<Array<TopicalInstrumentChart>>;
152
178
  topicalInstrumentsTotalCount: Scalars['Int']['output'];
179
+ valueAtRiskAssetClasses?: Maybe<Array<AssetClass>>;
180
+ valueAtRiskChart?: Maybe<ValueAtRiskChart>;
153
181
  volatilityChart?: Maybe<Array<Maybe<VolatilityChart>>>;
154
- volatilityChartAssetClasses?: Maybe<Array<VolatilityChartAssetClass>>;
182
+ volatilityChartAssetClasses?: Maybe<Array<AssetClass>>;
155
183
  };
156
184
 
157
185
 
@@ -162,6 +190,14 @@ export type QueryAssetClassesArgs = {
162
190
 
163
191
  export type QueryCorrelationHeatmapArgs = {
164
192
  division: Division;
193
+ instruments?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
194
+ timeSpans?: InputMaybe<Array<InputMaybe<CorrelationTimeUnit>>>;
195
+ };
196
+
197
+
198
+ export type QueryCorrelationMatrixArgs = {
199
+ division: Division;
200
+ instruments?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
165
201
  };
166
202
 
167
203
 
@@ -170,6 +206,12 @@ export type QueryCurrencyPowerBalanceArgs = {
170
206
  };
171
207
 
172
208
 
209
+ export type QueryMapInstrumentNamesArgs = {
210
+ division?: InputMaybe<Division>;
211
+ instruments: Array<InputMaybe<Scalars['String']['input']>>;
212
+ };
213
+
214
+
173
215
  export type QueryOrderPositionBooksArgs = {
174
216
  bookType: BookType;
175
217
  dataSource?: InputMaybe<DataSource>;
@@ -192,6 +234,7 @@ export type QuerySentimentListArgs = {
192
234
 
193
235
 
194
236
  export type QueryTopicalInstrumentsArgs = {
237
+ assetClass?: InputMaybe<AssetClassName>;
195
238
  count?: InputMaybe<Scalars['Int']['input']>;
196
239
  division?: InputMaybe<Division>;
197
240
  offset?: InputMaybe<Scalars['Int']['input']>;
@@ -206,11 +249,25 @@ export type QueryTopicalInstrumentsChartsArgs = {
206
249
 
207
250
 
208
251
  export type QueryTopicalInstrumentsTotalCountArgs = {
252
+ assetClass?: InputMaybe<AssetClassName>;
209
253
  division?: InputMaybe<Division>;
210
254
  sort: TopicalSort;
211
255
  };
212
256
 
213
257
 
258
+ export type QueryValueAtRiskAssetClassesArgs = {
259
+ division?: InputMaybe<Division>;
260
+ };
261
+
262
+
263
+ export type QueryValueAtRiskChartArgs = {
264
+ bars: ValueAtRiskBars;
265
+ division?: InputMaybe<Division>;
266
+ duration: ValueAtRiskDuration;
267
+ instrument: Scalars['String']['input'];
268
+ };
269
+
270
+
214
271
  export type QueryVolatilityChartArgs = {
215
272
  division?: InputMaybe<Division>;
216
273
  instrument: Scalars['String']['input'];
@@ -254,8 +311,15 @@ export type StrengthRelation = {
254
311
  percentage: Scalars['Float']['output'];
255
312
  };
256
313
 
314
+ export type TimeCorrelation = {
315
+ __typename?: 'TimeCorrelation';
316
+ timeUnit: CorrelationTimeUnit;
317
+ value?: Maybe<Scalars['Float']['output']>;
318
+ };
319
+
257
320
  export type TopicalInstrument = {
258
321
  __typename?: 'TopicalInstrument';
322
+ assetClass?: Maybe<AssetClassName>;
259
323
  displayName: Scalars['String']['output'];
260
324
  name: Scalars['String']['output'];
261
325
  sentiment: Sentiment;
@@ -276,23 +340,48 @@ export enum TopicalSort {
276
340
  Volatile = 'VOLATILE'
277
341
  }
278
342
 
343
+ export enum ValueAtRiskBars {
344
+ C100 = 'C100',
345
+ C200 = 'C200',
346
+ C300 = 'C300'
347
+ }
348
+
349
+ export type ValueAtRiskChart = {
350
+ __typename?: 'ValueAtRiskChart';
351
+ down: ValueAtRiskChartData;
352
+ up: ValueAtRiskChartData;
353
+ };
354
+
355
+ export type ValueAtRiskChartData = {
356
+ __typename?: 'ValueAtRiskChartData';
357
+ average: Scalars['Float']['output'];
358
+ max: Scalars['Float']['output'];
359
+ median: Scalars['Float']['output'];
360
+ points?: Maybe<Array<ValueAtRiskChartPoint>>;
361
+ threshold: Scalars['Float']['output'];
362
+ };
363
+
364
+ export type ValueAtRiskChartPoint = {
365
+ __typename?: 'ValueAtRiskChartPoint';
366
+ percent: Scalars['Float']['output'];
367
+ pips: Scalars['Float']['output'];
368
+ };
369
+
370
+ export enum ValueAtRiskDuration {
371
+ C1 = 'C1',
372
+ C2 = 'C2',
373
+ C3 = 'C3',
374
+ C4 = 'C4',
375
+ C5 = 'C5',
376
+ C10 = 'C10'
377
+ }
378
+
279
379
  export type VolatilityChart = {
280
380
  __typename?: 'VolatilityChart';
281
381
  pips: Scalars['Float']['output'];
282
382
  /** Time point - hour in format hh:mm, Date in UTC, Week in format 'Mo' */
283
383
  point: Scalars['String']['output'];
284
- };
285
-
286
- export type VolatilityChartAssetClass = {
287
- __typename?: 'VolatilityChartAssetClass';
288
- instruments: Array<VolatilityChartInstrument>;
289
- name: Scalars['String']['output'];
290
- };
291
-
292
- export type VolatilityChartInstrument = {
293
- __typename?: 'VolatilityChartInstrument';
294
- displayName: Scalars['String']['output'];
295
- name: Scalars['String']['output'];
384
+ updatedAt: Scalars['String']['output'];
296
385
  };
297
386
 
298
387
  export enum VolatilityChartTimeSpan {