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"` }
Click to show internal directories.
Click to hide internal directories.