diff --git a/trade.py b/trade.py index d17150e..e490781 100644 --- a/trade.py +++ b/trade.py @@ -8,17 +8,17 @@ kite.set_access_token(open('secret/access_token.txt','r').read()) def order(): - orderid=kite.place_order(tradingsymbol="INFY", - quantity="1", - exchange="NSE", - transaction_type="BUY", - order_type="MARKET", - product="CNC", - validity="DAY", - variety="regular") + orderid=kite.place_order(tradingsymbol = "INFY", + quantity = "1", + exchange = "NSE", + transaction_type = "BUY", + order_type = "MARKET", + product = "CNC", + validity = "DAY", + variety = "regular") print(orderid) order() Lastprice=kite.ltp('NSE:INFY') -print(Lastprice) \ No newline at end of file +print(Lastprice)