subaccount

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 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 APIKey

type APIKey struct {
	SubAcct    string        `json:"subAcct,omitempty"`
	Label      string        `json:"label,omitempty"`
	APIKey     string        `json:"apiKey,omitempty"`
	SecretKey  string        `json:"secretKey,omitempty"`
	Passphrase string        `json:"Passphrase,omitempty"`
	Perm       string        `json:"perm,omitempty"`
	IP         string        `json:"ip,omitempty"`
	TS         okex.JSONTime `json:"ts,omitempty"`
}

type CreatAPIKeySubAccount added in v1.3.4

type CreatAPIKeySubAccount struct {
	SubAcct    string        `json:"subAcct,omitempty"`
	Label      string        `json:"label,omitempty"`
	APIKey     string        `json:"apiKey,omitempty"`
	SecretKey  string        `json:"secretKey,omitempty"`
	Passphrase string        `json:"passphrase,omitempty"`
	Perm       string        `json:"perm,omitempty"`
	IP         string        `json:"ip,omitempty"`
	TS         okex.JSONTime `json:"ts,omitempty"`
}

type CreateDepositAddress added in v1.3.4

type CreateDepositAddress struct {
	Ccy   string        `json:"ccy,omitempty"`
	Addr  string        `json:"addr,omitempty"`
	Chain string        `json:"chain,omitempty"`
	PmtID string        `json:"pmtId,omitempty"`
	Tag   string        `json:"tag,omitempty"`
	Memo  string        `json:"memo,omitempty"`
	TS    okex.JSONTime `json:"ts,omitempty"`
}

type CreateSubAccount added in v1.3.4

type CreateSubAccount struct {
	SubAcct string        `json:"subAcct"`
	Label   string        `json:"label"`
	AcctLv  string        `json:"acctLv"`
	UUID    string        `json:"uuid"`
	TS      okex.JSONTime `json:"ts"`
}

type DeleteAPIKeySubAccount added in v1.3.4

type DeleteAPIKeySubAccount struct {
	SubAcct string `json:"subAcct,omitempty"`
}

type DeleteSubAccount added in v1.3.4

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

type GetDepositAddress added in v1.3.4

type GetDepositAddress struct {
	Addr     string `json:"addr,omitempty"`
	Tag      string `json:"tag,omitempty"`
	Memo     string `json:"memo,omitempty"`
	PmtID    string `json:"pmtId,omitempty"`
	Ccy      string `json:"ccy,omitempty"`
	Chain    string `json:"chain,omitempty"`
	TO       string `json:"to,omitempty"` // 6:Funding, 18:Trading account, Default is 6
	Selected bool   `json:"selected"`     // Return true if the current deposit address is selected on the website page
	CtAddr   string `json:"ctAddr,omitempty"`
}

type HistoryTransfer

type HistoryTransfer struct {
	SubAcct string         `json:"subAcct,omitempty"`
	Ccy     string         `json:"ccy,omitempty"`
	BillID  okex.JSONInt64 `json:"billId,omitempty"`
	Type    okex.BillType  `json:"type,omitempty,string"`
	TS      okex.JSONTime  `json:"ts,omitempty"`
}

type SetFeeRateSubAccount added in v1.3.4

type SetFeeRateSubAccount struct {
	SubAcct string `json:"subAcct,omitempty"`
	EffDate string `json:"effDate,omitempty"`
}

type SetLevelSubAccount added in v1.3.4

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

type SubAccount

type SubAccount struct {
	SubAcct string        `json:"subAcct,omitempty"`
	Label   string        `json:"label,omitempty"`
	Mobile  string        `json:"mobile,omitempty"`
	GAuth   bool          `json:"gAuth"`
	Enable  bool          `json:"enable"`
	TS      okex.JSONTime `json:"ts"`
}

type Transfer

type Transfer struct {
	TransID okex.JSONInt64 `json:"transId"`
}

type UpdateAPIKEySubAccount added in v1.3.4

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

type UpdateDepositAddress added in v1.3.4

type UpdateDepositAddress struct {
	Ccy   string        `json:"ccy,omitempty"`
	Addr  string        `json:"addr,omitempty"`
	Chain string        `json:"chain,omitempty"`
	PmtID string        `json:"pmtId,omitempty"`
	Tag   string        `json:"tag,omitempty"`
	Memo  string        `json:"memo,omitempty"`
	TO    string        `json:"to,omitempty"` // 6:Funding, 18:Trading account, Default is 6
	TS    okex.JSONTime `json:"ts,omitempty"`
}

Jump to

Keyboard shortcuts

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