@oanda/labs-instruments-table-widget 1.0.52 → 1.0.54

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +436 -0
  2. package/dist/main/InstrumentsTableWidget/config.js +1 -0
  3. package/dist/main/InstrumentsTableWidget/config.js.map +1 -1
  4. package/dist/main/gql/types/graphql.js +7 -14
  5. package/dist/main/gql/types/graphql.js.map +1 -1
  6. package/dist/main/translations/sources/de.json +1 -0
  7. package/dist/main/translations/sources/en.json +1 -0
  8. package/dist/main/translations/sources/es.json +1 -0
  9. package/dist/main/translations/sources/fr.json +1 -0
  10. package/dist/main/translations/sources/it.json +1 -0
  11. package/dist/main/translations/sources/pt.json +1 -0
  12. package/dist/main/translations/sources/th.json +1 -0
  13. package/dist/main/translations/sources/vi.json +1 -0
  14. package/dist/main/translations/sources/zh_CN.json +1 -0
  15. package/dist/module/InstrumentsTableWidget/config.js +1 -0
  16. package/dist/module/InstrumentsTableWidget/config.js.map +1 -1
  17. package/dist/module/gql/types/graphql.js +7 -14
  18. package/dist/module/gql/types/graphql.js.map +1 -1
  19. package/dist/module/translations/sources/de.json +1 -0
  20. package/dist/module/translations/sources/en.json +1 -0
  21. package/dist/module/translations/sources/es.json +1 -0
  22. package/dist/module/translations/sources/fr.json +1 -0
  23. package/dist/module/translations/sources/it.json +1 -0
  24. package/dist/module/translations/sources/pt.json +1 -0
  25. package/dist/module/translations/sources/th.json +1 -0
  26. package/dist/module/translations/sources/vi.json +1 -0
  27. package/dist/module/translations/sources/zh_CN.json +1 -0
  28. package/dist/types/gql/types/graphql.d.ts +45 -19
  29. package/package.json +3 -3
  30. package/src/InstrumentsTableWidget/config.ts +1 -0
  31. package/src/gql/types/graphql.ts +50 -19
  32. package/src/translations/sources/de.json +1 -0
  33. package/src/translations/sources/en.json +1 -0
  34. package/src/translations/sources/es.json +1 -0
  35. package/src/translations/sources/fr.json +1 -0
  36. package/src/translations/sources/it.json +1 -0
  37. package/src/translations/sources/pt.json +1 -0
  38. package/src/translations/sources/th.json +1 -0
  39. package/src/translations/sources/vi.json +1 -0
  40. package/src/translations/sources/zh_CN.json +1 -0
@@ -14,6 +14,7 @@
14
14
  "instrument": "Công cụ tài chính",
15
15
  "instrument_name": "Tên công cụ tài chính",
16
16
  "long_only": "Chỉ mua khống",
17
+ "metal": "Kim loại",
17
18
  "search": "Tìm kiếm",
18
19
  "sell": "Giá bán",
19
20
  "share_cfds": "CFD cổ phiếu",
@@ -15,6 +15,7 @@
15
15
  "instrument_name": "金融工具名称",
16
16
  "long_only": "仅限多头",
17
17
  "margin": "保证金",
18
+ "metal": "金属",
18
19
  "search": "搜索",
19
20
  "sell": "卖出",
20
21
  "share_cfds": "股票差价合约(CFD)",
@@ -55,6 +55,7 @@ export declare enum AssetClassName {
55
55
  EquityShares = "EQUITY_SHARES",
56
56
  Etfs = "ETFS",
57
57
  Indices = "INDICES",
58
+ Metals = "METALS",
58
59
  Rates = "RATES"
59
60
  }
60
61
  export declare enum BookType {
@@ -160,10 +161,9 @@ export type ExtendedInstrument = {
160
161
  tradeMode: TradeMode;
161
162
  };
162
163
  export declare enum Granularity {
163
- D1 = "D1",
164
164
  H1 = "H1",
165
165
  H4 = "H4",
166
- M1 = "M1",
166
+ M5 = "M5",
167
167
  M15 = "M15"
168
168
  }
169
169
  export type Heatmap = {
@@ -202,11 +202,20 @@ export declare enum OrderBookDataSource {
202
202
  Ny4Mt5 = "NY4_MT5",
203
203
  Ty3 = "TY3"
204
204
  }
205
+ export type OrderPositionBooksData = {
206
+ __typename?: 'OrderPositionBooksData';
207
+ books?: Maybe<Array<OrderPositionData>>;
208
+ bucketWidth: Scalars['Float']['output'];
209
+ displayPrecision: Scalars['Int']['output'];
210
+ sentimentThresholdMax: Scalars['Float']['output'];
211
+ sentimentThresholdMin: Scalars['Float']['output'];
212
+ };
205
213
  export type OrderPositionBucket = {
206
214
  __typename?: 'OrderPositionBucket';
207
- longCountPercent: Scalars['Float']['output'];
215
+ longCountPercent?: Maybe<Scalars['Float']['output']>;
208
216
  price: Scalars['Float']['output'];
209
- shortCountPercent: Scalars['Float']['output'];
217
+ sentiment?: Maybe<Scalars['Float']['output']>;
218
+ shortCountPercent?: Maybe<Scalars['Float']['output']>;
210
219
  };
211
220
  export type OrderPositionData = {
212
221
  __typename?: 'OrderPositionData';
@@ -229,12 +238,14 @@ export type Query = {
229
238
  isAllowedPartner?: Maybe<Scalars['Boolean']['output']>;
230
239
  mapInstrumentNames?: Maybe<Array<Maybe<Instrument>>>;
231
240
  marginRates?: Maybe<Array<MarginRate>>;
232
- orderPositionBooks: Array<Maybe<OrderPositionData>>;
241
+ orderPositionBook: Array<Maybe<OrderPositionData>>;
242
+ orderPositionBooks: OrderPositionBooksData;
233
243
  priceCandles: CandlesData;
234
244
  resolveInstrumentsByDivision?: Maybe<Array<Instrument>>;
235
245
  resolveInstrumentsWithFilters?: Maybe<InstrumentTableResult>;
236
246
  sentiment?: Maybe<Array<SentimentInstrument>>;
237
247
  sentimentList?: Maybe<Array<SentimentInstrument>>;
248
+ sentiments: SentimentData;
238
249
  topicalInstruments?: Maybe<Array<TopicalInstrument>>;
239
250
  topicalInstrumentsCharts?: Maybe<Array<TopicalInstrumentChart>>;
240
251
  topicalInstrumentsTotalCount: Scalars['Int']['output'];
@@ -271,12 +282,20 @@ export type QueryMarginRatesArgs = {
271
282
  instruments?: InputMaybe<Array<Scalars['String']['input']>>;
272
283
  tradingGroup: Scalars['Int']['input'];
273
284
  };
274
- export type QueryOrderPositionBooksArgs = {
285
+ export type QueryOrderPositionBookArgs = {
275
286
  bookType: BookType;
276
287
  dataSource?: InputMaybe<OrderBookDataSource>;
277
288
  instrument: Scalars['String']['input'];
278
289
  recentHours?: InputMaybe<Scalars['Int']['input']>;
279
- region?: InputMaybe<Region>;
290
+ };
291
+ export type QueryOrderPositionBooksArgs = {
292
+ bookType: BookType;
293
+ bucketMultiplier?: Scalars['Int']['input'];
294
+ granularity: Granularity;
295
+ instrument: Scalars['String']['input'];
296
+ maxBookPrice?: InputMaybe<Scalars['Float']['input']>;
297
+ minBookPrice?: InputMaybe<Scalars['Float']['input']>;
298
+ timeSpan: TimeSpan;
280
299
  };
281
300
  export type QueryPriceCandlesArgs = {
282
301
  dataSource: DataSource;
@@ -307,6 +326,11 @@ export type QuerySentimentListArgs = {
307
326
  division?: InputMaybe<Division>;
308
327
  sort?: InputMaybe<Sort>;
309
328
  };
329
+ export type QuerySentimentsArgs = {
330
+ granularity: Granularity;
331
+ instrument: Scalars['String']['input'];
332
+ timeSpan: TimeSpan;
333
+ };
310
334
  export type QueryTopicalInstrumentsArgs = {
311
335
  assetClass?: InputMaybe<AssetClassName>;
312
336
  count?: InputMaybe<Scalars['Int']['input']>;
@@ -351,6 +375,10 @@ export type Sentiment = {
351
375
  longPercent: Scalars['Float']['output'];
352
376
  shortPercent: Scalars['Float']['output'];
353
377
  };
378
+ export type SentimentData = {
379
+ __typename?: 'SentimentData';
380
+ sentiments: Array<Maybe<SentimentWithTime>>;
381
+ };
354
382
  export type SentimentInstrument = {
355
383
  __typename?: 'SentimentInstrument';
356
384
  displayName: Scalars['String']['output'];
@@ -358,6 +386,11 @@ export type SentimentInstrument = {
358
386
  sentiment: Sentiment;
359
387
  updatedAt: Scalars['String']['output'];
360
388
  };
389
+ export type SentimentWithTime = {
390
+ __typename?: 'SentimentWithTime';
391
+ sentiment: Sentiment;
392
+ time: Scalars['String']['output'];
393
+ };
361
394
  export declare enum Sort {
362
395
  Bearish = "BEARISH",
363
396
  Bullish = "BULLISH"
@@ -373,18 +406,11 @@ export type TimeCorrelation = {
373
406
  value?: Maybe<Scalars['Float']['output']>;
374
407
  };
375
408
  export declare enum TimeSpan {
376
- Day_1 = "DAY_1",
377
- Day_2 = "DAY_2",
378
- Hour_1 = "HOUR_1",
379
- Hour_12 = "HOUR_12",
380
- Month_1 = "MONTH_1",
381
- Month_3 = "MONTH_3",
382
- Month_6 = "MONTH_6",
383
- Week_1 = "WEEK_1",
384
- Week_2 = "WEEK_2",
385
- Week_3 = "WEEK_3",
386
- Year_1 = "YEAR_1",
387
- Year_5 = "YEAR_5"
409
+ FiveDays = "FIVE_DAYS",
410
+ NinetyDays = "NINETY_DAYS",
411
+ TenDays = "TEN_DAYS",
412
+ TwentyDays = "TWENTY_DAYS",
413
+ TwoDays = "TWO_DAYS"
388
414
  }
389
415
  export type TopicalInstrument = {
390
416
  __typename?: 'TopicalInstrument';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oanda/labs-instruments-table-widget",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "Labs Instruments Table Widget",
5
5
  "main": "dist/main/index.js",
6
6
  "module": "dist/module/index.js",
@@ -13,7 +13,7 @@
13
13
  "author": "OANDA",
14
14
  "license": "UNLICENSED",
15
15
  "dependencies": {
16
- "@oanda/labs-widget-common": "^1.0.232",
16
+ "@oanda/labs-widget-common": "^1.0.234",
17
17
  "@oanda/mono-i18n": "10.0.1",
18
18
  "graphql": "16.8.1"
19
19
  },
@@ -21,5 +21,5 @@
21
21
  "@graphql-codegen/cli": "5.0.0",
22
22
  "@graphql-codegen/client-preset": "4.1.0"
23
23
  },
24
- "gitHead": "ab6d30657a18deb5add1cc7a7a4eb2c8e28e81d2"
24
+ "gitHead": "e3dbcef54061fbb025ca5e63c62f41971890f72a"
25
25
  }
@@ -120,6 +120,7 @@ const assetClassLabels: Record<AssetClassLabels, string> = {
120
120
  ALL: 'all',
121
121
  [AssetClassName.Currency]: 'currency',
122
122
  [AssetClassName.Commodities]: 'commodity',
123
+ [AssetClassName.Metals]: 'metal',
123
124
  [AssetClassName.Rates]: 'bond',
124
125
  [AssetClassName.Cryptocurrency]: 'crypto',
125
126
  [AssetClassName.EquityShares]: 'share_cfds',
@@ -42,6 +42,7 @@ export enum AssetClassName {
42
42
  EquityShares = 'EQUITY_SHARES',
43
43
  Etfs = 'ETFS',
44
44
  Indices = 'INDICES',
45
+ Metals = 'METALS',
45
46
  Rates = 'RATES',
46
47
  }
47
48
 
@@ -162,10 +163,9 @@ export type ExtendedInstrument = {
162
163
  };
163
164
 
164
165
  export enum Granularity {
165
- D1 = 'D1',
166
166
  H1 = 'H1',
167
167
  H4 = 'H4',
168
- M1 = 'M1',
168
+ M5 = 'M5',
169
169
  M15 = 'M15',
170
170
  }
171
171
 
@@ -212,11 +212,21 @@ export enum OrderBookDataSource {
212
212
  Ty3 = 'TY3',
213
213
  }
214
214
 
215
+ export type OrderPositionBooksData = {
216
+ __typename?: 'OrderPositionBooksData';
217
+ books?: Maybe<Array<OrderPositionData>>;
218
+ bucketWidth: Scalars['Float']['output'];
219
+ displayPrecision: Scalars['Int']['output'];
220
+ sentimentThresholdMax: Scalars['Float']['output'];
221
+ sentimentThresholdMin: Scalars['Float']['output'];
222
+ };
223
+
215
224
  export type OrderPositionBucket = {
216
225
  __typename?: 'OrderPositionBucket';
217
- longCountPercent: Scalars['Float']['output'];
226
+ longCountPercent?: Maybe<Scalars['Float']['output']>;
218
227
  price: Scalars['Float']['output'];
219
- shortCountPercent: Scalars['Float']['output'];
228
+ sentiment?: Maybe<Scalars['Float']['output']>;
229
+ shortCountPercent?: Maybe<Scalars['Float']['output']>;
220
230
  };
221
231
 
222
232
  export type OrderPositionData = {
@@ -241,12 +251,14 @@ export type Query = {
241
251
  isAllowedPartner?: Maybe<Scalars['Boolean']['output']>;
242
252
  mapInstrumentNames?: Maybe<Array<Maybe<Instrument>>>;
243
253
  marginRates?: Maybe<Array<MarginRate>>;
244
- orderPositionBooks: Array<Maybe<OrderPositionData>>;
254
+ orderPositionBook: Array<Maybe<OrderPositionData>>;
255
+ orderPositionBooks: OrderPositionBooksData;
245
256
  priceCandles: CandlesData;
246
257
  resolveInstrumentsByDivision?: Maybe<Array<Instrument>>;
247
258
  resolveInstrumentsWithFilters?: Maybe<InstrumentTableResult>;
248
259
  sentiment?: Maybe<Array<SentimentInstrument>>;
249
260
  sentimentList?: Maybe<Array<SentimentInstrument>>;
261
+ sentiments: SentimentData;
250
262
  topicalInstruments?: Maybe<Array<TopicalInstrument>>;
251
263
  topicalInstrumentsCharts?: Maybe<Array<TopicalInstrumentChart>>;
252
264
  topicalInstrumentsTotalCount: Scalars['Int']['output'];
@@ -291,12 +303,21 @@ export type QueryMarginRatesArgs = {
291
303
  tradingGroup: Scalars['Int']['input'];
292
304
  };
293
305
 
294
- export type QueryOrderPositionBooksArgs = {
306
+ export type QueryOrderPositionBookArgs = {
295
307
  bookType: BookType;
296
308
  dataSource?: InputMaybe<OrderBookDataSource>;
297
309
  instrument: Scalars['String']['input'];
298
310
  recentHours?: InputMaybe<Scalars['Int']['input']>;
299
- region?: InputMaybe<Region>;
311
+ };
312
+
313
+ export type QueryOrderPositionBooksArgs = {
314
+ bookType: BookType;
315
+ bucketMultiplier?: Scalars['Int']['input'];
316
+ granularity: Granularity;
317
+ instrument: Scalars['String']['input'];
318
+ maxBookPrice?: InputMaybe<Scalars['Float']['input']>;
319
+ minBookPrice?: InputMaybe<Scalars['Float']['input']>;
320
+ timeSpan: TimeSpan;
300
321
  };
301
322
 
302
323
  export type QueryPriceCandlesArgs = {
@@ -333,6 +354,12 @@ export type QuerySentimentListArgs = {
333
354
  sort?: InputMaybe<Sort>;
334
355
  };
335
356
 
357
+ export type QuerySentimentsArgs = {
358
+ granularity: Granularity;
359
+ instrument: Scalars['String']['input'];
360
+ timeSpan: TimeSpan;
361
+ };
362
+
336
363
  export type QueryTopicalInstrumentsArgs = {
337
364
  assetClass?: InputMaybe<AssetClassName>;
338
365
  count?: InputMaybe<Scalars['Int']['input']>;
@@ -386,6 +413,11 @@ export type Sentiment = {
386
413
  shortPercent: Scalars['Float']['output'];
387
414
  };
388
415
 
416
+ export type SentimentData = {
417
+ __typename?: 'SentimentData';
418
+ sentiments: Array<Maybe<SentimentWithTime>>;
419
+ };
420
+
389
421
  export type SentimentInstrument = {
390
422
  __typename?: 'SentimentInstrument';
391
423
  displayName: Scalars['String']['output'];
@@ -394,6 +426,12 @@ export type SentimentInstrument = {
394
426
  updatedAt: Scalars['String']['output'];
395
427
  };
396
428
 
429
+ export type SentimentWithTime = {
430
+ __typename?: 'SentimentWithTime';
431
+ sentiment: Sentiment;
432
+ time: Scalars['String']['output'];
433
+ };
434
+
397
435
  export enum Sort {
398
436
  Bearish = 'BEARISH',
399
437
  Bullish = 'BULLISH',
@@ -412,18 +450,11 @@ export type TimeCorrelation = {
412
450
  };
413
451
 
414
452
  export enum TimeSpan {
415
- Day_1 = 'DAY_1',
416
- Day_2 = 'DAY_2',
417
- Hour_1 = 'HOUR_1',
418
- Hour_12 = 'HOUR_12',
419
- Month_1 = 'MONTH_1',
420
- Month_3 = 'MONTH_3',
421
- Month_6 = 'MONTH_6',
422
- Week_1 = 'WEEK_1',
423
- Week_2 = 'WEEK_2',
424
- Week_3 = 'WEEK_3',
425
- Year_1 = 'YEAR_1',
426
- Year_5 = 'YEAR_5',
453
+ FiveDays = 'FIVE_DAYS',
454
+ NinetyDays = 'NINETY_DAYS',
455
+ TenDays = 'TEN_DAYS',
456
+ TwentyDays = 'TWENTY_DAYS',
457
+ TwoDays = 'TWO_DAYS',
427
458
  }
428
459
 
429
460
  export type TopicalInstrument = {
@@ -15,6 +15,7 @@
15
15
  "instrument_name": "Instrumentenname",
16
16
  "long_only": "Nur Long",
17
17
  "margin": "Margin",
18
+ "metal": "Metall",
18
19
  "search": "Suche",
19
20
  "sell": "Verkaufen",
20
21
  "share_cfds": "Aktien-CFDs",
@@ -15,6 +15,7 @@
15
15
  "instrument_name": "Instrument name",
16
16
  "long_only": "Long only",
17
17
  "margin": "Margin",
18
+ "metal": "Metal",
18
19
  "no_matching_results": "No matching results",
19
20
  "pagination_entries_range": "{{firstItemOnPage}}-{{lastItemOnPage}} of {{itemCount}} entries",
20
21
  "search": "Search",
@@ -15,6 +15,7 @@
15
15
  "instrument_name": "Nombre del instrumento",
16
16
  "long_only": "Solo largo",
17
17
  "margin": "Margen",
18
+ "metal": "Metal",
18
19
  "pagination_entries_range": "{{firstItemOnPage}}-{{lastItemOnPage}} de {{itemCount}} entradas",
19
20
  "search": "Buscar",
20
21
  "sell": "Vender",
@@ -15,6 +15,7 @@
15
15
  "instrument_name": "Nom de l'instrument",
16
16
  "long_only": "Uniquement à l’achat",
17
17
  "margin": "Marge",
18
+ "metal": "Métal",
18
19
  "search": "Rechercher",
19
20
  "sell": "Vendre",
20
21
  "share_cfds": "CFD sur actions",
@@ -15,6 +15,7 @@
15
15
  "instrument_name": "Nome strumento",
16
16
  "long_only": "Solo long",
17
17
  "margin": "Margine",
18
+ "metal": "Metallo",
18
19
  "search": "Cerca",
19
20
  "sell": "Vendita",
20
21
  "share_cfds": "CFD su azioni",
@@ -15,6 +15,7 @@
15
15
  "instrument_name": "Nome do instrumento",
16
16
  "long_only": "Só são permitidas posições longas.",
17
17
  "margin": "Margem",
18
+ "metal": "Metal",
18
19
  "search": "Pesquisar",
19
20
  "sell": "Vender",
20
21
  "share_cfds": "CFD sobre ações",
@@ -14,6 +14,7 @@
14
14
  "instrument": "ตราสาร",
15
15
  "instrument_name": "ชื่อตราสาร",
16
16
  "long_only": "ซื้อเท่านั้น",
17
+ "metal": "โลหะ",
17
18
  "pagination_entries_range": "{{firstItemOnPage}}-{{lastItemOnPage}} จาก {{itemCount}} รายการ",
18
19
  "search": "ค้นหา",
19
20
  "sell": "ขาย",
@@ -14,6 +14,7 @@
14
14
  "instrument": "Công cụ tài chính",
15
15
  "instrument_name": "Tên công cụ tài chính",
16
16
  "long_only": "Chỉ mua khống",
17
+ "metal": "Kim loại",
17
18
  "search": "Tìm kiếm",
18
19
  "sell": "Giá bán",
19
20
  "share_cfds": "CFD cổ phiếu",
@@ -15,6 +15,7 @@
15
15
  "instrument_name": "金融工具名称",
16
16
  "long_only": "仅限多头",
17
17
  "margin": "保证金",
18
+ "metal": "金属",
18
19
  "search": "搜索",
19
20
  "sell": "卖出",
20
21
  "share_cfds": "股票差价合约(CFD)",