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
- requests
- numpy
- pandas
- lxml
For Windows systems you can install Anaconda, this will cover many dependencies (You'll have to install requests additionally though)
Fresh installation
$pip install mcxlib
Upgrade
$pip install mcxlib --upgrade
- 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...
There are multiple ways in which you can contribute-
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.
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.
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.