sendparentorder

package
v0.0.0-...-81d47fe Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderMethod

type OrderMethod string
const (
	Simple OrderMethod = "SIMPLE"
	IFD    OrderMethod = "IFD"
	OCO    OrderMethod = "OCO"
	IFDOCO OrderMethod = "IFDOCO"
)

type Param

type Param struct {
	ProductCode   types.ProductCode `json:"product_code"`
	ConditionType string            `json:"condition_type"`
	Side          types.Side        `json:"side"`
	Price         float64           `json:"price"`
	TriggerPrice  float64           `json:"trigger_price"`
	Size          float64           `json:"size"`
	Offset        int               `json:"offset,omitempty"`
}

type Request

type Request struct {
	OrderMethod    OrderMethod `json:"order_method,omitempty"`
	MinuteToExpire int         `json:"minute_to_expire,omitempty"`
	TimeInForce    TimeInForce `json:"time_in_force,omitempty"`
	Parameters     []Param     `json:"parameters"`
}

func (*Request) Endpoint

func (req *Request) Endpoint() string

func (*Request) Method

func (req *Request) Method() string

func (*Request) Payload

func (req *Request) Payload() []byte

func (*Request) Query

func (req *Request) Query() string

type Response

type Response struct {
	ParentOrderAcceptanceId string `json:"parent_order_acceptance_id"`
}

type TimeInForce

type TimeInForce string
const (
	GTC TimeInForce = "GTC"
	IOC TimeInForce = "IOC"
	FOK TimeInForce = "FOK"
)

Jump to

Keyboard shortcuts

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