| | |
| | | * @return |
| | | */ |
| | | public boolean isContractTrading(Item item) { |
| | | //如果是虚拟币新币 |
| | | //虚拟币新币才判断 |
| | | if (item.getType().equals(Item.cryptos) && (item.getCurrencyType() != null && item.getCurrencyType() == 1)) { |
| | | if (item.getTradeType() != null && item.getTradeType().equals("1")) { |
| | | if (item.getTradeType() != null && item.getTradeType().equals("0")) { |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | /** |
| | | * 是否停牌状态 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | public boolean isSuspended(Item item) { |
| | | //虚拟币新币才判断 |
| | | if (item.getType().equals(Item.cryptos) && (item.getCurrencyType() != null && item.getCurrencyType() == 1)) { |
| | | if (item.getStatus() != null && item.getStatus() == 0) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | } |