mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Okx: Fix GetFundingRateHistory limit (#1204)
Fix limit of 100 rejected Allow a limit of 0 for using the default value of limit (currently 100).
This commit is contained in:
@@ -3466,9 +3466,9 @@ func (ok *Okx) GetFundingRateHistory(ctx context.Context, instrumentID string, b
|
||||
if !after.IsZero() {
|
||||
params.Set("after", strconv.FormatInt(after.UnixMilli(), 10))
|
||||
}
|
||||
if limit > 0 && limit < 100 {
|
||||
if limit > 0 && limit <= 100 {
|
||||
params.Set("limit", strconv.FormatInt(limit, 10))
|
||||
} else {
|
||||
} else if limit > 100 {
|
||||
return nil, errLimitValueExceedsMaxOf100
|
||||
}
|
||||
var resp []FundingRateResponse
|
||||
|
||||
Reference in New Issue
Block a user