bump zfin to migrate back to tiingo
All checks were successful
Generic zig build / build (push) Successful in 1m30s
Generic zig build / deploy (push) Successful in 27s

This commit is contained in:
Emil Lerch 2026-08-17 20:08:02 -07:00
parent eabe91099a
commit dfe4edf61b
Signed by: lobo
GPG key ID: A7B62D657EF764F8
2 changed files with 3 additions and 3 deletions

View file

@ -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",
},
},
}

View file

@ -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;