Commit 14fed6fe by zihan

调整可接受最低利差

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