Skip to content

Commit

Permalink
Merge pull request #1679 from c9s/c9s/xalign/notification
Browse files Browse the repository at this point in the history
FIX: [xalign] fix max withdraw history api query
  • Loading branch information
c9s authored Aug 2, 2024
2 parents 22fa8d5 + 9733691 commit 00091e1
Show file tree
Hide file tree
Showing 9 changed files with 492 additions and 43 deletions.
6 changes: 3 additions & 3 deletions pkg/exchange/max/maxapi/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ type Withdraw struct {
Notes string `json:"notes"`
}

//go:generate GetRequest -url "v2/withdrawals" -type GetWithdrawHistoryRequest -responseType []Withdraw
//go:generate GetRequest -url "v3/withdrawals" -type GetWithdrawHistoryRequest -responseType []Withdraw
type GetWithdrawHistoryRequest struct {
client requestgen.AuthenticatedAPIClient

currency string `param:"currency"`
currency *string `param:"currency"`
state *string `param:"state"` // submitting, submitted, rejected, accepted, checking, refunded, canceled, suspect
from *time.Time `param:"from,seconds"` // seconds
to *time.Time `param:"to,seconds"` // seconds
state *string `param:"state"` // submitting, submitted, rejected, accepted, checking, refunded, canceled, suspect
limit *int `param:"limit"`
}

Expand Down
38 changes: 35 additions & 3 deletions pkg/exchange/max/maxapi/get_account_request_requestgen.go

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

38 changes: 35 additions & 3 deletions pkg/exchange/max/maxapi/get_accounts_request_requestgen.go

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

38 changes: 35 additions & 3 deletions pkg/exchange/max/maxapi/get_deposit_history_request_requestgen.go

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

38 changes: 35 additions & 3 deletions pkg/exchange/max/maxapi/get_vip_level_request_requestgen.go

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

77 changes: 56 additions & 21 deletions pkg/exchange/max/maxapi/get_withdraw_history_request_requestgen.go

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

Loading

0 comments on commit 00091e1

Please sign in to comment.