A utility that parse ZerodhaRMS Consolidated google spreadsheet and render category-wise scrip details(margins, multiplier, etc).
pip install consolidatedrms
from consolidatedrms import ConsolidatedList
ConsolidatedSheet = ConsolidatedList()
ConsolidatedSheet.mis_status()
{'status': 'success', 'data': {'mis_allowed': [{'symbol': '3MINDIA',
'multiplier': '5'}, {'symbol': 'AARTIIND', 'multiplier': '5'},{...}],
'mis_banned': [{'symbol': '21STCENMGM'}, {'symbol': '3IINFOTECH'},{..}]}}
ConsolidatedSheet.mis_margin()
{'status': 'success', 'data': [{'symbol': '3MINDIA', 'var+elm': 40.0,
'mis_margin': 20.0, 'multiplier': 5.0, 'co_lower': 10.0, 'co_upper': 10},
{...}]}
ConsolidatedSheet.mis_boco()
{'status': 'success', 'data': {'boco_allowed': [{'symbol': '3MINDIA'},
{'symbol': 'AARTIIND'}, {'symbol': 'ABB'},{...}]}}
ConsolidatedSheet.trade2trade()
{'status': 'success', 'data': [{'symbol': 'BAFNAPH'},
{'symbol': 'CASTEXTECH'}, {'symbol': 'JIKIND'},..,
{...}]}
ConsolidatedSheet.asm_status()
{'status': 'success', 'data': [{'symbol': '3IINFOTECH'}, {'symbol': 'AARTIDRUGS'},
{'symbol': 'ABAN'},,..{..}]}
ConsolidatedSheet.gsm_status()
{'status': 'success', 'data': [{'symbol': 'ADROITINFO'}, {'symbol': 'ALPSINDUS'},
{'symbol': 'ANKITMETAL'},..,{..}]}
ConsolidatedSheet.fno_margin()
{'status': 'success', 'data': [{'symbol': 'ACC',
'expiry': '30-Jul-2020', 'nrml_margin': 22.06,
'mis_margin': 10.0, 'mis_multiplier': 10.0,
'co_lower': 3.31, 'co_muliplier': 30.22},..,{..}]}