sendchildorder

package
Version: v0.0.0-...-935a062 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIPath string = "/v1/me/sendchildorder"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutiveCondition

type ExecutiveCondition string
const (
	GTC ExecutiveCondition = "GTC"
	IoC ExecutiveCondition = "IOC"
	FoK ExecutiveCondition = "FOK"
)

type OrderType

type OrderType string
const (
	Limit  OrderType = "LIMIT"
	Market OrderType = "MARKET"
)

type Request

type Request struct {
	ProductCode    markets.ProductCode `json:"product_code"`
	ChildOrderType OrderType           `json:"child_order_type"`
	Side           Side                `json:"side"`
	Price          float64             `json:"price,omitempty"`
	Size           float64             `json:"size"`
	MinuteToExpire int64               `json:"minute_to_expire,omitempty"`
	TimeInForce    ExecutiveCondition  `json:"time_in_force,omitempty"`
}

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 {
	ChildOrderAcceptanceId string `json:"child_order_acceptance_id"`
}

type Side

type Side string
const (
	Buy  Side = "BUY"
	Sell Side = "SELL"
)

Source Files

Jump to

Keyboard shortcuts

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