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

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Feb 5, 2019
1 parent 28ba41c commit 5057c89
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pro/v1/coinmarketcap.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ type QuoteOptions struct {
Symbol string
}

// ConvertOptions options
type ConvertOptions struct {
Amount float64
ID string
Symbol string
Time int
Convert string
}

// service is abstraction for individual endpoint resources
type service struct {
client *Client
}
Expand Down Expand Up @@ -416,15 +426,6 @@ func (s *CryptocurrencyService) LatestQuotes(options *QuoteOptions) ([]*QuoteLat
return quotesLatest, nil
}

// ConvertOptions options
type ConvertOptions struct {
Amount float64
ID string
Symbol string
Time int
Convert string
}

// PriceConversion Convert an amount of one currency into multiple cryptocurrencies or fiat currencies at the same time using the latest market averages. Optionally pass a historical timestamp to convert values based on historic averages.
func (s *ToolsService) PriceConversion(options *ConvertOptions) (*ConvertListing, error) {
var params []string
Expand Down

0 comments on commit 5057c89

Please sign in to comment.