-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basket order issue for FNO.... Invalid price type #8
Comments
I'm also facing the same issue |
I will check the issue at my end never tried basket order for Delivery of FnO segment. May be you can try mentioning price as 0.0. |
Have you checked whether this works in AliceBlue API? If yes, please report I will try to fix it here. |
I have tried to apply the fixes please recheck and confirm. Thanks |
Hi @ravi14390 , I tried below and it seems there is some issue in SAS platform not in the API written in this framework. I will try to analyse more and update soon. ins1 = sas.get_instrument_for_fno(symbol = "USDINR", expiry_date=datetime.date(2021,10,14), is_fut=False, strike=75.5, is_call= True, exchange='CDS')
print(ins1)
ins2 = sas.get_instrument_for_fno(symbol = "USDINR", expiry_date=datetime.date(2021,10,14), is_fut=False, strike=75.25, is_call= False, exchange='CDS')
print(ins2)
order1 = { "instrument" : ins1,
"order_type" : OrderType.Limit,
"quantity" : 1,
"price" : 0.08,
"transaction_type" : TransactionType.Buy,
"product_type" : ProductType.Intraday}
order2 = { "instrument" : ins2,
"order_type" : OrderType.Limit,
"quantity" : 1,
"price" : 0.04,
"transaction_type" : TransactionType.Buy,
"product_type" : ProductType.Intraday}
orders = [order1, order2]
print(orders)
print(sas.place_basket_order(orders))
print(sas.get_order_history())
|
I am also facing this issue. Specifying the price as 0 in int or float doesn't resolve the issue. Looks like F&O basket order always throws the error 'Invalid price type'. Thanks. |
Any workaround for this.. send each order one by one ? |
Hi All,
I am not able to place basket order using "sas.place_basket_order(orders)" method. Orders are sent to exchanges but they are getting rejected with error "Invalid price type". When we check order details, "Order Type" is always blank?
Attaching screenshot of order details.
Here is my sample code.
The text was updated successfully, but these errors were encountered: