Learn R Programming

rCoinbase (version 1.0.0)

cb_create_convert_quote: Create Convert Quote

Description

Create Convert Quote

Usage

cb_create_convert_quote(amount, from_account, to_account)

Value

A data.frame with details regarding creating a convert quote with a specified source account,target account, and amount. Convert is applicable for USDC-USD, EURC-EUR, and PYUSD-USD conversion

Arguments

amount

= The ID of the trade to commit.

from_account

= The currency of the account to convert from (e.g. USD).

to_account

= The currency of the account to convert to (e.g. USDC).

Examples

Run this code
if (FALSE) {
  qte = cb_create_convert_quote(amount = 100,
                                from_account = "USD",
                                to_account = "USDC")
  ord = cb_commit_convert_trade(trade_id = qte$id,
                                from_account = "USD",
                                to_account = "USDC")
 stat = cb_get_convert_trade(trade_id = qte$id,
                             from_account = "USD",
                             to_account = "USDC")
}

Run the code above in your browser using DataLab