Learn R Programming

rCoinbase (version 1.0.0)

cb_get_convert_trade: Get Convert Trade

Description

Get Convert Trade

Usage

cb_get_convert_trade(trade_id, from_account, to_account)

Value

A data.frame with account information about a convert trade with a specified trade id, source account, and target account

Arguments

trade_id

= 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