Get coinbase wallet data

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''$coinbase get wallets''' is a function that retrieves a list of all your Coinbase wallets. Before calling this function, you need to set up your API and security credenti...")
 
 
Line 1: Line 1:
'''$coinbase get wallets''' is a function that retrieves a list of all your Coinbase wallets.  
+
'''$get coinbase wallet data''' is a function that retrieves a list of all your Coinbase wallets.  
  
 
Before calling this function, you need to set up your API and security credentials for Coinbase with the '''config coinbase''' command.
 
Before calling this function, you need to set up your API and security credentials for Coinbase with the '''config coinbase''' command.
  
 
== Return Value ==
 
== Return Value ==
This function will return a string that contains a list of all your Coinbase wallets. Each wallet listed will include relevant information such as the wallet's name, balance, and currency.
+
This function will return a yaml object that contains a list of all your Coinbase wallets. Each wallet listed will include relevant information such as the wallet's name, balance, and currency.
  
 
== Example ==
 
== Example ==
  
 
<pre>
 
<pre>
 +
ui console view
 
config coinbase("your api key", "your api secret", "your passphrase")
 
config coinbase("your api key", "your api secret", "your passphrase")
log($coinbase get wallets)
+
log($get coinbase wallet data)
 
</pre>
 
</pre>
  
 
Be sure to replace "your api key", "your api secret", and "your passphrase" with your actual Coinbase API key, API secret, and passphrase.
 
Be sure to replace "your api key", "your api secret", and "your passphrase" with your actual Coinbase API key, API secret, and passphrase.
  
After calling this function, you should receive a list of all your Coinbase wallets. Each entry in the list will appear as follows:
+
This example simply logs data from your Coinbase wallets to the console.
<blockquote>
+
Wallet Name: USD Wallet
+
Currency: USD
+
Balance: 500
+
</blockquote>
+
  
 
Please remember that your API key, API secret, and passphrase are sensitive information. If you need to show someone your script, remove these details first.
 
Please remember that your API key, API secret, and passphrase are sensitive information. If you need to show someone your script, remove these details first.

Latest revision as of 18:14, 4 July 2023

$get coinbase wallet data is a function that retrieves a list of all your Coinbase wallets.

Before calling this function, you need to set up your API and security credentials for Coinbase with the config coinbase command.

[edit] Return Value

This function will return a yaml object that contains a list of all your Coinbase wallets. Each wallet listed will include relevant information such as the wallet's name, balance, and currency.

[edit] Example

ui console view
config coinbase("your api key", "your api secret", "your passphrase")
log($get coinbase wallet data)

Be sure to replace "your api key", "your api secret", and "your passphrase" with your actual Coinbase API key, API secret, and passphrase.

This example simply logs data from your Coinbase wallets to the console.

Please remember that your API key, API secret, and passphrase are sensitive information. If you need to show someone your script, remove these details first.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox