Skip to content

Commit

Permalink
chore(vendor-ccxt): remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrimbda committed Feb 22, 2024
1 parent b793d77 commit 5a99ba7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
18 changes: 0 additions & 18 deletions apps/vendor-ccxt/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,24 +200,6 @@ import {
)
.subscribe();

// const mapPeriodInSecToCCXTTimeframe: Record<number, string> = {
// 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`;
Expand Down
10 changes: 10 additions & 0 deletions common/changes/@yuants/vendor-ccxt/2024-02-22-19-00.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@yuants/vendor-ccxt",
"comment": "remove useless code",
"type": "patch"
}
],
"packageName": "@yuants/vendor-ccxt"
}

0 comments on commit 5a99ba7

Please sign in to comment.