Skip to content

Commit

Permalink
test(integration): v5 get all coins balance
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokisan committed Dec 12, 2023
1 parent 951bde7 commit 5b6f89a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integrationtest/v5/asset/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ func TestGetCoinInfo(t *testing.T) {
func TestGetAllCoinsBalance(t *testing.T) {
client := bybit.NewTestClient().WithAuthFromEnv()
res, err := client.V5().Asset().GetAllCoinsBalance(bybit.V5GetAllCoinsBalanceParam{
Coins: []bybit.Coin{bybit.CoinBTC},
AccountType: bybit.AccountTypeUnified,
Coins: []bybit.Coin{bybit.CoinBTC},
})
require.NoError(t, err)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"memberId": "146940",
"accountType": "UNIFIED",
"balance": [
{
"coin": "BTC",
"transferBalance": "1.16327264",
"walletBalance": "1.16327264",
"bonus": ""
}
]
}

0 comments on commit 5b6f89a

Please sign in to comment.