Type/to search
6
Follow
0
Followers
Python은 Binance 현물 시장 가격 데이터를 가져오고 비어 있는 값을 반환합니다.
Help
Created 2024-05-04 14:59:36  
 3
 842

현금 시장의 가격 데이터를 얻습니다.

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

이 코드가 실행된 후 로그는 왜 텅 비었을까?

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)