View source: R/cancel_order_crypto.R
cancel_order_crypto | R Documentation |
Send a cancel signal for a particular order to RobinHood. You will need to retain the buy/sell order url returned from place_order.
cancel_order_crypto(RH, cancel_url)
RH |
object of class RobinHood |
cancel_url |
(string) cancel url returned from place_order_crypto() |
## Not run: # Login in to your RobinHood account RH <- RobinHood("username", "password") # Place an order, should generate an email confirmation x <- place_order_crypto(RH = RH, symbol = "ETC", # Ticker symbol type = "market", # Type of market order (market, limit) time_in_force = "gtc", # Time period (gfd: good for day) price = 1, # The highest price you are willing to pay quantity = 1, # Number of shares you want side = "buy") # buy or sell # Cancel the order, should also generate an email confirmation cancel_order_crypto(RH, x$cancel_url) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.