websocket full mode

rohit3389
following is my Request structure code for FULL Mode
String jsonString = null;
try
{
JSONObject object = new JSONObject();
object.put("a", "mode");

JSONArray vArray = new JSONArray();
vArray.put("full");

JSONArray instrumentArray = new JSONArray();
instrumentArray.put(instrumentToken);
vArray.put(instrumentArray);

object.put("v", vArray);
jsonString = object.toString();
}
catch (JSONException e)
{
e.printStackTrace();
}

log.info(symbol+" MODE instrumentToken "+instrumentToken+" "+jsonString);

if is apply for FULL mode i expected to receive 188 Bytes, but i receive 48 Bytes.
  • sujith
    By default, all new token subscription is in quote mode. You need to subscribe and then send a second request for setting mode to full mode.
Sign In or Register to comment.