Showing
1 changed file
with
6 additions
and
2 deletions
... | @@ -111,8 +111,12 @@ function compare_price(replyToken, message, upbitPrice){ | ... | @@ -111,8 +111,12 @@ 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 | - } | 114 | + }, |
115 | - ] | 115 | + { |
116 | + "type":"text", | ||
117 | + "text":"김치프리미엄 : "+String(((upbitPrice-binancePrice)/upbitPrice*100).toFixed(2))+"%" | ||
118 | + } | ||
119 | + ] | ||
116 | } | 120 | } |
117 | },(error, response, body) => { | 121 | },(error, response, body) => { |
118 | console.log(body) | 122 | console.log(body) | ... | ... |
-
Please register or login to post a comment