req = ek.get_timeseries(["NGc1", 'NGc2', 'NGc3', 'NGc4', 'NGc5'],['VOLUME'], start_date = "2011-01-01", end_date = "2020-12-31", interval="monthly")
Any lead will be highly appreciated.
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
req = ek.get_timeseries(["NGc1", 'NGc2', 'NGc3', 'NGc4', 'NGc5'],['VOLUME'], start_date = "2011-01-01", end_date = "2020-12-31", interval="monthly")
Any lead will be highly appreciated.
@saad.ali Please try the following:
req,err = ek.get_data(["NGc1", 'NGc2', 'NGc3', 'NGc4', 'NGc5'],['TR.ACCUMULATEDVOLUME.date','TR.ACCUMULATEDVOLUME'],parameters= {'SDate':"2011-01-01", 'EDate':"2020-12-31",'Frq':"CY",'CALCMETHOD':'SUM'}) req
Is this OK for you?
Regarding descriptions for fields you can use the Data Item Browser app which allows you to look for all fields for an instrument and get the descriptions, parameters as well as values - seee below - noote in the bottom right of the app you can see the field formula being built up for you as you select parameters - which allows you to easily copy paste into the get data function say.
I hope this can help.
@jason.ramchandani01 Thank you very much for your response. Yes, it has surely helped a lot. But I need clarification regarding one thing. What I actually need is the overall volume traded annually. Your formula works but the future contracts aren't just limited to these 5 contracts for natural gas. In fact, they are several of them round about till NGc158.
So the actual traded volume would be the sum of all these contracts for an year if I understood it right?