logoalt Hacker News

nly • yesterday at 5:51 PM • 0 replies • view on HN

I've worked at 3 separate trading firms, each making millions or billions in profit yearly, that just use doubles for prices and cash quantities internally.

Just before you send something on the wire you just make sure you serialize (part of which is rounding) to the appropriate tick size.

Generally speaking tick sizes (cents, valid trade price increments, whatever) are many orders of magnitude greater than any possible calculation error, so rounding to the nearest tick just works