Skip to content

Releases

AWLPilot v1.10.8

Choose a tag to compare

@memoryfraction memoryfraction released this 22 Nov 18:17

English

  • Schwab re-auth storm fixed. After a failed automated re-authorization, the app no longer starts a brand-new browser attempt on every page load and every 15-minute tick. One failure now puts re-auth in a 1-hour cooldown, so the app stops hammering Schwab with bot traffic (which makes their anti-bot blocking stricter).
  • Re-auth cookies are saved even when the attempt fails. Previously cookies were persisted only after success, so a flow that always failed (e.g. Schwab "Access Denied") never built up a browser session.
  • Rebalance page tells you what to do. When the page cannot load because the Schwab session is missing or expired, it now shows a sign-in banner with the exact steps (/signin, and for remote panels the copy-to-/lan/finish-auth flow) instead of only a generic error line.
  • Sign-in errors are actionable. If Schwab rejects a pasted authorization code (already used, expired, or partially copied), the sign-in page now says exactly that and what to do, instead of "verify your Schwab settings" — which sent users checking unrelated settings.

中文

  • 修复 Schwab 重授权风暴。 自动重授权失败后,应用不再在每次页面加载和每 15 分钟心跳时发起一轮全新的浏览器尝试;一次失败进入 1 小时冷却,停止用 bot 流量冲击 Schwab(那只会让风控更严)。
  • 重授权失败也会保存浏览器 Cookie。 以前 Cookie 只在成功时落盘,导致持续失败的场景(如 Schwab "Access Denied")永远建立不起浏览器会话。
  • 再平衡页给出明确指引。 页面因 Schwab 会话缺失/过期而加载失败时,现在显示重新登录横幅和具体步骤(/signin;远程面板则复制地址到 /lan/finish-auth),不再只有一行通用错误。
  • 登录报错可操作。 Schwab 拒绝粘贴的授权码(已被使用、已过期或复制不完整)时,登录页直接说明原因和下一步,不再是"请检查 Schwab 设置"这种把用户引向无关设置的通用文案。

AWLPilot v1.10.7

Choose a tag to compare

@memoryfraction memoryfraction released this 07 Nov 21:00

English

  • Rebalance page. The "i" next to Total Accounts Value in the page header is now a small info icon instead of a stray letter.

中文

  • 再平衡页。 页面顶部 Total Accounts Value 旁边多出的 "i" 现在是一个小的信息图标。

AWLPilot v1.10.0

Choose a tag to compare

@memoryfraction memoryfraction released this 06 Nov 02:25

English

Scheduled rebalance: AWLPilot now checks your portfolio every weekday on its own.

  • Once a weekday, 10:30–11:30 ET. When Schwab is connected and your trigger (interval or drift threshold) is reached, AWLPilot acts without the rebalance page being open. It runs at most once per day, and never on weekends.
  • Auto mode + Pro: places the orders. It uses the same safety guardrails as the rebalance page, then emails you the orders it placed.
  • Manual mode or read-only: emails the action list. No orders are placed. The email lists the suggested orders and says why they were not placed.
  • No double orders. The day is recorded before any order is sent, so a crash halfway is never retried. If the guardrails block a run, you get an email with the reason instead of a retry.
  • Off switch: set Rebalance:Schedule:Enabled to false.
  • The release and update addresses now point to the renamed public repository memoryfraction/AWLPilot-Public (the old address keeps redirecting).

中文

定时再平衡:AWLPilot 每个工作日自己检查一次组合。

  • 工作日美东 10:30–11:30 检查一次。 嘉信已连接、并且触发条件(周期或偏离阈值)到了,不用打开再平衡页面也会执行。每天最多一次,周末不跑。
  • 自动模式 + Pro:直接下单。 使用与再平衡页面相同的安全护栏,下单后发邮件告诉你下了哪些单。
  • 手动模式或只读:只发动作单邮件。 不下单。邮件列出建议订单,并说明为什么没有下单。
  • 不会重复下单。 下单前先记录"今天已执行",中途崩溃也不会重试。安全护栏拦截时发邮件说明原因,不重试。
  • 关闭方法: 把 Rebalance:Schedule:Enabled 设为 false。
  • 发布和升级地址改为改名后的公开仓库 memoryfraction/AWLPilot-Public(旧地址仍会自动跳转)。

AWLPilot v1.8.8

Choose a tag to compare

@memoryfraction memoryfraction released this 04 Nov 01:57

English

Fix release: every MCP tool now works in the published (obfuscated) build.

  • Fixed: MCP tools returned "The request failed" in the release build. get_help, diagnose and
    get_recent_log_errors serialized their results with anonymous types; Obfuscar strips the constructor
    parameter names of anonymous types, so System.Text.Json threw inside the tool. The affected payloads are now
    built with the named-field helper (McpJson.Fields), the same pattern the account tools already used.
  • Fixed: ctl install-cli wrote a broken ~/bin/quantctl. The generated script embedded the default
    program path as ${QUANT_APPIMAGE:-'<path>'}; the inner single quotes were literal characters, so the
    [ -x "$APP" ] check always failed and quantctl reported "the application was not found" even when the
    AppImage existed. The generated script now assigns a plain quoted path and honours QUANT_APPIMAGE.
    Existing broken installs are fixed by re-running Quant.Infra.Net.Pro.AppImage ctl install-cli.

中文

修复版:发布版(混淆后)中所有 MCP 工具现在都能正常工作。

  • 修复:MCP 工具在发布版中返回 "The request failed"。 get_help、diagnose、get_recent_log_errors
    此前用匿名类型序列化结果;Obfuscar 会抹掉匿名类型构造函数的参数名,导致 System.Text.Json 在工具内部抛异常。
    相关负载改用命名字段辅助方法(McpJson.Fields),与账户工具原有写法一致。
  • 修复:ctl install-cli 生成的 ~/bin/quantctl 无法运行。 生成的脚本把默认程序路径写成
    ${QUANT_APPIMAGE:-'<路径>'},内层单引号是字面字符,[ -x "$APP" ] 永远失败,即使 AppImage 存在
    quantctl 也报"application was not found"。新脚本改为普通引号赋值并支持 QUANT_APPIMAGE。
    已受影响的安装重跑一次 Quant.Infra.Net.Pro.AppImage ctl install-cli 即可修复。

Quant.Infra.Net.Pro v1.8.6

Choose a tag to compare

@memoryfraction memoryfraction released this 01 Nov 17:04

English

Security hardening.

中文

强化安全。

Quant.Infra.Net.Pro v1.8.5

Choose a tag to compare

@memoryfraction memoryfraction released this 23 Oct 00:10

English

New: optional remote panel — use the app from another computer on your own network.

  • Reach it from any computer on your network — a home or office LAN, or a virtual network such as
    ZeroTier, Tailscale or WireGuard. Open https://<server address>:<port>/<secret path>, type the password, and
    you get the same pages you get on the server itself. No remote desktop needed. Off by default.
  • Password sign-in — a password is required for everything. A random one is generated when you turn it on;
    only a hash is stored. Repeated wrong guesses slow down, changing the password signs everyone out.
  • Hidden behind a secret path — a wrong path looks like a page that does not exist (404). Only computers
    inside the network you allow can connect at all.
  • HTTPS first — the certificate covers the server's network addresses; trust it once per device from the
    /lan/ca page. Plain HTTP is available if you choose it, with a warning.
  • quantctl command — on the server, quantctl info, remote on|off, passwd, port, scheme,
    entrance, bind, trust-ca, doctor and log show and change everything.
    Quick start: run quantctl remote on, restart the app, then quantctl info prints the address and
    quantctl doctor checks the setup.
  • Authorize Schwab from another computer — a new page (/lan/finish-auth) takes the address your browser
    shows after you sign in to Schwab, so the whole authorization can be done remotely.
  • Safer by default — the app never listens on the network unless you switch the remote panel on.
    If a settings file names a non-loopback address in Urls, the app now listens on this computer only and says so
    in the log (that setup had no login). The Schwab callback address is now always the first address in Urls.

中文

新增:可选的远程面板——在您自己网络里的另一台电脑上使用本应用。

  • 同一网络内任意电脑都能访问 —— 家庭或办公室局域网,或 ZeroTier、Tailscale、WireGuard 等虚拟内网。
    打开 https://<服务器地址>:<端口>/<入口路径>,输入口令,即可看到与服务器本机相同的页面,无需远程桌面。默认关闭。
  • 口令登录 —— 一切访问都需要口令。开启时自动生成随机口令,只保存哈希。连续输错会越来越慢,
    修改口令会让所有人退出登录。
  • 藏在随机入口路径之后 —— 路径不对时,看起来就是页面不存在(404)。只有您允许的网络内的电脑才能连上。
  • 优先 HTTPS —— 证书覆盖服务器的网络地址;每台设备在 /lan/ca 页面信任一次即可。也可以选择明文 HTTP,会有提示。
  • quantctl 命令 —— 在服务器上用 quantctl info、remote on|off、passwd、port、scheme、entrance、
    bind、trust-ca、doctor、log 查看和修改一切设置。
    快速上手:运行 quantctl remote on,重启应用,再用 quantctl info 查看访问地址,quantctl doctor 自检。
  • 在另一台电脑上完成 Schwab 授权 —— 新增页面(/lan/finish-auth),粘贴您登录 Schwab 后浏览器显示的地址即可,
    整个授权过程都可以远程完成。
  • 默认更安全 —— 除非您开启远程面板,应用绝不会监听网络。如果设置文件把 Urls 写成了非本机地址,
    应用现在只在本机监听并在日志中说明(那种配置没有任何登录保护)。Schwab 回调地址现在固定取 Urls 的第一个地址。

Quant.Infra.Net.Pro v1.8.4

Choose a tag to compare

@memoryfraction memoryfraction released this 03 Oct 13:07

English

New: built-in read-only MCP server for AI clients.

  • Read-only MCP (Model Context Protocol) server — Claude Code, Cursor and other AI clients can read
    Schwab account data, positions, orders, quotes, option chains and rebalance suggestions over HTTP
    (Streamable HTTP at /mcp). There is no tool that places, changes or cancels an order, and
    calculate_rebalance only computes suggestions.
  • Off by default — Mcp:Enabled is false; the endpoint is not mapped (404) and no token is generated
    unless the user enables it. See CS 架构/document/MCP使用说明.md.
  • Bearer-token authentication — a random 32-byte token is generated on first enable and stored at
    {dataRoot}/config/mcp-token.txt (owner-only on macOS/Linux); requests must present
    Authorization: Bearer <token>. Comparison is constant-time and the token is never logged.
  • Origin / Host hardening — non-local Origin or Host headers are rejected (403) to block DNS
    rebinding and malicious web pages.
  • 10 tools: get_account, get_balances, get_positions, get_orders, get_order, get_quote,
    get_quotes, get_price_history, get_option_chain, calculate_rebalance. Every tool and parameter
    has a runtime description for the AI client, and list results are size-capped.
  • Release-build safe — MCP responses are built from named fields, not anonymous types, which Obfuscar
    would otherwise break (HTTP 500). MCP types are excluded from obfuscation so tool names stay readable.
    Verified against the obfuscated release build.
  • Privacy note — everything a tool returns is sent to the AI service your client uses.

中文

新增:内置只读 MCP 服务,供 AI 客户端使用。

  • 只读 MCP(Model Context Protocol)服务 —— Claude Code、Cursor 等 AI 客户端可通过 HTTP
    (Streamable HTTP,端点 /mcp)读取 Schwab 账户、持仓、订单、报价、期权链与再平衡建议。
    不存在任何下单、改单或撤单的工具,calculate_rebalance 仅计算建议。
  • 默认关闭 —— Mcp:Enabled 为 false;用户未启用时不映射端点(404)、不生成 token。
    详见 CS 架构/document/MCP使用说明.md。
  • Bearer token 认证 —— 首次启用时生成 32 字节随机 token,存于 {dataRoot}/config/mcp-token.txt
    (macOS/Linux 上仅属主可读写);请求须携带 Authorization: Bearer <token>。
    比较采用常量时间,token 绝不写入日志。
  • Origin / Host 加固 —— 非本机的 Origin 或 Host 头将被拒绝(403),防止 DNS 重绑定和恶意网页。
  • 10 个工具:get_account、get_balances、get_positions、get_orders、get_order、get_quote、
    get_quotes、get_price_history、get_option_chain、calculate_rebalance。每个工具和参数都带运行时描述,
    列表结果有大小上限。
  • 发布版安全 —— MCP 响应用具名字段而非匿名类型构造(否则会被 Obfuscar 破坏,返回 HTTP 500);
    MCP 类型已排除在混淆之外,工具名保持可读。已在混淆后的发布版上实测。
  • 隐私提示 —— 工具返回的所有内容都会发送给您的客户端所使用的 AI 服务。

Quant.Infra.Net.Pro v1.8.3

Choose a tag to compare

@memoryfraction memoryfraction released this 30 Sep 01:34

English

Fixes: fresh Linux installs now show "Secure" in the browser out of the box.

  • Correct NSS trust flag (the root cause of "not secure"). The local CA was imported into the
    user's NSS database with the C,, trust flag, which does not mark a certificate as trusted for
    TLS. Chrome/Chromium therefore still showed https://127.0.0.1:8443 as "not secure" on first launch.
    The CA is now imported with the CT,CT,CT flag, so a new install is trusted for SSL immediately.
  • PEM export for certutil. The CA is now converted to PEM before the NSS import, which keeps the
    stored NSS entry valid (this also works around builds whose quant-ca.cer is DER).

中文

修复:全新 Linux 安装开箱即显示"安全"。

  • 正确的 NSS 信任标志("不安全"的根因)。 之前本地 CA 以 C,, 标志导入用户 NSS 库,该标志并未
    将证书标记为"受信任的 TLS 根",导致 Chrome/Chromium 首次访问 https://127.0.0.1:8443 仍显示
    "不安全"。现在以 CT,CT,CT 标志导入,新安装立即被信任。
  • PEM 导出。 导入 NSS 前先将 CA 转为 PEM,确保 NSS 条目有效(同时兼容 quant-ca.cer 为 DER 的构建)。

Quant.Infra.Net.Pro v1.8.1

Choose a tag to compare

@memoryfraction memoryfraction released this 28 Sep 22:22

English

Fixes the "not private" HTTPS warning and the update-check failure from v1.8.0.

  • Local CA + CA-signed HTTPS certificate. Replaces the plain self-signed certificate with a
    local Certificate Authority that is trusted once (a one-time step per machine) and then signs the
    server certificate. If you later change Urls or the Schwab OAuth redirect URI to a different
    host, the server certificate is automatically re-issued and signed by the same, already-trusted
    CA — no second trust step required. If CA generation fails for any reason, the app falls back to
    the old plain self-signed certificate so HTTPS never blocks startup.
  • HTTP to HTTPS redirect. The app now recognizes X-Forwarded-Proto from reverse proxies
    (nginx, Apache) and forces any plain HTTP request to redirect to HTTPS, fixing the case where the
    address bar kept showing http:// even when the app was configured for https://.
  • Fixed: "The update check failed" on self-contained builds. Self-contained Release builds trim
    unused reflection metadata, which broke JSON parsing of the GitHub Releases API response and made
    the /update page always report a failed check. Update checking now works correctly in the
    published Setup.exe / AppImage builds.

中文

修复 v1.8.0 中的 HTTPS"不安全"警告与更新检查失败问题。

  • 本地 CA + CA 签名 HTTPS 证书。 用本地证书颁发机构(CA)替换纯自签名证书;CA 只需在每台
    机器上信任一次(一次性操作),之后由它签发服务器证书。之后如果修改 Urls 或 Schwab OAuth
    重定向地址到不同的主机,服务器证书会自动用同一个已被信任的 CA 重新签发,不需要第二次信任
    操作。如果 CA 生成因任何原因失败,会自动降级为旧的纯自签名证书,确保 HTTPS 问题不会阻塞启动。
  • HTTP 自动跳转 HTTPS。 应用现在能识别反向代理(nginx、Apache)传来的 X-Forwarded-Proto
    头,并强制把普通 HTTP 请求重定向到 HTTPS,修复了即使配置了 https:// 地址栏仍然显示
    http:// 的问题。
  • 修复:self-contained 构建中"The update check failed"。 self-contained 的 Release 构建会
    裁剪未使用的反射元数据,导致解析 GitHub Releases API 响应的 JSON 时失败,/update 页面因此
    总是报告检查失败。现在已发布的 Setup.exe / AppImage 构建中更新检查功能正常工作。

Quant.Infra.Net.Pro.Web.CharleSchwab

Choose a tag to compare

@memoryfraction memoryfraction released this 08 Jul 15:20

Fix: Settings page now correctly navigates to Dashboard after saving Schwab credentials

Problem: On macOS and Linux, after entering Schwab API credentials (AppKey, AppSecret, AccountNumber) on the Settings page and completing the OAuth login flow, the application would return to the Settings page instead of proceeding to the Dashboard. This prevented users from completing the initial setup and accessing the trading dashboard.

Resolution: The post-authentication flow now properly directs users to the Dashboard after saving credentials and completing Schwab authorization. The end-to-end workflow — Settings → Schwab authorization → Dashboard — is now seamless on all platforms.