Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeDeposit = "deposit" TypeWithdrawal = "withdrawal" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct { Currency string // contains filtered or unexported fields }
func NewReport ¶
func NewReport(currency string, rows []Transaction) Report
func (*Report) Withdrawals ¶
type Sync ¶
type Sync struct {
// contains filtered or unexported fields
}
func (*Sync) GetLastTime ¶
func (*Sync) SyncRecent ¶
type Transaction ¶
type Transaction struct { gorm.Model // deposit / withdrawal Type string WithdrawalNumber int64 // only withdrawals Currency string Address string Amount float64 Confirmations int TransactionID string `gorm:"unique"` Timestamp time.Time Status string IPAddress string // only withdrawals }
merge two struct - poloniex.PoloniexDepositsWithdrawals.Deposits - poloniex.PoloniexDepositsWithdrawals.Withdrawals
func NewTransactions ¶
func NewTransactions(h poloniex.PoloniexDepositsWithdrawals) []Transaction
Click to show internal directories.
Click to hide internal directories.