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

@@ -501,9 +501,9 @@ func (z *ZB) SubmitOrder(ctx context.Context, o *order.Submit) (*order.SubmitRes
}
return o.DeriveSubmitResponse(strconv.FormatInt(response.Data.EntrustID, 10))
}
var oT = SpotNewOrderRequestParamsTypeSell
var orderType = SpotNewOrderRequestParamsTypeSell
if o.Side == order.Buy {
oT = SpotNewOrderRequestParamsTypeBuy
orderType = SpotNewOrderRequestParamsTypeBuy
}
fPair, err := z.FormatExchangeCurrency(o.Pair, o.AssetType)
@@ -515,7 +515,7 @@ func (z *ZB) SubmitOrder(ctx context.Context, o *order.Submit) (*order.SubmitRes
Amount: o.Amount,
Price: o.Price,
Symbol: fPair.Lower().String(),
Type: oT,
Type: orderType,
}
var response int64
response, err = z.SpotNewOrder(ctx, params)