Readit News logoReadit News
paketick commented on Show HN: Binance Orderbooks Consumer in C++   github.com/xreptoid/viper... · Posted by u/paketick
nly · 2 years ago
Using doubles for crypto prices instead of fixed point seems like a disaster waiting to happen?
paketick · 2 years ago
The orderbook class uses original strings received from the exchange as keys. However, in some places, numbers are compared with a precision of 1e-12 as long doubles. I plan to modify this to use the symbols' price step from exchangeInfo.
paketick commented on Show HN: Binance Orderbooks Consumer in C++   github.com/xreptoid/viper... · Posted by u/paketick
dmaa · 2 years ago
You say realtime feed, but at the same time use the websocket feed that updates every 100ms as your source. Am I missing something?
paketick · 2 years ago
You are correct. When I referred to 'real-time', I meant it in the sense that it is as efficient as consuming data directly from the exchange's WebSocket because, during the consumption stage, data is directly consumed from the exchange, not an intermediate server.

Since Binance only provides 100ms diffs, there isn’t 'real-time' in the sense of receiving each atomic orderbook change. Thank you for your feedback, I changed the description.

paketick commented on Show HN: Binance Orderbooks Consumer in C++   github.com/xreptoid/viper... · Posted by u/paketick
yelnatz · 2 years ago
Windows support soon?
paketick · 2 years ago
Windows will be supported. Not sure when, but likely in a month or two.

u/paketick

KarmaCake day25July 14, 2019View Original