kucoin

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 New

func New(apiKey, apiSecret, apiPassphrase string) *Exchange

func NewWithConfig

func NewWithConfig(config *APIConfig) *Exchange

func (*Exchange) Account added in v1.3.9

func (exchange *Exchange) Account(accountId string) (*kucoin.AccountModel, error)

Account returns an account when you know the accountId.

func (*Exchange) Accounts added in v1.3.9

func (exchange *Exchange) Accounts(currency, typo string) (kucoin.AccountsModel, error)

Accounts returns a list of accounts.

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 *Exchange) CancelOrder(orderId string, currency CurrencyPair) (bool, error)

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

func (exchange *Exchange) CreateAccount(typo, currency string) (*kucoin.AccountModel, error)

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 *Exchange) GetAccount() (*Account, error)

func (*Exchange) GetAssets added in v1.3.9

func (exchange *Exchange) GetAssets(currency CurrencyPair) (*Assets, error)

func (*Exchange) GetDepth added in v1.3.9

func (exchange *Exchange) GetDepth(size int, currency CurrencyPair) (*Depth, error)

func (*Exchange) GetExchangeName added in v1.3.9

func (exchange *Exchange) GetExchangeName() string

func (*Exchange) GetKlineRecords added in v1.3.9

func (exchange *Exchange) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, optional ...OptionalParameter) ([]Kline, error)

func (*Exchange) GetOneOrder added in v1.3.9

func (exchange *Exchange) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)

func (*Exchange) GetOrderHistorys added in v1.3.9

func (exchange *Exchange) GetOrderHistorys(currency CurrencyPair, optional ...OptionalParameter) ([]Order, error)

func (*Exchange) GetTicker added in v1.3.9

func (exchange *Exchange) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*Exchange) GetTradeHistory added in v1.3.9

func (exchange *Exchange) GetTradeHistory(currency CurrencyPair, optional ...OptionalParameter) ([]Trade, error)

func (*Exchange) GetTrades added in v1.3.9

func (exchange *Exchange) GetTrades(currency CurrencyPair, since int64) ([]Trade, error)

func (*Exchange) GetUnfinishOrders added in v1.3.9

func (exchange *Exchange) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)

func (*Exchange) InnerTransfer added in v1.3.9

func (exchange *Exchange) InnerTransfer(currency, from, to, amount string) (string, error)

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) LimitBuy added in v1.3.9

func (exchange *Exchange) LimitBuy(amount, price string, currency CurrencyPair, opt ...LimitOrderOptionalParameter) (*Order, error)

func (*Exchange) LimitSell added in v1.3.9

func (exchange *Exchange) LimitSell(amount, price string, currency CurrencyPair, opt ...LimitOrderOptionalParameter) (*Order, error)

func (*Exchange) MarketBuy added in v1.3.9

func (exchange *Exchange) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*Exchange) MarketSell added in v1.3.9

func (exchange *Exchange) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)

func (*Exchange) SubAccount added in v1.3.9

func (exchange *Exchange) SubAccount(subUserId string) (*kucoin.SubAccountModel, error)

SubAccount returns the detail of a sub-account.

func (*Exchange) SubAccountUsers added in v1.3.9

func (exchange *Exchange) SubAccountUsers() (kucoin.SubAccountUsersModel, error)

SubAccountUsers returns a list of sub-account user.

func (*Exchange) SubAccounts added in v1.3.9

func (exchange *Exchange) SubAccounts() (kucoin.SubAccountsModel, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL