clean up options

This commit is contained in:
Emil Lerch 2026-03-20 08:58:30 -07:00
parent 35fc9101fd
commit e9a757cece
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -132,8 +132,6 @@ pub fn printSection(
test "printSection shows header and contracts" { test "printSection shows header and contracts" {
var buf: [8192]u8 = undefined; var buf: [8192]u8 = undefined;
var w: std.Io.Writer = .fixed(&buf); var w: std.Io.Writer = .fixed(&buf);
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
defer _ = gpa.deinit();
const calls = [_]zfin.OptionContract{ const calls = [_]zfin.OptionContract{
.{ .contract_type = .call, .strike = 150.0, .expiration = .{ .days = 20100 }, .bid = 5.0, .ask = 5.50, .last_price = 5.25 }, .{ .contract_type = .call, .strike = 150.0, .expiration = .{ .days = 20100 }, .bid = 5.0, .ask = 5.50, .last_price = 5.25 },
.{ .contract_type = .call, .strike = 155.0, .expiration = .{ .days = 20100 }, .bid = 2.0, .ask = 2.50, .last_price = 2.25 }, .{ .contract_type = .call, .strike = 155.0, .expiration = .{ .days = 20100 }, .bid = 2.0, .ask = 2.50, .last_price = 2.25 },
@ -148,8 +146,6 @@ test "printSection shows header and contracts" {
test "display shows chain header no color" { test "display shows chain header no color" {
var buf: [8192]u8 = undefined; var buf: [8192]u8 = undefined;
var w: std.Io.Writer = .fixed(&buf); var w: std.Io.Writer = .fixed(&buf);
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
defer _ = gpa.deinit();
const calls = [_]zfin.OptionContract{}; const calls = [_]zfin.OptionContract{};
const puts = [_]zfin.OptionContract{}; const puts = [_]zfin.OptionContract{};
const chains = [_]zfin.OptionsChain{ const chains = [_]zfin.OptionsChain{