@@ -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);
@@ -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 = {}