Skip to content

Commit 07b6102

Browse files
chore(start): set WINRATE_UPGRADE env flags for safe paper-mode smoke test
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 9302d1f commit 07b6102

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

start_server.ps1

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,33 @@ if ([string]::IsNullOrEmpty($env:PYTHONPATH)) {
8585
}
8686
}
8787
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
88+
#
89+
# Win-Rate Upgrade runtime flags (set here for safe paper-mode activation)
90+
# These are intentionally set to safe values for Paper mode testing.
91+
# Toggle by editing these lines or setting environment variables elsewhere.
92+
$env:WINRATE_UPGRADE_ENABLED = "true"
93+
$env:REQUIRE_CONFIRMATION = "true"
94+
$env:CONFIRMATION_DELAY_SECONDS = "60"
95+
$env:CONFIRMATION_TTL_SECONDS = "180"
96+
$env:MAX_SPREAD_ENTRY = "0.10"
97+
$env:MIN_ASK_SIZE = "5"
98+
$env:ENFORCE_DEPTH = "true"
99+
$env:ENTRY_WINDOW_END_SECONDS = "300"
100+
$env:ENTRY_WINDOW_STRICT = "true"
101+
$env:MAX_SPREAD_EXIT = "0.15"
102+
$env:MAX_HOLD_SECONDS = "900"
103+
104+
Write-Host "WINRATE_UPGRADE_ENABLED = $($env:WINRATE_UPGRADE_ENABLED)" -ForegroundColor Cyan
105+
Write-Host "REQUIRE_CONFIRMATION = $($env:REQUIRE_CONFIRMATION)" -ForegroundColor Cyan
106+
Write-Host "CONFIRMATION_DELAY_SECONDS = $($env:CONFIRMATION_DELAY_SECONDS)" -ForegroundColor Cyan
107+
Write-Host "CONFIRMATION_TTL_SECONDS = $($env:CONFIRMATION_TTL_SECONDS)" -ForegroundColor Cyan
108+
Write-Host "MAX_SPREAD_ENTRY = $($env:MAX_SPREAD_ENTRY)" -ForegroundColor Cyan
109+
Write-Host "MIN_ASK_SIZE = $($env:MIN_ASK_SIZE)" -ForegroundColor Cyan
110+
Write-Host "ENFORCE_DEPTH = $($env:ENFORCE_DEPTH)" -ForegroundColor Cyan
111+
Write-Host "ENTRY_WINDOW_END_SECONDS = $($env:ENTRY_WINDOW_END_SECONDS)" -ForegroundColor Cyan
112+
Write-Host "ENTRY_WINDOW_STRICT = $($env:ENTRY_WINDOW_STRICT)" -ForegroundColor Cyan
113+
Write-Host "MAX_SPREAD_EXIT = $($env:MAX_SPREAD_EXIT)" -ForegroundColor Cyan
114+
Write-Host "MAX_HOLD_SECONDS = $($env:MAX_HOLD_SECONDS)" -ForegroundColor Cyan
88115

89116
python -m uvicorn webhook_server_fastapi:app --host 0.0.0.0 --port 5000 --app-dir "$scriptPath"
90117

0 commit comments

Comments
 (0)