diff --git a/README.md b/README.md index 0e916d46..26cc5289 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,8 @@ try: quantity=1, variety=kite.VARIETY_AMO, order_type=kite.ORDER_TYPE_MARKET, - product=kite.PRODUCT_NRML) + product=kite.PRODUCT_CNC, + validity=kite.VALIDITY_DAY) logging.info("Order placed. ID is: {}".format(order_id)) except Exception as e: diff --git a/kiteconnect/__init__.py b/kiteconnect/__init__.py index c2b414e0..9f388fb5 100644 --- a/kiteconnect/__init__.py +++ b/kiteconnect/__init__.py @@ -43,12 +43,14 @@ # Place an order try: - order_id = kite.place_order(tradingsymbol="INFY", + order_id = kite.place_order(variety=kite.VARIETY_REGULAR, + tradingsymbol="INFY", exchange=kite.EXCHANGE_NSE, transaction_type=kite.TRANSACTION_TYPE_BUY, quantity=1, order_type=kite.ORDER_TYPE_MARKET, - product=kite.PRODUCT_NRML) + product=kite.PRODUCT_CNC, + validity=kite.VALIDITY_DAY) logging.info("Order placed. ID is: {}".format(order_id)) except Exception as e: