File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
pkg/exchange/max/maxapi/v3 Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- package maxapi
1+ package v3
22
33import (
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 )
You can’t perform that action at this time.
0 commit comments