Display a list of assets that are available for trading. wss tokenlist command returns this
When a token is selected for trading to open a trading page. Maybe can just have the list of tokens as a horizontal set of links at the top of page and clicking on the link changes the trading page to the selected one.
Using this approach, we should default the trading page to open to QWALLET token
The trading page itself would show the orderbook and allow the user to input buy or sell orders. There will be price and volume parameters for buy/sell. When user submits trade order, wasm is called:
buy password,index,txtick,name,amount,price
sell password,index,txtick,name,amount,price
buy and sell orders act like a normal send tx, for status and automatic resend
Eventually there will be price history available via wss: history name
each quote will include the address of who made the order, for now it is not detected which ones belong to the user, not sure this is necessary, maybe we have a page with the open orders for a user to have it all in one place and by displaying the address of each bid/ask the user can tell which orders are theirs
cancel order. for all orders with address of the user, a X box should appear. clicking on that would cancel that order. The mechanism to cancel it will be to issue a cancelbuy or cancelsell wasm command.
There should also be a button to cancel all orders for a specific token on the page (cancel all bids, cancel all asks, cancel all)
Finally there would be a global cancel all buys, cancel all sells and cancel all orders. not sure where this all would go
QX tokenlist to select what to trade showing orderbook making buy/sell orders, cancelling etc.