Coder Social home page Coder Social logo

vishwanaths19 / dhelm-gfeed-python-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kncsolutions/dhelm-gfeed-python-client

0.0 0.0 0.0 1.55 MB

This is a python client for websocket APIs provided by Global Financial Datafeeds LLP

License: Apache License 2.0

Python 100.00%

dhelm-gfeed-python-client's Introduction

Dhelm Gfeed Python Client Package

Dhelm-gfeed-python-client is a python client library to access and integrate stock market data from Global Financial Datafeeds LLP with your application.

To use this library you must subscribe to web socket api with Global Financial Datafeeds LLP and get your API key and web socket endpoint URL. Programmatic access to data obviously provides better control over your algorithm. You access the raw data from your data provider, then feed into your own application and do whatever analysis you want.

Using Dhelm-gfeed-python-client you can plug data from web socket api into your application directly.

For detailed integration and usage guidelines, please read through the documentation.

Installation

The client is tested with python 3.4+.

Install from Sources

  1. clone the repository:

    git clone https://github.com/kncsolutions/dhelm-gfeed-python-client.git

  2. cd to dhelm-gfeed-python-client

  3. python setup.py install

Installation using pip

pip install DhelmGfeedClient

Getting started with the client

from DhelmGfeedClient.gfeedclient import GfeedClient
client = GfeedClient("<ws_url>","<api_key>")
# where,
#<ws_url> : Replace <ws_url> with the web socket url
#<api_key> : Replace <api_key> with your api key which you have got on subscription.

def on_authenticated(base_client):
       #do your staff

#Assign your callbacks. Every callback has some specific functions.
#This callback will be called when user will be authenticated after successful connection.
#Once the user is authenticated then only other predefined methods to access data from web socket can be called from inside this callback.
client.on_authenticated = on_authenticated

#Connect to the web socket. You have to use the predefined methods and callbacks to receive and process data.
client.connect()

For deatails of the methods and corresponding callbacks see the documentation.

How to run the test file

Git clone the repository to your pc. Naviagate to the folder dhelm-gfeed-python-client/example. Open the terminal and type:

py example.py <ws_url> <api_key>

Replace <ws_url> with the web socket url and <api_key> with your api key.

If you have any query raise an issue or email at [email protected]. To know about dhelm project visit our project website at https://dhelm.kncsolutions.in

dhelm-gfeed-python-client's People

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.