If you change this line in your function: dfItem = jsonToDataFrame(data) to:
dfItem = pd.DataFrame.from_records(data)
it should work. I tested your function with this line replaced, using [‘INAG’] as a parameter passed to your getFinanceHistoricalStockFromByma function, and it returned a DataFrame.