1
This commit is contained in:
24
models/binancedto/binance.go
Normal file
24
models/binancedto/binance.go
Normal 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-合约"`
|
||||
}
|
||||
Reference in New Issue
Block a user