For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
5 2 1 1

Currency holidays

HI there,


Is there any example of how to get all the non-working days (holidays) in a certain year for a specific currency? For example I want to get all the holidays from 2020 for RON currency. Similar to what is here


Regards,

Joseph

treprdp-apiwebsocketsrrto
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.

Upvote
Accepted
25.3k 87 12 25

Hi @AJoseph

So, have you been through and successfully executed the Websocket API QuickStart and Tutorials?

If so, you can change the RIC code in your JSON request to say 'US/HOLIDAY' instead of the test RICS such a 'TRI.N' in the QuickStart or say 'VOD.L' in the Request Data tutorial for example:

def send_market_price_request(ric_name):
    """ Create and send simple Market Price request """
    mp_req_json = {
        'ID': 2,
        'Key': {
            'Name': 'US/HOLIDAY',
        },
    }
    web_socket_app.send(json.dumps(mp_req_json))


If you get a Status Message back 'A21: DACS User Profile denied access to vendor' - this means you dont have the correct licence. Please speak to your internal Market Data team or your Refinitiv Account contacts.


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.

Upvotes
25.3k 87 12 25

Hi @AJoseph

The only country holidays RICS I am aware of are the XX/HOLIDAY RIC e.g US/HOLIDAY , JP/HOLIDAY, GB/HOLIDAY etc. These are Page format and will need scraping / parsing to get the actual dates.

Alternatively, you can contact the Content helpdesk and ask a Content specialist if something better suited to your requirements is available. Select Content type ticket and the relevant an Elektron realtime product.

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.

Upvotes
5 2 1 1

Hi @Umer Nalla, Thanks for the prompt answer. I'm ok with scrapping/parsing but I don't know how to create a request for these information in the WebSocket API (if possible nevertheless).

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.

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.