[Feature] VWAP execution algorithm #3842
JKDasondee
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add a VWAP (Volume-Weighted Average Price) execution algorithm alongside the existing TWAP implementation.
The Rust algorithm module comments already mention VWAP as an intended algorithm (line 19 of
crates/core/src/nanos.rsdocs reference "algorithms like TWAP and VWAP"), andExecAlgorithmId("VWAP")appears in serialization tests, but no implementation exists.Proposed implementation
A
VWAPExecAlgorithminnautilus_trader/examples/algorithms/vwap.pyfollowing the TWAP pattern:volume_weightslist (default: U-shaped intraday curve) that determines the proportion of total quantity to execute in each intervalhorizon_secs+interval_secsparameters, timer callback spawns market ordersParameters (via
exec_algorithm_params)horizon_secsinterval_secsvolume_weightsExample usage
Motivation
VWAP is the most widely used execution benchmark in institutional trading. A static-profile implementation provides immediate value while a future enhancement could add live market volume tracking (participation-rate mode).
Beta Was this translation helpful? Give feedback.
All reactions