def get_binance_spot_market_data(): url = “https://api.binance.com/api/v1/ticker/24hr” response = requests.get(url) if response.status_code == 200: return response.json() else: return None
为什么上述代码执行后,日志为空呢?