Close Position
This command will close a position and requires an account name value and an instrument name value. The instrument name value is the name of the NinjaTrader instrument including the exchange name. For equities, the symbol is sufficient.
This command will cancel any account-level working or pending orders and flatten the position if the position exists.
It is important to note that open or pending orders will not be canceled unless a position already exists that can be closed.
Example Payload
The instrument name value is the name of the NinjaTrader instrument, including the exchange name. For equities, the symbol is sufficient. This command will cancel any working orders and flatten the position.
Last updated