Documentation ¶
Index ¶
- type Exchange
- func (exchange *Exchange) Account(accountId string) (*kucoin.AccountModel, error)
- func (exchange *Exchange) Accounts(currency, typo string) (kucoin.AccountsModel, error)
- func (exchange *Exchange) ApplyWithdrawal(currency, address, amount, memo, isInner, remark, chain string) (string, error)
- func (exchange *Exchange) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
- func (exchange *Exchange) CancelWithdrawal(withdrawalId string) (*kucoin.CancelWithdrawalResultModel, error)
- func (exchange *Exchange) CreateAccount(typo, currency string) (*kucoin.AccountModel, error)
- func (exchange *Exchange) CreateDepositAddress(currency, chain string) (*kucoin.DepositAddressModel, error)
- func (exchange *Exchange) DepositAddresses(currency, chain string) (*kucoin.DepositAddressModel, error)
- func (exchange *Exchange) Deposits(currency, startAt, endAt, status string) (*kucoin.DepositsModel, error)
- func (exchange *Exchange) GetAccount() (*Account, error)
- func (exchange *Exchange) GetAssets(currency CurrencyPair) (*Assets, error)
- func (exchange *Exchange) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (exchange *Exchange) GetExchangeName() string
- func (exchange *Exchange) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, ...) ([]Kline, error)
- func (exchange *Exchange) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
- func (exchange *Exchange) GetOrderHistorys(currency CurrencyPair, optional ...OptionalParameter) ([]Order, error)
- func (exchange *Exchange) GetTicker(currency CurrencyPair) (*Ticker, error)
- func (exchange *Exchange) GetTradeHistory(currency CurrencyPair, optional ...OptionalParameter) ([]Trade, error)
- func (exchange *Exchange) GetTrades(currency CurrencyPair, since int64) ([]Trade, error)
- func (exchange *Exchange) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)
- func (exchange *Exchange) InnerTransfer(currency, from, to, amount string) (string, error)
- func (exchange *Exchange) LimitBuy(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (exchange *Exchange) LimitSell(amount, price string, currency CurrencyPair, ...) (*Order, error)
- func (exchange *Exchange) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (exchange *Exchange) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (exchange *Exchange) SubAccount(subUserId string) (*kucoin.SubAccountModel, error)
- func (exchange *Exchange) SubAccountUsers() (kucoin.SubAccountUsersModel, error)
- func (exchange *Exchange) SubAccounts() (kucoin.SubAccountsModel, error)
- func (exchange *Exchange) SubTransfer(currency, amount, direction, subUserId, accountType, subAccountType string) (string, error)
- func (exchange *Exchange) WithdrawalQuotas(currency, chain string) (*kucoin.WithdrawalQuotasModel, error)
- func (exchange *Exchange) 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 Exchange ¶ added in v1.3.9
type Exchange struct {
// contains filtered or unexported fields
}
func NewWithConfig ¶
func NewWithConfig(config *APIConfig) *Exchange
func (*Exchange) ApplyWithdrawal ¶ added in v1.3.9
func (exchange *Exchange) ApplyWithdrawal(currency, address, amount, memo, isInner, remark, chain string) (string, error)
ApplyWithdrawal applies a withdrawal.
func (*Exchange) CancelOrder ¶ added in v1.3.9
func (*Exchange) CancelWithdrawal ¶ added in v1.3.9
func (exchange *Exchange) CancelWithdrawal(withdrawalId string) (*kucoin.CancelWithdrawalResultModel, error)
CancelWithdrawal cancels a withdrawal by withdrawalId.
func (*Exchange) CreateAccount ¶ added in v1.3.9
CreateAccount creates an account according to type(main|trade) and currency Parameter #1 typo is type of account.
func (*Exchange) CreateDepositAddress ¶ added in v1.3.9
func (exchange *Exchange) CreateDepositAddress(currency, chain string) (*kucoin.DepositAddressModel, error)
CreateDepositAddress creates a deposit address.
func (*Exchange) DepositAddresses ¶ added in v1.3.9
func (exchange *Exchange) DepositAddresses(currency, chain string) (*kucoin.DepositAddressModel, error)
DepositAddresses returns the deposit address of currency for deposit. If return data is empty, you may need create a deposit address first.
func (*Exchange) Deposits ¶ added in v1.3.9
func (exchange *Exchange) Deposits(currency, startAt, endAt, status string) (*kucoin.DepositsModel, error)
Deposits returns a list of deposit.
func (*Exchange) GetAccount ¶ added in v1.3.9
func (*Exchange) GetExchangeName ¶ added in v1.3.9
func (*Exchange) GetKlineRecords ¶ added in v1.3.9
func (*Exchange) GetOneOrder ¶ added in v1.3.9
func (*Exchange) GetOrderHistorys ¶ added in v1.3.9
func (*Exchange) GetTradeHistory ¶ added in v1.3.9
func (*Exchange) GetUnfinishOrders ¶ added in v1.3.9
func (*Exchange) InnerTransfer ¶ added in v1.3.9
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 (*Exchange) MarketSell ¶ added in v1.3.9
func (*Exchange) SubAccount ¶ added in v1.3.9
SubAccount returns the detail of a sub-account.
func (*Exchange) SubAccountUsers ¶ added in v1.3.9
SubAccountUsers returns a list of sub-account user.
func (*Exchange) SubAccounts ¶ added in v1.3.9
SubAccounts returns the aggregated balance of all sub-accounts of the current user.
func (*Exchange) SubTransfer ¶ added in v1.3.9
func (exchange *Exchange) SubTransfer(currency, amount, direction, subUserId, accountType, subAccountType string) (string, error)
SubTransfer transfers between master account and sub-account.
func (*Exchange) WithdrawalQuotas ¶ added in v1.3.9
func (exchange *Exchange) WithdrawalQuotas(currency, chain string) (*kucoin.WithdrawalQuotasModel, error)
WithdrawalQuotas returns the quotas of withdrawal.
func (*Exchange) Withdrawals ¶ added in v1.3.9
func (exchange *Exchange) Withdrawals(currency, startAt, endAt, status string) (*kucoin.WithdrawalsModel, error)
Deposits returns a list of deposit.