Data format issue with websocket V2 version
-
@admin
This is the data am receiving from websocket V2, after including the change suggested by @rajanprabu.The data seems to be not in proper format. "exchange_timestamp": 1668665016000. How should i decode it..
and the prices of tickers are not showing the decimal values. its showing as integer value.. including decimal points.Please fix the issues ASAP.
-
@vrkhyd This is how it was defined in the spec document. not an issue.
For price you can divide by 100. below is from the V2 doc.
"All prices are in paise. For currencies, the int 32 price values should be divided by 10000000.0 to obtain four decimal places. For everything else, the price values should be divided by 100."
For the timestamp, it is in the format of epoch millisecond.
Eg: datetime.fromtimestamp(1668665016777/1000)
Regards
Ashok. -
@Ashok
Thank you Ashok.
Could get the formats right. -
@Ashok
Where is the V2 document that u are mentioning here, can you share the link ? -
@laskshmi
its available here.
Websocket 2.0 Documentation https://drive.google.com/drive/u/1/folders/1GMwTMfxRdiloUziV4DYwlYchGXbOvTfL