Commit 8c9ee6a6 by zihan

调整最小回归通量的参数

parent abeae114
......@@ -5,11 +5,11 @@ const machine = process.env['MACHINE'];
const biboxApi = require('./api_kucoin');
const zlib = require('zlib');
const Strategy3MaxAmountMap = {
USDT: 1000,
BTC: 0.3,
ETH: 2,
NEO: 49,
KCS: 999,
USDT: 300,
BTC: 0.05,
ETH: 1.5,
NEO: 30,
KCS: 600,
}
class BiboxCollector extends BaseCollector{
......@@ -161,9 +161,8 @@ class BiboxCollector extends BaseCollector{
return price;
}
getCurrencyMaxReturnAmount(currency){
return Strategy3MaxAmountMap[currency];
// const balance = this.getCurrencyBalance(currency);
// return Math.min(Strategy3MaxAmountMap[currency],balance);
const balance = this.getCurrencyBalance(currency);
return Math.min(Strategy3MaxAmountMap[currency],balance);
}
getDepthPrintStr(fromCurrency,toCurrency,depth=1){
return super.getDepthPrintStr(fromCurrency,toCurrency,3);
......
......@@ -3,11 +3,11 @@ const machine = process.env['MACHINE'];
const Order = require('./order_kucoin');
const constants = require('./constants');
const STRATEGY3_RETURN_MIN_AMOUNT_MAP = {
USDT: 600,
BTC: 0.1,
ETH: 1,
NEO: 30,
KCS: 600,
USDT: 20,
BTC: 0.002,
ETH: 0.03,
NEO: 1,
KCS: 20,
};
class BiboxStrategy3 extends Strategy3 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment