mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 08:18:07 +00:00
29 lines
759 B
HTML
29 lines
759 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>CCXT Basic example for the browser</title>
|
|
<script type="text/javascript" src="https://unpkg.com/ccxt"></script>
|
|
<script>
|
|
|
|
document.addEventListener ("DOMContentLoaded", function () {
|
|
|
|
async function main () {
|
|
const exchange = new ccxt.binance ({
|
|
'apiKey': 'YOUR_API_KEY',
|
|
'secret': 'YOUR_API_SECRET',
|
|
'proxyUrl': 'https://cors-anywhere.herokuapp.com/',
|
|
})
|
|
const response = await exchange.fetchBalance ()
|
|
console.log (response)
|
|
}
|
|
|
|
main ()
|
|
})
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>Hello, CCXT!</h1>
|
|
<pre id="content"></pre>
|
|
</body>
|
|
</html>
|