Get coinbase balance

From UBot Studio
Revision as of 17:37, 4 July 2023 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$coinbase get balance is a function that returns the wallet balance on Coinbase for a specified currency.

This function will require you to have already set up your API and security credentials for Coinbase with the config coinbase command before you call it.

Parameters

Currency: The currency for which you want to retrieve the balance.

Return Value

This function returns a string that represents the wallet balance on Coinbase for the given currency.

Example

config coinbase("your api key", "your api secret", "your passphrase")
log object($coinbase get balance("BTC"))

In this script, replace "your api key", "your api secret", and "your passphrase" with your actual API key, API secret, and passphrase respectively.

Please remember that your API key, API secret, and passphrase are sensitive information and should not be shared or exposed to others. If you need to show someone your script, ensure to remove these details first.

The function will return the balance of your Bitcoin (BTC) wallet on Coinbase.

The exact value will vary for each user and at every run. However, it might look something like:

0.0528
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox