Financial equilibria in the semimartingale setting: Complete markets and markets with withdrawal constraints