Better HN
topnewbestaskshowjobs
Log inSign up

cantortrading

84 karma · joined Jan 27, 2022 (4y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

Integer # of exchange ticks would be nice, but that covers a very wide integer range across a lot of products and changes without warning (not to mention, can be inconsistently applied...).

Using base-10 decimals is a good compromise between the perfect solution and something that 'just works'. It also means we don't have to go rewrite everything and instead can just do some optimization work when needed.

2.

Parsing Decimals four times faster(cantortrading.fi ↗)

140 points · by cantortrading · 4y ago · 43 comments