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

feat: SLA Updates #492

Merged
merged 19 commits into from
Aug 25, 2023
Merged

feat: SLA Updates #492

merged 19 commits into from
Aug 25, 2023

Conversation

TomMcL
Copy link
Contributor

@TomMcL TomMcL commented Aug 23, 2023

Description

Updates to allow SLA changes to work within market sim

Testing

Running integration tests

Breaking Changes

Various changes to market setup and LP creation. Mainly LP bots would be affected but these should be changed too.

Closes

@TomMcL TomMcL requested a review from a team as a code owner August 23, 2023 16:04
cdummett
cdummett previously approved these changes Aug 23, 2023
Copy link
Collaborator

@cdummett cdummett left a comment

Choose a reason for hiding this comment

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

LGTM

@TomMcL TomMcL changed the title Feat/make sla work 2 feat: SLA Updates Aug 23, 2023
@TomMcL TomMcL self-assigned this Aug 23, 2023
@TomMcL TomMcL marked this pull request as ready for review August 25, 2023 10:16
@TomMcL TomMcL requested a review from cdummett August 25, 2023 10:16
@TomMcL TomMcL merged commit 3463dff into develop Aug 25, 2023
6 checks passed
@TomMcL TomMcL deleted the feat/make_sla_work_2 branch August 25, 2023 10:55
Comment on lines +1624 to +1626
if remaining > 0:
next_price = orders[-1].price + mult_factor * self.tick_spacing
orders.append(MMOrder(remaining / next_price, next_price))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think since we scale the orders to meet the LP commitment after we create the shape this might be in the wrong place?

Would it not be better in the ShapedMarketMaker _scale_orders method?

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