Skip to content

async basic

github-actions[bot] edited this page Jun 11, 2026 · 2 revisions
# -*- 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()))

Clone this wiki locally