Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/app: A few fixes and clean-ups #2295

Merged
merged 8 commits into from
Mar 22, 2024
Merged

Conversation

bonomat
Copy link
Contributor

@bonomat bonomat commented Mar 21, 2024

This should help with flaky e2e tests and improve the dev experience as well as fix a problem where we saw expired orders in the app.

bonomat added 3 commits March 22, 2024 09:02
also, pipe logs into file

Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
This is needed so that one can open/close/open/close quickly after each other without using all the liquidity.
This is done in at least 1 e2e test

Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
bonomat added 4 commits March 22, 2024 09:57
Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
this ensures we always have orders in the orderbook

Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
for better readability

Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
Signed-off-by: Philipp Hoenisch <philipp@coblox.tech>
Copy link
Contributor

@luckysori luckysori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Only nit: e4ab959 should be titled "filter out expired orders".

Comment on lines 46 to 55
fn best_bid_price(orders: &[Order], symbol: ContractSymbol) -> Option<Decimal> {
orders
.iter()
.filter(|o| {
o.order_state == OrderState::Open
&& o.direction == Direction::Long
&& o.contract_symbol == symbol
})
.map(|o| o.price)
.max()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

Copy link
Contributor

@holzeis holzeis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@holzeis holzeis added this pull request to the merge queue Mar 22, 2024
Merged via the queue into get10101:main with commit 37c99c9 Mar 22, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants