From 03bfbbb85b79f0e4d43a141cd95445a869480852 Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Wed, 6 Sep 2017 08:40:45 -0700 Subject: [PATCH] correction --- README.md | 2 +- types.go | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0788f2c..4ca94e8 100755 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Get graph data points for a crypto currency. ```go type GlobalMarketData struct { TotalMarketCapUsd float64 `json:"total_market_cap_usd"` - Total24HVolumeUsd float64 `json:"total_24h_volume_usd"` + Total24hVolumeUsd float64 `json:"total_24h_volume_usd"` BitcoinDominance float64 `json:"bitcoin_percentage_of_market_cap"` ActiveCurrencies int `json:"active_currencies"` ActiveAssets int `json:"active_assets"` diff --git a/types.go b/types.go index bf60b78..73026c5 100755 --- a/types.go +++ b/types.go @@ -21,7 +21,7 @@ type Coin struct { //GlobalMarketData struct type GlobalMarketData struct { TotalMarketCapUsd float64 `json:"total_market_cap_usd"` - Total24HVolumeUsd float64 `json:"total_24h_volume_usd"` + Total24hVolumeUsd float64 `json:"total_24h_volume_usd"` BitcoinDominance float64 `json:"bitcoin_percentage_of_market_cap"` ActiveCurrencies int `json:"active_currencies"` ActiveAssets int `json:"active_assets"` @@ -30,11 +30,8 @@ type GlobalMarketData struct { // CoinGraph struct type CoinGraph struct { - MarketCapByAvailableAupply [][]float64 `json:"market_cap_by_available_supply"` - PriceBtc [][]float64 `json:"price_btc"` - PriceUsd [][]float64 `json:"price_usd"` - VolumeUsd [][]float64 `json:"volume_usd"` + MarketCapByAvailableAupply [][]float64 `json:"market_cap_by_available_supply"` + PriceBtc [][]float64 `json:"price_btc"` + PriceUsd [][]float64 `json:"price_usd"` + VolumeUsd [][]float64 `json:"volume_usd"` } - - -