@admin Thanks, there was some issue with my code. apologies for inconvenience.
bablujat
@bablujat
Best posts made by bablujat
Latest posts made by bablujat
-
RE: Options buy and sell quatity should be same ?
-
RE: stock option quantity field
Hi @pt4rh3
did you try to close existing position? when i try i it uses quantity as lots but during sell it use it as shares, so during but i have to use 50 (1 lot = 50 shares) and for sell i have to use 1 for quantity -
Options buy and sell quatity should be same ?
Hi,
I was buying options and found that during buy we provide quantity of shares (lots * lotsize), but when i sell that option (to close the existing position) and provided same quantity not it considered lots not shares.for example i brought a put option with 50 shares (1 lot = 50 shares) I have to specify qty: 50 in api request and it buy a 1 lot = 50 shares
but when i try to sell that position with qty: 50 in api request now it will create a order to sell 50 lots (it should be 1 lot similar to buy)Buy payload
{ 'exchange': 'NFO', 'tradingsymbol': 'MARUTI26DEC2412100CE', 'quantity': 50, // this is buying 1 lot (50 shares) 'transactiontype': 'BUY', 'ordertype': 'MARKET', 'variety': 'NORMAL', 'producttype': 'INTRADAY', 'price': '0', 'symboltoken': '111106' }
Sell payload
{ 'exchange': 'NFO', 'tradingsymbol': 'MARUTI26DEC2412100CE', 'quantity': 50, // this is selling 50 lots (it should be 1 lot = 50 shares) 'transactiontype': 'SELL', 'ordertype': 'MARKET', 'variety': 'NORMAL', 'producttype': 'INTRADAY', 'price': '0', 'symboltoken': '111106' }
-
RE: Error while creating ROBO order
@Moderator_3 Is there any way to calculate it ? can you explain with an example that would be very helpful for me.
-
Error while creating ROBO order
For some stocks i am getting following error, but same is working for some stocks
:BO: Upticks and downticks should be greater than given percentage: Absolute Price : 25.32 Tick Size :507 Allowed range ->[0-100: 1.00]\t[100-500: 1.00]\t[500-1000: 3.00]\t[>1000: 3.00]\t:
Request Payload
{ "variety": "ROBO", "ordertype": "LIMIT", "producttype": "INTRADAY", "duration": "DAY", "exchange": "NSE", "tradingsymbol": "ASHOKLEY-EQ", "symboltoken": "212", "transactiontype": "SELL", "quantity": "5", "price": "233.20", "triggerprice": "0", "squareoff": "2.00", "stoploss": "2.00", "ordertag": "ALS", }