sp

package
v0.0.0-...-44eb7c0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Param

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

type Request

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

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

Jump to

Keyboard shortcuts

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