Documentation ¶
Index ¶
- type CryptoCom
- func (cdc *CryptoCom) GetAPIExchangeTXs(loc *time.Location)
- func (cdc *CryptoCom) MergeTXs()
- func (cdc *CryptoCom) NewExchangeAPI(apiKey, secretKey string, debug bool)
- func (cdc *CryptoCom) ParseCSVAppCrypto(reader io.Reader, cat category.Category, account string) (err error)
- func (cdc *CryptoCom) ParseCSVExchangeSpotTrade(reader io.Reader) (err error)
- func (cdc *CryptoCom) ParseCSVExchangeStake(reader io.Reader) (err error)
- func (cdc *CryptoCom) ParseCSVExchangeSupercharger(reader io.Reader) (err error)
- func (cdc *CryptoCom) ParseCSVExchangeTransfer(reader io.Reader) (err error)
- func (cdc *CryptoCom) ParseJSONExchangeExportJS(reader io.Reader, account string) (err error)
- func (cdc *CryptoCom) WaitFinish(account string) error
- type DepositList
- type ErrorResp
- type ExchangeJson
- type GetDepositHistoryResp
- type GetTradesResp
- type GetWithdrawalHistoryResp
- type ResultDeposit
- type ResultTrade
- type ResultWithdrawal
- type TradeList
- type WithdrawalList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoCom ¶
type CryptoCom struct { TXsByCategory wallet.TXsByCategory Sources source.Sources // contains filtered or unexported fields }
func (*CryptoCom) GetAPIExchangeTXs ¶ added in v1.2.0
func (*CryptoCom) NewExchangeAPI ¶ added in v1.1.0
func (*CryptoCom) ParseCSVAppCrypto ¶ added in v1.1.0
func (*CryptoCom) ParseCSVExchangeSpotTrade ¶ added in v1.4.0
func (*CryptoCom) ParseCSVExchangeStake ¶ added in v1.1.0
func (*CryptoCom) ParseCSVExchangeSupercharger ¶ added in v1.1.0
func (*CryptoCom) ParseCSVExchangeTransfer ¶ added in v1.1.0
func (*CryptoCom) ParseJSONExchangeExportJS ¶ added in v1.2.0
func (*CryptoCom) WaitFinish ¶ added in v1.2.0
type DepositList ¶ added in v1.1.0
type DepositList struct {
DepositList []ResultDeposit `json:"deposit_list"`
}
type ExchangeJson ¶ added in v1.2.0
type ExchangeJson struct { Withs struct { FinanceList []struct { Symbol string `json:"symbol"` Reason string `json:"reason"` Amount string `json:"amount"` Fee float64 `json:"fee"` UpdateAt string `json:"updateAt"` TxID string `json:"txid"` Label string `json:"label"` AddressTo string `json:"addressTo"` Network interface{} `json:"network"` CreatedAt string `json:"createdAt"` TxIDAddr string `json:"txidAddr"` UpdateAtTime int64 `json:"updateAtTime"` CreatedAtTime int64 `json:"createdAtTime"` ID int `json:"id"` StatusText string `json:"status_text"` Status int `json:"status"` } `json:"financeList"` Count int `json:"count"` Pagesize int `json:"pageSize"` } `json:"withs"` Deps struct { FinanceList []struct { Symbol string `json:"symbol"` Amount string `json:"amount"` UpdateAt string `json:"updateAt"` TxID string `json:"txid"` NoteStatus interface{} `json:"note_status"` Confirmdesc string `json:"confirmDesc"` AddressTo string `json:"addressTo"` Network interface{} `json:"network"` CreatedAt string `json:"createdAt"` TxIDAddr string `json:"txidAddr"` UpdateAtTime int64 `json:"updateAtTime"` CreatedAtTime int64 `json:"createdAtTime"` StatusText string `json:"status_text"` Status int `json:"status"` } `json:"financeList"` Count int `json:"count"` Pagesize int `json:"pageSize"` } `json:"deps"` Cros struct { HistoryList []struct { StakeAmount string `json:"stakeAmount"` Apr float64 `json:"apr,string"` CoinSymbol string `json:"coinSymbol"` CreateTime string `json:"createTime"` Extra interface{} `json:"extra"` Destination string `json:"destination"` InterestAmount string `json:"interestAmount"` CreatedAtTime int64 `json:"createdAtTime"` StatusText string `json:"status_text"` Status int `json:"status"` } `json:"historyList"` Count int `json:"count"` Pagesize int `json:"pageSize"` } `json:"cros"` Sstake struct { Count int `json:"count"` Pagesize int `json:"pageSize"` SoftStakingInterestList []struct { Principal string `json:"principal"` Reason interface{} `json:"reason"` Amount string `json:"amount"` Apr float64 `json:"apr,string"` CoinSymbol string `json:"coinSymbol"` CalculateDate int64 `json:"calculateDate"` Ctime int64 `json:"ctime"` ID int `json:"id"` StakedCROAmount string `json:"stakedCroAmount"` Mtime int64 `json:"mtime"` UserID int `json:"userId"` Status int `json:"status"` } `json:"softStakingInterestList"` } `json:"sstake"` Rebs struct { HistoryList []struct { CreateTime string `json:"createTime"` RebateAmount string `json:"rebateAmount"` RebatePercentage float64 `json:"rebatePercentage,string"` FeePaid string `json:"feePaid"` CreatedAtTime int64 `json:"createdAtTime"` CoinSymbol string `json:"coinSymbol"` Destination string `json:"destination"` StatusText string `json:"status_text"` Status int `json:"status"` Extra string `json:"extra"` } `json:"historyList"` Count int `json:"count"` Pagesize int `json:"pageSize"` } `json:"rebs"` Syn struct { Activities []struct { DeliveredSize string `json:"deliveredSize"` ActivityCROn string `json:"activityCron"` UserStatus string `json:"userStatus"` ID string `json:"id"` AllocationTime string `json:"allocationTime"` MinCommittedCRO string `json:"minCommittedCRO"` RefundedCRO string `json:"refundedCRO"` PoolSize string `json:"poolSize"` DiscountedPrice string `json:"discountedPrice"` MinPurchased string `json:"minPurchased"` DiscountRate string `json:"discountRate"` AnnouncementTime string `json:"announcementTime"` ActivityStatus string `json:"activityStatus"` PriceDeterminationTime string `json:"priceDeterminationTime"` AllocatedPriceCRO string `json:"allocatedPriceCRO"` UserID string `json:"userId"` ActivityModifyTime string `json:"activityModifyTime"` EndTime string `json:"endTime"` DeliveryTime int64 `json:"deliveryTime,string"` SyndicateCoin string `json:"syndicateCoin"` TotalCommittedCRO string `json:"totalCommittedCro"` ActivityCreateTime string `json:"activityCreateTime"` UserEmailStatus string `json:"userEmailStatus"` UserCreateTime int64 `json:"userCreateTime,string"` PoolSizeCapUSD string `json:"poolSizeCapUSD"` StartTime string `json:"startTime"` AllocatedVolume string `json:"allocatedVolume"` CommittedCRO string `json:"committedCRO"` AllocatedSize string `json:"allocatedSize"` AllocatedPriceUSD string `json:"allocatedPriceUSD"` UserModifyTime string `json:"userModifyTime"` } `json:"activities"` } `json:"syn"` Sup struct { HistoryList []struct { // CreatedAt string `json:"createdAt"` CreatedAt int64 `json:"createdAt,string"` CoinSymbol string `json:"coinSymbol"` Extra string `json:"extra"` RewardAmount string `json:"rewardAmount"` } `json:"historyList"` Count int `json:"count"` Pagesize int `json:"pageSize"` } `json:"sup"` Tcom struct { Total int `json:"total"` Data []struct { Commission string `json:"commission"` ID string `json:"id"` MTime int64 `json:"mtime,string"` Status int `json:"status,string"` NetTradingFee string `json:"netTradingFee"` ReferralRelationshipID string `json:"referralRelationshipId"` CTime int64 `json:"ctime,string"` TradingFeeRebate string `json:"tradingFeeRebate"` } `json:"data"` } `json:"tcom"` Bon struct { Total int `json:"total"` Data []struct { ReferralRelationshipID string `json:"referralRelationshipId"` ReferralBonusInCRO string `json:"referralBonusInCro"` CTime int64 `json:"ctime,string"` ID string `json:"id"` MTime int64 `json:"mtime,string"` ReferralBonusTierID string `json:"referralBonusTierId"` Status int `json:"status,string"` ReferralBonusInUSD string `json:"referralBonusInUsd"` } `json:"data"` } `json:"bon"` Rew struct { SignupBonusCreatedAt string `json:"signUpBonusCreatedAt"` TotalEarnFromReferral string `json:"totalEarnFromReferral"` TotalNumberOfUsersBeReferred string `json:"totalNumberOfUsersBeReferred"` TotalTradeCommission string `json:"totalTradeCommission"` SignupBonus string `json:"signUpBonus"` TotalReferralBonus string `json:"totalReferralBonus"` TotalNumberOfUsersSignedUp string `json:"totalNumberOfUsersSignedUp"` } `json:"rew"` }
type GetDepositHistoryResp ¶ added in v1.1.0
type GetDepositHistoryResp struct { ID int64 `json:"id"` Method string `json:"method"` Code int `json:"code"` Result DepositList `json:"result"` }
type GetTradesResp ¶ added in v1.1.0
type GetWithdrawalHistoryResp ¶ added in v1.1.0
type GetWithdrawalHistoryResp struct { ID int64 `json:"id"` Method string `json:"method"` Code int `json:"code"` Result WithdrawalList `json:"result"` }
type ResultDeposit ¶ added in v1.1.0
type ResultDeposit struct { Currency string `json:"currency"` ClientWid string `json:"client_wid"` Fee float64 `json:"fee"` CreateTime int64 `json:"create_time"` ID string `json:"id"` UpdateTime int64 `json:"update_time"` Amount float64 `json:"amount"` Address string `json:"address"` Status string `json:"status"` }
type ResultTrade ¶ added in v1.1.0
type ResultTrade struct { Side string `json:"side"` InstrumentName string `json:"instrument_name"` Fee float64 `json:"fee"` TradeID string `json:"trade_id"` CreateTime int64 `json:"create_time"` TradedPrice float64 `json:"traded_price"` TradedQuantity float64 `json:"traded_quantity"` LiquidityIndicator string `json:"liquidity_indicator"` FeeCurrency string `json:"fee_currency"` OrderID string `json:"order_id"` }
type ResultWithdrawal ¶ added in v1.1.0
type ResultWithdrawal struct { Currency string `json:"currency"` ClientWid string `json:"client_wid"` Fee float64 `json:"fee"` CreateTime int64 `json:"create_time"` ID string `json:"id"` UpdateTime int64 `json:"update_time"` Amount float64 `json:"amount"` Address string `json:"address"` Status string `json:"status"` }
type TradeList ¶ added in v1.1.0
type TradeList struct {
TradeList []ResultTrade `json:"trade_list"`
}
type WithdrawalList ¶ added in v1.1.0
type WithdrawalList struct {
WithdrawalList []ResultWithdrawal `json:"withdrawal_list"`
}
Click to show internal directories.
Click to hide internal directories.