Skip to content

Commit

Permalink
pkg/exchange: rm timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
bailantaotao committed Feb 5, 2024
1 parent c73fc65 commit 54784f8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
1 change: 0 additions & 1 deletion pkg/exchange/binance/binanceapi/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ func TestClient_NewTransferAssetRequest(t *testing.T) {
req.FromSymbol("BTCUSDT")
req.ToSymbol("BTCUSDT")
req.Amount("0.01")
req.Timestamp(time.Now())
req.TransferType(TransferAssetTypeIsolatedMarginToMain)
res, err := req.Do(ctx)
assert.NoError(t, err)
Expand Down
4 changes: 0 additions & 4 deletions pkg/exchange/binance/binanceapi/transfer_asset_request.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package binanceapi

import (
"time"

"github.com/c9s/requestgen"
)

Expand All @@ -29,8 +27,6 @@ type TransferAssetRequest struct {

amount string `param:"amount"`

timestamp time.Time `param:"timestamp,milliseconds,query"`

fromSymbol *string `param:"fromSymbol"`
toSymbol *string `param:"toSymbol"`
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 54784f8

Please sign in to comment.