trader
This commit is contained in:
22
Niki/trader/test-NNFX/examples/exchanges.py
Normal file
22
Niki/trader/test-NNFX/examples/exchanges.py
Normal file
@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import sys
|
||||
from pprint import pprint
|
||||
|
||||
root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
sys.path.append(root + '/python')
|
||||
|
||||
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)
|
Reference in New Issue
Block a user