pricefeeder

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Market

type Market struct {
	BaseAsset  string
	QuoteAsset string
	Ticker     string
}

type Price

type Price struct {
	BasePrice  decimal.Decimal
	QuotePrice decimal.Decimal
}

type PriceFeed

type PriceFeed struct {
	Market Market
	Price  Price
}

type PriceFeeder

type PriceFeeder interface {
	Start() chan PriceFeed
	Stop()

	SubscribeMarkets([]Market) error
	UnsubscribeMarkets([]Market) error
	ListSubscriptions() []Market
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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