Documentation ¶
Index ¶
- type KuCoin
- func (kc *KuCoin) Account(accountId string) (*kucoin.AccountModel, error)
- func (kc *KuCoin) Accounts(currency, typo string) (kucoin.AccountsModel, error)
- func (kc *KuCoin) ApplyWithdrawal(currency, address, amount, memo, isInner, remark, chain string) (string, 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) GetAccount() (*Account, error)
- func (kc *KuCoin) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (kc *KuCoin) GetExchangeName() string
- 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) GetUnfinishOrders(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) 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) 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 ¶
This section is empty.
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 ¶
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) GetExchangeName ¶
func (*KuCoin) GetKlineRecords ¶
func (*KuCoin) GetOneOrder ¶
func (*KuCoin) GetOrderHistorys ¶
func (*KuCoin) GetUnfinishOrders ¶
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) 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) WithdrawalQuotas ¶
WithdrawalQuotas returns the quotas of withdrawal.
func (*KuCoin) Withdrawals ¶
func (kc *KuCoin) Withdrawals(currency, startAt, endAt, status string) (*kucoin.WithdrawalsModel, error)
Deposits returns a list of deposit.