Skip to content

Commit

Permalink
Fix BSDR payload
Browse files Browse the repository at this point in the history
  • Loading branch information
imanuelcostigan committed Feb 10, 2018
1 parent 7902a2e commit c37acb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/bsdr.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ BSDR_API <- function(response, parsed, path = "bas/bsdrweb") {
init_bsdr_body <- function() {
list(
source = "search",
sorting_column = list(),
# Must not use empty list as httr::POST compacts body and removes empty
# elements which then seemingly trips BSDRs internal validity checks
sorting_column = "exec_timestamp",
asset_class = "",
datetime_low = "",
datetime_high = "",
Expand Down Expand Up @@ -143,7 +145,7 @@ c_input <- function(input, value = "") {
}

bsdr_url <- function () {
"http://www.bloombergsdr.com/bas/bsdrweb"
"https://www.bloombergsdr.com/bas/bsdrweb"
}

`%||%` <- function (x, y) {
Expand Down

0 comments on commit c37acb1

Please sign in to comment.