Open syedasif11 opened 10 months ago
Dear Client,
Could you please share the code snippet without credentials.
Hi,
I am just printing the tick received from ICICI:
public void onTick(Object args) {
System.out.println(args);
}
void connectTicker() {
this.breezeConnect.connectTicker();
try {
this.breezeConnect.registerOnTickEventListener(new OnTickEventListener() {
@Override
public void onTickEvent(Object args) {
try {
onTick(args);
} catch (Exception e) {
e.printStackTrace();
System.out.println(e.getMessage());
}
}
});
} catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
}
}
Dear Client,
Could you please share the code snippet without credentials.
Hi it has code bug in sdk and method name is getDataFromStockTokenValue
There is some error in parsing the tick data for options. Here is the response for one of the ticks:
{sPrice=27.3, upperCktLm=210.05, ttv=7.49C, strike_date=2023:CE:1935000-nul, exchange=NSE Futures & Options, CHNGOI=, ttq=2125000, totalSellQ=83850, bQty=1950, OI=596850, last=27.2, avgPrice=35.26, high=49.25, totalBuyQt=84850, change=-44.15, open=38, close=48.7, stock_name=NIFTY 50, quotes=Quotes Data, symbol=4.1!42686, trend=, ltt=Wed Nov 01 14:35:37 2023, ltq=50, sQty=4700, bPrice=27.15, lowerCktLm=0.05, low=25.25}
Look at this:
strike_date=2023:CE:1935000-nul,
. This doesn't make sense.