Have been struggling to find a solution to this problem.
We are trying to get the Last traded price from Zerodha (India’s Robinhood) for individual instruments being sent in through the parameter. But the way the API is configured it sends in a nested array for that instrument (screenshot below will help). Now given this instrument name is passed on run time and hence dynamic - we aren’t able to setup the API response to get the data.
Here, NSE:INFY, BSE:SENSEX, NSE:NIFTY 50 are the instruments, and we are trying to get the last_price.
On initializing the call in bubble API connector, this is what we get
The issue is since “NSE:INFY” is dynamic, hence if we send in any other parameter except NSE:INFY it doesn’t work.
In case you are using the API connection as a Data (as opposed to Action) and getting the results of the call in an element - it will only call it once when the element is rendered.
Instead, it might make more sense to use the API connection as an Action, have a repeating workflow (Do every 5 seconds) where you can call this API, get the results, save the results either to the DB or to the states of an element and then display it.