mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-31 07:26:44 +00:00
qa/spelling: Add Codespell support (#1121)
* Add codespell support * Fix paths * Add HTML files to exclusion list
This commit is contained in:
@@ -16,7 +16,7 @@ const (
|
||||
zbKlineDataInterval = time.Second * 2
|
||||
zbKlineDataLimit = 1
|
||||
|
||||
// Used to match endpints to rate limits
|
||||
// Used to match endpoints to rate limits
|
||||
klineFunc request.EndpointLimit = iota
|
||||
)
|
||||
|
||||
|
||||
@@ -271,12 +271,12 @@ func (z *ZB) GetSpotKline(ctx context.Context, arg KlinesRequestParams) (KLineRe
|
||||
return res, errors.New("unexpected kline data length")
|
||||
}
|
||||
|
||||
ot, err := convert.TimeFromUnixTimestampFloat(resp.Data[x][0])
|
||||
timestamp, err := convert.TimeFromUnixTimestampFloat(resp.Data[x][0])
|
||||
if err != nil {
|
||||
return res, err
|
||||
}
|
||||
res.Data = append(res.Data, &KLineResponseData{
|
||||
KlineTime: ot,
|
||||
KlineTime: timestamp,
|
||||
Open: resp.Data[x][1],
|
||||
High: resp.Data[x][2],
|
||||
Low: resp.Data[x][3],
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user