POST
https://prv.gateway.indexer.biya.io
/
injective_portfolio_rpc.InjectivePortfolioRPC
/
StreamAccountPortfolio
StreamAccountPortfolio
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_portfolio_rpc.InjectivePortfolioRPC/StreamAccountPortfolio \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_address": "<string>",
  "subaccount_id": "<string>",
  "type": "<string>"
}
'
Stream the account’s portfolio. This endpoint sends real-time updates whenever the portfolio changes.
This is a streaming endpoint that requires WebSocket or Server-Sent Events support.
account_address
string
required
The account’s portfolio address (required)
subaccount_id
string
Related subaccount ID (optional)
type
string
Portfolio entry type (optional)

cURL Example

Using grpcurl:
grpcurl -plaintext -d '{
  "account_address": "inj1...",
  "subaccount_id": "0x..."
}' \
  localhost:8088 \
  injective_portfolio_rpc.InjectivePortfolioRPC/StreamAccountPortfolio
Using websocat:
echo '{"account_address": "inj1...", "subaccount_id": "0x..."}' | \
  websocat ws://localhost:8088/injective_portfolio_rpc.InjectivePortfolioRPC/StreamAccountPortfolio