coincap

package
v4.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssetQuotes

func GetAssetQuotes(client resty.Client, symbols []string) []c.AssetQuote

GetAssetQuotes issues a HTTP request to retrieve quotes from the API and process the response

Types

type Quote

type Quote struct {
	ShortName                  string `json:"name"`
	Symbol                     string `json:"symbol"`
	RegularMarketChangePercent string `json:"changePercent24Hr"`
	RegularMarketPrice         string `json:"priceUsd"`
	RegularMarketVolume        string `json:"volumeUsd24Hr"`
	MarketCap                  string `json:"marketCapUsd"`
}

Quote represents a quote of a single security from the API response

type Response

type Response struct {
	Data []Quote `json:"data"`
}

Response represents the container object from the API response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL