Skip to content

Commit

Permalink
add fee currency (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
yitech committed Sep 17, 2024
1 parent 5c7e0bd commit 91aae7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ go 1.21

require (
github.com/google/go-querystring v1.1.0
github.com/google/uuid v1.6.0
github.com/gorilla/websocket v1.5.0
github.com/stretchr/testify v1.8.2
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
1 change: 1 addition & 0 deletions v5_execution_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ type V5GetExecutionListItem struct {
ExecType ExecTypeV5 `json:"execType"`
ExecValue string `json:"execValue"`
ExecTime string `json:"execTime"`
FeeCurrency Coin `json:"feeCurrency"`
IsMaker bool `json:"isMaker"`
FeeRate string `json:"feeRate"`
TradeIv string `json:"tradeIv"`
Expand Down
2 changes: 2 additions & 0 deletions v5_execution_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func TestV5ExecutionService_GetExecutionList(t *testing.T) {
"execType": "Trade",
"execValue": "34.5",
"execTime": "1693555728000",
"feeCurrency": "BTC",
"isMaker": true,
"feeRate": "0.03455",
"tradeIv": "0.0035",
Expand Down Expand Up @@ -102,6 +103,7 @@ func TestV5ExecutionService_GetExecutionList(t *testing.T) {
"execType": "Trade",
"execValue": "34.5",
"execTime": "1693555728000",
"feeCurrency": "BTC",
"isMaker": true,
"feeRate": "0.03455",
"tradeIv": "0.0035",
Expand Down

0 comments on commit 91aae7b

Please sign in to comment.