D
@admin
Is that update sdk is taking new build from git? if yes, i did same, but still problem exisit.
SmartApi connect = new SmartApi(api_key, JWTToken, RefreshToken);
OutputBaseClass obj = new OutputBaseClass();
//Login by client code and password
obj = connect.GenerateSession(Client_code, Password);
AngelToken agr = obj.TokenResponse;
Console.WriteLine("------GenerateSession call output-------------");
Console.WriteLine(JsonConvert.SerializeObject(agr));
Console.WriteLine("----------------------------------------------");
//Get Token
obj = connect.GenerateToken();
agr = obj.TokenResponse;
Console.WriteLine("------GenerateToken call output-------------");
Console.WriteLine(JsonConvert.SerializeObject(agr));
Console.WriteLine("----------------------------------------------");
//Get Profile
obj = connect.GetProfile();
GetProfileResponse gp = obj.GetProfileResponse;
Console.WriteLine("------GetProfile call output-------------");
Console.WriteLine(JsonConvert.SerializeObject(gp));
Console.WriteLine("----------------------------------------------");
OrderInfo ord = new OrderInfo();
ord.variety = AngelBroking.Constants.VARIETY_NORMAL;
ord.tradingsymbol = "NIFTY11NOV2118100CE";
ord.symboltoken = "50055";
ord.transactiontype = AngelBroking.Constants.TRANSACTION_TYPE_BUY;
ord.exchange = AngelBroking.Constants.EXCHANGE_NFO;
ord.ordertype = AngelBroking.Constants.ORDER_TYPE_MARKET;
ord.producttype = AngelBroking.Constants.PRODUCT_TYPE_CARRYFORWARD;
ord.duration = AngelBroking.Constants.VALIDITY_DAY.ToString();
ord.quantity = 50.ToString();
obj = connect.placeOrder(ord);
OrderResponse Ores = obj.PlaceOrderResponse;
//LogOut
obj = connect.LogOut(Client_code);
LogOutResponse lg = obj.LogOutResponse;
Console.WriteLine("------LogOut call output-------------");
Console.WriteLine(JsonConvert.SerializeObject(lg));
Console.WriteLine("----------------------------------------------");
I am gettiung below response.
{"status":false,"message":"Internal Error","errorcode":"AB2001","data":null}
Please clarify me, as i am spending decernt time to build algos using Angel, but you API or WebSocket not upto the level of my expectation, i am not sure, whether as i doing wrong or, it your API fault.