coingecko

package
v0.0.0-...-5cadadf Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPairService

func NewPairService(chainId string, db *gorm.DB) service.Getter[Pair]

func NewTickerService

func NewTickerService(chainId string, db *gorm.DB) service.Getter[Ticker]

Types

type Pair

type Pair struct {
	TickerId string
	Base     string
	Target   string
	PoolId   string
}

type Ticker

type Ticker struct {
	BaseCurrency         string
	TargetCurrency       string
	LastPrice            string
	BaseVolume           string
	TargetVolume         string
	BaseDecimals         int
	TargetDecimals       int
	BaseLiquidityInPrice string
	PoolId               string
	Timestamp            float64
}

Jump to

Keyboard shortcuts

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