trading_new_order( connection, account, symbol, side, quantity, price, order_type = "Limit", time_in_force = "Day", iceberg = FALSE, expire_date = NULL, display_quantity = NULL, cancel_previous = FALSE )
S4. Mandatory Formal rRofexConnection class object
String. Mandatory Account Number
trading_instruments to see which symbols are available.
String. Mandatory Either:
Numeric. Mandatory Quantity of the order.
Numeric. Mandatory Price of the order.
String. Type of order.
Limit - Default. Limit order sets the maximum or minimum price at which you are willing to buy or sell.
String. Specifies how long the order remains in effect. Absence of this field is interpreted as 'Day':
Day - Day or session.
IOC - Immediate or Cancel.
FOK - Fill or Kill.
GTD - Good Till Date.
Logical. If TRUE, then the order is 'iceberg'. FALSE as default.
String. Only for GDT orders. Maturity date of the order, With format '%Y-%m-%d'.
Numeric. Only for Iceberg orders. Indicate the disclosed quantity for the 'iceberg' order.
Logigal. Optional parameter only valid for Matba Rofex instruments. By default it's FALSE.
If correct, it will load a tibble.
Other order placements functions: