mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-01 07:26:48 +00:00
qa/spelling: Add Codespell support (#1121)
* Add codespell support * Fix paths * Add HTML files to exclusion list
This commit is contained in:
@@ -813,7 +813,7 @@ func (b *Bitfinex) GetTrades(ctx context.Context, currencyPair string, limit, ti
|
||||
return history, nil
|
||||
}
|
||||
|
||||
// GetOrderbook retieves the orderbook bid and ask price points for a currency
|
||||
// GetOrderbook retrieves the orderbook bid and ask price points for a currency
|
||||
// pair - By default the response will return 25 bid and 25 ask price points.
|
||||
// symbol - Example "tBTCUSD"
|
||||
// precision - P0,P1,P2,P3,R0
|
||||
@@ -1078,7 +1078,7 @@ func (b *Bitfinex) GetCandles(ctx context.Context, symbol, timeFrame string, sta
|
||||
return []Candle{c}, nil
|
||||
}
|
||||
|
||||
// GetConfigurations fetchs currency and symbol site configuration data.
|
||||
// GetConfigurations fetches currency and symbol site configuration data.
|
||||
func (b *Bitfinex) GetConfigurations() error {
|
||||
return common.ErrNotYetImplemented
|
||||
}
|
||||
@@ -1808,7 +1808,7 @@ func (b *Bitfinex) SendHTTPRequest(ctx context.Context, ep exchange.URL, path st
|
||||
})
|
||||
}
|
||||
|
||||
// SendAuthenticatedHTTPRequest sends an autheticated http request and json
|
||||
// SendAuthenticatedHTTPRequest sends an authenticated http request and json
|
||||
// unmarshals result to a supplied variable
|
||||
func (b *Bitfinex) SendAuthenticatedHTTPRequest(ctx context.Context, ep exchange.URL, method, path string, params map[string]interface{}, result interface{}, endpoint request.EndpointLimit) error {
|
||||
creds, err := b.GetCredentials(ctx)
|
||||
@@ -1862,7 +1862,7 @@ func (b *Bitfinex) SendAuthenticatedHTTPRequest(ctx context.Context, ep exchange
|
||||
})
|
||||
}
|
||||
|
||||
// SendAuthenticatedHTTPRequestV2 sends an autheticated http request and json
|
||||
// SendAuthenticatedHTTPRequestV2 sends an authenticated http request and json
|
||||
// unmarshals result to a supplied variable
|
||||
func (b *Bitfinex) SendAuthenticatedHTTPRequestV2(ctx context.Context, ep exchange.URL, method, path string, params map[string]interface{}, result interface{}, endpoint request.EndpointLimit) error {
|
||||
creds, err := b.GetCredentials(ctx)
|
||||
|
||||
@@ -1600,7 +1600,7 @@ func (b *Bitfinex) Unsubscribe(channelsToUnsubscribe []stream.ChannelSubscriptio
|
||||
return nil
|
||||
}
|
||||
|
||||
// WsSendAuth sends a autheticated event payload
|
||||
// WsSendAuth sends a authenticated event payload
|
||||
func (b *Bitfinex) WsSendAuth(ctx context.Context) error {
|
||||
creds, err := b.GetCredentials(ctx)
|
||||
if err != nil {
|
||||
|
||||
@@ -1026,7 +1026,7 @@ func (b *Bitfinex) GetOrderHistory(ctx context.Context, req *order.GetOrdersRequ
|
||||
orderDetail.Status = order.UnknownStatus
|
||||
}
|
||||
|
||||
// API docs discrepency. Example contains prefixed "exchange "
|
||||
// API docs discrepancy. Example contains prefixed "exchange "
|
||||
// Return type suggests “market” / “limit” / “stop” / “trailing-stop”
|
||||
orderType := strings.Replace(resp[i].Type, "exchange ", "", 1)
|
||||
if orderType == "trailing-stop" {
|
||||
|
||||
@@ -20,8 +20,8 @@ const (
|
||||
statsReqRate = 90
|
||||
candleReqRate = 60
|
||||
configsReqRate = 15
|
||||
statusReqRate = 15 // This is not specified just inputed WCS
|
||||
liquidReqRate = 15 // This is not specified just inputed WCS
|
||||
statusReqRate = 15 // This is not specified just inputted WCS
|
||||
liquidReqRate = 15 // This is not specified just inputted WCS
|
||||
leaderBoardReqRate = 90
|
||||
marketAveragePriceReqRate = 20
|
||||
fxReqRate = 20
|
||||
@@ -32,11 +32,11 @@ const (
|
||||
accountWalletHistoryReqRate = 45
|
||||
// Orders -
|
||||
retrieveOrderReqRate = 45
|
||||
submitOrderReqRate = 45 // This is not specified just inputed above
|
||||
updateOrderReqRate = 45 // This is not specified just inputed above
|
||||
cancelOrderReqRate = 45 // This is not specified just inputed above
|
||||
orderBatchReqRate = 45 // This is not specified just inputed above
|
||||
cancelBatchReqRate = 45 // This is not specified just inputed above
|
||||
submitOrderReqRate = 45 // This is not specified just inputted above
|
||||
updateOrderReqRate = 45 // This is not specified just inputted above
|
||||
cancelOrderReqRate = 45 // This is not specified just inputted above
|
||||
orderBatchReqRate = 45 // This is not specified just inputted above
|
||||
cancelBatchReqRate = 45 // This is not specified just inputted above
|
||||
orderHistoryReqRate = 45
|
||||
getOrderTradesReqRate = 45
|
||||
getTradesReqRate = 45
|
||||
@@ -44,19 +44,19 @@ const (
|
||||
// Positions -
|
||||
getAccountMarginInfoReqRate = 45
|
||||
getActivePositionsReqRate = 45
|
||||
claimPositionReqRate = 45 // This is not specified just inputed above
|
||||
claimPositionReqRate = 45 // This is not specified just inputted above
|
||||
getPositionHistoryReqRate = 45
|
||||
getPositionAuditReqRate = 45
|
||||
updateCollateralOnPositionReqRate = 45 // This is not specified just inputed above
|
||||
updateCollateralOnPositionReqRate = 45 // This is not specified just inputted above
|
||||
// Margin funding -
|
||||
getMarginInfoRate = 90
|
||||
getActiveFundingOffersReqRate = 45
|
||||
submitFundingOfferReqRate = 45 // This is not specified just inputed above
|
||||
submitFundingOfferReqRate = 45 // This is not specified just inputted above
|
||||
cancelFundingOfferReqRate = 45
|
||||
cancelAllFundingOfferReqRate = 45 // This is not specified just inputed above
|
||||
closeFundingReqRate = 45 // This is not specified just inputed above
|
||||
fundingAutoRenewReqRate = 45 // This is not specified just inputed above
|
||||
keepFundingReqRate = 45 // This is not specified just inputed above
|
||||
cancelAllFundingOfferReqRate = 45 // This is not specified just inputted above
|
||||
closeFundingReqRate = 45 // This is not specified just inputted above
|
||||
fundingAutoRenewReqRate = 45 // This is not specified just inputted above
|
||||
keepFundingReqRate = 45 // This is not specified just inputted above
|
||||
getOffersHistoryReqRate = 45
|
||||
getFundingLoansReqRate = 45
|
||||
getFundingLoanHistoryReqRate = 45
|
||||
@@ -66,29 +66,29 @@ const (
|
||||
getFundingInfoReqRate = 45
|
||||
// Account actions
|
||||
getUserInfoReqRate = 45
|
||||
transferBetweenWalletsReqRate = 45 // This is not specified just inputed above
|
||||
getDepositAddressReqRate = 45 // This is not specified just inputed above
|
||||
withdrawalReqRate = 45 // This is not specified just inputed above
|
||||
transferBetweenWalletsReqRate = 45 // This is not specified just inputted above
|
||||
getDepositAddressReqRate = 45 // This is not specified just inputted above
|
||||
withdrawalReqRate = 45 // This is not specified just inputted above
|
||||
getMovementsReqRate = 45
|
||||
getAlertListReqRate = 45
|
||||
setPriceAlertReqRate = 45 // This is not specified just inputed above
|
||||
deletePriceAlertReqRate = 45 // This is not specified just inputed above
|
||||
setPriceAlertReqRate = 45 // This is not specified just inputted above
|
||||
deletePriceAlertReqRate = 45 // This is not specified just inputted above
|
||||
getBalanceForOrdersOffersReqRate = 30
|
||||
userSettingsWriteReqRate = 45 // This is not specified just inputed general count
|
||||
userSettingsWriteReqRate = 45 // This is not specified just inputted general count
|
||||
userSettingsReadReqRate = 45
|
||||
userSettingsDeleteReqRate = 45 // This is not specified just inputed above
|
||||
userSettingsDeleteReqRate = 45 // This is not specified just inputted above
|
||||
// Account V1 endpoints
|
||||
getAccountFeesReqRate = 5
|
||||
getWithdrawalFeesReqRate = 5
|
||||
getAccountSummaryReqRate = 5 // This is not specified just inputed above
|
||||
newDepositAddressReqRate = 5 // This is not specified just inputed above
|
||||
getKeyPermissionsReqRate = 5 // This is not specified just inputed above
|
||||
getMarginInfoReqRate = 5 // This is not specified just inputed above
|
||||
getAccountSummaryReqRate = 5 // This is not specified just inputted above
|
||||
newDepositAddressReqRate = 5 // This is not specified just inputted above
|
||||
getKeyPermissionsReqRate = 5 // This is not specified just inputted above
|
||||
getMarginInfoReqRate = 5 // This is not specified just inputted above
|
||||
getAccountBalanceReqRate = 10
|
||||
walletTransferReqRate = 10 // This is not specified just inputed above
|
||||
withdrawV1ReqRate = 10 // This is not specified just inputed above
|
||||
orderV1ReqRate = 10 // This is not specified just inputed above
|
||||
orderMultiReqRate = 10 // This is not specified just inputed above
|
||||
walletTransferReqRate = 10 // This is not specified just inputted above
|
||||
withdrawV1ReqRate = 10 // This is not specified just inputted above
|
||||
orderV1ReqRate = 10 // This is not specified just inputted above
|
||||
orderMultiReqRate = 10 // This is not specified just inputted above
|
||||
statsV1ReqRate = 10
|
||||
fundingbookReqRate = 15
|
||||
lendsReqRate = 30
|
||||
|
||||
Reference in New Issue
Block a user