Qsilver97 / Qwallet

Easy to use end user wallet for Qubic
3 stars 6 forks source link

UI QX support #30

Open Qsilver97 opened 1 month ago

Qsilver97 commented 1 month ago

QX tokenlist to select what to trade showing orderbook making buy/sell orders, cancelling etc.

Qsilver97 commented 1 month ago

More details on what is needed.

  1. Display a list of assets that are available for trading. wss tokenlist command returns this
  2. 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.
  3. Using this approach, we should default the trading page to open to QWALLET token
  4. 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
  5. buy and sell orders act like a normal send tx, for status and automatic resend
  6. Eventually there will be price history available via wss: history name
  7. 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
Qsilver97 commented 1 month ago

Another feature of the trading page.

  1. 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.
  2. 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)
  3. Finally there would be a global cancel all buys, cancel all sells and cancel all orders. not sure where this all would go