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

Commit

Permalink
Merge pull request #1 from chekalskiy/patch-1
Browse files Browse the repository at this point in the history
Adding the ability to request all of coins by passing limit=0
  • Loading branch information
miguelmota authored Dec 19, 2017
2 parents e00de19 + 7b6ca32 commit 0b686f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coinmarketcap.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GetCoinData(coin string) (Coin, error) {
// Get information about all coins listed in Coin Market Cap.
func GetAllCoinData(limit int) (map[string]Coin, error) {
var l string
if limit > 0 {
if limit >= 0 {
l = fmt.Sprintf("?limit=%v", limit)
}
url = fmt.Sprintf("%s/ticker/%s", baseUrl, l)
Expand Down

0 comments on commit 0b686f8

Please sign in to comment.