package dealtype

// DealType 资金小类型：1买单，2卖单，3手续费，4划转(废弃)，5已实现盈亏,6爆仓精算,7资金费用  13内部转入 14 内部转出 101现货划转合约  102 合约划转现货 103 现货转法币 104 法币转现货 105 币本位划转现货  106 现货划转到币本位
// 说明： 13-106之间不能插入其他数值
const (
	Buy          int = 1   // 1买单
	Sell         int = 2   // 2卖单
	BrokerAge    int = 3   // 手续费
	Transfer     int = 4   // 划转(废弃)
	Profited     int = 5   // 已实现盈亏
	LossFee      int = 6   // 爆仓精算
	FundFee      int = 7   // 资金费用
	InTransfer   int = 13  // 内部转入
	OutTransfer  int = 14  // 内部转出
	VtsToFut     int = 101 // 现货划转合约
	FutToVts     int = 102 // 合约转现货
	VtsToOtc     int = 103 // 现货转法币
	OtcToVts     int = 104 // 法币转现货
	FutCoinToVts int = 105 // 币本位划转现货
	VtsToFutCoin int = 106 // 现货划转到币本位
)

var Types = map[int]string{
	Buy:          "买单",
	Sell:         "卖单",
	BrokerAge:    "手续费",
	Transfer:     "划转",
	Profited:     "已实现盈亏",
	LossFee:      "爆仓精算",
	FundFee:      "资金费用",
	InTransfer:   "内部转入",
	OutTransfer:  "内部转出",
	VtsToFut:     "现货划转合约",
	FutToVts:     "合约转现货",
	VtsToOtc:     "现货转法币",
	OtcToVts:     "法币转现货",
	FutCoinToVts: "币本位划转现货",
	VtsToFutCoin: "现货划转到币本位",
}
