Skip to content

Commit

Permalink
Add new OTC currency pairs to active types and IDs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andredezzy committed Nov 11, 2024
1 parent a0d455f commit af50932
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/iqoption/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,9 @@ export type Active =
| 'VIAC'
| 'TFC'
| 'BTC'
| 'EURCAD-OTC'
| 'EURAUD-OTC'
| 'EURCHF-OTC'

export enum ActivePair {
ALL = 0,
Expand Down
3 changes: 3 additions & 0 deletions packages/iqoption/lib/utils/getActiveId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit af50932

Please sign in to comment.