Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #13 from superoo7/wh-atl
Browse files Browse the repository at this point in the history
add in ATL into MarketDataItem
  • Loading branch information
superoo7 authored Nov 26, 2019
2 parents a448b0c + c3ab02a commit 1afd4cc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# v1.0.0

- Initial release
- Add in All-Time Low
3 changes: 3 additions & 0 deletions v3/types/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ type MarketDataItem struct {
ATH AllCurrencies `json:"ath"`
ATHChangePercentage AllCurrencies `json:"ath_change_percentage"`
ATHDate map[string]string `json:"ath_date"`
ATL AllCurrencies `json:"atl"`
ATLChangePercentage AllCurrencies `json:"atl_change_percentage"`
ATLDate map[string]string `json:"atl_date"`
MarketCap AllCurrencies `json:"market_cap"`
MarketCapRank uint16 `json:"market_cap_rank"`
TotalVolume AllCurrencies `json:"total_volume"`
Expand Down
3 changes: 3 additions & 0 deletions v3/v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ func (c *Client) SimpleSupportedVSCurrencies() (*types.SimpleSupportedVSCurrenci
}
var data *types.SimpleSupportedVSCurrencies
err = json.Unmarshal(resp, &data)
if err != nil {
return nil, err
}
return data, nil
}

Expand Down

0 comments on commit 1afd4cc

Please sign in to comment.