You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
We are doing data["timestamp"] = json!(reader.read_i32::<BigEndian>().unwrap() as f64 / divisor); which will read the next 4bytes after the close value which is change instead of timestamp timestamp is the next 4bytes after change
So it should be something like
data["change"] = json!(reader.read_i32::<BigEndian>().unwrap() as f64 / divisor);
// and then
if packet_length == 32 { // timestamp incase of full
data["timestamp"] = json!(reader.read_i32::<BigEndian>().unwrap() as f64 / divisor);
}
Reference
The text was updated successfully, but these errors were encountered:
In
kiteconnect-rs/src/ticker.rs
Line 242 in 7fdd0a1
We are doing
data["timestamp"] = json!(reader.read_i32::<BigEndian>().unwrap() as f64 / divisor);
which will read the next4bytes
after theclose
value which ischange
instead oftimestamp
timestamp
is the next4bytes
afterchange
So it should be something like
Reference
The text was updated successfully, but these errors were encountered: