OptionalassetAsset structure type. Null for a regular position; locked for a locked position (e.g. locked staking — check unlockTime on positionDetail); farming for a MasterChef-style farming position (rewards accrue under the farming_reward token group).
OptionalinvestmentRelated investment IDs (64-char hex, no 0x prefix). Use with POST /api/v1/defi/data/investment/detail. Usually a single entry; a position can relate to several investments when the pool stacks products on top of each other (e.g. a farming position wraps the underlying LP investment plus its incentive product, or a staked vault layers a receipt token over the base deposit). When there are several, query each with investment/detail and pick by the action you want to perform — redeeming the principal uses the base investment, claiming farming incentives uses the incentive one.
OptionalpositionOptionalpositionUnique position identifier (64-char hex, no 0x prefix).
OptionalpositionTotal position value in USD (sum of all token values; may be negative for borrow positions).
OptionaltokenOptionalunderlyingUnderlying asset identifier (64-char hex, no 0x prefix). Hashed from the pool and underlying token addresses.
OptionalunderlyingDisplay name of the underlying asset (e.g. "USDT-USDC", "lisUSD").
A single DeFi position with underlying asset and token breakdown.
Export
PositionResp