Show hedge targets in control center
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3757,6 +3757,9 @@
|
||||
if (!target) return "<td>—</td>";
|
||||
const side = String(target.opt_type || "").toUpperCase() === "P" ? "Put≤" : "Call≥";
|
||||
const px = target.target_index != null ? fmt(target.target_index, 1) : "—";
|
||||
if (target.managed_by === "hedge_plan") {
|
||||
return `<td class="hub-opt-target-cell is-on is-hedge" title="由对冲计划监控">对冲#${esc(target.plan_id)} ${esc(side)} ${esc(px)}</td>`;
|
||||
}
|
||||
return `<td class="hub-opt-target-cell is-on" title="目标监控">${esc(side)} ${esc(px)}</td>`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user