1、反向下单 暂时提交
This commit is contained in:
23
common/const/binancecode/event.go
Normal file
23
common/const/binancecode/event.go
Normal file
@ -0,0 +1,23 @@
|
||||
package binancecode
|
||||
|
||||
// NEW
|
||||
// CANCELED 已撤
|
||||
// CALCULATED 订单 ADL 或爆仓
|
||||
// EXPIRED 订单失效
|
||||
// TRADE 交易
|
||||
// AMENDMENT 订单修改
|
||||
|
||||
const (
|
||||
//新开单
|
||||
EVENT_NEW = "NEW"
|
||||
//已撤单
|
||||
EVENT_CANCELED = "CANCELED"
|
||||
//订单 ADL 或爆仓
|
||||
EVENT_CALCULATED = "CALCULATED"
|
||||
//订单失效
|
||||
EVENT_EXPIRED = "EXPIRED"
|
||||
//交易中
|
||||
EVENT_TRADE = "TRADE"
|
||||
//订单修改
|
||||
EVENT_AMENDMENT = "AMENDMENT"
|
||||
)
|
||||
20
common/const/binancecode/order_type.go
Normal file
20
common/const/binancecode/order_type.go
Normal file
@ -0,0 +1,20 @@
|
||||
package binancecode
|
||||
|
||||
const (
|
||||
//限价单
|
||||
ORDER_TYPE_LIMIT = "LIMIT"
|
||||
//市价单
|
||||
ORDER_TYPE_MARKET = "MARKET"
|
||||
//止损限价单
|
||||
ORDER_TYPE_STOP = "STOP"
|
||||
//止损市价单
|
||||
ORDER_TYPE_STOP_MARKET = "STOP_MARKET"
|
||||
//止盈限价单
|
||||
ORDER_TYPE_TAKE_PROFIT = "TAKE_PROFIT"
|
||||
//止盈市价单
|
||||
ORDER_TYPE_TAKE_PROFIT_MARKET = "TAKE_PROFIT_MARKET"
|
||||
//跟踪止损单
|
||||
ORDER_TYPE_TRAILING_STOP_MARKET = "TRAILING_STOP_MARKET"
|
||||
//爆仓
|
||||
ORDER_TYPE_LIQUIDATION = "LIQUIDATION"
|
||||
)
|
||||
6
common/const/binancecode/side.go
Normal file
6
common/const/binancecode/side.go
Normal file
@ -0,0 +1,6 @@
|
||||
package binancecode
|
||||
|
||||
const (
|
||||
SideBuy = "BUY"
|
||||
SideSell = "SELL"
|
||||
)
|
||||
Reference in New Issue
Block a user