Documentation ¶
Index ¶
- func Sym2duo(pair string) q.D
- type KuCoin
- func (kc *KuCoin) Account(accountId string) (*kucoin.AccountModel, error)
- func (kc *KuCoin) Accounts(currency, typo string) (kucoin.AccountsModel, error)
- func (kc *KuCoin) AllTicker(SymPair map[string]q.D) (mdt *sync.Map, err error)
- func (kc *KuCoin) ApplyWithdrawal(currency, address, amount, memo, isInner, remark, chain string) (string, error)
- func (kc *KuCoin) Balances() (availables, frozens *sync.Map, err error)
- func (kc *KuCoin) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
- func (kc *KuCoin) CancelWithdrawal(withdrawalId string) (*kucoin.CancelWithdrawalResultModel, error)
- func (kc *KuCoin) CreateAccount(typo, currency string) (*kucoin.AccountModel, error)
- func (kc *KuCoin) CreateDepositAddress(currency, chain string) (*kucoin.DepositAddressModel, error)
- func (kc *KuCoin) DepositAddresses(currency, chain string) (*kucoin.DepositAddressModel, error)
- func (kc *KuCoin) Deposits(currency, startAt, endAt, status string) (*kucoin.DepositsModel, error)
- func (kc *KuCoin) Fee() float64
- func (kc *KuCoin) GetAccount() (*Account, error)
- func (kc *KuCoin) GetAttr() (a q.Attr)
- func (kc *KuCoin) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (kc *KuCoin) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, ...) ([]Kline, error)
- func (kc *KuCoin) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
- func (kc *KuCoin) GetOrderHistorys(currency CurrencyPair, optional ...OptionalParameter) ([]Order, error)
- func (kc *KuCoin) GetTicker(currency CurrencyPair) (*Ticker, error)
- func (kc *KuCoin) GetTrades(currency CurrencyPair, since int64) ([]Trade, error)
- func (kc *KuCoin) GetUnfinishedOrders(currency CurrencyPair) ([]Order, error)
- func (kc *KuCoin) InnerTransfer(currency, from, to, amount string) (string, error)
- func (kc *KuCoin) LimitBuy(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (kc *KuCoin) LimitSell(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (kc *KuCoin) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (kc *KuCoin) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (kc *KuCoin) OneTicker(d q.D) (ticker q.Bbo, err error)
- func (kc *KuCoin) PairArray() (map[string]q.D, map[q.D]q.P, error)
- func (kc *KuCoin) PlaceOrders(places [3]q.Order) (orders [3]q.Order, err error)
- func (kc *KuCoin) String() string
- func (kc *KuCoin) SubAccount(subUserId string) (*kucoin.SubAccountModel, error)
- func (kc *KuCoin) SubAccountUsers() (kucoin.SubAccountUsersModel, error)
- func (kc *KuCoin) SubAccounts() (kucoin.SubAccountsModel, error)
- func (kc *KuCoin) SubTransfer(currency, amount, direction, subUserId, accountType, subAccountType string) (string, error)
- func (kc *KuCoin) Test() bool
- func (kc *KuCoin) TradeFee() (map[string]q.TradeFee, error)
- func (kc *KuCoin) WithdrawFee() (sf []q.NetworkWithdraw, err error)
- func (kc *KuCoin) WithdrawalQuotas(currency, chain string) (*kucoin.WithdrawalQuotasModel, error)
- func (kc *KuCoin) Withdrawals(currency, startAt, endAt, status string) (*kucoin.WithdrawalsModel, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KuCoin ¶
type KuCoin struct {
// contains filtered or unexported fields
}
func NewWithConfig ¶
func NewWithConfig(config *APIConfig) *KuCoin
func (*KuCoin) ApplyWithdrawal ¶
func (kc *KuCoin) ApplyWithdrawal(currency, address, amount, memo, isInner, remark, chain string) (string, error)
ApplyWithdrawal applies a withdrawal.
func (*KuCoin) CancelOrder ¶
func (*KuCoin) CancelWithdrawal ¶
func (kc *KuCoin) CancelWithdrawal(withdrawalId string) (*kucoin.CancelWithdrawalResultModel, error)
CancelWithdrawal cancels a withdrawal by withdrawalId.
func (*KuCoin) CreateAccount ¶
CreateAccount creates an account according to type(main|trade) and currency Parameter #1 typo is type of account.
func (*KuCoin) CreateDepositAddress ¶
Deposits CreateDepositAddress creates a deposit address.
func (*KuCoin) DepositAddresses ¶
DepositAddresses returns the deposit address of currency for deposit. If return data is empty, you may need create a deposit address first.
func (*KuCoin) GetAccount ¶
func (*KuCoin) GetKlineRecords ¶
func (*KuCoin) GetOneOrder ¶
func (*KuCoin) GetOrderHistorys ¶
func (*KuCoin) GetUnfinishedOrders ¶
func (*KuCoin) InnerTransfer ¶
The inner transfer interface is used for transferring assets between the accounts of a user and is free of charges. For example, a user could transfer assets from their main account to their trading account on the platform.
func (*KuCoin) MarketSell ¶
func (*KuCoin) PlaceOrders ¶
func (*KuCoin) SubAccount ¶
SubAccount returns the detail of a sub-account.
func (*KuCoin) SubAccountUsers ¶
SubAccountUsers returns a list of sub-account user.
func (*KuCoin) SubAccounts ¶
SubAccounts returns the aggregated balance of all sub-accounts of the current user.
func (*KuCoin) SubTransfer ¶
func (kc *KuCoin) SubTransfer(currency, amount, direction, subUserId, accountType, subAccountType string) (string, error)
SubTransfer transfers between master account and sub-account.
func (*KuCoin) WithdrawFee ¶
func (kc *KuCoin) WithdrawFee() (sf []q.NetworkWithdraw, err error)
func (*KuCoin) WithdrawalQuotas ¶
WithdrawalQuotas returns the quotas of withdrawal.
func (*KuCoin) Withdrawals ¶
func (kc *KuCoin) Withdrawals(currency, startAt, endAt, status string) (*kucoin.WithdrawalsModel, error)
Withdrawals Deposits returns a list of deposit.