-
Notifications
You must be signed in to change notification settings - Fork 26
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 in place_order in alphatrade 1.0 #63
Comments
order = {'exchange': instrument.exchange, transaction_type needs to be replaced with order_side in place_order method |
Plz try n check solution provided above Or check here |
open alphatrade.py find and replace all transaction_type with order_side and change this code
with this
and in
change order_tag value instead of 'python' to numbers |
I am getting following error respsonse while placing order.
Code:
print(
sas.place_order(transaction_type = TransactionType.Buy,
instrument = sas.get_instrument_by_symbol('NSE', 'INFY'),
quantity = 1,
order_type = OrderType.Market,
product_type = ProductType.Delivery,
price = 0.0,
trigger_price = 0.0,
stop_loss = None,
square_off = None,
trailing_sl = None,
is_amo = False)
)
Error:
HTTPError: {"data":{},"error_code":44000,"message":"
order_side
can't be blank","status":"error"}The text was updated successfully, but these errors were encountered: