Apr-19-2023, 12:50 PM
But what is ohlc_data when you get the error? It a dictionary, but it does not have a key named "result". What keys does it have? Maybe an error occurred, or there are no results matching the request. Find out what information is returned and write code to handle the different cases.