View source: R/api_orders_options.R
api_orders_options | R Documentation |
RobinHood API: Option Orders
api_orders_options( RH, action, status_url = NULL, cancel_url = NULL, quantity = NULL, direction = NULL, stop_price = NULL, type = NULL, time_in_force = NULL, side = NULL, option_id = NULL )
RH |
object of class RobinHood |
action |
(string) one of "order", "status", "cancel", "history" |
status_url |
(string) if action = "status", status_url is required (output from place_order_options()) |
cancel_url |
(string) if action = "cancel", cancel_url is required (output from place_order_options()) |
quantity |
(int) number of contracts you want to buy |
direction |
(string) one of "debit" or "credit" |
stop_price |
(numeric) stop price on a limit order |
type |
(string) one of "limit" or "market" |
time_in_force |
(string) Good Till Canceled ("gtc"), Immediate or Cancel ("ioc"), or Opening ("opg") |
side |
(string) one of "buy" or "sell" |
option_id |
(string) id column returned by get_contracts() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.