Files
ritmex-bot/docs/ccxt/wiki/examples/py/async-basic.md
2025-10-03 15:28:16 +08:00

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()))
```