mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2025-12-17 20:04:19 +01:00
Remove endDate argument from crypto top of book endpoint
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user