curl --request GET \
--url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/balance{
"balance": {
"symbol": "BTC",
"amount": "109.42",
"holds": "2",
"bonded_amount": "109.42",
"reserved_amount": "109.42",
"unbonding_amount": "109.42",
"unvested_amount": "109.42",
"pending_rewards_amount": "109.42",
"past_rewards_amount": "109.42",
"bondable_amount": "109.42",
"withdrawable_amount": "109.42",
"fiat_amount": "109.42",
"unbondable_amount": "109.42"
}
}Query balance for a specific wallet.
curl --request GET \
--url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/wallets/{wallet_id}/balance{
"balance": {
"symbol": "BTC",
"amount": "109.42",
"holds": "2",
"bonded_amount": "109.42",
"reserved_amount": "109.42",
"unbonding_amount": "109.42",
"unvested_amount": "109.42",
"pending_rewards_amount": "109.42",
"past_rewards_amount": "109.42",
"bondable_amount": "109.42",
"withdrawable_amount": "109.42",
"fiat_amount": "109.42",
"unbondable_amount": "109.42"
}
}BalancesService balancesService = PrimeServiceFactory.createBalancesService(client);
GetWalletBalanceRequest request = new GetWalletBalanceRequest.Builder()
.portfolioId("PORTFOLIO_ID_HERE")
.walletId("WALLET_ID_HERE")
.build();
GetWalletBalanceResponse response = balancesService.getWalletBalance(request);
var balancesService = new BalancesService(client);
var request = new GetWalletBalanceRequest("PORTFOLIO_ID_HERE", "WALLET_ID_HERE");
var response = balancesService.GetWalletBalance(request);
balancesService := balances.NewBalancesService(client)
request := &balances.GetWalletBalance{
PortfolioId: "PORTFOLIO_ID_HERE",
WalletId: "WALLET_ID_HERE",
}
response, err := balancesService.GetWalletBalance(context.Background(), request)
prime_client = PrimeClient(credentials)
request = GetWalletBalanceRequest(
portfolio_id="PORTFOLIO_ID_HERE",
wallet_id="WALLET_ID_HERE",
)
response = prime_client.get_wallet_balance(request)
primectl get-wallet-balance --help
const balancesService = new BalancesService(client);
balancesService.getWalletBalance({
portfolioId: 'PORTFOLIO_ID_HERE',
walletId: 'WALLET_ID_HERE'
}).then(async (response) => {
console.log('Balances: ', response);
})
Was this page helpful?