trade

package
v5.0.0-...-84a6732 Latest Latest
Warning

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

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

type AmendOrder struct {
	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 {
	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,string"`
	MgnMode okex.MarginMode   `json:"mgnMode,string"`
}

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,string"`
	OrdType  okex.OrderType      `json:"ordType,omitempty,string"`
	State    okex.OrderState     `json:"state,omitempty,string"`
}

type PlaceOrder

type PlaceOrder struct {
	InstId     string            `json:"instId"`
	TdMode     string            `json:"tdMode"`
	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"`
	Side       okex.OrderSide    `json:"side,string"`
	PosSide    okex.PositionSide `json:"posSide,string"`
	OrdType    okex.OrderType    `json:"ordType,string"`
	TgtCcy     okex.QuantityType `json:"tgtCcy,omitempty,string"`
}

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,string"`
}

Jump to

Keyboard shortcuts

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