triggerorder

package
v0.0.0-...-b0bccf5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchTpslOrderRequest

type BatchTpslOrderRequest []TpslOrderRequest

type PlaceOrderRequest

type PlaceOrderRequest struct {
	ContractCode string `json:"contract_code"`

	TriggerType string `json:"trigger_type"`

	TriggerPrice float32 `json:"trigger_price"`

	OrderPrice float32 `json:"order_price,omitempty"`

	OrderPriceType string `json:"order_price_type,omitempty"`

	Volume int64 `json:"volume"`

	Direction string `json:"direction"`

	Offset string `json:"offset"`

	LeverRate int `json:"lever_rate,omitempty"`
}

type TpslOrderRequest

type TpslOrderRequest struct {
	ContractCode string `json:"contract_code"`

	Direction string `json:"direction"`

	Volume int64 `json:"volume"`

	TpTriggerPrice float32 `json:"tp_trigger_price,omitempty"`

	TpOrderPrice float32 `json:"tp_order_price,omitempty"`

	TpOrderPriceType string `json:"tp_order_price_type,omitempty"`

	SlTriggerPrice float32 `json:"sl_trigger_price,omitempty"`

	SlOrderPrice float32 `json:"sl_order_price,omitempty"`

	SlOrderPriceType string `json:"sl_order_price_type,omitempty"`
}

Jump to

Keyboard shortcuts

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