pair

package
v0.0.0-...-db5ea55 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePair

func DeletePair(pair *Pair)

func GeneratePairID

func GeneratePairID() int

func GetKey

func GetKey(base, target *coin.Coin) string

func GetPairID

func GetPairID(name string) int

func GetString

func GetString(pair *Pair) string

func Init

func Init()

Types

type Pair

type Pair struct {
	ID     int
	Name   string
	Base   *coin.Coin
	Target *coin.Coin

	Symbol string //hard fix for symbol if not exist in constrain
}

Pair is the common name pairs across diff excahnges

func GetPair

func GetPair(base, target *coin.Coin) *Pair

func GetPairByID

func GetPairByID(id int) *Pair

func GetPairByKey

func GetPairByKey(key string) *Pair

func GetPairs

func GetPairs() []*Pair

func SetPair

func SetPair(id int, base, target *coin.Coin) *Pair

Jump to

Keyboard shortcuts

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