Skip to main content

python library to get MCX India data

Project description

mcxlib 0.1

Python Library to get publicly available data on MCX website.

Release Notes

  • Compatible and Tested with Python 3.8 and above
  • Future release will be done on requirement basic

Libraries Required

  • requests
  • numpy
  • pandas
  • lxml

For Windows systems you can install Anaconda, this will cover many dependencies (You'll have to install requests additionally though)

Installation

Fresh installation

$pip install mcxlib

Upgrade

$pip install mcxlib --upgrade

Function list

  • get_recent_expires
  • get_market_watch
  • get_top_gainers
  • get_heat_map
  • get_top_gainers
  • get_top_losers
  • get_most_active_contracts
  • get_most_active_puts_calls
  • get_bhav_copy
  • get_historical_data
  • get_pro_cli_details
  • get_option_chain
  • get_put_call_ratio
  • get_category_wise_oi
  • get_category_wise_turnover
  • get_mcx_icomdex_indices
  • get_trading_statistics
  • get_ccl_delivery

Example :

import mcxlib

data = get_live_market_watch()

bhav_copy = get_bhav_copy(trade_date= '20231102', instrument = 'ALL')

option_chain = get_option_chain(commodity = 'CRUDEOIL', expiry = '15NOV2023')

cli_details = get_pro_cli_details(trade_month = '202301')

NB: always follow the function hint to apply valid parameter.

More functions will be available in future releases...

How can I contribute?

There are multiple ways in which you can contribute-

Write about your project

There are working on to add many function to this library. mcxlib at the moment is short of good documentation. There are lot of features in mcxlib yet to come :( , so till we complete the documentation, I'll need support from the community.

Please write about your projects in blogs, quora answers and other forums, so that people find working examples to get started.

Raising issues, bugs, enhancement requests

For quick resolution please raise issues both here on issue page. I'll try my best to address the issues quickly on github as and when I get notified, but raising it on stackoverflow will provide you access to a larger group and someone else might solve your problem before I do.

Submit patches

If you have fixed an issue or added a new feature, please fork this repository, make your changes and submit a pull request. Here's good article on how to do this.

Looking forward for healthy participation from community.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

mcxlib-0.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

mcxlib-0.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file mcxlib-0.1.tar.gz.

File metadata

  • Download URL: mcxlib-0.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mcxlib-0.1.tar.gz
Algorithm Hash digest
SHA256 8560caf8c6e2050098d63d58669e157c4976c856834a4100acba08c7f686d09d
MD5 3766b760461fb46678341e96e2aca1f4
BLAKE2b-256 f0e073c7cb1f50db767af481fa5fa0ea5d7e44cea9c914685f88678522a68b28

See more details on using hashes here.

File details

Details for the file mcxlib-0.1-py3-none-any.whl.

File metadata

  • Download URL: mcxlib-0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mcxlib-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5543cb4422cc15d3cbdcddc42c5a01484599eaed5217c6b87e1af65e34c18487
MD5 aa480ef8366e70aba4155f14be64f0d4
BLAKE2b-256 8a00d2ff18e4b1fe835e775e085603b2838f28144b8bd7424b9356ce148548cf

See more details on using hashes here.

Supported by

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