Max Positions
The filter for max_positions
allowed blocks signals based on the maximum number of allowed positions per account.
Example Payload
Assume you have open contracts in ES 12-24 and NQ 12-24. If a PLACE order signal arrives for a third instrument with max_positions=2;
, for example, the signal will be blocked because no more than 2 positions can be open in the account at one time.
key=your-secret-key; command=PLACE; account=sim101; instrument=CL 12-24; action=BUY; qty=1; order_type=MARKET; TIF=DAY; max_positions=2;
Valid values for max_positions
are any integer value greater than zero.
Last updated