From 9c6adf4724a55d0fc6b8604303f7add9b1b71521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Sat, 17 Jun 2023 15:09:01 -0700 Subject: [PATCH] Update apca dependency to 0.27.0 This change updates the apca dependency that we consume to version 0.27.0. --- CHANGELOG.md | 2 +- Cargo.toml | 2 +- src/main.rs | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27584ce..6a7d131 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ Unreleased ---------- - Introduced `vendored-openssl` feature to build with vendored `openssl` library -- Bumped `apca` dependency to `0.26.2` +- Bumped `apca` dependency to `0.27.0` 0.1.6 diff --git a/Cargo.toml b/Cargo.toml index 3e3a0a2..ef80f7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ anyhow = {version = "1.0", default-features = false, features = ["std"]} grev = {version = "0.1.3"} [dependencies] -apca = {version = "0.26.2"} +apca = {version = "0.27.0"} anyhow = {version = "1.0", default-features = false, features = ["std"]} chrono = {version = "0.4.23", default-features = false} chrono-tz = {version = "0.8.1", default-features = false, features = ["std"]} diff --git a/src/main.rs b/src/main.rs index 03874d4..b60b348 100644 --- a/src/main.rs +++ b/src/main.rs @@ -642,6 +642,8 @@ fn format_order_side(side: order::Side) -> &'static str { fn format_time_in_force(time_in_force: order::TimeInForce) -> &'static str { match time_in_force { order::TimeInForce::Day => "today", + order::TimeInForce::FillOrKill => "fill-or-kill", + order::TimeInForce::ImmediateOrCancel => "immediate-or-cancel", order::TimeInForce::UntilCanceled => "canceled", order::TimeInForce::UntilMarketOpen => "market open", order::TimeInForce::UntilMarketClose => "market close", @@ -652,6 +654,8 @@ fn format_time_in_force(time_in_force: order::TimeInForce) -> &'static str { fn format_time_in_force_short(time_in_force: order::TimeInForce) -> &'static str { match time_in_force { order::TimeInForce::Day => "day", + order::TimeInForce::FillOrKill => "fok", + order::TimeInForce::ImmediateOrCancel => "ioc", order::TimeInForce::UntilCanceled => "gtc", order::TimeInForce::UntilMarketOpen => "opn", order::TimeInForce::UntilMarketClose => "cls",