subaccount

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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 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         okx.JSONTime `json:"ts,omitempty"`
}

type CreatAPIKeySubAccount

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         okx.JSONTime `json:"ts,omitempty"`
}

type CreateDepositAddress

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"`
	Comment string       `json:"comment,omitempty"`
	TS      okx.JSONTime `json:"ts,omitempty"`
}

type CreateSubAccount

type CreateSubAccount struct {
	SubAcct string       `json:"subAcct"`
	Label   string       `json:"label"`
	AcctLv  string       `json:"acctLv"`
	UID     string       `json:"uid"`
	TS      okx.JSONTime `json:"ts"`
}

type DeleteAPIKeySubAccount

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

type DeleteSubAccount

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

type GetDepositAddress

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 GetDepositHistory

type GetDepositHistory struct {
	SubAcct             string `json:"subAcct,omitempty"`
	Ccy                 string `json:"ccy,omitempty"`
	Chain               string `json:"chain,omitempty"`
	Amt                 string `json:"amt,omitempty"`
	From                string `json:"from,omitempty"`
	AreaCodeFrom        string `json:"areaCodeFrom,omitempty"`
	TO                  string `json:"to,omitempty"` // 6:Funding, 18:Trading account, Default is 6
	TxId                string `json:"txId,omitempty"`
	TS                  string `json:"ts,omitempty"`
	State               string `json:"state,omitempty"`
	DepId               string `json:"depId,omitempty"`
	ActualDepBlkConfirm string `json:"actualDepBlkConfirm,omitempty"`
}

type GetFeeRatesSubAccount

type GetFeeRatesSubAccount struct {
	Level     string       `json:"level"`
	Taker     string       `json:"taker"`
	Maker     string       `json:"maker"`
	TakerU    string       `json:"takerU"`
	MakerU    string       `json:"makerU"`
	Delivery  string       `json:"delivery"`
	Exercise  string       `json:"exercise"`
	InstType  string       `json:"instType"`
	TakerUSDC string       `json:"takerUSDC"`
	MakerUSDC string       `json:"makerUSDC"`
	TS        okx.JSONTime `json:"ts,omitempty"`
	Category  string       `json:"category"`
}

type HistoryTransfer

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

type ListSubAccount

type ListSubAccount struct {
	TotalPage string                  `json:"totalPage"`
	Page      string                  `json:"page"`
	Details   []*ListSubAccountDetail `json:"details"`
}

type ListSubAccountDetail

type ListSubAccountDetail struct {
	SubAcct string       `json:"subAcct"`
	UUID    string       `json:"uid"`
	Label   string       `json:"label"`
	AcctLv  string       `json:"acctLv"`
	TS      okx.JSONTime `json:"ts"`
}

type QueryAPIKey

type QueryAPIKey struct {
	Label  string       `json:"label,omitempty"`
	APIKey string       `json:"apiKey,omitempty"`
	Perm   string       `json:"perm,omitempty"`
	IP     string       `json:"ip,omitempty"`
	TS     okx.JSONTime `json:"ts,omitempty"`
}

type ResetAPIKey

type ResetAPIKey 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      okx.JSONTime `json:"ts,omitempty"`
}

type SetFeeRateSubAccount

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

type SetLevelSubAccount

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"`
	Type        string       `json:"type"`
	UUID        string       `json:"uid"`
	Label       string       `json:"label,omitempty"`
	Mobile      string       `json:"mobile,omitempty"`
	GAuth       bool         `json:"gAuth"`
	Enable      bool         `json:"enable"`
	TS          okx.JSONTime `json:"ts"`
	CanTransOut string       `json:"canTransOut"`
}

type Transfer

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

type UpdateAPIKEySubAccount

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      okx.JSONTime `json:"ts,omitempty"`
}

type UpdateDepositAddress

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    okx.JSONTime `json:"ts,omitempty"`
}

type WithdrawHistory

type WithdrawHistory struct {
	SubAcct          string              `json:"subAcct"`
	Ccy              string              `json:"ccy"`
	Chain            string              `json:"chain"`
	NonTradableAsset string              `json:"nonTradableAsset"`
	Amt              okx.JSONFloat64     `json:"amt"`
	TS               okx.JSONTime        `json:"ts"`
	To               string              `json:"to"`
	AreaCodeTo       string              `json:"areaCodeTo,omitempty"`
	Tag              string              `json:"tag,omitempty"`
	PmtID            string              `json:"pmtId,omitempty"`
	Memo             string              `json:"memo,omitempty"`
	AddrEx           string              `json:"addrEx,omitempty"`
	TxID             string              `json:"txId"`
	Fee              okx.JSONFloat64     `json:"fee"`
	FeeCcy           string              `json:"feeCcy"`
	State            okx.WithdrawalState `json:"state,string"`
	WdID             okx.JSONInt64       `json:"wdId"`
	ClientID         string              `json:"clientId"`
}

Jump to

Keyboard shortcuts

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