query: Make an API request with retries

View source: R/utils.R

queryR Documentation

Make an API request with retries

Description

Make an API request with retries

Usage

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


daroczig/binancer documentation built on March 5, 2024, 4:28 a.m.