Commit 14fed6fe by zihan

调整可接受最低利差

parent fdb25f9e
......@@ -6,7 +6,8 @@ const STRATEGY3_RETURN_MIN_AMOUNT_MAP = {
USDT: 20,
BTC: 0.002,
ETH: 0.03,
BIX: 15,
QTUM:20,
BTM:20
};
class BiboxStrategy3 extends Strategy3 {
......@@ -16,7 +17,6 @@ class BiboxStrategy3 extends Strategy3 {
}
_doTrade(baseCurrency1, midCurrency, baseCurrency2, buyPrice, sellPrice, returnPrice, amount, returnAmount, doSaveOrder) {
return; //todo remove test stub
const buySymbol = this.collector.getSymbol(baseCurrency1, midCurrency);
const buyStartTime = Date.now();
const collector = this.collector;
......@@ -135,10 +135,12 @@ class BiboxStrategy3 extends Strategy3 {
_needConsiderDepthCount(){
return [[2,1],[3,2,1],[2,1]];
}
//todo 暂时使用最激进的方式
_giveUpOrder(){
return false;
}
_getMinMargin(){
return 0.05;
}
}
const BiboxCollector = require('./lbankCollector');
......
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