types

package
v0.0.0-...-52431d2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarketTicker

type MarketTicker struct {
	ID           string  `json:"id"`
	CurrentPrice float64 `json:"current_price"`
	MarketCap    int64   `json:"market_cap"`
}

MarketTicker contains the current market data for a single token

func NewMarketTicker

func NewMarketTicker(id string, currentPrice float64, marketCap int64) MarketTicker

NewMarketTicker creates a new instance of MarketTicker

type MarketTickers

type MarketTickers []MarketTicker

MarketTickers is an array of MarketTicker

type Token

type Token struct {
	ID     string `json:"id"`
	Symbol string `json:"symbol"`
	Name   string `json:"name"`
}

Token contains the information of a single token

type Tokens

type Tokens []Token

Tokens represents a list of Token objects

Jump to

Keyboard shortcuts

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