Skip to content

Commit

Permalink
Update apca dependency to 0.27.0
Browse files Browse the repository at this point in the history
This change updates the apca dependency that we consume to version
0.27.0.
  • Loading branch information
d-e-s-o committed Jun 17, 2023
1 parent e375955 commit 9c6adf4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}
Expand Down
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 9c6adf4

Please sign in to comment.