I need help with function attribute in Python.
I have the data which look like this: exch1 = data['Info']['Exchange1']
and this equals for example poloniex
.
I need to get exch1_object
which must look like this ccxt.poloniex()
, But when I try to do it I get the error:
AttributeError: module 'ccxt' has no attribute 'str'
import ccxt
exch1 = data['Info']['Exchange1']
exch2 = data['Info']['Exchange2']
exch1_object = exch1.lower()
exch1_object = ccxt.str(exch1_object)()