exchanges: Update ModifyOrder comments for clarity (#2044)

Co-authored-by: shazbert <ryan.oharareid@thrasher.io>
This commit is contained in:
Ryan O'Hara-Reid
2025-09-30 11:23:10 +10:00
committed by GitHub
parent b12a274c2c
commit 0b60693ff5
27 changed files with 43 additions and 62 deletions

View File

@@ -99,7 +99,7 @@ if err != nil {
// Handle error
}
// ModifyOrder will allow of changing orderbook placement and limit to market conversion
// ModifyOrder modifies an existing order
updatedOrder, err := ok.ModifyOrder(...)
if err != nil {
// Handle error

View File

@@ -364,7 +364,7 @@ func (e *Exchange) SubmitOrder(ctx context.Context, s *order.Submit) (*order.Sub
return nil, common.ErrNotYetImplemented
}
// ModifyOrder will allow changing of orderbook placements and limit to market conversions
// ModifyOrder modifies an existing order
func (e *Exchange) ModifyOrder(ctx context.Context, action *order.Modify) (*order.ModifyResponse, error) {
if err := action.Validate(); err != nil {
return nil, err