diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ca5b84f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +# v1.0.0 + +- Initial release +- Add in All-Time Low diff --git a/v3/types/model.go b/v3/types/model.go index c1208b4..7e4fa15 100644 --- a/v3/types/model.go +++ b/v3/types/model.go @@ -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"` diff --git a/v3/v3.go b/v3/v3.go index 7af17f8..bf893e7 100755 --- a/v3/v3.go +++ b/v3/v3.go @@ -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 }