25 lines
772 B
Go
25 lines
772 B
Go
package binancedto
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/shopspring/decimal"
|
|
)
|
|
|
|
type UserSubscribeState struct {
|
|
SpotLastTime *time.Time `json:"spotLastTime" comment:"现货websocket最后通信时间"`
|
|
FuturesLastTime *time.Time `json:"futuresLastTime" comment:"合约websocket最后通信时间"`
|
|
}
|
|
|
|
type OpenOrder struct {
|
|
Price decimal.Decimal `json:"price"` //均价
|
|
Quantity decimal.Decimal `json:"quantity"` //数量
|
|
Status string `json:"status"` //币安原始状态 "NEW", "PARTIALLY_FILLED", "FILLED", "CANCELED", "PENDING_CANCEL", "REJECTED", "EXPIRED"
|
|
}
|
|
|
|
type StoplossMarket struct {
|
|
Pid int `json:"pid"`
|
|
Symbol string `json:"symbol"`
|
|
Type int `json:"type" comment:"对冲类型 1-现货 2-合约"`
|
|
}
|