Error while placing order


  • @harish I tried to place the order and it was successful from my side. Below is the code that I used.

            obj = SmartConnect(api_key="API_KEY")
    	data = obj.generateSession("CLIENT_ID","PWD")
    
    	try:
    		orderparams = {
    			"variety": "NORMAL",
    			"tradingsymbol": "SBIN-EQ",
    			"symboltoken": "3045",
    			"transactiontype": "BUY",
    			"exchange": "NSE",
    			"ordertype": "LIMIT",
    			"producttype": "INTRADAY",
    			"duration": "DAY",
    			"price": "195",
    			"squareoff": "0",
    			"stoploss": "0",
    			"quantity": "1"
    			}
    		orderId = obj.placeOrder(orderparams)
    		print("The order id is: {}".format(orderId))
    	except Exception as e:
    		print("Order placement failed: {}".format(e))
    

  • @harish hi harish are you able to stream tick data , if yes could you please let us know how you did that.


  • @rjbanna thanks boss, it worked was using refreshToken which was creating issue after generateSession function.

    Working now👍


  • @dorje Haven't tried steaming data yet will try and let you know if it works.


  • @rjbanna Sir have you tried placing FNO order, getting this error RMS:Field Not Found 63002

    bc27d921-9396-40d5-9675-f9d3a19d8924-image.png


  • @harish I'm able to place the order. I don't see any issues. Make sure you are passing the valid symboltoken and tradingsymbol. I tried with "BANKNIFTY31DEC2028200CE" and "36482" and it was successfully placed.


  • @rjbanna Sir monthly option we are able to place order as you mentioned. But weekly i guess RMS has blocked placing orders or it is still not enabled in the API. Order gets rejected with message "Order Rejected
    RMS:Field Not Found 63002"

    try:
        orderparams = {
            "variety": "NORMAL",
            "tradingsymbol": "BANKNIFTY20D1030000CE",
            "symboltoken": "40919",
            "transactiontype": "BUY",
            "exchange": "NFO",
            "ordertype": "LIMIT",
            "producttype": "INTRADAY",
            "duration": "DAY",
            "price": "250",
            "squareoff": "0",
            "stoploss": "0",
            "quantity": "25"
            }
    

  • @bhaveshjain Sir Kindly check the above issue in weekly option order placing. Orders are getting blocked with error "RMS:Field Not Found 63002". We are able process the orders for monthly futures and options but Index weekly options we are facing issue.


  • @harish I'm able to place the weekly options order for USDINR and it was successfully placed. So I guess Angel has blocked the weekly options for BANKNIFTY as volatility is high currently.


  • getting error while placing order' string indices must be integers.
    using sample.py


  • I am trying to place order from postman. Always I am getting 400 bad request error. I am able to get result from OrderBook API. So access token is correct.

    Below is the request:
    47227944-d1c1-4182-8cd5-2d3a47ba0ca2-image.png

    Headers:

    104faa83-2b5f-4184-a650-b4e46c1cac10-image.png


  • @A111706 did you find solution for 400 Bad request error? Am also facing the same issue. I get this error only in Postman but works good in Python.