cointrackingtxtype

package
v0.0.0-...-eb5064c Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtTxTypeStrings

func CtTxTypeStrings() []string

CtTxTypeStrings returns a slice of all String values of the enum

Types

type CtTxType

type CtTxType uint
const (
	NoCtTxType CtTxType = iota
	Trade
	MarginTrade
	DerivativesFuturesTrade
	Deposit
	Income
	GiftTip
	RewardBonus
	Mining
	Airdrop
	AirdropNonTaxable
	Staking
	Masternode
	Minting
	MiningCommercial
	DividendsIncome
	LendingIncome
	InterestIncome
	DerivativesFuturesProfit
	MarginProfit
	OtherIncome
	IncomeNonTaxable
	RemoveLiquidity
	ReceiveLpToken
	LpRewards
	Withdrawal
	Spend
	Donation
	Gift
	Stolen
	Lost
	BorrowingFee
	SettlementFee
	MarginLoss
	MarginFee
	DerivativesFuturesLoss
	OtherFee
	OtherExpense
	ProvideLiquidity
	ReturnLpToken
	ExpenseNonTaxable
	SwapNonTaxable
	ReceiveLoan
	ReceiveCollateral
	SendCollateral
	RepayLoan
	Liquidation
)

func CtTxTypeString

func CtTxTypeString(s string) (CtTxType, error)

CtTxTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func CtTxTypeValues

func CtTxTypeValues() []CtTxType

CtTxTypeValues returns all values of the enum

func (CtTxType) IsACtTxType

func (i CtTxType) IsACtTxType() bool

IsACtTxType returns "true" if the value is listed in the enum definition. "false" otherwise

func (CtTxType) MarshalJSON

func (i CtTxType) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for CtTxType

func (CtTxType) MarshalYAML

func (i CtTxType) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for CtTxType

func (CtTxType) String

func (i CtTxType) String() string

func (*CtTxType) UnmarshalJSON

func (i *CtTxType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for CtTxType

func (*CtTxType) UnmarshalYAML

func (i *CtTxType) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for CtTxType

Jump to

Keyboard shortcuts

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