PlaceOrder API does not work for SBIN-EQ/BUY/MARKET/MARGIN/DAY
-
I get this error when I placeorder
------placeOrder call output-------------
{"status":false,"message":"Internal Error","errorcode":"AB2001","data":null}The same inputs work on the trading portal(https://trade.angelbroking.com/)
This is my code:
//Place Order
OrderInfo ord = new OrderInfo();
ord.variety = Constants.VARIETY_NORMAL;
ord.tradingsymbol = "SBIN-EQ";
ord.symboltoken = "3045";
ord.transactiontype = Constants.TRANSACTION_TYPE_BUY;
ord.exchange = Constants.EXCHANGE_NSE;
ord.ordertype = Constants.ORDER_TYPE_MARKET;
ord.producttype = Constants.PRODUCT_TYPE_MARGIN;
ord.duration = Constants.VALIDITY_DAY.ToString();
//ord.price = "469";
//ord.squareoff = "0";
//ord.stoploss = "0";
//ord.quantity = "1";
//ord.triggerprice = "0"; //OPTIONAL PARAMETER
//ord.triggerprice = "350"; //OPTIONAL PARAMETERobj = connect.placeOrder(ord); OrderResponse Ores = obj.PlaceOrderResponse;
-
Hi @skgkrish Please recheck the parameter and execute the order again.