0

CAN ANYONE HELP

I am using python binance api I want to know how can add minute in 3rd and 4th argument like

What i try:

klines = client.get_historical_klines("ETHBTC", Client.KLINE_INTERVAL_30MINUTE, "01/01/2022", "02/02/2022")

what i expecting:

kline = client.get_historical_Klines('BTCUSDT',Client.KLINE_INTERVAL_1MINUTE,'01/01/2022 00:00','01/01/2022 00:05

using this getting value error

ValueError: unconverted data remains: :00
SARVAGYA
  • 3
  • 3
  • 1
    From the docs: `end_str (str|int) – optional - end date string in UTC format or timestamp in milliseconds (default will fetch everything up to now)`. You might want to consider using python's `datetime` library to convert to UTC. Otherwise convert to milliseconds. – Aero Blue Dec 30 '22 at 12:20

0 Answers0