Rewrite trader service for V4 P0

This commit is contained in:
Codex
2026-06-26 21:53:22 +08:00
parent 2fe4077164
commit 5d210053d0
184 changed files with 2780 additions and 6945 deletions
@@ -0,0 +1,14 @@
package com.quantai.trader.domain;
import com.quantai.trader.enums.TraderErrorCode;
import org.springframework.stereotype.Component;
@Component
public class FeedbackValidator {
public void validateP0(TraderAppFeedback feedback) {
if (!feedback.feedbackSource().p0Allowed() || feedback.realFill()) {
throw new TraderException(TraderErrorCode.TRADER_FEEDBACK_INVALID,
"P0 rejects PAPER_APP/REAL_APP and any realFill feedback");
}
}
}