place_order | R Documentation |
Place a new order
place_order( token, live = FALSE, uic, buy_sell, asset_type = "Stock", amount = 1, amount_type = "Quantity", order_price = 1, order_type = "Market", to_open_close = "ToOpen", wait = 1, ... )
token |
either a character or a token2.0 reference class (RC) object
as returned by |
live |
boolean, TRUE for live environment, i.e. real money. Defaults to FALSE, i.e. simulation environment. |
uic |
character, instrument identifier |
buy_sell |
character, "Buy" or "Sell |
asset_type |
character, type of asset to buy or sell, e.g. "Stock" (default) |
amount |
numeric, amount to buy or sell, either by number of stocks
("Quantity") or by value ("CashAmount") as specified by |
amount_type |
character, either "CashAmount" or "Quantity" (default) |
order_price |
numeric, the price of the order, optional for market orders, see
|
order_type |
character, defaults to "Market", see link in Details for more information |
to_open_close |
Whether the order should be created to open/increase or close/decrease a position. (Only relevant for options) |
wait |
numeric, passed onto |
... |
parameters passed on to |
See the Open API Documentation
tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.