ttsteiger / cryptocompy

Simple Python 3 wrapper for the public CryptoCompare API.
MIT License
81 stars 36 forks source link

Market does not exist for this coin pair #12

Open dCosminn opened 5 years ago

dCosminn commented 5 years ago

When trying to get the data for two currencies, if one is not available will return a error: Shouldn't at least return one out of two? Like on Binance there isn't a (ETH-USD) but there is (ETH-BTC) and would be nice if it would return that.

Example:

currency = ["BTC", "USD"] data = price.get_current_price("ETH", currency, e="Binance", full=True, format="Display") print(data)

{'Response': 'Error', 'Message': 'Binance market does not exist for this coin pair (ETH-USD)', 'Type': 1, 'Aggregated': False, 'Data': []}