sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
5.89k stars 2.2k forks source link

add version #1331

Closed CHUNG-HAO closed 7 months ago

CHUNG-HAO commented 1 year ago

I have fixed five error messages in the examples (save_historical_data.py) :"tzinfo" is not a known member of "None" `` if d is None:

日期解析失败,返回错误或采取适当的处理方式

    return None

# 如果日期没有时区信息,则应用UTC时区
if d.tzinfo is None:
    d = d.replace(tzinfo=pytz.utc)

# 返回时间差的毫秒数
return int((d - epoch).total_seconds() * 1000.0)

``

CHUNG-HAO commented 1 year ago

1187