mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 09:18:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
- [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())
|
||||
```
|
||||
Reference in New Issue
Block a user