From dfe4edf61b3d221b50f5d6dda593d99de214b77c Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 17 Aug 2026 20:08:02 -0700 Subject: [PATCH] bump zfin to migrate back to tiingo --- build.zig.zon | 4 ++-- src/handlers.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 5c9c1cb..c8e75bc 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -14,8 +14,8 @@ .hash = "httpz-0.0.0-PNVzrLjJCAD37S0CcrXpsjSqr86hVjK0rsALTDJ98AAJ", }, .zfin = .{ - .url = "git+https://git.lerch.org/lobo/zfin#4a86ecb95e1b155b58c2cdc294d850309bab934d", - .hash = "zfin-0.0.0-J-B21tBcVwCRYeqB7LbX67Ik9a2y8olgk7OObrUtJ8YU", + .url = "git+https://git.lerch.org/lobo/zfin#e3ce8f32a1e3876690a7d9df5f516b2ea1b19240", + .hash = "zfin-0.0.0-J-B21toPWQDLAnwSpJDpVHfzytLXb94wrc4Que-Q9w7D", }, }, } diff --git a/src/handlers.zig b/src/handlers.zig index a1b25af..80d5eb0 100644 --- a/src/handlers.zig +++ b/src/handlers.zig @@ -237,7 +237,7 @@ pub fn handleReturns(app: *App, req: *httpz.Request, res: *httpz.Response) !void // dividend records are missing). Matches Morningstar // "Trailing Returns" / Yahoo "Performance Overview" / Koyfin // "Total Return". - const total = result.asof_total orelse result.asof_price; + const total = result.asof_total; const t1y = if (total.one_year) |r| r.annualized_return else null; const t3y = if (total.three_year) |r| r.annualized_return else null; const t5y = if (total.five_year) |r| r.annualized_return else null;