passet

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 4 Imported by: 0

README

GoDoc

passet

Platform asset accessor.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Id              xuid.XUID `json:"Unit__"`
	Key             string    // USD, etc
	Name            string
	Symbol          *string // can be null if no symbol available
	SymbolPosition  string  `json:"Symbol_Position"` // before | after
	Decimals        int     `json:",string"`         // force decimals to this value
	DisplayDecimals int     `json:"Display_Decimals,string"`
	Type            string  // currency | crypto_token
}

func GetAsset

func GetAsset(k string) *Asset

GetAsset returns the informations for a given asset

Jump to

Keyboard shortcuts

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