Back to Ccxt

All Exchanges

wiki/examples/py/all-exchanges.md

4.5.52437 B
Original Source
python
# -*- coding: utf-8 -*-

import os
import sys
from pprint import pprint


import ccxt  # noqa: E402


print('CCXT Version:', ccxt.__version__)

for exchange_id in ccxt.exchanges:
   try:
       exchange = getattr(ccxt, exchange_id)()
       print(exchange_id)
       # do what you want with this exchange
       # pprint(dir(exchange))
   except Exception as e:
       print(e)