question

Upvotes
Accepted
5 0 1 3

Error causing instument

I have a long list of instruments, specified by <RIC identifiers>, and downloaded by the python API of DSWS.

Some of them are causing errors, and my list is long. Is there any way to make the Python API ignore missing instruments?

Best regards

datastream-apidsws-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 250 52 74

@mikkel.jorgensen

It could be a problem when converting the returned JSON response to the data frame.

From my test, if there is an invalid item in the request, DatastreamDSWS returns:

However, if I use the PyDSWS library, it can return the data properly.

You can report this issue to DatastreamDSWS on GitHub.


1576134755697.png (21.7 KiB)
1576134820988.png (15.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks, I do need something that is quite robust, so it may be good to use PyDSWS.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.