pnl

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Expense Type = "expense"
	Income  Type = "income"

	USD  Currency = "USD"
	ETH  Currency = "ETH"
	OMNI Currency = "OMNI"
)

Variables

This section is empty.

Functions

func Log

func Log(ctx context.Context, ps ...LogP)

Log logs a pnl event.

Types

type Currency

type Currency string

type LogP

type LogP struct {
	Type        Type
	AmountGwei  float64
	Currency    Currency
	Category    string
	Subcategory string
	Chain       string
	ID          string
	Metadata    map[string]any
}

type Type

type Type string

type Unit

type Unit string

Jump to

Keyboard shortcuts

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