Skip to content

Commit d456037

Browse files
committed
🧪 test(max): update test for v3 withdrawal history retrieval
1 parent 67add96 commit d456037

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pkg/exchange/max/maxapi/withdrawal_test.go renamed to pkg/exchange/max/maxapi/v3/withdrawal_test.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
package maxapi
1+
package v3
22

33
import (
44
"context"
55
"testing"
66

77
"github.com/stretchr/testify/assert"
88

9+
maxapi "github.com/c9s/bbgo/pkg/exchange/max/maxapi"
910
"github.com/c9s/bbgo/pkg/testutil"
1011
)
1112

@@ -16,10 +17,11 @@ func TestWithdrawal(t *testing.T) {
1617
}
1718

1819
ctx := context.Background()
19-
client := NewRestClientDefault()
20-
client.Auth(key, secret)
20+
legecyClient := maxapi.NewRestClientDefault()
21+
legecyClient.Auth(key, secret)
22+
client := NewClient(legecyClient)
2123

22-
t.Run("v2/withdrawals", func(t *testing.T) {
24+
t.Run("v3/withdrawals", func(t *testing.T) {
2325
req := client.NewGetWithdrawalHistoryRequest()
2426
req.Currency("usdt")
2527
withdrawals, err := req.Do(ctx)

0 commit comments

Comments
 (0)