Skip to main content

This is a python client for websocket APIs provided by Global Financial Datafeeds LLP to access financial data.

Project description

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 developer@kncsolutions.in. To know about dhelm project visit our project website at https://dhelm.kncsolutions.in

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DhelmGfeedClient-1.0.3.tar.gz (194.7 kB view details)

Uploaded Source

File details

Details for the file DhelmGfeedClient-1.0.3.tar.gz.

File metadata

  • Download URL: DhelmGfeedClient-1.0.3.tar.gz
  • Upload date:
  • Size: 194.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.4.4

File hashes

Hashes for DhelmGfeedClient-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1ab90e6d6d9ef5e37dd1b4f6fab369a3feadf4531fb735b82d6e4c98c7626ff2
MD5 87dc06876c5f13e121705e4068fddf01
BLAKE2b-256 e50f9e1991bd4fbbc09144ed090e9d89f574fe11d1277fbcdbd1c0b50fb942d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page