- Java
- .NET
- Go
- Python
- CLI
- TS/JS
Copy
Ask AI
BalancesService balancesService = PrimeServiceFactory.createBalancesService(client);
GetWalletBalanceRequest request = new GetWalletBalanceRequest.Builder()
.portfolioId("PORTFOLIO_ID_HERE")
.walletId("WALLET_ID_HERE")
.build();
GetWalletBalanceResponse response = balancesService.getWalletBalance(request);
Copy
Ask AI
var balancesService = new BalancesService(client);
var request = new GetWalletBalanceRequest("PORTFOLIO_ID_HERE", "WALLET_ID_HERE");
var response = balancesService.GetWalletBalance(request);
Copy
Ask AI
balancesService := balances.NewBalancesService(client)
request := &balances.GetWalletBalance{
PortfolioId: "PORTFOLIO_ID_HERE",
WalletId: "WALLET_ID_HERE",
}
response, err := balancesService.GetWalletBalance(context.Background(), request)
Copy
Ask AI
prime_client = PrimeClient(credentials)
request = GetWalletBalanceRequest(
portfolio_id="PORTFOLIO_ID_HERE",
wallet_id="WALLET_ID_HERE",
)
response = prime_client.get_wallet_balance(request)
Copy
Ask AI
primectl get-wallet-balance --help
Copy
Ask AI
const balancesService = new BalancesService(client);
balancesService.getWalletBalance({
portfolioId: 'PORTFOLIO_ID_HERE',
walletId: 'WALLET_ID_HERE'
}).then(async (response) => {
console.log('Balances: ', response);
})