Python Examples
Async Basic
Async Basic — CCXT Python code example.
# -*- 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()))