Hi,
The RTD COM automation add-in must be created and registered on a local computer. If you haven't installed a real-time data server, the RTD function returns the #N/A error message in a cell when you try to use the RTD function.
Have you created RealTimeData Server successfully?
I suggest you refer to this support article and you're using Excel 2016, the Object Library version should be Microsoft Excel 16.0 Object Library:
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.