Browse Source

一些调整

skyffire 1 year ago
parent
commit
eb6ef8424c
2 changed files with 2 additions and 5 deletions
  1. 1 1
      pull_k_lines.js
  2. 1 4
      十面埋伏分析.js

+ 1 - 1
pull_k_lines.js

@@ -6,7 +6,7 @@ const logger = require('./utils/logger')
 
 const BASE_REST = 'https://api.binance.com'
 const QUOTE_ASSET = 'USDT'                                    // 拉取什么交易对的
-const NUMBER_OF_DAYS_TO_PULL = 50                         // 一共拉取多少天的数据
+const NUMBER_OF_DAYS_TO_PULL = 360                         // 一共拉取多少K的数据
 
 const socksProxy = 'socks://127.0.0.1:7890';
 const agent = new SocksProxyAgent(socksProxy);

+ 1 - 4
十面埋伏分析.js

@@ -124,10 +124,7 @@ function filter(btcKLines, kLines, index, symbol) {
     return false
   }
 
-  if (NOOBS.indexOf(symbol) !== -1) {
-    return false
-  }
-  return true
+  return NOOBS.indexOf(symbol) === -1;
 }
 
 let realCountMap = {}