2019102152 김다빈

Modify trading_notice parameter

Showing 1 changed file with 2 additions and 2 deletions
...@@ -174,7 +174,7 @@ async function transaction_coin(coin_name, side, volume, price, ord_type, first ...@@ -174,7 +174,7 @@ async function transaction_coin(coin_name, side, volume, price, ord_type, first
174 console.log(avg_buy_price); 174 console.log(avg_buy_price);
175 lookup_order(result.uuid,avg_buy_price,market); 175 lookup_order(result.uuid,avg_buy_price,market);
176 }else{ 176 }else{
177 - lookup_order(result.uuid); 177 + lookup_order(result.uuid,0,market);
178 } 178 }
179 if (side == "bid") { 179 if (side == "bid") {
180 if (first) { 180 if (first) {
...@@ -422,7 +422,7 @@ function lookup_order(uuid,avg_buy_price=0,market="") { ...@@ -422,7 +422,7 @@ function lookup_order(uuid,avg_buy_price=0,market="") {
422 }) 422 })
423 return; 423 return;
424 } 424 }
425 -function trading_notice(side, price, funds, volume,yield_data=0,market="") { 425 +function trading_notice(side, price, funds, volume,yield_data=0,market) {
426 var messages = new Array(); 426 var messages = new Array();
427 if (side == "bid") { 427 if (side == "bid") {
428 messages.push({ "type": "text", "text": "매수 주문이 체결되었습니다." }); 428 messages.push({ "type": "text", "text": "매수 주문이 체결되었습니다." });
......