get_order_status_crypto {RobinHood}R Documentation

Get a current status of an crypto currency order on RobinHood

Description

Returns a list of order information given a buy/sell order url returned from place_order().

Usage

get_order_status_crypto(RH, order_id)

Arguments

RH

object of class RobinHood

order_id

(string) id field of the object returned by place_order_crypto

Examples

## 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 = "GE",          # Ticker symbol you want to trade
                       type = "market",        # Type of market order
                       time_in_force = "gfd",  # Time period (gfd: good for day)
                       trigger = "immediate",  # Trigger or delay order
                       price = 8.96,           # The highest price you are willing to pay
                       quantity = 1,           # Number of shares you want
                       side = "buy")           # buy or sell

get_order_status_crypto(RH, order_id = x$id)

## End(Not run)

[Package RobinHood version 1.7.0 Index]