pricing: Get pricing

Description Usage Arguments Value References Examples

View source: R/pricing.R

Description

Call the OANDA pricing API to retrieve prices of currency pairs.

Usage

1
2
3
pricing(base_currency, quote_currency, since = Sys.time() - 3600,
  account_id = Sys.getenv("OANDA_ACCOUNT_ID", NA),
  access_token = Sys.getenv("OANDA_ACCESS_TOKEN", NA))

Arguments

base_currency

A 3 letter ISO 4217 currency name.

quote_currency

A 3 letter ISO 4217 currency name.

since

A time in the past, or NULL for now.

Value

A data_frame with one row per currency pair.

References

http://developer.oanda.com/rest-live-v20/pricing-ep/#CurrentPrices

Examples

1
2
## Marked as don't test because an access token is needed
  (prices <- pricing(c("EUR", "GBP"), "USD"))

richierocks/oanda documentation built on May 21, 2019, 12:05 p.m.