From 5a99ba7948258cfead9c245ddd247e79bec05b9e Mon Sep 17 00:00:00 2001 From: Siyuan Wang Date: Fri, 23 Feb 2024 03:00:01 +0800 Subject: [PATCH] chore(vendor-ccxt): remove useless code --- apps/vendor-ccxt/src/index.ts | 18 ------------------ .../@yuants/vendor-ccxt/2024-02-22-19-00.json | 10 ++++++++++ 2 files changed, 10 insertions(+), 18 deletions(-) create mode 100644 common/changes/@yuants/vendor-ccxt/2024-02-22-19-00.json diff --git a/apps/vendor-ccxt/src/index.ts b/apps/vendor-ccxt/src/index.ts index 58c2061dc..18d9c0e2d 100644 --- a/apps/vendor-ccxt/src/index.ts +++ b/apps/vendor-ccxt/src/index.ts @@ -200,24 +200,6 @@ import { ) .subscribe(); - // const mapPeriodInSecToCCXTTimeframe: Record = { - // 1: '1s', - // 60: '1m', - // 180: '3m', - // 300: '5m', - // 900: '15m', - // 1800: '30m', - // 3600: '1h', - // 7200: '2h', - // 14400: '4h', - // 21600: '6h', - // 43200: '12h', - // 86400: '1d', - // 259200: '3d', - // 604800: '1w', - // 2592000: '1M' - // }; - const mapPeriodInSecToCCXTTimeframe = (period_in_sec: number): string => { if (period_in_sec % 2592000 === 0) { return `${period_in_sec / 2592000}M`; diff --git a/common/changes/@yuants/vendor-ccxt/2024-02-22-19-00.json b/common/changes/@yuants/vendor-ccxt/2024-02-22-19-00.json new file mode 100644 index 000000000..4dfc7aa13 --- /dev/null +++ b/common/changes/@yuants/vendor-ccxt/2024-02-22-19-00.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@yuants/vendor-ccxt", + "comment": "remove useless code", + "type": "patch" + } + ], + "packageName": "@yuants/vendor-ccxt" +} \ No newline at end of file