forked from HuobiRDCenter/huobi_Golang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update API according to the update in October 2020
- Loading branch information
jiaaiqiang
committed
Nov 19, 2020
1 parent
cc7e268
commit 67bf522
Showing
7 changed files
with
155 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
pkg/model/margin/crossmargingeneralreplayloanoptionalrequest.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package margin | ||
|
||
type CrossMarginGeneralReplayLoanOptionalRequest struct { | ||
AccountId string `json:"accountId"` | ||
Currency string `json:"currency"` | ||
Amount string `json:"amount"` | ||
TransactId string `json:"transactId"` | ||
} |
12 changes: 12 additions & 0 deletions
12
pkg/model/margin/crossmargingeneralreplayloanrecordsoptionalrequest.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package margin | ||
|
||
type CrossMarginGeneralReplayLoanRecordsOptionalRequest struct { | ||
RepayId string `json:"repayId"` | ||
AccountId string `json:"accountId"` | ||
Currency string `json:"currency"` | ||
StartDate int64 `json:"startDate"` | ||
EndDate int64 `json:"endDate"` | ||
Sort string `json:"sort"` | ||
Limit int `json:"limit"` | ||
FromId int64 `json:"fromId"` | ||
} |
21 changes: 21 additions & 0 deletions
21
pkg/model/margin/crossmargingeneralreplayloanrecordsresponse.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package margin | ||
|
||
type CrossMarginGeneralReplyLoanRecordsResponse struct { | ||
Code int `json:"code"` | ||
Data []CrossMarginGeneraReplaylLoanRecord `json:"data"` | ||
} | ||
type CrossMarginGeneraReplaylLoanRecord struct { | ||
RepayId int64 `json:"repayId"` | ||
RepayTime int64 `json:"repayTime"` | ||
AccountId int64 `json:"accountId"` | ||
Currency string `json:"currency"` | ||
RepaidAmount string `json:"repaidAmount"` | ||
TransactIds *Transact `json:"transactIds"` | ||
} | ||
type Transact struct { | ||
TransactId int64 `json:"transactId"` | ||
RepaidPrincipal string `json:"repaidPrincipal"` | ||
RepaidInterest string `json:"repaidInterest"` | ||
PaidHt string `json:"paidHt"` | ||
PaidPoint string `json:"paidPoint"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package margin | ||
|
||
type CrossMarginGeneralReplyLoanResponse struct { | ||
Code int `json:"code"` | ||
Data []CrossMarginGeneraReplaylLoan `json:"data"` | ||
} | ||
type CrossMarginGeneraReplaylLoan struct { | ||
RepayId int64 `json:"repayId"` | ||
RepayTime int64 `json:"repayTime"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters