1
This commit is contained in:
@ -70,7 +70,7 @@ type FutOrderPlace struct {
|
||||
OpenOrder int `json:"open_order"` //是否开启限价单止盈止损
|
||||
Profit decimal.Decimal `json:"profit"` //止盈价格
|
||||
StopPrice decimal.Decimal `json:"stopprice"` //止损价格
|
||||
OrderType string `json:"order_type"` //订单类型,市价或限价MARKET(市价单) TAKE_PROFIT_MARKET(止盈) STOP_MARKET(止损)
|
||||
OrderType string `json:"order_type"` //订单类型,市价或限价MARKET(市价单) TAKE_PROFIT_MARKET(市价止盈) TAKE_PROFIT(限价止盈) STOP (限价止损) STOP_MARKET(市价止损)
|
||||
NewClientOrderId string `json:"newClientOrderId"`
|
||||
}
|
||||
|
||||
@ -188,14 +188,13 @@ type OpenOrders struct {
|
||||
|
||||
// 待触发加仓单
|
||||
type AddPositionList struct {
|
||||
Pid int `json:"pid"` //主单id
|
||||
ApiId int `json:"apiId"` //触发账户id
|
||||
Symbol string `json:"symbol"` //交易对
|
||||
Price decimal.Decimal `json:"price"` //触发价
|
||||
Side string `json:"side"` //买卖方向
|
||||
AddPositionMainType string `json:"addPositionType"` //A账号加仓类型
|
||||
AddPositionHedgeType string `json:"addPositionHedgeType"` //B账号加仓类型
|
||||
SymbolType int `json:"type" comment:"交易对类别 1-现货 2-合约"`
|
||||
Pid int `json:"pid"` //父级id
|
||||
MainId int `json:"mainId"` //主单Id
|
||||
ApiId int `json:"apiId"` //触发账户id
|
||||
Symbol string `json:"symbol"` //交易对
|
||||
Price decimal.Decimal `json:"price"` //触发价
|
||||
Side string `json:"side"` //买卖方向
|
||||
SymbolType int `json:"type" comment:"交易对类别 1-现货 2-合约"`
|
||||
}
|
||||
|
||||
// SpotAccountInfo 现货账户信息
|
||||
|
||||
Reference in New Issue
Block a user