Not able to convert position
-
I am trying to convert "SILVERMIC" futures from carry forward to Intraday but it is not working.
pos=obj.position()['data'] silver=[p for p in pos if p['symbolname']=='SILVERMIC'][0] params={ "exchange": "MCX", "symboltoken": silver['symboltoken'], "producttype": "CARRYFORWARD", "newproducttype": "INTRADAY", "tradingsymbol": silver['symbolname'], "symbolname": silver['symbolname'], "instrumenttype": silver['instrumenttype'], "priceden": "1", "pricenum": "1", "genden": "1", "gennum": "1", "precision": "2", "multiplier": "-1", "boardlotsize": "1", "type": "DAY", "cfbuyqty": silver['cfbuyqty'], "cfsellqty": silver['cfsellqty'], "netqty": silver['netqty'] } x=obj.convertPosition(params) print(x)
I get below error:
{'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}What am I missing here?
-
HI @prateekjjw001 , as discussed over call the issue is resolved.
-
@admin hi any help here please? Pls ignore a typo in above code, I tried below:
pos=obj.position()['data'] silver=[p for p in pos if p['symbolname']=='SILVERMIC'][0] params={ "exchange": "MCX", "symboltoken": silver['symboltoken'], "producttype": "CARRYFORWARD", "newproducttype": "INTRADAY", "tradingsymbol": silver['tradingsymbol'], "symbolname": silver['symbolname'], "instrumenttype": silver['instrumenttype'], "priceden": "1", "pricenum": "1", "genden": "1", "gennum": "1", "precision": "2", "multiplier": "-1", "boardlotsize": "1", "type": "DAY", "cfbuyqty": silver['cfbuyqty'], "cfsellqty": silver['cfsellqty'], "netqty": silver['netqty'] } x=obj.convertPosition(params) print(x)
but it gives same error