View source: R/private-interface.r
bt_getbalances | R Documentation |
The bt_getbalances()
function retrieves the account balance
for all currencies on https://bittrex.com. This function
can only be used after you provide information for authentication.
bt_getbalances()
A named list with the following elements:
success: a boolean indicating whether the request was successful.
message: a string describing the error if the request was not successful, otherwise an empty string.
result: a data.frame
with the currencies, balances,
available funds, the amount of any pending transactions, and
cryptographic addresses that can be used to receive funding.
https://bittrex.com/api/v1.1/account/getbalances
bt_authenticate()
## Not run: # Note you must authenticate first. balances <- bt_getbalances()$result # $success # [1] TRUE # # $message # [1] "" # # $result # currency balance available pending # 1 BTC 0.0000000 0.0000000 0 # 2 ETH 0.2187638 0.2187638 0 # 3 LTC 0.0000000 0.0000000 0 # crypto_address # 1 1Q6WissSMNF7NCNw3sDXQ2F7AbrSCYouj2 # 2 0x0ceac821a72037b07df691a53e201d797252b5a6 # 3 Li71CUBjxFH6PfEZn2phqfPhoasydfNfqF ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.