'get_historical_klines() missing 1 required positional argument: 'start_str'

I'm trying to get historical data; however upon executing the code:

def get_data():
    historical_data = client.get_historical_klines(symbol=config.SYMBOL, interval=Client.KLINE_INTERVAL_1MINUTE, limit=100, klines_type=HistoricalKlinesType.SPOT)
    print(historical_data)

I get the error:

historical_data = client.get_historical_klines(symbol=config.SYMBOL, interval=Client.KLINE_INTERVAL_1MINUTE, limit=100, klines_type=HistoricalKlinesType.SPOT)
TypeError: get_historical_klines() missing 1 required positional argument: 'start_str'

What seems to be wrong? Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source