Wealth API
Discover listed funds, read market history, check the current trading channel, request an RFQ quote, and query a wallet's ledger, holdings, and profit and loss.
Mainnet base URL: https://mainnet-gw.sodex.dev/api/v1/wealth
Every response uses HTTP 200. code 0 is success and carries data. code -1 is failure and carries error. timestamp is Unix time in milliseconds. A successful health check omits data.
{
"code": 0,
"timestamp": 1780000000000,
"data": {}
}{
"code": -1,
"timestamp": 1780000000000,
"error": "invalid parameter: fundId"
}error
When
invalid parameter: <name>
A query or body field is rejected. A Wealth message that contains bad input is rewritten to this form.
invalid request body: <message>
The RFQ body is not JSON.
internal server error: wealth service unavailable
Wealth cannot be reached.
internal server error: wealth fund service unavailable
The legacy asset list cannot reach the fund service.
Any other string
The Wealth business message.
Amounts, shares, ratios, and prices are decimal strings. Parse them as decimals. A wallet address is 0x or 0X plus 40 hex characters. fundId is case-sensitive.
REST API
FundsMarketsTradingUser Fund HistoryPositions and PnLRecurring Buy PlansHealth
GET /health
Success means the downstream Wealth service is reachable. The body has code and timestamp only.
Contract reference
Vault ContractsDocumentation
Bridged VaultsQuickstartLast updated