logoalt Hacker News

erutoday at 8:27 AM2 repliesview on HN

Wouldn't this need to know what I actually did instead?

When I use it, it tells me that the form was incomplete. I tried to figure out how much I regret having bought 0 bitcoin so far.

Perhaps needs a better error message? I think it actually doesn't like the zero, but prevents it doesn't like incomplete data. Zero is also a number.

> CAUSALITY_ERROR: You cannot SELL before you BUY.

https://en.wikipedia.org/wiki/Short_(finance)

Needs at least a better error message that short sells aren't supported, instead of trying to be too clever by half about causality.


Replies

b0bbitoday at 8:49 AM

Thanks for the "zero", it really does matter in a calculator like this.

Fair point on the shorting - I definitely prioritized retro drama over actual market mechanics there!

b0bbitoday at 10:56 AM

fixed, btw