@admin any update this ?
R
rajbahadur
@rajbahadur
0
Reputation
6
Posts
1
Profile views
0
Followers
0
Following
Best posts made by rajbahadur
This user hasn't posted anything yet.
Latest posts made by rajbahadur
-
RE: Websocket Order Status
@admin Here is my code
//register websocket smartWebsocket = new SmartWebsocket(AngelBrokingConstant.CLIENT_ID, user.getAccessToken(), AngelBrokingConstant.API_KEY, "subscribe", "order_feed"); smartWebsocket.setOnTickerArrivalListener(this); smartWebsocket.setOnDisconnectedListener(this); smartWebsocket.setOnConnectedListener(this); smartWebsocket.connect();
/// AND
@Override public void onTicks(JSONArray jsonArray) { System.out.println(" On Ticks " + jsonArray); } @Override public void onConnected() { System.out.println("Web:socket connected."); smartWebsocket.runscript(); System.out.println("WS connection is " + this.smartWebsocket.isConnectionOpen()); } @Override public void onDisconnected() { System.out.println("Web:socket is disconnected."); }
-
RE: Websocket Order Status
@admin Does Websocket Order Status API in Java work? I am able to successfully subscribe to the order feed but do not get any callback/update when I place the order.
-
RE: Not able to place AMO order
@admin Not able to place AMO order. Always getting 400 ( Bad request )
Params are
{"quantity":25,"triggerprice":"0","squareoff":"0","stoploss":"0","transactiontype":"BUY","producttype":"NRML","duration":"DAY","variety":"amo","price":0,"tradingsymbol":"BANKNIFTY01JUL2132500PE","exchange":"NFO","symboltoken":"52193","ordertype":"MARKET"}