Holdings & Positions
Last updated
Use these endpoints to monitor a user's mUSD, wallet token balances, and exchangeBalance.
userId is currently the user's wallet address (trimmed, lowercased).
For API-level interpretation of mUsdBalance, walletBalance, and exchangeBalance, read getting-started/trader-questions.md.
GET
/api/v1/users/{userId}
User info
GET
/api/v1/users/{userId}/balance
Cash and token balances
GET
/api/v1/users/{userId}/positions
Stock positions
GET /api/v1/users/{userId}Response data:
userId
string
User ID (wallet address).
userAddress
string
Wallet address.
GET /api/v1/users/{userId}/balancespenderAddress
string
No
0x000...000
Spender for allowance query.
Response data:
chainId
number
Chain ID.
productType
string
Product type.
address
string
User wallet.
mUsdBalance
string
mUSD.
tokenBalances
array
Token list.
address
string
Token address.
name
string
Token name.
symbol
string
Token symbol.
stockSymbol
string / null
Stock symbol (stock tokens).
isStock
boolean
Stock token flag.
decimals
number
Decimals.
price
number / null
Price (stock tokens).
walletBalance
string
Wallet balance (human-readable).
walletAllowance
string
Allowance to spender.
exchangeBalance
string
API view of Stock.stockBalance; used by plain sells.
logoUrl
string
Logo URL.
Same query parameters as /balance. Returns data as a tokenBalances array.
Use spenderAddress when checking deposit allowance — see cash/deposits.md.
Last updated
GET /api/v1/users/{userId}/positions