subaccount

package
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatAPIKeySubAccount

type CreatAPIKeySubAccount struct {
	SubAcct    string           `json:"subAcct"`
	Label      string           `json:"label"`
	Passphrase string           `json:"passphrase"`
	IP         []string         `json:"ip,omitempty"`
	Perm       okx.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       okx.APIKeyAccess `json:"perm,omitempty"`
}

type CreateDepositAddress

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       okx.AccountType `json:"to,string"`          // 6:Funding, 18:Trading account, Default is 6
}

type CreateSubAccount

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

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

type DeleteSubAccount

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

type GetBalance

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

type GetBalancesFunding

type GetBalancesFunding struct {
	SubAcct string `json:"subAcct"`
	Ccy     string `json:"ccy,omitempty"`
}

type GetDepositAddress

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

type GetDepositHistory

type GetDepositHistory struct {
	SubAcct string `json:"subAcct"`
	Ccy     string `json:"ccy"`
	TxId    string `json:"txId"`
	Type    string `json:"type"`
	State   string `json:"state"`
	After   string `json:"after"`
	Before  string `json:"before"`
	Limit   string `json:"limit"`
}

type GetFeeRatesSubAccount

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 GetWithdrawHistory

type GetWithdrawHistory struct {
	SubAcct  string `json:"subAcct"`
	Ccy      string `json:"ccy"`
	WdID     string `json:"wdId"`
	ClientId string `json:"clientId"`
	TxID     string `json:"txId"`
	Type     string `json:"type"`
	State    string `json:"state"`
	After    string `json:"after"`
	Before   string `json:"before"`
	Limit    string `json:"limit"`
}

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    okx.TransferType `json:"type,omitempty,string"`
}

type ListSubAccount

type ListSubAccount struct {
	SubAcct string `json:"subAcct,omitempty"`
	UUID    string `json:"uid,omitempty"`
	Page    string `json:"page,omitempty"`
	Limit   string `json:"limit,omitempty"` // Number of results per request. The maximum is 100; the default is 100
}

type ManageTransfers

type ManageTransfers struct {
	Ccy            string          `json:"ccy"`
	Amt            float64         `json:"amt,string"`
	From           okx.AccountType `json:"from,string"`
	To             okx.AccountType `json:"to,string"`
	FromSubAccount string          `json:"fromSubAccount"`
	ToSubAccount   string          `json:"toSubAccount"`
	LoanTrans      bool            `json:"loanTrans"`
	OmitPosRisk    string          `json:"omitPosRisk"`
}

type QueryAPIKey

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

type ResetAPIKey

type ResetAPIKey struct {
	SubAcct string           `json:"subAcct"`
	ApiKey  string           `json:"apiKey"`
	Label   string           `json:"label"`
	IP      []string         `json:"ip,omitempty"`
	Perm    okx.APIKeyAccess `json:"perm,omitempty"`
}

type SetFeeRateSubAccount

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

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

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

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