model

package
v0.0.0-...-b6650a9 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO agregar el resto de los errores
	ErrWalletIsRequired = errors.New("wallet is required")
	ErrUnexpected       = errors.New("unexpected error")
)

Functions

This section is empty.

Types

type GetWalletValueRequest

type GetWalletValueRequest struct {
	ID string
}

type GetWalletValueResponse

type GetWalletValueResponse struct {
	ID       string              `json:"walletId"`
	Value    decimal.NullDecimal `json:"value"`
	DateTime *time.Time          `json:"dateTime,omitempty"`
}

type MarketData

type MarketData struct {
	Symbol            string
	LastPrice         decimal.Decimal
	LastPriceDateTime time.Time
}

type MdChannel

type MdChannel chan MarketData

type Wallet

type Wallet struct {
	ID    string
	Items []WalletItem
}

type WalletItem

type WalletItem struct {
	Symbol   string
	Quantity decimal.Decimal
}

Jump to

Keyboard shortcuts

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