exchange
exchange copied to clipboard
Order Form
Preview
TODO
- [ ] Write tests.
in progress
- [ ] Order type (Limit/Market/Stop/Stop-Limit).
- [ ] Copy an open order from order book.
- [ ] Validate balances before place an order.
- [ ] Prevent invalid inputs (vue-the-mask).
in progress
- [x] Order action (buy/sell).
- [x] Calculate Total, when type Amount or Price.
- [x] Calculate Amount, when type Total.
- [x] Set Price field to current highest pair bid (buy).
- [x] Set Price field to current lowest pair ask (sell).
- [x] Calculate max Amount using available balance.
- [x] Calculate max Total using available balance.