mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-10 16:58:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
- [Async Basic](./examples/py/)
|
||||
|
||||
|
||||
```python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
import ccxt.async_support as ccxt # noqa: E402
|
||||
|
||||
|
||||
async def test_binance():
|
||||
exchange = ccxt.binance()
|
||||
markets = await exchange.load_markets()
|
||||
await exchange.close()
|
||||
return markets
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(asyncio.run(test_binance()))
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user