정홍주

Complete Kimchi -premium function

Showing 1 changed file with 4 additions and 0 deletions
...@@ -111,6 +111,10 @@ function compare_price(replyToken, message, upbitPrice){ ...@@ -111,6 +111,10 @@ function compare_price(replyToken, message, upbitPrice){
111 { 111 {
112 "type":"text", 112 "type":"text",
113 "text":"Upbit : "+String(upbitPrice)+"원" 113 "text":"Upbit : "+String(upbitPrice)+"원"
114 + },
115 + {
116 + "type":"text",
117 + "text":"김치프리미엄 : "+String(((upbitPrice-binancePrice)/upbitPrice*100).toFixed(2))+"%"
114 } 118 }
115 ] 119 ]
116 } 120 }
......