정홍주

Complete Kimchi -premium function

Showing 1 changed file with 6 additions and 2 deletions
......@@ -111,8 +111,12 @@ function compare_price(replyToken, message, upbitPrice){
{
"type":"text",
"text":"Upbit : "+String(upbitPrice)+"원"
}
]
},
{
"type":"text",
"text":"김치프리미엄 : "+String(((upbitPrice-binancePrice)/upbitPrice*100).toFixed(2))+"%"
}
]
}
},(error, response, body) => {
console.log(body)
......