Description Usage Arguments Value See Also
The method trading_new_order
is use to send orders.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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
)
|
connection |
S4. Mandatory Formal rRofexConnection class object |
account |
String. Mandatory Account Number |
symbol |
String. Use |
side |
String. Mandatory Either:
|
quantity |
Numeric. Mandatory Quantity of the order. |
price |
Numeric. Mandatory Price of the order. |
order_type |
String. Type of order.
|
time_in_force |
String. Specifies how long the order remains in effect. Absence of this field is interpreted as 'Day':
|
iceberg |
Logical. If TRUE, then the order is 'iceberg'. FALSE as default. |
expire_date |
String. Only for GDT orders. Maturity date of the order, With format '%Y-%m-%d'. |
display_quantity |
Numeric. Only for Iceberg orders. Indicate the disclosed quantity for the 'iceberg' order. |
cancel_previous |
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:
trading_cancel_order()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.