market

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Currency

type Currency = string

type Market

type Market interface {
	GetActualPrice(context.Context, Currency) (time.Time, Price, error)
}

func New

func New() Market

type Price

type Price = float64 // TODO can be changed to int64 ordecimal or other need more context

type ResponsePrice

type ResponsePrice struct {
	Amount Price `json:"amount"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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