Skip to content

Commit

Permalink
catch one
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Aug 24, 2023
1 parent bfbb470 commit b3c7e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/oanda.R
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ getPrices <- function(instrument, granularity, count = NULL, from = NULL,
deserialize_json(resp[["data"]]), call. = FALSE)
timestamp <- as.POSIXct.POSIXlt(strptime(resp[["headers"]][["date"]],
format = "%a, %d %b %Y %H:%M:%S", tz = "UTC"))
candles <- deserialize_json(resp[["raw"]], query = "/candles")
candles <- deserialize_json(resp[["data"]], query = "/candles")
ptype <- switch(price, M = "mid", B = "bid", A = "ask")

!missing(.validate) && .validate == FALSE && {
Expand Down

0 comments on commit b3c7e28

Please sign in to comment.