types

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	ID      string `json:"id"`
	Symbol  string `json:"symbol"`
	Name    string `json:"name"`
	Country string `json:"country"`
}

type EntityTreasury

type EntityTreasury struct {
	Name                       string                  `json:"name"`
	ID                         string                  `json:"id"`
	Type                       string                  `json:"type"`
	Symbol                     *string                 `json:"symbol"`
	Country                    string                  `json:"country"`
	WebsiteURL                 string                  `json:"website_url"`
	TwitterScreenName          string                  `json:"twitter_screen_name"`
	TotalTreasuryValueUsd      float64                 `json:"total_treasury_value_usd"`
	UnrealizedPnl              float64                 `json:"unrealized_pnl"`
	MNav                       float64                 `json:"m_nav"`
	TotalAssetValuePerShareUsd float64                 `json:"total_asset_value_per_share_usd"`
	Holdings                   []EntityTreasuryHolding `json:"holdings"`
}

type EntityTreasuryHolding

type EntityTreasuryHolding struct {
	CoinID                   string             `json:"coin_id"`
	Amount                   float64            `json:"amount"`
	PercentageOfTotalSupply  float64            `json:"percentage_of_total_supply"`
	AmountPerShare           float64            `json:"amount_per_share"`
	EntityValueUsdPercentage float64            `json:"entity_value_usd_percentage"`
	CurrentValueUsd          float64            `json:"current_value_usd"`
	TotalEntryValueUsd       float64            `json:"total_entry_value_usd"`
	AverageEntryValueUsd     float64            `json:"average_entry_value_usd"`
	UnrealizedPnl            float64            `json:"unrealized_pnl"`
	HoldingAmountChange      map[string]float64 `json:"holding_amount_change"`
	HoldingChangePercentage  map[string]float64 `json:"holding_change_percentage"`
}

type HoldingChart

type HoldingChart struct {
	Holdings          [][]float64 `json:"holdings"`
	HoldingValueInUsd [][]float64 `json:"holding_value_in_usd"`
}

type Transaction

type Transaction struct {
	Date                 int64   `json:"date"`
	SourceURL            string  `json:"source_url"`
	CoinID               string  `json:"coin_id"`
	Type                 string  `json:"type"`
	HoldingNetChange     float64 `json:"holding_net_change"`
	TransactionValueUsd  float64 `json:"transaction_value_usd"`
	HoldingBalance       float64 `json:"holding_balance"`
	AverageEntryValueUsd float64 `json:"average_entry_value_usd"`
}

type TransactionHistory

type TransactionHistory struct {
	Transactions []Transaction `json:"transactions"`
}

type Treasury

type Treasury struct {
	TotalHoldings      float64           `json:"total_holdings"`
	TotalValueUsd      float64           `json:"total_value_usd"`
	MarketCapDominance float64           `json:"market_cap_dominance"`
	Companies          []TreasuryHolding `json:"companies"`
	Governments        []TreasuryHolding `json:"governments"`
}

type TreasuryHolding

type TreasuryHolding struct {
	Name                    string  `json:"name"`
	Symbol                  string  `json:"symbol"`
	Country                 string  `json:"country"`
	TotalHoldings           float64 `json:"total_holdings"`
	TotalEntryValueUsd      float64 `json:"total_entry_value_usd"`
	TotalCurrentValueUsd    float64 `json:"total_current_value_usd"`
	PercentageOfTotalSupply float64 `json:"percentage_of_total_supply"`
}

Jump to

Keyboard shortcuts

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