diff --git a/go.mod b/go.mod index 848ea7d..e732abe 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/v5_execution_service.go b/v5_execution_service.go index ca80fa5..6d23c2a 100644 --- a/v5_execution_service.go +++ b/v5_execution_service.go @@ -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"` diff --git a/v5_execution_service_test.go b/v5_execution_service_test.go index 3657518..eeec6d2 100644 --- a/v5_execution_service_test.go +++ b/v5_execution_service_test.go @@ -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", @@ -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",