mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 16:28:06 +00:00
27 lines
454 B
Markdown
27 lines
454 B
Markdown
- [Async Balance](./examples/py/)
|
|
|
|
|
|
```python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import asyncio
|
|
import os
|
|
import sys
|
|
|
|
|
|
import ccxt.async_support as ccxt # noqa: E402
|
|
|
|
|
|
async def test():
|
|
bittrex = ccxt.bittrex({
|
|
'apiKey': "YOUR_API_KEY",
|
|
'secret': "YOUR_SECRET",
|
|
'verbose': True, # switch it to False if you don't want the HTTP log
|
|
})
|
|
print(await bittrex.fetch_balance())
|
|
await bittrex.close()
|
|
|
|
|
|
asyncio.run(test())
|
|
|
|
``` |