query: Make an API request with retries

Description Usage Arguments Value

View source: R/utils.R

Description

Make an API request with retries

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
query(
  base,
  path,
  method = c("GET", "POST", "PUT", "DELETE"),
  params = list(),
  body = NULL,
  config = config(),
  retry = method == "GET",
  retries = 0
)

Arguments

base

URL

path

string

method

HTTP request method

params

URL parameters provided as a list

body

body of the request

config

httr::config

retry

allow retrying the query on failure

retries

internal counter of previous retries

Value

raw object returned by httr


binancer documentation built on Nov. 30, 2021, 1:07 a.m.