newTrade: create a new Trade object

Description Usage Arguments

View source: R/trading.R

Description

create a new Trade object

Usage

1
2
3
4
5
6
7
8
9
newTrade(
  symbol,
  side,
  qty,
  time_in_force = "day",
  limit_price = NULL,
  stop_price = NULL,
  id = NULL
)

Arguments

symbol

a market symbol

side

"buy" | "sell"

qty

number of shares

time_in_force

"day" | "gtc" | "opg"

limit_price

NULL | limit price for limt and sotp limit type orders

stop_price

NULL | stop price for stop and stop_limit type orders


schardtbc/alpacaR documentation built on March 12, 2020, 6:18 a.m.