mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 16:58:08 +00:00
37 lines
612 B
Markdown
37 lines
612 B
Markdown
- [Async Hollaex Sandbox](./examples/py/)
|
|
|
|
|
|
```python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
import sys
|
|
from asyncio import run
|
|
|
|
|
|
|
|
async def test():
|
|
import ccxt.async_support as ccxt
|
|
|
|
print('CCXT Version', ccxt.__version__)
|
|
|
|
# local sandbox keys
|
|
exchange = ccxt.hollaex({
|
|
'apiKey': "YOUR_SANDBOX_API_KEY",
|
|
'secret': "YOUR_SANDBOX_SECRET",
|
|
})
|
|
|
|
exchange.set_sandbox_mode(True)
|
|
|
|
markets = await exchange.load_markets()
|
|
|
|
exchange.verbose = True
|
|
|
|
balance = await exchange.fetch_balance()
|
|
print(f"balance: {balance}")
|
|
|
|
await exchange.close()
|
|
|
|
|
|
run(test())
|
|
``` |