bump zfin to migrate back to tiingo
This commit is contained in:
parent
eabe91099a
commit
dfe4edf61b
2 changed files with 3 additions and 3 deletions
|
|
@ -14,8 +14,8 @@
|
||||||
.hash = "httpz-0.0.0-PNVzrLjJCAD37S0CcrXpsjSqr86hVjK0rsALTDJ98AAJ",
|
.hash = "httpz-0.0.0-PNVzrLjJCAD37S0CcrXpsjSqr86hVjK0rsALTDJ98AAJ",
|
||||||
},
|
},
|
||||||
.zfin = .{
|
.zfin = .{
|
||||||
.url = "git+https://git.lerch.org/lobo/zfin#4a86ecb95e1b155b58c2cdc294d850309bab934d",
|
.url = "git+https://git.lerch.org/lobo/zfin#e3ce8f32a1e3876690a7d9df5f516b2ea1b19240",
|
||||||
.hash = "zfin-0.0.0-J-B21tBcVwCRYeqB7LbX67Ik9a2y8olgk7OObrUtJ8YU",
|
.hash = "zfin-0.0.0-J-B21toPWQDLAnwSpJDpVHfzytLXb94wrc4Que-Q9w7D",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ pub fn handleReturns(app: *App, req: *httpz.Request, res: *httpz.Response) !void
|
||||||
// dividend records are missing). Matches Morningstar
|
// dividend records are missing). Matches Morningstar
|
||||||
// "Trailing Returns" / Yahoo "Performance Overview" / Koyfin
|
// "Trailing Returns" / Yahoo "Performance Overview" / Koyfin
|
||||||
// "Total Return".
|
// "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 t1y = if (total.one_year) |r| r.annualized_return else null;
|
||||||
const t3y = if (total.three_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;
|
const t5y = if (total.five_year) |r| r.annualized_return else null;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue