Documentation ¶
Overview ¶
Handles Binance API endpoints logic
Handles Binance package logic to fetch all data ¶
Handles HTTP requests logic ¶
Handles data calculation logic
Index ¶
- func GetDepositHistory() (*[]DepositHistory, error)
- func GetTradingHistory(tradingPairs *TradingPairs) (*[]TradingHistory, error)
- func GetWithdrawHistory() (*[]WithdrawHistory, error)
- type Binance
- type Client
- type DepositHistory
- type DividendHistory
- type DustConversion
- type FiatPayments
- type Holdings
- type ServerTime
- type Stats
- type TradingHistory
- type TradingPairs
- type Wallet
- type WithdrawHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTradingHistory ¶
func GetTradingHistory(tradingPairs *TradingPairs) (*[]TradingHistory, error)
Get Binance account trading history
func GetWithdrawHistory ¶
func GetWithdrawHistory() (*[]WithdrawHistory, error)
Get withdraw history
Types ¶
type Binance ¶
type Binance struct { TradingPairs *TradingPairs FiatPayments *FiatPayments TradingHistory *[]TradingHistory DustConversion *DustConversion DividendHistory *DividendHistory DepositHistory *[]DepositHistory WithdrawHistory *[]WithdrawHistory }
func (*Binance) ProcessBinanceData ¶
Retrieve all account data from Binance
type Client ¶
type DepositHistory ¶
type DividendHistory ¶
type DividendHistory struct { Rows []struct { Amount string `json:"amount"` Asset string `json:"asset"` DivTime int `json:"divTime"` } `json:"rows"` }
func GetDividendHistory ¶
func GetDividendHistory() (*DividendHistory, error)
Get dividend (staking) rewards history
type DustConversion ¶
type DustConversion struct { UserAssetDribblets []struct { OperateTime int `json:"operateTime"` TotalTransferedAmount string `json:"totalTransferedAmount"` UserAssetDribbletDetails []struct { FromAsset string `json:"fromAsset"` Amount string `json:"amount"` TransferedAmount string `json:"transferedAmount"` } `json:"userAssetDribbletDetails"` } `json:"userAssetDribblets"` }
func GetDustConversionHistory ¶
func GetDustConversionHistory() (*DustConversion, error)
Get dust conversion history
type FiatPayments ¶
type FiatPayments struct { Data []struct { OrderNo string `json:"orderNo"` SourceAmount string `json:"sourceAmount"` FiatCurrency string `json:"fiatCurrency"` ObtainAmount string `json:"obtainAmount"` CryptoCurrency string `json:"cryptoCurrency"` TotalFee string `json:"totalFee"` Price string `json:"price"` Status string `json:"status"` CreateTime int `json:"createTime"` } `json:"data"` }
func GetFiatPaymentsHistory ¶
func GetFiatPaymentsHistory() (*FiatPayments, error)
Get Binance account fiat payments history
type ServerTime ¶
type ServerTime struct {
ServerTime int64 `json:"serverTime"`
}
type TradingHistory ¶
type TradingHistory struct { Symbol string `json:"symbol"` BaseAsset string `json:"baseAsset,omitempty"` QuoteAsset string `json:"quoteAsset,omitempty"` ID int64 `json:"id"` Price string `json:"price"` Quantity string `json:"qty"` QuoteQuantity string `json:"quoteQty"` Commission string `json:"commission"` CommissionAsset string `json:"commissionAsset"` IsBuyer bool `json:"isBuyer"` Time int `json:"time"` }
type TradingPairs ¶
type TradingPairs struct { Symbols []struct { Symbol string `json:"symbol"` BaseAsset string `json:"baseAsset"` QuoteAsset string `json:"quoteAsset"` } `json:"symbols"` }
func GetTradingPairs ¶
func GetTradingPairs() (*TradingPairs, error)
Get trading pairs available on Binance
type WithdrawHistory ¶
Click to show internal directories.
Click to hide internal directories.