Giter Club home page Giter Club logo

Comments (2)

matthewgilbert avatar matthewgilbert commented on August 16, 2024

I would get in touch with Bloomberg Help or post to stack overflow with the tag blpapi since this looks like a Bloomberg specific issue as opposed to pdblp issue, which is just a wrapper on top of blpapi.

from pdblp.

youngfella93 avatar youngfella93 commented on August 16, 2024

Hey

I finally solved my issue by using the xbbg module instead.

By looking at the source code for the pdblp bdh function, I see that there isn't really a parameter meant to capture those additional optional parameters (if I understand it well), could it be the reason why it wasn't able to recognize these commands? Like it isn't really part of the elms nor ovrds which refers to other things when I looked at the API documentation.

    def bdh(self, tickers, flds, start_date, end_date, elms=None,ovrds=None, longdata=False):

where as in the xbbg bdh source code I see a place for other args (in the **kwargs)

  def bdh( tickers, flds=None, start_date=None, end_date='today', adjust=None, **kwargs) -> pd.DataFrame:

which allows me to do something like this:

  pref_px_bbg = blp.bdh(tickers=CUSIPS, flds=['PX_Last'], start_date=Date2, end_date=Date1,Fill='P', Days='A')

That's what I observed, but maybe I am wrong about it..

Thanks!

from pdblp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.