private_balance: Get current account balances Requires API key access

Description Usage Arguments

View source: R/private_balance.R

Description

Get current account balances Requires API key access

Usage

1
private_balance(exchange, portfolio = NULL, dry_run = FALSE)

Arguments

exchange

Which exchange to use. Supported value is "coinbase-pro".

portfolio

Optional value if you have multiple portfolios with separate API keys in an exchange. This must match the set API key value in the system environment. Use Sys.getenv to check what variables are saved if you are uncertain.

dry_run

If TRUE, call httr2::req_dry_run, which shows the API call without actually sending it. In this case, there may be some discrepancy since the actual call will use httr to send, not httr2.


cstjohn810/cryptoapi documentation built on Feb. 6, 2022, 4:50 a.m.