Documentation ¶
Index ¶
- type APIServer
- type Database
- func (d *Database) Close()
- func (d *Database) GetORM() *gorm.DB
- func (d *Database) MakeBalanceSync(api *poloniex.Poloniex) *balances.Sync
- func (d *Database) MakeBalanceView() *balances.View
- func (d *Database) MakeExchangeSync(api *poloniex.Poloniex) *exchanges.Sync
- func (d *Database) MakeExchangeView() *exchanges.View
- func (d *Database) MakeLendingSync(api *poloniex.Poloniex) *lendings.Sync
- func (d *Database) MakeLendingView() *lendings.View
- type PersonalTradeHistory
- type Synchronizer
- type TradeHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
poloniex api server clone
func NewAPIServer ¶
func (*APIServer) PaginateTradeHistory ¶
func (s *APIServer) PaginateTradeHistory(start, end time.Time, page, tadePerPage int, apiType int) []TradeHistory
https://poloniex.com/private.php command=returnPaginatedTradeHistory start=0 end=1917895987 page=1 tradesPerPage=50 type=0
func (*APIServer) PersonalTradeHistory ¶
func (s *APIServer) PersonalTradeHistory(start, end time.Time) map[string][]PersonalTradeHistory
https://poloniex.com/private.php command=returnPersonalTradeHistory start=0 end=1917895987 retval: key=BTC, BTC_AMP, value=array
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) MakeBalanceSync ¶
func (*Database) MakeBalanceView ¶
func (*Database) MakeExchangeSync ¶
func (*Database) MakeExchangeView ¶
func (*Database) MakeLendingSync ¶
func (*Database) MakeLendingView ¶
type PersonalTradeHistory ¶
type PersonalTradeHistory struct { Amount string `json:"amount"` Category string `json:"category"` Date string `json:"date"` Fee string `json:"fee"` GlobalTradeID string `json:"globalTradeID,int"` OrderNumber string `json:"orderNumber"` Rate string `json:"rate"` Total string `json:"total"` TradeID string `json:"tradeID"` Type string `json:"type"` }
func NewPersonalTradeHistoryFromExchange ¶
func NewPersonalTradeHistoryFromExchange(r *exchanges.Exchange) PersonalTradeHistory
func NewPersonalTradeHistoryFromLending ¶
func NewPersonalTradeHistoryFromLending(r *lendings.Lending) PersonalTradeHistory
type Synchronizer ¶
type TradeHistory ¶
type TradeHistory struct { CurrencyPair string `json:"currencyPair"` Date string `json:"date"` Type string `json:"type"` Category string `json:"category"` Rate string `json:"rate"` Amount string `json:"amount"` Total string `json:"total"` Fee string `json:"fee"` }
func NewTradeHistoryFromExchange ¶
func NewTradeHistoryFromExchange(r *exchanges.Exchange) TradeHistory
func NewTradeHistoryFromLending ¶
func NewTradeHistoryFromLending(r *lendings.Lending) TradeHistory
Click to show internal directories.
Click to hide internal directories.