trade

package
v1.0.16-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 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 AmendOrder

type AmendOrder struct {
	ID        string  `json:"-"`
	InstID    string  `json:"instId"`
	OrdID     string  `json:"ordId,omitempty"`
	ClOrdID   string  `json:"clOrdId,omitempty"`
	ReqID     string  `json:"reqId,omitempty"`
	NewSz     float64 `json:"newSz,omitempty,string"`
	NewPx     float64 `json:"newPx,omitempty,string"`
	CxlOnFail bool    `json:"cxlOnFail,omitempty"`
}

type CancelOrder

type CancelOrder struct {
	ID      string `json:"-"`
	InstID  string `json:"instId"`
	OrdID   string `json:"ordId,omitempty"`
	ClOrdID string `json:"clOrdId,omitempty"`
}

type ClosePosition

type ClosePosition struct {
	InstID  string            `json:"instId"`
	Ccy     string            `json:"ccy,omitempty"`
	PosSide okex.PositionSide `json:"posSide,omitempty"`
	MgnMode okex.MarginMode   `json:"mgnMode"`
}

type OrderDetails

type OrderDetails struct {
	InstID  string `json:"instId"`
	OrdID   string `json:"ordId,omitempty"`
	ClOrdID string `json:"clOrdId,omitempty"`
}

type OrderList

type OrderList struct {
	Uly      string              `json:"uly,omitempty"`
	InstID   string              `json:"instId,omitempty"`
	After    float64             `json:"after,omitempty,string"`
	Before   float64             `json:"before,omitempty,string"`
	Limit    float64             `json:"limit,omitempty,string"`
	InstType okex.InstrumentType `json:"instType,omitempty"`
	OrdType  okex.OrderType      `json:"ordType,omitempty"`
	State    okex.OrderState     `json:"state,omitempty"`
}

type PlaceOrder

type PlaceOrder struct {
	ID         string            `json:"-"`
	InstID     string            `json:"instId"`
	Ccy        string            `json:"ccy,omitempty"`
	ClOrdID    string            `json:"clOrdId,omitempty"`
	Tag        string            `json:"tag,omitempty"`
	ReduceOnly bool              `json:"reduceOnly,omitempty"`
	Sz         float64           `json:"sz,string"`
	Px         float64           `json:"px,omitempty,string"`
	TdMode     okex.TradeMode    `json:"tdMode"`
	Side       okex.OrderSide    `json:"side"`
	PosSide    okex.PositionSide `json:"posSide,omitempty"`
	OrdType    okex.OrderType    `json:"ordType"`
	TgtCcy     okex.QuantityType `json:"tgtCcy,omitempty"`
}

type TransactionDetails

type TransactionDetails struct {
	Uly      string              `json:"uly,omitempty"`
	InstID   string              `json:"instId,omitempty"`
	OrdID    string              `json:"ordId,omitempty"`
	After    float64             `json:"after,omitempty,string"`
	Before   float64             `json:"before,omitempty,string"`
	Limit    float64             `json:"limit,omitempty,string"`
	InstType okex.InstrumentType `json:"instType,omitempty"`
}

Jump to

Keyboard shortcuts

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