Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Currencies []string
Currencies contains money.Name for cryptocurrencies
View Source
var Prices map[string]float64
Prices map contains updated prices
View Source
var Symbols []string
Symbols contains money.Symbol for cryptocurrencies
Functions ¶
Types ¶
type Asset ¶
type Asset struct {
Name string `json:"name"`
Symbol string `json:"symbol"`
Holding float64 `json:"holding"`
Worth float64 `json:"worth"`
}
Asset stuct contain 1 asset type
type Config ¶
type Config struct {
DataDir string
DataFile string
TradeFile string
BudgetFile string
LogFile string
}
Config contains important data paths
type Pair ¶
type Pair struct {
Base string `json:"base"`
Invs string `json:"invs"`
Open []Trade `json:"open"`
Close []Trade `json:"close"`
}
Trade carries trade info
type Trade ¶
type Trade struct {
Status bool `json:"status"`
Claim bool `json:"claim"`
Cost float64 `json:"cost"`
Amount float64 `json:"amount"`
Buy float64 `json:"buy"`
Sell float64 `json:"sell"`
Percent float64 `json:"percent"`
Current float64 `json:"current"`
Profit float64 `json:"profit"`
}
Tradec closed trades
Click to show internal directories.
Click to hide internal directories.