Skip to content
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

Getting Error when placing order. #37

Open
jayakarthik-devices opened this issue Jan 24, 2022 · 2 comments
Open

Getting Error when placing order. #37

jayakarthik-devices opened this issue Jan 24, 2022 · 2 comments

Comments

@jayakarthik-devices
Copy link

I am getting the below error message when trying to place order. Do anyone faced similar issue earlier and how to fix this issue.

{'status': 'error', 'message': ' is not supported in NFO segment.', 'data': {}}

Below is the script I used to place the order.

sas.place_order(transaction_type = 'BUY',
instrument = sas.get_instrument_for_fno(symbol='NIFTY',
expiry_date=datetime.date(int(2022),int(2),int(24)),
is_fut=False,strike=17400,is_call=False),
quantity = 50,
order_type = 'LIMIT',
product_type = 'D',
price = 420.0,
trigger_price = None,
stop_loss = None,
square_off = None,
trailing_sl = None,
is_amo = False)

@algo2t

@algo2t
Copy link
Owner

algo2t commented Apr 1, 2022

Are you trying to buy PE (put) ? Have you tried to change the product_type to different options like M for Margin

@ramarajusk1308
Copy link

Got below exception while placing sell order :
sas.place_order( transaction_type = 'Sell',
instrument = n_call,
quantity = quantity,
order_type = 'StopLossLimit',
product_type = 'D',
price = entry_price,
trigger_price = limit_price,
stop_loss = None,
square_off = None,
trailing_sl = None,
is_amo = False)

'str' object has no attribute 'value'
Any idea how to resolve this ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants