qa/spelling: Add Codespell support (#1121)

* Add codespell support

* Fix paths

* Add HTML files to exclusion list
This commit is contained in:
Adrian Gallagher
2023-01-30 12:36:56 +11:00
committed by GitHub
parent c785ae73a7
commit a79e0d2b3e
108 changed files with 359 additions and 318 deletions

View File

@@ -476,15 +476,15 @@ func (e *EXMO) SubmitOrder(ctx context.Context, s *order.Submit) (*order.SubmitR
return nil, err
}
var oT string
var orderType string
switch s.Type {
case order.Limit:
return nil, errors.New("unsupported order type")
case order.Market:
if s.Side == order.Sell {
oT = "market_sell"
orderType = "market_sell"
} else {
oT = "market_buy"
orderType = "market_buy"
}
}
@@ -493,7 +493,7 @@ func (e *EXMO) SubmitOrder(ctx context.Context, s *order.Submit) (*order.SubmitR
return nil, err
}
response, err := e.CreateOrder(ctx, fPair.String(), oT, s.Price, s.Amount)
response, err := e.CreateOrder(ctx, fPair.String(), orderType, s.Price, s.Amount)
if err != nil {
return nil, err
}