Binance API中的时间值是指UNIX时间戳,即从1970年1月1日格林威治标准时间00:00:00至特定日期时间的秒数。要获取当前的UNIX时间戳,可以使用Python中的time模块中的time()函数。
示例代码:
import time
timestamp = int(time.time() * 1000)
print(timestamp)
上一篇:BinanceAPISignaturewithGoogleScriptsWORKINGFIRSTBUTNOWNOT(BinanceAPI签名在Google脚本中一开始可以工作,但现在不行了)
下一篇:BinanceAPI为什么会引发CORS,如何处理?