Code Monkey home page Code Monkey logo

pybbg's Introduction

pybbg

python interface to Bloomberg data for Pandas

Prerequisite

Bloomberg Open API and python pandas

Install via pip

This package is not yet on pypi manual global install is as follows:

pip install git+https://github.com/kyuni22/pybbg 

Functions available

New Functions bds and bdp

  • bdh(tickers, fields, start date, end date, period selection) - similar interface with Bloomberg Excel API's bdh fucntion
    • tickers - one ticker as a string or a list of strings
    • fields - one field as a string or a list of strings (mnemonics or calcroutes from FLDS screen)
      • if one field is used, the second index on the data frame is removed otherwise a multi-index data frame is used
    • start/end date - end date defaults to today
    • period selection - default to daily
  • bdp(tickers, fields) - similar to excel bdp
    • tickers - one string or a list of strings
    • fields - one field or a list of fields
    • returns a table where columns are tickers and rows are fields, cell values are values
    • now with overrides
  • bds(ticker, field) - similar to excel BDS
    • ticker - one ticker at a time
    • field - one "bulk data" field at a time
    • returns the bulk data table as seen in FLDS as a pandas data frame
  • bdib(ticker, field list, start date and time, end date and time, event type, interval) - get intraday bar data and convert to pandas

Examples

pybbg's People

Contributors

kyuni22 avatar

Watchers

James Cloos avatar  avatar

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.