alpaca_list_orders: Get a list of orders

Description Usage Arguments Value See Also

View source: R/orders.R

Description

Retrieves a list of orders for the account, filtered by the supplied query parameters.

Usage

1
2
3
4
5
6
7
8
alpaca_list_orders(
  status = "open",
  limit = 50,
  after = NULL,
  until = NULL,
  direction = "desc",
  nested = TRUE
)

Arguments

status

string Order status to be queried. open, closed or all. Defaults to open.

limit

int The maximum number of orders in response. Defaults to 50 and max is 500.

after

timestamp The response will include only ones submitted after this timestamp (exclusive.)

until

timestamp The response will include only ones submitted until this timestamp (exclusive.)

direction

string The chronological order of response based on the submission time. asc or desc. Defaults to desc.

nested

boolean If true, the result will roll up multi-leg orders under the legs field of primary order.

Value

a list returned by alpaca

See Also

https://alpaca.markets/docs/trading-on-alpaca/orders/


mkearney/alpacar documentation built on May 5, 2020, 3:40 a.m.