cb_create_convert_quote {rCoinbase} | R Documentation |
Create Convert Quote
Description
Create Convert Quote
Usage
cb_create_convert_quote(amount, from_account, to_account)
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). |
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
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]