coinmarketcap auto-repeat option updated to ignore min price/vol amount condition

This commit is contained in:
satindergrewal 2017-12-21 01:18:50 +13:00
parent eac39c2f15
commit c6d547fd86
1 changed files with 9 additions and 3 deletions

View File

@ -706,6 +706,7 @@ $('.btn-bot_action').click(function(e){
console.log(trade_data); console.log(trade_data);
if (trading_options == 'disabled') {
if (pair_volume <= 0.01 || pair_price <= 0.01) { if (pair_volume <= 0.01 || pair_price <= 0.01) {
console.log('Order is too small. Please try again.'); console.log('Order is too small. Please try again.');
toastr.warning('Order is too small. Please try again with bigger order.', 'Order Notification') toastr.warning('Order is too small. Please try again with bigger order.', 'Order Notification')
@ -714,6 +715,11 @@ $('.btn-bot_action').click(function(e){
buy_sell_precheck(trade_data); buy_sell_precheck(trade_data);
$('.trading_auto_repeat_trade_yesno').attr('checked', false); $('.trading_auto_repeat_trade_yesno').attr('checked', false);
} }
} else {
//manual_buy_sell(trade_data)
buy_sell_precheck(trade_data);
$('.trading_auto_repeat_trade_yesno').attr('checked', false);
}
} else if (bot_or_manual == 'tradeportfolio') { } else if (bot_or_manual == 'tradeportfolio') {