You can retrieve users’ earnings using various filters through query parameters in requests to our endpoint. Profit calculations may include small margins of error, as we rebalance based on the user’s external investments across other providers or investment platforms. For example: if a user invests through your platform using Kamino and also uses the same wallet on Kamino, we retrieve that balance and include it as part of the user’s total earnings, reducing inconsistencies and preventing calculation errors.Documentation Index
Fetch the complete documentation index at: https://docs.starkfi.io/llms.txt
Use this file to discover all available pages before exploring further.
Getting user earns
Getting user earn with multiples query
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
wallet | string | ✅ | The user’s wallet is required to redeem the balance. |
position | string | ❌ | When the user creates an operation, they receive a position ID. |
asset | string | ❌ | Like –– ( USDC, EURC ) |
chain_name | string | ❌ | Like –– ( solana, arbitrum, base ) |
provider | string | ❌ | A provider is a protocol in which the user invests—such as Kamino, Jupiter, etc. |
Expected response
📈 Profits and variations
📈 Profits and variations
tracked_profit: Estimated profit based on the positive difference between the deposit and the current position.tracked_profit_current: Currently tracked profit.tracked_drawdown: Recorded loss when there is a decrease in value.delta_vs_tracked_position: Difference between the internal system and the external protocol.
💰 Investment metrics
💰 Investment metrics
deposit_position: Original deposited amount.position_on_protocol: Current value reported by the external protocol.last_move_amount: Last recorded movement amount.status: Current status of the position.
🧾 Position identification
🧾 Position identification
position_id: Position ID in the system.strategy_name: Name of the strategy/protocol.asset: Token or asset of the position.wallet: Associated wallet.chain_name: Blockchain network used.
🌐 External reconciliation
🌐 External reconciliation
needs_reconciliation: Indicates a discrepancy between the internal system and the external protocol.untracked_external_balance_estimate: Estimated untracked external balance.realizable_profit_on_full_withdraw: Profit realizable in case of a full withdrawal.realizable_profit_on_requested_withdraw: Profit proportional to the requested withdrawal amount.
💸 Requested withdrawal
💸 Requested withdrawal
requested_withdraw_amount: Amount requested by the user.requested_withdraw_amount_clamped: (internal) amount adjusted to the protocol’s limit.
⚠️ Calculation status
⚠️ Calculation status
earnings_status: Indicates success (ok) or an error while retrieving the data.earnings_details: Error details (when available).
If a user does not have any internal operations recorded, it will not be possible to retrieve profits from external operations. Earnings are only calculated when the user has deposits associated with a position.
.png?fit=max&auto=format&n=I_v6ul4JDafNKFQP&q=85&s=f0ad25536f8a3ca42331fcff88ab2b26)