wallet

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshot

type Snapshot struct {
	Snapshot []*Wallet
}

func SnapshotFromRaw

func SnapshotFromRaw(raw []interface{}) (s *Snapshot, err error)

type Update

type Update Wallet

func UpdateFromRaw

func UpdateFromRaw(raw []interface{}) (Update, error)

UpdateFromRaw reds "wu" type message from authenticated data sream and maps it to wallet.Update data structure

type Wallet

type Wallet struct {
	Type              string
	Currency          string
	Balance           float64
	UnsettledInterest float64
	BalanceAvailable  float64
	LastChange        string
	TradeDetails      map[string]interface{}
}

func FromRaw

func FromRaw(raw []interface{}) (w *Wallet, err error)

Jump to

Keyboard shortcuts

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