Skip to content

Commit

Permalink
Merge pull request #134 from ranjanrak/update-doc
Browse files Browse the repository at this point in the history
fix: update getting started example for order placement
  • Loading branch information
vividvilla authored Nov 13, 2021
2 parents a6be72a + e896e11 commit f98c414
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions kiteconnect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f98c414

Please sign in to comment.