Skip to content
All library documents

VeighNa Order Directions and Closing Positions

Article vn.py community

Summary

This forum exchange addresses two practical VeighNa questions: removing subscribed market contracts and closing an open futures position. A reply says the framework does not support unsubscribing, suggesting a restart and re-adding only the desired contracts as a workaround. Another recommends checking order parameters and the rejection details in the application log when orders are rejected.

The discussion explains that VeighNa exposes buy and sell actions rather than a one-click close command. To close a one-contract long position, the trader sells one contract; selling another would then create a one-contract short position. A participant also recommends issuing a cancel-all action at the end of each cycle. These are brief user suggestions rather than comprehensive platform documentation: the thread does not specify gateway, offset, or order-parameter requirements, and its proposed workflow may depend on the trading setup.

Key ideas

  • The thread says VeighNa does not provide support for unsubscribing from market contracts.
  • A participant suggests restarting and adding only the contracts still needed.
  • Order rejection details can be investigated through the application log and submitted parameters.
  • A sell order offsets a long position, while an additional sell can open a short position.
  • A forum reply recommends canceling outstanding orders at the end of each cycle.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.