Documentation ¶
Index ¶
Constants ¶
View Source
const BalanceHistoryTableName = "balance_history"
View Source
const BlacklistedSymbolTableName = "blacklisted_symbol"
View Source
const ChartTableName = "chart"
View Source
const (
ChartTypeCoinPrice = "coin_price"
)
View Source
const CoinPriceTableName = "coin_price_history"
View Source
const CoinTableName = "coins"
View Source
const CurrentCoinTableName = "current_coin_history"
View Source
const DiffTableName = "diff"
View Source
const JumpTableName = "jumps"
View Source
const PairHistoryTableName = "pairs_history"
View Source
const PairTableName = "pairs"
Variables ¶
View Source
var DefaultCoinPriceChartAllCoin1Day = Chart{Type: ChartTypeCoinPrice, Config: `* 1`}
View Source
var DefaultCoinPriceChartAllCoin30Day = Chart{Type: ChartTypeCoinPrice, Config: `* 30`}
View Source
var DefaultCoinPriceChartAllCoin3Day = Chart{Type: ChartTypeCoinPrice, Config: `* 3`}
View Source
var DefaultCoinPriceChartAllCoin7Day = Chart{Type: ChartTypeCoinPrice, Config: `* 7`}
Functions ¶
Types ¶
type BalanceHistory ¶
type BalanceHistory struct { Timestamp time.Time `gorm:"primaryKey"` BtcBalance decimal.Decimal UsdtBalance decimal.Decimal }
func (BalanceHistory) TableName ¶
func (BalanceHistory) TableName() string
type BlacklistedSymbol ¶
type BlacklistedSymbol struct {
Symbol string `gorm:"primaryKey"`
}
func (BlacklistedSymbol) TableName ¶
func (BlacklistedSymbol) TableName() string
type CoinPrice ¶
type CurrentCoin ¶
func (CurrentCoin) TableName ¶
func (CurrentCoin) TableName() string
type Diff ¶
type Jump ¶
type Jump struct { FromCoin string `gorm:"primaryKey"` ToCoin string `gorm:"primaryKey"` Timestamp time.Time `gorm:"primaryKey"` FromQuantity decimal.Decimal FromPrice decimal.Decimal ToQuantity decimal.Decimal ToPrice decimal.Decimal FromCoinRef Coin `gorm:"foreignKey:FromCoin;references:Coin"` ToCoinRef Coin `gorm:"foreignKey:ToCoin;references:Coin"` }
type Pair ¶
Click to show internal directories.
Click to hide internal directories.