mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 23:16:53 +00:00
CI/build: Update Go version, linters and fix minor issues (#1473)
* CI/build: Update Go version, linters and fix minor issues * Bump golangci-lint to v1.56.1 * BinanceUS: Make uint usage consistent * Throw blank identifiers into the trash
This commit is contained in:
@@ -1630,12 +1630,12 @@ func (by *Bybit) GetSubUID(ctx context.Context) (*SubUID, error) {
|
||||
// EnableUniversalTransferForSubUID Transfer between sub-sub or main-sub
|
||||
// Use this endpoint to enable a subaccount to take part in a universal transfer. It is a one-time switch which, once thrown, enables a subaccount permanently.
|
||||
// If not set, your subaccount cannot use universal transfers.
|
||||
func (by *Bybit) EnableUniversalTransferForSubUID(ctx context.Context, subMemberIDS ...string) error {
|
||||
if len(subMemberIDS) == 0 {
|
||||
func (by *Bybit) EnableUniversalTransferForSubUID(ctx context.Context, subMemberIDs ...string) error {
|
||||
if len(subMemberIDs) == 0 {
|
||||
return errMembersIDsNotSet
|
||||
}
|
||||
arg := map[string][]string{
|
||||
"subMemberIDs": subMemberIDS,
|
||||
"subMemberIDs": subMemberIDs,
|
||||
}
|
||||
return by.SendAuthHTTPRequestV5(ctx, exchange.RestSpot, http.MethodPost, "/v5/asset/transfer/save-transfer-sub-member", nil, &arg, &struct{}{}, saveTransferSubMemberEPL)
|
||||
}
|
||||
@@ -1995,8 +1995,8 @@ func (by *Bybit) GetSubAccountAllAPIKeys(ctx context.Context, subMemberID, curso
|
||||
}
|
||||
|
||||
// GetUIDWalletType retrieves available wallet types for the master account or sub account
|
||||
func (by *Bybit) GetUIDWalletType(ctx context.Context, memberIDS string) (*WalletType, error) {
|
||||
if memberIDS == "" {
|
||||
func (by *Bybit) GetUIDWalletType(ctx context.Context, memberIDs string) (*WalletType, error) {
|
||||
if memberIDs == "" {
|
||||
return nil, errMembersIDsNotSet
|
||||
}
|
||||
var resp *WalletType
|
||||
|
||||
@@ -1106,8 +1106,8 @@ type TransferResponse struct {
|
||||
|
||||
// SubUID represents a sub-users ID
|
||||
type SubUID struct {
|
||||
SubMemberIds []string `json:"subMemberIds"`
|
||||
TransferableSubMemberIds []string `json:"transferableSubMemberIds"`
|
||||
SubMemberIDs []string `json:"subMemberIds"`
|
||||
TransferableSubMemberIDs []string `json:"transferableSubMemberIds"`
|
||||
}
|
||||
|
||||
// AllowedDepositCoinInfo represents coin deposit information.
|
||||
@@ -1555,7 +1555,7 @@ type CoinRepaymentResponse struct {
|
||||
RepayID string `json:"repayId"`
|
||||
RepayMarginOrderID string `json:"repayMarginOrderId"`
|
||||
RepayTime convert.ExchangeTime `json:"repayTime"`
|
||||
TransactIds []struct {
|
||||
TransactIDs []struct {
|
||||
RepaidAmount types.Number `json:"repaidAmount"`
|
||||
RepaidInterest types.Number `json:"repaidInterest"`
|
||||
RepaidPrincipal types.Number `json:"repaidPrincipal"`
|
||||
|
||||
Reference in New Issue
Block a user