Remove endDate argument from crypto top of book endpoint

This commit is contained in:
n1rna
2019-10-16 10:57:30 +03:30
parent 58efa544ec
commit c455fd856d

View File

@@ -334,16 +334,13 @@ class TiingoClient(RestClient):
# Crypto # Crypto
# tiingo/crypto # tiingo/crypto
def get_crypto_top_of_book(self, tickers=[], def get_crypto_top_of_book(self, tickers=[], exchanges=[],
endDate=None, exchanges=[],
includeRawExchangeData=False, convertCurrency=None): includeRawExchangeData=False, convertCurrency=None):
url = 'https://api.tiingo.com/tiingo/crypto/top' url = 'https://api.tiingo.com/tiingo/crypto/top'
params = { params = {
'tickers': ','.join(tickers) 'tickers': ','.join(tickers)
} }
if endDate:
params['endDate'] = endDate
if len(exchanges): if len(exchanges):
params['exchanges'] = ','.join(exchanges) params['exchanges'] = ','.join(exchanges)
if includeRawExchangeData is True: if includeRawExchangeData is True: