Type/to search
6
Follow
0
Followers
Python obtiene los datos del precio del mercado spot de Binance y devuelve el resultado vacío
Help
Created 2024-05-04 14:59:36  
 3
 842

Obtenga datos de precios en el mercado de monedas en efectivo

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

¿Por qué el registro está vacío después de ejecutar el código?

Related Recommendations
Comment
All comments (3)

    Log函数可以输出日志,return 只在调试工具里输出返回信息。

    2 years ago

    原来如此,谢谢梦总!
    话说有FMZ平台有没有培训课程之类的(线上线下都可以),我想系统地学习下

    2 years ago

    在B站有一些视频教程,也可以加电报群发问题,或者发工单,社区留言都行。

    2 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)