Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 0ad8c7caf6 |
+4
-4
@@ -1,4 +1,4 @@
|
||||
# ID Asset Direction Target TRIGGER SEVERITY NOTE
|
||||
################################################################################################################
|
||||
1 SOL BELOW 170.0 ONETIME INFO "EMERGENCY: Risiko for Perps Solana long LIKVIDERING!"
|
||||
2 SOL BELOW 71.4 ONETIME CRITICAL "CRITICAL: Risiko for Solana Raydium LÅN LIKVIDERING!"
|
||||
# Asset Direction Target TRIGGER SEVERITY NOTE
|
||||
#############################################################
|
||||
SOL BELOW 170.0 ONETIME INFO "EMERGENCY: Risiko for Perps Solana long LIKVIDERING!"
|
||||
#SOL BELOW 71.4 ONETIME CRITICAL "CRITICAL: Risiko for Solana Raydium LÅN LIKVIDERING!"
|
||||
|
||||
@@ -43,8 +43,6 @@ public final class AlarmConfigurationParser {
|
||||
static PriceAlarmDefinition parseLine(String line) {
|
||||
Cursor cursor = new Cursor(line);
|
||||
|
||||
int id = Integer.parseInt(cursor.nextToken("id"));
|
||||
|
||||
JupiterPerpsAsset asset = JupiterPerpsAsset.valueOf(
|
||||
cursor.nextToken("asset").toUpperCase(Locale.ROOT)
|
||||
);
|
||||
@@ -73,7 +71,6 @@ public final class AlarmConfigurationParser {
|
||||
}
|
||||
|
||||
return new PriceAlarmDefinition(
|
||||
id,
|
||||
asset,
|
||||
direction,
|
||||
target,
|
||||
|
||||
@@ -6,7 +6,6 @@ import java.math.BigDecimal;
|
||||
import java.util.Objects;
|
||||
|
||||
public record PriceAlarmDefinition(
|
||||
int id,
|
||||
JupiterPerpsAsset asset,
|
||||
PriceDirection direction,
|
||||
BigDecimal target,
|
||||
@@ -22,7 +21,7 @@ public record PriceAlarmDefinition(
|
||||
Objects.requireNonNull(note, "note");
|
||||
|
||||
if (target.signum() < 0) {
|
||||
throw new IllegalArgumentException("Target price cannot be negative (was: " + target.signum() + ")!");
|
||||
throw new IllegalArgumentException("Target price must be positive (was: " + target.signum() + ")!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,6 @@ public final class SelfTest {
|
||||
AlarmTrigger trigger
|
||||
) {
|
||||
return new PriceAlarmDefinition(
|
||||
123,
|
||||
JupiterPerpsAsset.SOL,
|
||||
direction,
|
||||
new BigDecimal(target),
|
||||
|
||||
Reference in New Issue
Block a user