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

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Sep 6, 2017
1 parent a4eb751 commit 03bfbbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
13 changes: 5 additions & 8 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
}



0 comments on commit 03bfbbb

Please sign in to comment.