From af50932f47047ca3da0c5b745b1b70cf32b9dae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Dezzy?= Date: Mon, 11 Nov 2024 15:58:42 -0300 Subject: [PATCH] Add new OTC currency pairs to active types and IDs Included additional OTC currency pairs ('EURCAD', 'EURAUD', 'EURCHF') in the list of active types and associated them with their respective IDs. This update enhances the capabilities to work with more currency pairs, likely expanding trading options and improving coverage of financial instruments. --- packages/iqoption/lib/types.ts | 3 +++ packages/iqoption/lib/utils/getActiveId.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/iqoption/lib/types.ts b/packages/iqoption/lib/types.ts index 3b9c873..9393828 100644 --- a/packages/iqoption/lib/types.ts +++ b/packages/iqoption/lib/types.ts @@ -560,6 +560,9 @@ export type Active = | 'VIAC' | 'TFC' | 'BTC' + | 'EURCAD-OTC' + | 'EURAUD-OTC' + | 'EURCHF-OTC' export enum ActivePair { ALL = 0, diff --git a/packages/iqoption/lib/utils/getActiveId.ts b/packages/iqoption/lib/utils/getActiveId.ts index e38cb04..36e75c5 100644 --- a/packages/iqoption/lib/utils/getActiveId.ts +++ b/packages/iqoption/lib/utils/getActiveId.ts @@ -378,6 +378,9 @@ export const activeIds: ActiveIds = { VIAC: 1352, TFC: 1353, BTC: 1354, + 'EURAUD-OTC': 2120, + 'EURCAD-OTC': 2117, + 'EURCHF-OTC': 2131, } export function getActiveId(active: Active): number {