mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-01 15:10:44 +00:00
gateio: add ConvertSmallBalances, GetAccountDetails and GetUserTransactionRateLimitInfo API endpoints (#1889)
* gateio: add function ConvertSmallBalances * glorious/Thrasher: nits/additions * file standard * glorious: nit * AI: nit * boss king: nit * refactor: rename account detail functions and types for consistency --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io> Co-authored-by: Adrian Gallagher <adrian.gallagher@thrasher.io>
This commit is contained in:
@@ -3887,3 +3887,30 @@ func TestDeriveFuturesWebsocketOrderResponses(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestConvertSmallBalances(t *testing.T) {
|
||||
t.Parallel()
|
||||
err := g.ConvertSmallBalances(t.Context(), currency.EMPTYCODE)
|
||||
require.ErrorIs(t, err, currency.ErrCurrencyCodeEmpty)
|
||||
|
||||
sharedtestvalues.SkipTestIfCredentialsUnset(t, g, canManipulateRealOrders)
|
||||
|
||||
err = g.ConvertSmallBalances(t.Context(), currency.F16)
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
func TestGetAccountDetails(t *testing.T) {
|
||||
t.Parallel()
|
||||
sharedtestvalues.SkipTestIfCredentialsUnset(t, g)
|
||||
got, err := g.GetAccountDetails(t.Context())
|
||||
require.NoError(t, err)
|
||||
require.NotEmpty(t, got)
|
||||
}
|
||||
|
||||
func TestGetUserTransactionRateLimitInfo(t *testing.T) {
|
||||
t.Parallel()
|
||||
sharedtestvalues.SkipTestIfCredentialsUnset(t, g)
|
||||
got, err := g.GetUserTransactionRateLimitInfo(t.Context())
|
||||
require.NoError(t, err)
|
||||
require.NotEmpty(t, got)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user