subaccount

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatAPIKeySubAccount added in v1.3.4

type CreatAPIKeySubAccount struct {
	SubAcct    string            `json:"subAcct"`
	Label      string            `json:"label"`
	Passphrase string            `json:"passphrase"`
	IP         []string          `json:"ip,omitempty"`
	Perm       okex.APIKeyAccess `json:"perm,omitempty"`
}

type CreateAPIKey

type CreateAPIKey struct {
	Pwd        string            `json:"pwd"`
	SubAcct    string            `json:"subAcct"`
	Label      string            `json:"label"`
	Passphrase string            `json:"Passphrase"`
	IP         []string          `json:"ip,omitempty"`
	Perm       okex.APIKeyAccess `json:"perm,omitempty"`
}

type CreateDepositAddress added in v1.3.4

type CreateDepositAddress struct {
	SubAcct  string `json:"subAcct"`
	Ccy      string `json:"ccy"`
	Chain    string `json:"chain,omitempty"`
	AddrType string `json:"addrType,omitempty"` // 1: Regular address, 2:SegWit address (Only applicable to BTC/LTC), Default is 1
	TO       string `json:"to,omitempty"`       // 6:Funding, 18:Trading account, Default is 6
}

type CreateSubAccount added in v1.3.4

type CreateSubAccount struct {
	SubAcct string `json:"subAcct"`
	Label   string `json:"label,omitempty"`
}

type DeleteAPIKey

type DeleteAPIKey struct {
	Pwd     string `json:"pwd"`
	APIKey  string `json:"apiKey"`
	SubAcct string `json:"subAcct"`
}

type DeleteAPIKeySubAccount added in v1.3.4

type DeleteAPIKeySubAccount struct {
	SubAcct string `json:"subAcct"`
	APIKey  string `json:"apiKey"`
}

type DeleteSubAccount added in v1.3.4

type DeleteSubAccount struct {
	SubAcct string `json:"subAcct"`
}

type GetBalance

type GetBalance struct {
	SubAcct string `json:"subAcct"`
}

type GetDepositAddress added in v1.3.4

type GetDepositAddress struct {
	SubAcct string `json:"subAcct"`
	Ccy     string `json:"ccy"`
}

type GetFeeRatesSubAccount added in v1.3.5

type GetFeeRatesSubAccount struct {
	InstType   string `json:"instType"`             // SPOT MARGIN SWAP FUTURES OPTION
	InstID     string `json:"instId,omitempty"`     // Instrument ID, e.g. BTC-USDT Applicable to SPOT/MARGIN
	Uly        string `json:"uly,omitempty"`        // Underlying, e.g. BTC-USD Applicable to FUTURES/SWAP/OPTION
	InstFamily string `json:"instFamily,omitempty"` // Instrument family, e.g. BTC-USDApplicable to FUTURES/SWAP/OPTION
}

type HistoryTransfer

type HistoryTransfer struct {
	Ccy     string            `json:"ccy,omitempty"`
	SubAcct string            `json:"subAcct,omitempty"`
	After   int64             `json:"after,omitempty,string"`
	Before  int64             `json:"before,omitempty,string"`
	Limit   int64             `json:"limit,omitempty,string"`
	Type    okex.TransferType `json:"type,omitempty,string"`
}

type ManageTransfers

type ManageTransfers struct {
	Ccy            string           `json:"ccy"`
	FromSubAccount string           `json:"fromSubAccount"`
	ToSubAccount   string           `json:"tiSubAccount"`
	Amt            float64          `json:"amt,string"`
	From           okex.AccountType `json:"from,string"`
	To             okex.AccountType `json:"to,string"`
}

type QueryAPIKey

type QueryAPIKey struct {
	APIKey  string `json:"apiKey"`
	SubAcct string `json:"subAcct"`
}

type SetFeeRateSubAccount added in v1.3.4

type SetFeeRateSubAccount struct {
	SubAcct  string `json:"subAcct,omitempty"`
	InstType string `json:"instType,omitempty"`
	MgnType  string `json:"mgnType,omitempty"`
	ChgType  string `json:"chgType"`
	ChgTaker string `json:"chgTaker"`
	ChgMaker string `json:"chgMaker"`
	EffDate  string `json:"effDate,omitempty"`
}

type SetLevelSubAccount added in v1.3.4

type SetLevelSubAccount struct {
	SubAcct string `json:"subAcct"`
	AcctLv  string `json:"acctLv"` //Account level 1: Simple 2: Single-currency margin 3: Multi-currency margin 4:Portfolio margin
}

type UpdateAPIKEySubAccount added in v1.3.4

type UpdateAPIKEySubAccount struct {
	SubAcct string `json:"subAcct"`
	Label   string `json:"label,omitempty"`
	APIKey  string `json:"apiKey"`
	Perm    string `json:"perm,omitempty"`
	IP      string `json:"ip,omitempty"`
}

type UpdateDepositAddress added in v1.3.4

type UpdateDepositAddress struct {
	SubAcct  string `json:"subAcct"`
	Ccy      string `json:"ccy"`
	Chain    string `json:"chain,omitempty"`
	AddrType string `json:"addrType"` // 1: Regular address, 2:SegWit address (Only applicable to BTC/LTC), Default is 1
	TO       string `json:"to"`       // 6:Funding, 18:Trading account, Default is 6
}

type ViewList

type ViewList struct {
	SubAcct string `json:"subAcct,omitempty"`
	Enable  bool   `json:"enable,omitempty"`
	After   int64  `json:"after,omitempty,string"`
	Before  int64  `json:"before,omitempty,string"`
	Limit   int64  `json:"limit,omitempty,string"`
}

Jump to

Keyboard shortcuts

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