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: exclude time spent in auction from perpetual TWAP #10054

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

wwestgarth
Copy link
Contributor

closes #9936

@wwestgarth wwestgarth requested review from candida-d, gordsport and a team as code owners November 13, 2023 09:40
@wwestgarth wwestgarth force-pushed the 9936-perps-in-auction branch from 6a02ddd to 85ac321 Compare November 14, 2023 08:54
@wwestgarth wwestgarth force-pushed the 9936-perps-in-auction branch from 85ac321 to 0ec5f0e Compare November 15, 2023 08:42
@wwestgarth wwestgarth force-pushed the 9936-perps-in-auction branch from 0ec5f0e to 20588f9 Compare November 15, 2023 12:36

// if the market is in a none opening-auction we need to tell the instrument
if as.InAuction() && !as.IsOpeningAuction() {
tradableInstrument.Instrument.Product.UpdateAuctionState(ctx, true)
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be replaced by the higher level method you exposed:

tradableInstrument.Instrument.UpdateAuctionState()

@ValentinTrinque ValentinTrinque merged commit 6bb9919 into develop Nov 15, 2023
15 checks passed
@ValentinTrinque ValentinTrinque deleted the 9936-perps-in-auction branch November 15, 2023 16:09
@gordsport gordsport added the feature new feature to be developed label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature to be developed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Perps]: modify funding payment calculation
4 participants