This commit is contained in:
2025-02-06 11:14:33 +08:00
commit 07847a2d9e
535 changed files with 65131 additions and 0 deletions

View File

@ -0,0 +1,24 @@
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-合约"`
}