Skip to content

Conversation

@0xDevNinja
Copy link
Owner

…t VolumeWeightedPricingEngine for volume-weighted clearing price

Implement a volume-weighted pricing engine that calculates the clAdds a new pricing strategy that computes the clearing price as the volume-weighted average of individual order prices. Each order's price is weighted by its sell amount. Includes unit tests for weighted average and single/empty cases.

Closes #31.earing price based on individual order prices weighted by sell volume. Includes tests for weighted average calculation and handling of insufficient orders.

…t VolumeWeightedPricingEngine for volume-weighted clearing price

Implement a volume-weighted pricing engine that calculates the clAdds a new pricing strategy that computes the clearing price as the volume-weighted average of individual order prices. Each order's price is weighted by its sell amount. Includes unit tests for weighted average and single/empty cases.

Closes #31.earing price based on individual order prices weighted by sell volume. Includes tests for weighted average calculation and handling of insufficient orders.
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.

Pricing Engine: Implement volume-weighted pricing strategy

2 participants