You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
741 B

package cmd
// CryptApiResponse hold a response for currency conversions, used in !convert
type CryptApiResponse struct {
Ticker CryptonatorRate `json:"ticker"`
Timestamp int `json:"timestamp"`
Success bool `json:"success"`
Error string `json:"error"`
}
type CryptonatorRate struct {
Base string `json:"base"`
Target string `json:"target"`
Price string `json:"price"`
Volume string `json:"volume"`
Change string `json:"change"`
Markets []CryptonatorMarket `json:"markets,omitempty"`
}
type CryptonatorMarket struct {
Market string `json:"market"`
Price string `json:"price"`
Volume float64 `json:"volume"`
}