TradeDLR / TrackTrading

GNU General Public License v3.0
1 stars 0 forks source link

Error correction in spot trading #18

Closed DanYuDE closed 10 months ago

DanYuDE commented 11 months ago
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\ create (cr)       -> Create a new order           /
\ cancel (ca)       -> Cancel an existing order     /
\ query (qu)        -> Query details of an order    /
\ open (o)          -> Query open orders            /
\ history (h)       -> Get order history            /
\ quit (Q or q)     -> Quit                         /
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter command: ca
Enter coin: btc
Enter order id: q
Order canceled successfully. {'code': 100400, 'msg': 'strconv.ParseInt: parsing "q": invalid syntax', 'debugMsg': ''}

If the coin's orders exist, list the order IDs in a dictionary or list. Then, allow the user to enter the key or position index to specify which order(s) they wish to cancel. This could be for canceling multiple or all orders.

coldcodeli commented 11 months ago

Need more time for this.

DanYuDE commented 10 months ago

Resolved: Users can now exit the request by pressing 'q.' Additionally, for order cancellations, entering the order ID is no longer necessary; users can simply select the desired order (e.g. 1, 2, 3,...) to cancel.