mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 16:28:06 +00:00
25 lines
378 B
Markdown
25 lines
378 B
Markdown
- [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()))
|
|
|
|
``` |