remove old comment/reuse symbols
This commit is contained in:
parent
38d9065f4f
commit
46bf34fd1c
2 changed files with 3 additions and 9 deletions
|
|
@ -126,15 +126,11 @@ pub fn run(allocator: std.mem.Allocator, config: zfin.Config, svc: *zfin.DataSer
|
|||
while (it.next()) |v| allocator.free(v.*);
|
||||
candle_map.deinit();
|
||||
}
|
||||
{
|
||||
const stock_syms = try portfolio.stockSymbols(allocator);
|
||||
defer allocator.free(stock_syms);
|
||||
for (stock_syms) |sym| {
|
||||
for (syms) |sym| {
|
||||
if (svc.getCachedCandles(sym)) |cs| {
|
||||
try candle_map.put(sym, cs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Collect watch symbols and their prices for display.
|
||||
// Includes watch lots from portfolio + symbols from separate watchlist file.
|
||||
|
|
|
|||
|
|
@ -688,8 +688,6 @@ pub fn drawContent(self: *App, arena: std.mem.Allocator, buf: []vaxis.Cell, widt
|
|||
const base_style = if (is_cursor) th.selectStyle() else if (a.is_manual_price) th.warningStyle() else th.contentStyle();
|
||||
const gl_style = if (is_cursor) th.selectStyle() else if (pnl_pct >= 0) th.positiveStyle() else th.negativeStyle();
|
||||
|
||||
// The gain/loss column starts after market value
|
||||
// prefix(4) + sym(6+1) + shares(8+1) + avgcost(10+1) + price(10+1) + mv(16+1) = 59
|
||||
try lines.append(arena, .{
|
||||
.text = text,
|
||||
.style = base_style,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue