Skip to content

Commit

Permalink
feat: new crypto instruments
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo4815162342 committed Mar 19, 2024
1 parent 53a0c70 commit 4f6bf08
Show file tree
Hide file tree
Showing 5 changed files with 273 additions and 3 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const { getHistoricalRates } = require('dukascopy-node');
## 📂 Instruments

* [Bonds 📊 (3)](#bnd_cfd)
* [Crypto assets ₿ (18)](#vccy)
* [Crypto assets ₿ (33)](#vccy)
* [Agricultural commodities ☕ (6)](#cmd_agricultural)
* [Energy commodities ⚡ (4)](#cmd_energy)
* [Metals commodities ⚙️ (3)](#cmd_metals)
Expand Down Expand Up @@ -141,19 +141,34 @@ const { getHistoricalRates } = require('dukascopy-node');
|[Cardano vs US Dollar](https://www.dukascopy-node.app/instrument/adausd)|`adausd`|Sep 25, 2021|
|[Aave vs US Dollar](https://www.dukascopy-node.app/instrument/aveusd)|`aveusd`|Sep 15, 2021|
|[Basic Attention Token vs US Dollar](https://www.dukascopy-node.app/instrument/batusd)|`batusd`|Aug 5, 2019|
|[Bitcoin Cash vs Swiss Franc](https://www.dukascopy-node.app/instrument/bchchf)|`bchchf`|Mar 14, 2023|
|[Bitcoin Cash vs Euro](https://www.dukascopy-node.app/instrument/bcheur)|`bcheur`|Mar 14, 2023|
|[Bitcoin Cash vs Pound Sterling](https://www.dukascopy-node.app/instrument/bchgbp)|`bchgbp`|Mar 14, 2023|
|[Bitcoin Cash vs US dollar](https://www.dukascopy-node.app/instrument/bchusd)|`bchusd`|May 17, 2021|
|[Bitcoin vs Swiss Frank](https://www.dukascopy-node.app/instrument/btcchf)|`btcchf`|Mar 14, 2023|
|[Bitcoin vs Euro](https://www.dukascopy-node.app/instrument/btceur)|`btceur`|May 15, 2018|
|[Bitcoin vs Pound Sterling](https://www.dukascopy-node.app/instrument/btcgbp)|`btcgbp`|Mar 14, 2023|
|[Bitcoin vs US Dollar](https://www.dukascopy-node.app/instrument/btcusd)|`btcusd`|May 7, 2017|
|[Compound vs US Dollar](https://www.dukascopy-node.app/instrument/cmpusd)|`cmpusd`|Sep 25, 2021|
|[Dashcoin vs US Dollar](https://www.dukascopy-node.app/instrument/dshusd)|`dshusd`|Aug 4, 2019|
|[Enjin vs US Dollar](https://www.dukascopy-node.app/instrument/enjusd)|`enjusd`|Sep 25, 2021|
|[EOS vs US Dollar](https://www.dukascopy-node.app/instrument/eosusd)|`eosusd`|Aug 4, 2019|
|[Ether vs Swiss Franc](https://www.dukascopy-node.app/instrument/ethchf)|`ethchf`|Mar 14, 2023|
|[Ether vs Euro](https://www.dukascopy-node.app/instrument/etheur)|`etheur`|Mar 14, 2023|
|[Ether vs Pound Sterling](https://www.dukascopy-node.app/instrument/ethgbp)|`ethgbp`|Mar 14, 2023|
|[Ether vs US Dollar](https://www.dukascopy-node.app/instrument/ethusd)|`ethusd`|Dec 11, 2017|
|[Chainlink vs US Dollar](https://www.dukascopy-node.app/instrument/lnkusd)|`lnkusd`|Sep 25, 2021|
|[Litecoin vs Swiss Franc](https://www.dukascopy-node.app/instrument/ltcchf)|`ltcchf`|Mar 14, 2023|
|[Litecoin vs Euro](https://www.dukascopy-node.app/instrument/ltceur)|`ltceur`|Mar 14, 2023|
|[Pound Sterling](https://www.dukascopy-node.app/instrument/ltcgbp)|`ltcgbp`|Mar 14, 2023|
|[Litecoin vs US Dollar](https://www.dukascopy-node.app/instrument/ltcusd)|`ltcusd`|Sep 3, 2018|
|[Polygon vs US Dollar](https://www.dukascopy-node.app/instrument/matusd)|`matusd`|Sep 25, 2021|
|[Maker vs US Dollar](https://www.dukascopy-node.app/instrument/mkrusd)|`mkrusd`|Sep 25, 2021|
|[TRON vs US Dollar](https://www.dukascopy-node.app/instrument/trxusd)|`trxusd`|Aug 4, 2019|
|[Uniswap vs US Dollar](https://www.dukascopy-node.app/instrument/uniusd)|`uniusd`|Oct 1, 2021|
|[Stellar vs Swiss Franc](https://www.dukascopy-node.app/instrument/xlmchf)|`xlmchf`|Mar 14, 2023|
|[Stellar vs Euro](https://www.dukascopy-node.app/instrument/xlmeur)|`xlmeur`|Mar 14, 2023|
|[Stellar vs Pound Sterling](https://www.dukascopy-node.app/instrument/xlmgbp)|`xlmgbp`|Mar 14, 2023|
|[Stellar vs US Dollar](https://www.dukascopy-node.app/instrument/xlmusd)|`xlmusd`|May 25, 2021|
|[Yearn.finance vs US Dollar](https://www.dukascopy-node.app/instrument/yfiusd)|`yfiusd`|Sep 25, 2021|
<h3 id="cmd_agricultural">Agricultural commodities ☕</h3>
Expand Down
90 changes: 90 additions & 0 deletions src/utils/instrument-meta-data/generated/instrument-enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,24 @@ export enum Instrument {
*/
bciteur='bciteur',

/**
* ### Bitcoin Cash vs Swiss Franc
* *BCH/CHF*
*/
bchchf='bchchf',

/**
* ### Bitcoin Cash vs Euro
* *BCH/EUR*
*/
bcheur='bcheur',

/**
* ### Bitcoin Cash vs Pound Sterling
* *BCH/GBP*
*/
bchgbp='bchgbp',

/**
* ### Bitcoin Cash vs US dollar
* *BCH/USD*
Expand Down Expand Up @@ -1572,6 +1590,24 @@ export enum Instrument {
*/
btgbgbx='btgbgbx',

/**
* ### Bitcoin vs Swiss Frank
* *BTC/CHF*
*/
btcchf='btcchf',

/**
* ### Bitcoin vs Euro
* *BTC/EUR*
*/
btceur='btceur',

/**
* ### Bitcoin vs Pound Sterling
* *BTC/GBP*
*/
btcgbp='btcgbp',

/**
* ### Bitcoin vs US Dollar
* *BTC/USD*
Expand Down Expand Up @@ -2712,6 +2748,24 @@ export enum Instrument {
*/
estcususd='estcususd',

/**
* ### Ether vs Swiss Franc
* *ETH/CHF*
*/
ethchf='ethchf',

/**
* ### Ether vs Euro
* *ETH/EUR*
*/
etheur='etheur',

/**
* ### Ether vs Pound Sterling
* *ETH/GBP*
*/
ethgbp='ethgbp',

/**
* ### Ether vs US Dollar
* *ETH/USD*
Expand Down Expand Up @@ -4320,6 +4374,24 @@ export enum Instrument {
*/
lstrususd='lstrususd',

/**
* ### Litecoin vs Swiss Franc
* *LTC/CHF*
*/
ltcchf='ltcchf',

/**
* ### Litecoin vs Euro
* *LTC/EUR*
*/
ltceur='ltceur',

/**
* ### Pound Sterling
* *LTC/GBP*
*/
ltcgbp='ltcgbp',

/**
* ### Litecoin vs US Dollar
* *LTC/USD*
Expand Down Expand Up @@ -7338,6 +7410,24 @@ export enum Instrument {
*/
xlkususd='xlkususd',

/**
* ### Stellar vs Swiss Franc
* *XLM/CHF*
*/
xlmchf='xlmchf',

/**
* ### Stellar vs Euro
* *XLM/EUR*
*/
xlmeur='xlmeur',

/**
* ### Stellar vs Pound Sterling
* *XLM/GBP*
*/
xlmgbp='xlmgbp',

/**
* ### Stellar vs US Dollar
* *XLM/USD*
Expand Down
15 changes: 15 additions & 0 deletions src/utils/instrument-meta-data/generated/instrument-groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,34 @@
"adausd",
"aveusd",
"batusd",
"bchchf",
"bcheur",
"bchgbp",
"bchusd",
"btcchf",
"btceur",
"btcgbp",
"btcusd",
"cmpusd",
"dshusd",
"enjusd",
"eosusd",
"ethchf",
"etheur",
"ethgbp",
"ethusd",
"lnkusd",
"ltcchf",
"ltceur",
"ltcgbp",
"ltcusd",
"matusd",
"mkrusd",
"trxusd",
"uniusd",
"xlmchf",
"xlmeur",
"xlmgbp",
"xlmusd",
"yfiusd"
]
Expand Down
137 changes: 136 additions & 1 deletion src/utils/instrument-meta-data/generated/instrument-meta-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@
"batusd": {
"name": "BAT/USD",
"description": "Basic Attention Token vs US Dollar",
"decimalFactor": 100000,
"decimalFactor": 1000,
"startHourForTicks": "2019-08-05T00:00:02.214Z",
"startDayForMinuteCandles": "2019-08-05T00:00:00.000Z",
"startMonthForHourlyCandles": "2019-08-05T00:00:00.000Z",
Expand Down Expand Up @@ -1997,6 +1997,33 @@
"startMonthForHourlyCandles": "2020-11-02T12:00:00.000Z",
"startYearForDailyCandles": "2020-11-02T00:00:00.000Z"
},
"bchchf": {
"name": "BCH/CHF",
"description": "Bitcoin Cash vs Swiss Franc",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:52:58.644Z",
"startDayForMinuteCandles": "2023-03-14T14:52:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"bcheur": {
"name": "BCH/EUR",
"description": "Bitcoin Cash vs Euro",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:53:02.753Z",
"startDayForMinuteCandles": "2023-03-14T14:53:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"bchgbp": {
"name": "BCH/GBP",
"description": "Bitcoin Cash vs Pound Sterling",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:53:02.089Z",
"startDayForMinuteCandles": "2023-03-14T14:53:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"bchusd": {
"name": "BCH/USD",
"description": "Bitcoin Cash vs US dollar",
Expand Down Expand Up @@ -2357,6 +2384,33 @@
"startMonthForHourlyCandles": "2011-01-04T08:00:00.000Z",
"startYearForDailyCandles": "2011-01-04T00:00:00.000Z"
},
"btcchf": {
"name": "BTC/CHF",
"description": "Bitcoin vs Swiss Frank",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:53:06.990Z",
"startDayForMinuteCandles": "2023-03-14T14:53:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"btceur": {
"name": "BTC/EUR",
"description": "Bitcoin vs Euro",
"decimalFactor": 10,
"startHourForTicks": "2018-05-15T10:25:32.340Z",
"startDayForMinuteCandles": "2018-05-15T10:24:00.000Z",
"startMonthForHourlyCandles": "2018-05-15T10:00:00.000Z",
"startYearForDailyCandles": "2018-05-15T00:00:00.000Z"
},
"btcgbp": {
"name": "BTC/GBP",
"description": "Bitcoin vs Pound Sterling",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T15:03:45.307Z",
"startDayForMinuteCandles": "2023-03-14T15:03:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T15:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"btcusd": {
"name": "BTC/USD",
"description": "Bitcoin vs US Dollar",
Expand Down Expand Up @@ -4067,6 +4121,33 @@
"startMonthForHourlyCandles": "2022-05-12T13:00:00.000Z",
"startYearForDailyCandles": "2022-05-12T00:00:00.000Z"
},
"ethchf": {
"name": "ETH/CHF",
"description": "Ether vs Swiss Franc",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:53:03.726Z",
"startDayForMinuteCandles": "2023-03-14T14:53:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"etheur": {
"name": "ETH/EUR",
"description": "Ether vs Euro",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:53:03.677Z",
"startDayForMinuteCandles": "2023-03-14T14:53:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"ethgbp": {
"name": "ETH/GBP",
"description": "Ether vs Pound Sterling",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:53:03.676Z",
"startDayForMinuteCandles": "2023-03-14T14:53:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"ethusd": {
"name": "ETH/USD",
"description": "Ether vs US Dollar",
Expand Down Expand Up @@ -6479,6 +6560,33 @@
"startMonthForHourlyCandles": "2022-05-13T13:00:00.000Z",
"startYearForDailyCandles": "2022-05-13T00:00:00.000Z"
},
"ltcchf": {
"name": "LTC/CHF",
"description": "Litecoin vs Swiss Franc",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:52:50.061Z",
"startDayForMinuteCandles": "2023-03-14T14:52:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"ltceur": {
"name": "LTC/EUR",
"description": "Litecoin vs Euro",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:55:12.375Z",
"startDayForMinuteCandles": "2023-03-14T14:55:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"ltcgbp": {
"name": "LTC/GBP",
"description": "Pound Sterling",
"decimalFactor": 10,
"startHourForTicks": "2023-03-14T14:52:50.074Z",
"startDayForMinuteCandles": "2023-03-14T14:52:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"ltcusd": {
"name": "LTC/USD",
"description": "Litecoin vs US Dollar",
Expand Down Expand Up @@ -11006,6 +11114,33 @@
"startMonthForHourlyCandles": "2017-11-15T16:00:00.000Z",
"startYearForDailyCandles": "2017-11-15T00:00:00.000Z"
},
"xlmchf": {
"name": "XLM/CHF",
"description": "Stellar vs Swiss Franc",
"decimalFactor": 100000,
"startHourForTicks": "2023-03-14T14:53:03.870Z",
"startDayForMinuteCandles": "2023-03-14T14:53:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"xlmeur": {
"name": "XLM/EUR",
"description": "Stellar vs Euro",
"decimalFactor": 100000,
"startHourForTicks": "2023-03-14T14:53:03.820Z",
"startDayForMinuteCandles": "2023-03-14T14:53:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"xlmgbp": {
"name": "XLM/GBP",
"description": "Stellar vs Pound Sterling",
"decimalFactor": 100000,
"startHourForTicks": "2023-03-14T14:53:03.821Z",
"startDayForMinuteCandles": "2023-03-14T14:53:00.000Z",
"startMonthForHourlyCandles": "2023-03-14T14:00:00.000Z",
"startYearForDailyCandles": "2023-03-14T00:00:00.000Z"
},
"xlmusd": {
"name": "XLM/USD",
"description": "Stellar vs US Dollar",
Expand Down

0 comments on commit 4f6bf08

Please sign in to comment.