Package: bdshare
#BdshareA utility for crawling historical and Real-time data from stock exchanges of Bangladesh. At present this utility can collect data from Dhaka stock exchange.ContentsInstallationExample UseList of functionsTodo's and Road Map:QuickstartInstallation$pipinstallbdshareor upgrade$pipinstall-UbdshareExample UseGet DSE last or current trading datafrombdshareimportget_current_trade_datadf=get_current_trade_data()print(df.to_string())frombdshareimportget_current_trade_datadf=get_current_trade_data('GP')# get specific instrument dataprint(df.to_string())Get historical datafrombdshareimportget_hist_datadf=get_hist_data('2022-03-01','2022-03-02')# get all instrument dataprint(df.to_string())orfrombdshareimportget_hist_datadf=get_hist_data('2022-03-01','2022-03-02','ACI')# get specific instrument dataprint(df.to_string())Get OHLCV historical datafrombdshareimportget_basic_hist_datadf=get_basic_hist_data('2022-03-01','2022-03-02')# get all instrument dataprint(df.to_string())orfrombdshareimportget_basic_hist_datadf=get_basic_hist_data('2022-03-01','2022-03-02','GP')# get specific instrument dataprint(df.to_string())Get DSE Index datafrombdshareimportget_market_infdf=get_market_inf()# get last 30 days market dataprint(df.to_string())frombdshareimportget_market_inf_more_datadf=get_market_inf_more_data('2022-03-01','2022-03-02')# get historical market dataprint(df.to_string())Get CSE last or current trading datafrombdshareimportget_cse_current_trade_datadf=get_cse_current_trade_data()# get all instrument dataprint(df.to_string())frombdshareimportget_cse_current_trade_datadf=get_cse_current_trade_data('GP')# get specific instrument dataprint(df.to_string())List of functionsTrading dataFunctionParamsDescriptionget_current_trade_data()get_dsex_data()get_current_trading_code()get_hist_data()get_basic_hist_data()get_close_price_data()get_last_trade_price_data()get_cse_current_trade_data()Trading newsFunctionParamsDescriptionget_agm_news()get_all_news()Market dataFunctionParamsDescriptionget_market_inf()get_latest_pe()get_market_inf_more_data()get_market_depth_data()TODO's and Road Map:refine logic for parametersexamples;DSE daily data and historical data crawlingDSE news,p/e crawlingAdd CSE support for last trading priceAdd DSE Index data supportAdd DSEX Index data supportAdd P/E and historical data scraping form CSEDocumentationComplete documentation can be found atReadthedocs.Contributing to this projectAnyone and everyone is welcome to contribute. Please take a moment to
review theguidelines for contributing.Bug reportsFeature requestsPull requestsChange log[0.5.0] - 2023-12-31Addedn/aChangedn/a[0.4.0] - 2023-03-12Addedn/aChangedchanged package manager[0.3.2] - 2022-10-10Addedn/aChangedn/a[0.3.1] - 2022-06-15Addedn/aChangedn/a[0.2.1] - 2021-08-01AddedChangedget_current_trading_code()[0.2.0] - 2021-06-01Addedadded get_market_depth_dataadded get_dsex_dataadded 'dse.com.bd' as redundantChangedChanged documentationchanged get_agm_newschanged get_all_news[0.1.4] - 2020-08-22Addedadded get_market_inf_more_dataChangedChanged documentation[0.1.3] - 2020-08-20Addedhtml5libadded get paramsChangedpost request to get[0.1.2] - 2020-05-21Addedmodified index declaration[0.1.1] - 2020-05-20Addedmodified index declaration[0.1.0] - 2020-04-08Addedadded git tagVERSION.txtChangedsetup.pyHISTORY.mdtoCHANGELOG.md[0.0.1] - 2020-04-06Addedget_hist_data(), get_current_trade_data()HISTORY.md