| | |
| | | * |
| | | * @return 已挂多仓条件单的 GridElement 列表 |
| | | */ |
| | | public static List<GridElement> findAllLongOrders(BigDecimal currentPrice) { |
| | | public static List<GridElement> findAllShortOrders(BigDecimal currentPrice) { |
| | | List<GridElement> result = new ArrayList<>(); |
| | | for (GridElement e : INDEX.values()) { |
| | | if (e.isHasShortOrder() && e.getGridPrice().compareTo(currentPrice) < 0) { |
| | |
| | | * |
| | | * @return 已挂空仓条件单的 GridElement 列表 |
| | | */ |
| | | public static List<GridElement> findAllShortOrders(BigDecimal currentPrice) { |
| | | public static List<GridElement> findAllLongOrders(BigDecimal currentPrice) { |
| | | List<GridElement> result = new ArrayList<>(); |
| | | for (GridElement e : INDEX.values()) { |
| | | if (e.isHasLongOrder() && e.getGridPrice().compareTo(currentPrice) > 0) { |