Earn

Get list of earn positions

Get list of earn positions for accounts tracked for this workspace. Optional query parameters filter by chain, provider, and pagination.

get/earn/positions

Request

Query parameters

chainIdinteger
providerId'MORPHO' | 'AAVE'
pageCursorstring

Cursor for the next or previous page of results.

pageSizeinteger

Number of items per page.

sortBystring

Field to sort results by.

order'ASC' | 'DESC'
Example:ASC

Sort order (ASC or DESC).

Response

OK

nextstring

Opaque cursor for the next page; empty when there is no next page.

prevstring

Opaque cursor for the previous page; empty when there is no previous page.

totalinteger required

Total number of items matching the query.

Example response

{
  "data": [
    {
      "id": "660e8400-e29b-41d4-a716-446655440001",
      "status": "ACTIVE",
      "inFlight": false,
      "positionType": "LEND",
      "vaultAccountId": "12345",
      "opportunityId": "morpho-usdc-vault-1",
      "chainId": "1",
      "providerId": "MORPHO",
      "origin": "NATIVE",
      "principalAssetId": "USDC_ETH",
      "positionAssetId": "MORPHO_USDC_VAULT_ETH",
      "principalBalance": "10000.00",
      "positionBalance": "9950.5",
      "createdAt": "2025-01-15T10:00:00Z",
      "updatedAt": "2025-03-20T08:30:00Z",
      "lastSyncedAt": "2025-03-20T08:29:55Z",
      "availableActions": [
        "DEPOSIT",
        "WITHDRAW"
      ]
    }
  ],
  "total": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.