Initial quant trader service baseline

This commit is contained in:
Codex
2026-06-23 22:09:06 +08:00
commit 7ff786f658
137 changed files with 6664 additions and 0 deletions
@@ -0,0 +1,23 @@
package com.quantai.trader.domain;
import java.math.BigDecimal;
public record TraderPricePlan(
BigDecimal entryPrice,
BigDecimal invalidPrice,
BigDecimal stopPrice,
BigDecimal targetPrice,
BigDecimal partialTakeProfitPrice,
long maxEntryWaitMs,
long maxHoldMs
) {
public boolean completeForEntry() {
return entryPrice != null
&& invalidPrice != null
&& stopPrice != null
&& targetPrice != null
&& maxEntryWaitMs > 0
&& maxHoldMs > 0;
}
}