How will I know when data is ready?
A metadata API call will return metadata of the table you have specified. There is a value ‘refreshed_at’ which will give you the last refresh time of the table. Rather than querying the data repeatedly to see if the data has refreshed and potentially running into rate limits, it is recommended you use the metadata call to see when data is available. Once the data has been refreshed, you can then query the data.
See metadata call below:
https://data.nasdaq.com/api/v3/datatables/TABLE/CODE/metadata?api_key=YOURAPIKEY
For example, if you want to obtain metadata for PHOTO Intraday, simply replace the table code in the metadata call as follows:
https://data.nasdaq.com/api/v3/datatables/XPHLX/PHOTOI/metadata?api_key=YOURAPIKEY