[Javascript] upbit取引所のデータを取得してみました
こんにちは、@yasuです。
upbit取引所からSTEEM価格など取引に関する情報を取得してみました。
別ドメインなのにjavascriptで取得できるんですね。
実行方法
https://ojagggyo.github.io/javascript/jquery_getjson.html
実行結果
ソース
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery.getJSON</title>
<script src="https://code.jquery.com/jquery-3.5.0.js"></script>
</head>
<body>
<script>
let url = "https://api.upbit.com/v1/ticker?markets=KRW-STEEM";
$.getJSON(url, (data) => {
let jsonString = JSON.stringify(data);
console.log(jsonString);
$("#text").html(jsonString.replace( /,/g , ',<br/>'));
});
</script>
<p id="text"></p>
</body>
</html>
ありがとうございました。
steemit サインアップ
https://ojagggyo.github.io/steemitsignup
steemit 知識
https://ojagggyo.github.io/steemittips
日本語 Steemit Discord (超初心者~誰でも)
https://discord.gg/zKJgfzS
@yasu さん、こんにちは。
Steemitチームがアップボートしてくれるので #steemexclusive のタグ、 パワーアップしたときは #club5050 のタグを使って下さい。
Power Up and use #club5050 #steemexclusive for more upvotes from Steemit team.
How to use #steemexclusive 使い方
How to use #club5050 使い方
💡 Curation Guide (アップボートガイド) 💡