Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCryptoCompareAPI ¶
func NewCryptoCompareAPI(apiKey string) *cryptocompare
Types ¶
type Coin ¶
type Coin struct { ID string `json:"Id"` URL string `json:"Url"` ImageURL string `json:"ImageUrl"` ContentCreatedOn int `json:"ContentCreatedOn"` Name string `json:"Name"` Symbol string `json:"Symbol"` CoinName string `json:"CoinName"` FullName string `json:"FullName"` Description string `json:"Description"` BuiltOn string `json:"BuiltOn"` AssetTokenStatus string `json:"AssetTokenStatus"` Algorithm string `json:"Algorithm"` ProofType string `json:"ProofType"` SortOrder string `json:"SortOrder"` Sponsored bool `json:"Sponsored"` Taxonomy struct { Access string `json:"Access"` FCA string `json:"FCA"` FINMA string `json:"FINMA"` Industry string `json:"Industry"` CollateralizedAsset string `json:"CollateralizedAsset"` CollateralizedAssetType string `json:"CollateralizedAssetType"` CollateralType string `json:"CollateralType"` CollateralInfo string `json:"CollateralInfo"` } `json:"Taxonomy"` Rating struct { Weiss struct { Rating string `json:"Rating"` TechnologyAdoptionRating string `json:"TechnologyAdoptionRating"` MarketPerformanceRating string `json:"MarketPerformanceRating"` } `json:"Weiss"` } `json:"Rating"` IsTrading bool `json:"IsTrading"` TotalCoinsMined float64 `json:"TotalCoinsMined"` Difficulty float64 `json:"Difficulty"` BlockNumber int `json:"BlockNumber"` NetHashesPerSecond float64 `json:"NetHashesPerSecond"` BlockReward float64 `json:"BlockReward"` BlockTime float64 `json:"BlockTime"` AssetLaunchDate string `json:"AssetLaunchDate"` MaxSupply float64 `json:"MaxSupply"` MktCapPenalty float64 `json:"MktCapPenalty"` IsUsedInDefi int `json:"IsUsedInDefi"` IsUsedInNft int `json:"IsUsedInNft"` }
type Exchange ¶
type Exchange struct { ID string `json:"Id"` Name string `json:"Name"` URL string `json:"Url"` LogoURL string `json:"LogoUrl"` ItemType []string `json:"ItemType"` CentralizationType string `json:"CentralizationType"` InternalName string `json:"InternalName"` GradePoints float64 `json:"GradePoints"` Grade string `json:"Grade"` GradePointsSplit struct { Legal string `json:"Legal"` KYCAndTransactionRisk string `json:"KYCAndTransactionRisk"` Team string `json:"Team"` DataProvision string `json:"DataProvision"` AssetQualityAndDiversity string `json:"AssetQualityAndDiversity"` MarketQuality string `json:"MarketQuality"` Security string `json:"Security"` NegativeReportsPenalty string `json:"NegativeReportsPenalty"` } `json:"GradePointsSplit"` AffiliateURL string `json:"AffiliateURL"` Country string `json:"Country"` OrderBook bool `json:"OrderBook"` Trades bool `json:"Trades"` Description string `json:"Description"` FullAddress string `json:"FullAddress"` Fees string `json:"Fees"` DepositMethods string `json:"DepositMethods"` WithdrawalMethods string `json:"WithdrawalMethods"` Sponsored bool `json:"Sponsored"` Recommended bool `json:"Recommended"` Rating struct { One int `json:"One"` Two int `json:"Two"` Three int `json:"Three"` Four int `json:"Four"` Five int `json:"Five"` Avg float64 `json:"Avg"` TotalUsers int `json:"TotalUsers"` } `json:"Rating"` SortOrder string `json:"SortOrder"` TOTALVOLUME24H struct { BTC float64 `json:"BTC"` } `json:"TOTALVOLUME24H"` DISPLAYTOTALVOLUME24H struct { BTC string `json:"BTC"` } `json:"DISPLAYTOTALVOLUME24H"` }
Click to show internal directories.
Click to hide internal directories.