currency

package
v4.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrencyRateByUse

type CurrencyRateByUse struct {
	ToCurrencyCode string
	QuotePrice     float64
	PositionCost   float64
	SummaryValue   float64
	SummaryCost    float64
}

CurrencyRateByUse represents the currency conversion rate for each use case

func GetCurrencyRateFromContext

func GetCurrencyRateFromContext(ctx c.Context, fromCurrency string) CurrencyRateByUse

GetCurrencyRateFromContext reads currency rates from the context and sets the conversion rate for each use case

Jump to

Keyboard shortcuts

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