This commit is contained in:
2025-02-10 18:21:44 +08:00
parent 7d906caadd
commit 7da62d8f7e
10 changed files with 511 additions and 58 deletions

View File

@ -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 现货账户信息