vfilimonov / pydatastream

Python interface to the Refinitiv Datastream (former Thomson Reuters Datastream)
MIT License
71 stars 30 forks source link

"Static" throws an errors #10

Closed blucap closed 7 years ago

blucap commented 7 years ago

Hi,

I am trying to pull a static request, however it throws an error:

I also tried the example from the readme, same error.

Martien

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-f2e5df257a85> in <module>()
      1 #anz_perp = DWE.fetch(['A:ANZB'], ['P'], date_from='2013-01-01')
----> 2 anz_perp = DWE.fetch(['A:ANZB'],['NAME'], static=True)

TypeError: fetch() got an unexpected keyword argument 'static'
vfilimonov commented 7 years ago

Hi Martien,

that's quite strange. I could not reproduce it:


In [9]: DWE.fetch(['A:ANZB'],['NAME'], static=True)
Request:A:ANZB~=NAME~REP
Out[9]: 
  CCY                   NAME  SYMBOL
0  A$  AUS.& NZ.BKG.GP.PREF.  A:ANZB

In [10]: DWE.fetch(['A:ANZB'], ['P'], date_from='2013-01-01')
Request:A:ANZB~=P~2013-01-01~D
Out[10]: 
                  P
2013-01-01  101.900
2013-01-02  101.950
2013-01-03  101.700

Are you sure that you're on the last version? "static" argument was introduced in 0.3.0 and the latest is 0.4.6. Could you perhaps try pip install -U pydatastream?

Best Vladimir

blucap commented 7 years ago
Got it, it works now!
Wow! This really beats using the excel request table hands down.
Many thank!
Martien

 
vfilimonov commented 7 years ago

You're welcome, I'm glad you've found it to be useful!

I'm closing the issue then.

Best Vladimir

blucap commented 7 years ago

It is far more convenient than accessing through their own software

Great!

On 4/11/2017 4:25 PM, Vladimir Filimonov wrote:

You're welcome, I'm glad you've found it to be useful!

I'm closing the issue then.

Best Vladimir

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vfilimonov/pydatastream/issues/10#issuecomment-293146180, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlhkCD_hbW9QRlsbZdbqyYH4p2cO_Yjks5ruwC2gaJpZM4M4KZk.

-- Kind regards, Met vriendelijke groet, Martien


Martien Lubberink PhD | M: blucap@gmail.com | H: +64 4 232 9495 | M: +64 21 134 7500 | H: 0152 488 8914 | M: +44 774 558 4224 | M: +316 8155 8570 | H: +31 848 317 742 | F: +31 84 88 22 199 | BBRY PIN 2BFBFAF3 | Zoom: 848 342 9576 https://vuw.zoom.us/j/8483429576 | No Need to Hit the 'Send' Key. Just Talk to Me