| | |
| | | public static Map<String,List<OrderModel>> getOrderMap(String symbol, int type) { |
| | | switch (symbol) { |
| | | case "BTC/USDT": // 开空止损 开多止盈 开空爆仓 限价开空 |
| | | if (type == 12 || type == 9 || type == 7 || type == 3) { |
| | | if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) { |
| | | if (BTC_MAP_ASC == null) { |
| | | BTC_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>(); |
| | | } |
| | |
| | | return BTC_MAP_DESC; |
| | | } |
| | | case "ETH/USDT": // 开多止损 开空止盈 开多爆仓 限价开多 |
| | | if (type == 12 || type == 9 || type == 7 || type == 3) { |
| | | if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) { |
| | | if (ETH_MAP_ASC == null) { |
| | | ETH_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>(); |
| | | } |
| | |
| | | return ETH_MAP_DESC; |
| | | } |
| | | case "XRP/USDT": // 开多止损 开空止盈 开多爆仓 限价开多 |
| | | if (type == 12 || type == 9 || type == 7 || type == 3) { |
| | | if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) { |
| | | if (XRP_MAP_ASC == null) { |
| | | XRP_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>(); |
| | | } |
| | |
| | | return XRP_MAP_DESC; |
| | | } |
| | | case "LTC/USDT": // 开多止损 开空止盈 开多爆仓 限价开多 |
| | | if (type == 12 || type == 9 || type == 7 || type == 3) { |
| | | if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) { |
| | | if (LTC_MAP_ASC == null) { |
| | | LTC_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>(); |
| | | } |
| | |
| | | return LTC_MAP_DESC; |
| | | } |
| | | case "BCH/USDT": // 开多止损 开空止盈 开多爆仓 限价开多 |
| | | if (type == 12 || type == 9 || type == 7 || type == 3) { |
| | | if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) { |
| | | if (BCH_MAP_ASC == null) { |
| | | BCH_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>(); |
| | | } |
| | |
| | | return BCH_MAP_DESC; |
| | | } |
| | | case "EOS/USDT": // 开多止损 开空止盈 开多爆仓 限价开多 |
| | | if (type == 12 || type == 9 || type == 7 || type == 3) { |
| | | if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) { |
| | | if (EOS_MAP_ASC == null) { |
| | | EOS_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>(); |
| | | } |
| | |
| | | return EOS_MAP_DESC; |
| | | } |
| | | case "ETC/USDT": // 开多止损 开空止盈 开多爆仓 限价开多 |
| | | if (type == 12 || type == 9 || type == 7 || type == 3) { |
| | | if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) { |
| | | if (ETC_MAP_ASC == null) { |
| | | ETC_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>(); |
| | | } |