The resource loading... loading...

python retrieves the price data of the currency's spot market and returns null

Author: RunningBits, Created: 2024-05-04 14:59:36, Updated:

Get price data on the local currency market

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

Why is the log empty after executing the above code?


More

Inventors quantify - small dreamsThe log function can output logs and return only in the debugger.

Inventors quantify - small dreamsThere are some video tutorials on the B station, and you can also add telegrams about crowdfunding issues, or send job applications and community comments.

RunningBitsAnd it is, thank you very much! Speaking of FMZ platforms, if there are any training courses (online or offline), I want to learn systematically.