account

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 GetAccountAndPositionRisk

type GetAccountAndPositionRisk struct {
	InstType okx.InstrumentType `json:"instType,omitempty"`
}

type GetBalance

type GetBalance struct {
	Ccy []string `json:"ccy,omitempty"`
}

type GetBills

type GetBills struct {
	Ccy      string             `json:"ccy,omitempty"`
	After    int64              `json:"after,omitempty,string"`
	Before   int64              `json:"before,omitempty,string"`
	Limit    int64              `json:"limit,omitempty,string"`
	InstType okx.InstrumentType `json:"instType,omitempty"`
	MgnMode  okx.MarginMode     `json:"mgnMode,omitempty"`
	CtType   okx.ContractType   `json:"ctType,omitempty"`
	Type     okx.BillType       `json:"type,omitempty,string"`
	SubType  okx.BillSubType    `json:"subType,omitempty,string"`
}

type GetFeeRates

type GetFeeRates struct {
	InstID   string             `json:"instId,omitempty"`
	Uly      string             `json:"uly,omitempty"`
	Category okx.FeeCategory    `json:"category,omitempty,string"`
	InstType okx.InstrumentType `json:"instType"`
}

type GetInterestAccrued

type GetInterestAccrued struct {
	InstID  string         `json:"instId,omitempty"`
	Ccy     string         `json:"ccy,omitempty"`
	After   int64          `json:"after,omitempty,string"`
	Before  int64          `json:"before,omitempty,string"`
	Limit   int64          `json:"limit,omitempty,string"`
	MgnMode okx.MarginMode `json:"mgnMode,omitempty"`
}

type GetInterestLimits added in v1.0.10

type GetInterestLimits struct {
	Type string `json:"type,omitempty"`
	Ccy  string `json:"ccy,omitempty"`
}

type GetLeverage

type GetLeverage struct {
	InstID  []string       `json:"instId"`
	MgnMode okx.MarginMode `json:"mgnMode"`
}

type GetMaxAvailableTradeAmount

type GetMaxAvailableTradeAmount struct {
	Ccy        string        `json:"ccy,omitempty"`
	InstID     string        `json:"instId"`
	ReduceOnly bool          `json:"reduceOnly,omitempty"`
	TdMode     okx.TradeMode `json:"tdMode"`
}

type GetMaxBuySellAmount

type GetMaxBuySellAmount struct {
	Ccy    string        `json:"ccy,omitempty"`
	Px     float64       `json:"px,string,omitempty"`
	InstID []string      `json:"instId"`
	TdMode okx.TradeMode `json:"tdMode"`
}

type GetMaxLoan

type GetMaxLoan struct {
	InstID  string         `json:"instId"`
	MgnCcy  string         `json:"mgnCcy,omitempty"`
	MgnMode okx.MarginMode `json:"mgnMode"`
}

type GetPositions

type GetPositions struct {
	InstID   []string           `json:"instId,omitempty"`
	PosID    []string           `json:"posId,omitempty"`
	InstType okx.InstrumentType `json:"instType,omitempty"`
}

type IncreaseDecreaseMargin

type IncreaseDecreaseMargin struct {
	InstID     string           `json:"instId"`
	Amt        float64          `json:"amt,string"`
	PosSide    okx.PositionSide `json:"posSide"`
	ActionType okx.CountAction  `json:"actionType"`
}

type SetAccountLevel added in v1.0.13

type SetAccountLevel struct {
	AcctLv string `json:"acctLv"`
}

type SetAutoLoan added in v1.0.7

type SetAutoLoan struct {
	AutoLoan bool `json:"autoLoan,omitempty"`
}

type SetGreeks

type SetGreeks struct {
	GreeksType okx.GreekType `json:"greeksType"`
}

type SetLeverage

type SetLeverage struct {
	Lever   int64            `json:"lever,string"`
	InstID  string           `json:"instId,omitempty"`
	Ccy     string           `json:"ccy,omitempty"`
	MgnMode okx.MarginMode   `json:"mgnMode"`
	PosSide okx.PositionSide `json:"posSide,omitempty"`
}

type SetPositionMode

type SetPositionMode struct {
	PosMode okx.PositionType `json:"posMode"`
}

Jump to

Keyboard shortcuts

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