Skip to contents

Get assets available for trade and data.

Usage

assets_list(
  id = NULL,
  status = "active",
  class = "us_equity",
  exchange = NULL,
  attributes = NULL
)

Arguments

id

A symbol or asset ID.

status

Asset status (either `"active"`, `"inactive"` or `NULL`). Only includes active assets by default.

class

Asset class. Only option is `"us_equity"`, which is the default.

exchange

Exchange on which asset listed (one of `"AMEX"`, `"ARCA"`, `"BATS"`, `"NASDAQ"`, `"NYSE"`, `"OTC"`). Include all by default.

attributes

A vector of attributes (one or more of `"fractional_eh_enabled"`, `"has_options"`, `"options_late_close"`, `"ptp_no_exception"`, `"ptp_with_exception"`).

Value

A data frame.

Examples

if (FALSE) { # \dontrun{
assets_list()
AAPL <- assets_list("AAPL")
AMD <- assets_list("03fb07bb-5db1-4077-8dea-5d711b272625")
} # }