mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 15:10:49 +00:00
orders: Add derive modify struct method from order.Detail (#948)
* orders: Add derive modify struct method to order.Detail and then subsequent method to derive and standardize response details * exchanges: call modify method in wrappers * linter: fixes * engine/wsroutineman: remove print summary * glorious: nits, removed modifyOrder functionality for Bithumb. There are not docs to support this. * Update exchanges/order/orders.go Co-authored-by: Scott <gloriousCode@users.noreply.github.com> * glorious: nits Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
This commit is contained in:
@@ -194,7 +194,7 @@ func (c *COINUT) wsHandleData(ctx context.Context, respRaw []byte) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
c.Websocket.DataHandler <- &order.Modify{
|
||||
c.Websocket.DataHandler <- &order.Detail{
|
||||
Exchange: c.Name,
|
||||
ID: strconv.FormatInt(cancel.OrderID, 10),
|
||||
Status: order.Cancelled,
|
||||
@@ -208,7 +208,7 @@ func (c *COINUT) wsHandleData(ctx context.Context, respRaw []byte) error {
|
||||
return err
|
||||
}
|
||||
for i := range cancels.Results {
|
||||
c.Websocket.DataHandler <- &order.Modify{
|
||||
c.Websocket.DataHandler <- &order.Detail{
|
||||
Exchange: c.Name,
|
||||
ID: strconv.FormatInt(cancels.Results[i].OrderID, 10),
|
||||
Status: order.Cancelled,
|
||||
|
||||
@@ -679,7 +679,7 @@ func (c *COINUT) SubmitOrder(ctx context.Context, o *order.Submit) (order.Submit
|
||||
|
||||
// ModifyOrder will allow of changing orderbook placement and limit to
|
||||
// market conversion
|
||||
func (c *COINUT) ModifyOrder(_ context.Context, _ *order.Modify) (*order.Modify, error) {
|
||||
func (c *COINUT) ModifyOrder(_ context.Context, _ *order.Modify) (*order.ModifyResponse, error) {
|
||||
return nil, common.ErrFunctionNotSupported
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user