Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lending ¶
type Lending struct { gorm.Model LendingID int64 `gorm:"unique" json:"lending_id"` Currency string `json:"currency"` Rate float64 `json:"rate,string"` Amount float64 `json:"amount,string"` Duration float64 `json:"duration,string"` Interest float64 `json:"interest,string"` Fee float64 `json:"fee,string"` Earned float64 `json:"earned,string"` Open time.Time `json:"open"` Close time.Time `json:"close"` }
func NewLendingRow ¶
func NewLendingRow(h poloniex.PoloniexLendingHistory) Lending
func (*Lending) MakeHistory ¶
func (r *Lending) MakeHistory() poloniex.PoloniexLendingHistory
type Sync ¶
type Sync struct {
// contains filtered or unexported fields
}
func (*Sync) GetLastTime ¶
func (*Sync) SyncRecent ¶
Click to show internal directories.
Click to hide internal directories.