@nehasrivastava strange it works for me as per expectation
prateekjjw001
@prateekjjw001
Best posts made by prateekjjw001
Latest posts made by prateekjjw001
-
RE: Option sell with stop loss price API
-
RE: Not able to convert position
@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
-
RE: Option sell with stop loss price API
@nehasrivastava you can see here
https://smartapi.angelbroking.com/docs/Orders
triggerprice The price at which an order should be triggered (SL, SL-M) -
RE: Option sell with stop loss price API
@nehasrivastava you need to give params like below:
order_type='STOPLOSS_LIMIT'
variety='STOPLOSS'
triggerprice=sl trigger price
price=limit price (or 0.0 for SL-M order)I did not give anything for "stoploss" and "squareoff" parameter
-
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?
-
Basket order feature?
Can you please add a simple basket order feature so that for placing multiple orders at once (like a straddle) we can do it easily? Currently an API call for placing order takes 1s which is too high.
-
RE: Time delay in placing orders
@daytrader I have also tested it, making an API call for place order or modify order takes almost 1s which is too much. And they do not even have the basket order feature, so for multiple orders, either we have to do serially or use multi threading. It would be good if this much latency could be reduced.
-
RE: SSLError : certificate verify failed: unable to get local issuer certificate (
@daytrader - how to update the cache of certificates locally?
@admin - can you resolve this issue today itself? I am sure lot of users will be unhappy if they face it on Monday. -
Validity of token generated
For how long is the token valid? If I generate it at 9am, then will it be valid till 3.30pm? Or do I need to generate intraday again? Also - the token won't get invalidated if I login on app/website?