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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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