Skip to content

Commit

Permalink
Fix AssetDetail type (#329)
Browse files Browse the repository at this point in the history
Signed-off-by: adshao <tjusgj@gmail.com>
  • Loading branch information
adshao committed Nov 17, 2021
1 parent 1548a5f commit 06aa4e0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions v2/asset_detail_service.go
Expand Up @@ -44,9 +44,9 @@ func (s *GetAssetDetailService) Do(ctx context.Context) (res map[string]AssetDet

// AssetDetail represents the detail of an asset
type AssetDetail struct {
MinWithdrawAmount float64 `json:"minWithdrawAmount"`
DepositStatus bool `json:"depositStatus"`
WithdrawFee float64 `json:"withdrawFee"`
WithdrawStatus bool `json:"withdrawStatus"`
DepositTip string `json:"depositTip"`
MinWithdrawAmount string `json:"minWithdrawAmount"`
DepositStatus bool `json:"depositStatus"`
WithdrawFee string `json:"withdrawFee"`
WithdrawStatus bool `json:"withdrawStatus"`
DepositTip string `json:"depositTip"`
}
8 changes: 4 additions & 4 deletions v2/asset_detail_service_test.go
Expand Up @@ -18,16 +18,16 @@ func (s *withdrawServiceTestSuite) TestGetAssetDetail() {
data := []byte(`
{
"CTR": {
"minWithdrawAmount": 70.00000000,
"minWithdrawAmount": "70.00000000",
"depositStatus": false,
"withdrawFee": 35,
"withdrawFee": "35",
"withdrawStatus": true,
"depositTip": "Delisted, Deposit Suspended"
},
"SKY": {
"minWithdrawAmount": 0.02000000,
"minWithdrawAmount": "0.02000000",
"depositStatus": true,
"withdrawFee": 0.01,
"withdrawFee": "0.01",
"withdrawStatus": true
}
}`)
Expand Down
2 changes: 1 addition & 1 deletion v2/client.go
Expand Up @@ -666,4 +666,4 @@ func (c *Client) NewUserUniversalTransferService() *CreateUserUniversalTransferS
// NewDustTransferService init Get All Margin Assets service
func (c *Client) NewGetAllMarginAssetsService() *GetAllMarginAssetsService {
return &GetAllMarginAssetsService{c: c}
}
}

0 comments on commit 06aa4e0

Please sign in to comment.