question

Upvotes
Accepted
6 1 0 1

poll data in rdp

Hello,

I am trying to retrieve poll data using rdp in python. Where can I find the available field names for symbol? I tried using the ones from RHistory but they do not work.

df = rdp.get_historical_price_summaries(

universe = 'JPY1MP=',

interval = rdp.Intervals.MONTHLY,

fields = ['NDA_RAW.Nda_margin','NDA_RAW.Nda_mean','NDA_RAW.Nda_median'],

start = '2018-02-01',

end = '2022-02-01')



pythonrdp-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.2k 246 52 72

@theo01

You can use the following code to retrieve all available fields from the historical_price_summaries.

df = rdp.get_historical_price_summaries(
    universe = 'JPY1MP=',
    interval = rdp.Intervals.MONTHLY,
    fields = [],
    start = '2018-02-01',
    end = '2022-02-01')

1644197795961.png



1644197795961.png (10.7 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.

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.