Giter VIP home page Giter VIP logo

capiq-python's Introduction

capiq-python

Thin Python wrapper for CapIQ's REST API

Includes request caching, with a keep alive of 24 hours. Credentials are passed in to the constructor for ease of use.

Status

I unfortunately don't have CapIQ access anymore so am not able to maintain this. Please feel free to create pull requests if you like.

TODO

I haven't tested all the request types in in the real world.

Getting Started

Install the package using pip.

pip install git+git://github.com/faaez/capiq-python.git

To initialize the wrapper import the client and initialize it with the username and password. If you want to stop SSL verification also pass verify=False. By default SSL certificates will be verified.

from capiq.capiq_client import CapIQClient
ciq_client = CapIQClient("username", "password")

To make calls to the capiq api 6 different functions which are documented in the Cap IQ documentation. Each function takes a list of identifiers, mnemonics, return keys and properties.

ciq_client = CapIQClient("username", "password")
return_value = ciq_client.gdsg(["TRIP"], ["IQ_CLOSEPRICE"], ["close_price"], properties=[{}])

Capital IQ uses identifiers to identify companies, which could be CUSIP, CINS, ISIN, SEDOL, DUNS ID, GVKEY, Ticker or S&P Capital IQ ID. When using tickers, conform to the TICKER:EXCHANGE convention, as in, "IBM:NYSE" but beware that for some mnemonics, Capital IQ returns tickers in the EXCHANGE:TICKER convention, as in, "NYSE:IBM." Nobody (including Capital IQ themselves, most likely) knows why.

Mnemonics are strings which key a specific piece of data from Cap IQ. For the specifics see the Cap IQ API Developer Guide.

Return keys map the cap iq mnemonics to new variable names in the return object, this is useful if you are pulling the same data for multiple time frames and you would like them to be easily distinguishable.

Properties identify the time frame to filter the requested data on. For the specifics see the Cap IQ API Developer Guide.

capiq-python's People

Contributors

faaez avatar guydmann avatar xrage 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.