Python connecting API through requests

zr7952
Dear Team,

Can i use the order placement like below ? If yes how can i place nifty option and exit condition too

payload = {
"api_key": "yyyyyyyyyyyyyyyyyyyyy",
"access_token": "xxxxxxxxxxxxxxxxxxxxxxxxx",
"tradingsymbol": symb,
"exchange": "NSE",
"transaction_type": "BUY",
"order_type": "MARKET",
"quantity": "50",
"product": "MIS",
"validity": "DAY"
}


response = requests.post("https://api.kite.trade/orders/regular", data=payload,timeout=None)
Sign In or Register to comment.