getting some strange data on websocket after making trade

chaudhariapurva
hi,
I have a desktop app that gets stock quote from web-socket then it alerts me to buy or sell .wen i execute the order I get some strange data on web-socket

the raw data is
binary {byte[15]} byte[]
[0] 123 byte
[1] 34 byte
[2] 116 byte
[3] 34 byte
[4] 58 byte
[5] 49 byte
[6] 48 byte
[7] 44 byte
[8] 34 byte
[9] 112 byte
[10] 34 byte
[11] 58 byte
[12] 34 byte
[13] 34 byte
[14] 125 byte
what is this there is nothing mentioned in doc about this????
kindly clear the following issue
  • chaudhariapurva
    It is always of 15 byte length
  • Kailash
    Have you tried casting these to ints? These could be cached values.
  • chaudhariapurva
    NO,i had requested full mode data for 2 tickers (sorry for not mentioning earlier) .So i should only get 164 bytes +164 bytes + 2+2+2 and which pkt is 15 bytes??
    If mode is ltp then the bytes should be 2+2+8=12
  • Kailash
    @chaudhariapurva Looking into this.
  • chaudhariapurva
    any update????
  • Kailash
    @chaudhariapurva We've been logging packets but haven't come across this anomaly yet.
  • Shabeershah2002
    Shabeershah2002 edited July 2016
    Not sure where you guys have reached by this post, whether Chaudhari has got solution or not, as i haven't seen any update from Kite team nor Chaudhari
    I am also getting some strange data each time after placing an order for any symbol !,
    For some clarity here i am providing some more info what strange behavior i can see at my end :
    I am streaming VEDL (784129) and ASHOKLEY (54273) , placed a buy order for VEDL and got response 'success' , as soon as this happened VEDL Last_Trade_Price changed to 20971683.3, AHOKLEY 'Last_Trade_Price' changed to 20971611.7 and instrument token for both changed to 975188272 , after few seconds it returned to normal price and instrument token ,
    to check whether the instru Token is same for all symbol i kept opened couple more quote subscriptions and placed an order again , below are the symbols and the values showing after order placed

    Symbol - Last T Price - Instru Token
    VEDL - 20971683.3 - 975188272
    TATAPOWER - 20971591.6 - 975188272
    ASHOKLEY - 20971611.7 - 975188272
    RPOWER - 20971571.8 - 975188272
    TATASTEEL - 20971892.9 - 975188272
    INFY - 20972592.5 - 975188272


    any idea why this happens ?
  • Kailash
    @Shabeershah2002 The messages you're receiving right after placing orders may be signals, which you can ignore. You should only process WebSocket messages of type 'binary'.
Sign In or Register to comment.