Hi Team, I am trying to fetch tick data using websockets in java. For gold future contract, the tick price is published in following manner - [com.rainmatter.models.Tick@6745c856]. I am not sure how to read this. Mode used is ltp. Could you please help me in parsing this. Thanks
Check out ticker usage example here.
//Your callback will be some thing like this,
public void onTick(ArrayList<Tick> ticks) {
for(int i = 0; i < ticks.size(); i++){
System.out.println(ticks.get(i).ltp);
}
}
Sorry my bad, variable name in Tick object is lastTradedPrice.
System.out.println(ticks.get(i).getLastTradedPrice());