cb_commit_convert_trade {rCoinbase} | R Documentation |
Commit Convert Trade
Description
Commit Convert Trade
Usage
cb_commit_convert_trade(trade_id, from_account, to_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). |
Value
Commits a convert trade with a specified trade id, source account, and target account and returns a data.frame
response
Examples
## Not run:
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")
## End(Not run)
[Package rCoinbase version 1.0.0 Index]