algo2t / alphatrade

Python APIs for SAS Online Alpha Trade Web platform for creating algo trading using python
https://algo2t.github.io/alphatrade
MIT License
44 stars 23 forks source link

Not able to Place Equity Plus Order for Delivery. #42

Open mrsprawin opened 1 year ago

mrsprawin commented 1 year ago

While i try to place Delivery order, it is only placing CNC order. How do i make it to take it as NRML order so that order is placed under Equity Plus feature utilising margin of 2-4 times?

`sas.place_order(transaction_type = TransactionType.Buy,
                     instrument = sas.get_instrument_by_symbol('NSE', "PHOENIXLTD"),
                     quantity = 1,
                     order_type = OrderType.Market,
                     product_type = ProductType.Delivery,
                     price = 0.0,
                     trigger_price = None,
                     stop_loss = None,
                     square_off = None,
                     trailing_sl = None,
                     is_amo = False)`

What changes should i make to this order placement code for placing delivery order as NRML?