Learn R Programming

tesouror (version 0.2.2)

get_opc_taxa_cambio: Get credit operation exchange rate data

Description

Retrieves exchange rate data for credit operations linked to a PVL request. The id_pleito can be obtained from get_pvl().

Usage

get_opc_taxa_cambio(
  id_pleito,
  use_cache = TRUE,
  verbose = FALSE,
  page_size = NULL,
  max_rows = Inf
)

get_credit_exchange_rate(request_id, use_cache = TRUE, verbose = FALSE, page_size = NULL, max_rows = Inf)

Value

A tibble with exchange rate data.

Arguments

id_pleito

Integer. Database ID from get_pvl(). Required.

use_cache

Logical. If TRUE (default), uses an in-memory cache.

verbose

Logical. If TRUE, prints the full API URL being called. Useful for debugging or testing in a browser. Defaults to getOption("tesouror.verbose", FALSE).

page_size

Integer or NULL. Number of rows per API page. If NULL (default), uses the API server default (5000 for SICONFI/SADIPEM).

max_rows

Numeric. Maximum number of rows to return. Defaults to Inf (all rows). Useful for quick tests with large datasets (e.g., max_rows = 100).

request_id

Integer. Database ID of the PVL request. Obtain from the id_pleito column of get_pvl() results. Required. Maps to id_pleito.

Details

get_credit_exchange_rate() is an English alias.

See Also

Other SADIPEM: get_opc_cronograma_liberacoes(), get_opc_cronograma_pagamentos(), get_pvl(), get_pvl_tramitacao(), get_res_cdp(), get_res_cronograma_pagamentos()

Examples

Run this code
if (FALSE) {
cambio <- get_opc_taxa_cambio(id_pleito = 40353)
}

Run the code above in your browser using DataLab