- Java
- .NET
- Go
- Python
- CLI
- TS/JS
Copy
Ask AI
AllocationsService allocationsService = PrimeServiceFactory.createAllocationsService(client);
GetAllocationRequest request = new GetAllocationRequest.Builder("PORTFOLIO_ID_HERE", "ALLOCATION_ID_HERE").build();
GetAllocationResponse response = allocationsService.getAllocation(request);
Copy
Ask AI
var allocationsService = new AllocationsService(client);
var request = new GetAllocationRequest("PORTFOLIO_ID_HERE", "ALLOCATION_ID_HERE");
var response = allocationsService.GetAllocation(request);
Copy
Ask AI
allocationsService := allocations.NewAllocationsService(client)
request := &allocations.GetPortfolioAllocationRequest{
PortfolioId: "PORTFOLIO_ID_HERE",
AllocationId: "ALLOCATION_ID_HERE",
}
response, err := allocationsService.GetPortfolioAllocation(context.Background(), request)
Copy
Ask AI
prime_client = PrimeClient(credentials)
request = GetAllocationByIdRequest(
portfolio_id="PORTFOLIO_ID_HERE",
allocation_id="ALLOCATION_ID_HERE",
)
response = prime_client.get_allocation_by_id(request)
Copy
Ask AI
primectl get-allocation --help
Copy
Ask AI
const allocationService = new AllocationService(client);
allocationService.getAllocation({
allocationId: "ALLOCATION_ID_HERE",
portfolioId: "PORTFOLIO_ID_HERE"
}).then(async (response) => {
console.log('Allocation: ', response);
})