> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loopscale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get strategies

> Returns a list of strategy data matching the filters.

A Strategy is the onchain capital escrow and lending ruleset that sits behind every Vault. It holds deposited capital, deploys it as advanced lending orders on the credit order book according to curator-defined parameters (eligible collateral, rates, durations), and tracks accrued interest and external yield. Use this endpoint to query strategy-level data directly — for example, when computing Vault TVL or APY from raw fields rather than pre-aggregated Vault metadata.


## OpenAPI

````yaml post /markets/strategy/infos
openapi: 3.1.3
info:
  title: Loopscale API
  version: 1.0.0
servers:
  - url: https://tars.loopscale.com/v1
    description: Loopscale Production Server
security: []
paths:
  /markets/strategy/infos:
    post:
      tags:
        - Markets
        - Strategy
      summary: Get Loopscale Strategies
      description: Returns a list of strategy data matching the filters.
      operationId: getStrategies
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetStrategiesRequest'
      responses:
        '200':
          description: List of strategies that match filter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetStrategiesResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/GeneralError'
components:
  schemas:
    GetStrategiesRequest:
      type: object
      properties:
        userAddress:
          type: string
          description: Lender's address
        addresses:
          type: array
          items:
            type: string
          description: List of strategy onchain addresses to load
        principalMints:
          type: array
          items:
            type: string
          description: List of Vault principal mints to select
        page:
          type: integer
          description: Pagination offset, sorted by APY
        pageSize:
          type: integer
          description: Pagination limit (max 1000)
    GetStrategiesResponse:
      type: object
      properties:
        strategies:
          type: array
          description: Array of strategy data
          items:
            $ref: '#/components/schemas/StrategyInfo'
        total:
          type: number
          description: Total number of strategies for this filter (to inform pagination)
    StrategyInfo:
      type: object
      description: >-
        Vault's onchain strategy holding deposited capital. TVL = tokenBalance +
        externalYieldAmount + currentDeployedAmount + outstandingInterestAmount.
        APY = (interestPerSecond * SECONDS_PER_YEAR + externalYieldInfo.apy *
        externalYieldAmount) / TVL. If there is external yield, will need to
        include that directly from the externalYieldInfo data.
      properties:
        strategy:
          type: object
          description: The onchain strategy account.
          properties:
            address:
              type: string
              description: Onchain address of the strategy account
            principalMint:
              type: string
              description: Mint of the deposited assets
            tokenBalance:
              type: number
              description: Amount of principal tokens held in the strategy PDA
            externalYieldAmount:
              type: number
              description: >-
                Amount of principal tokens held in an external program to
                generate yield while waiting for orders to be filled
            currentDeployedAmount:
              type: number
              description: Amount of principal tokens actively lent out
            outstandingInterestAmount:
              type: number
              description: >-
                Amount of principal tokens currently owed as interest on
                outstanding loans
            interestPerSecond:
              type: number
              description: Interest accruing every second to the Vault
            lastAccruedTimestamp:
              type: number
              description: >-
                The UNIX timestamp of the last time interest was accrued to
                outstandingInterestAmount
        externalYieldInfo:
          type: object
          description: >-
            Cached information about the deposits into third party yield sources
            (if applicable)
          properties:
            apy:
              type: number
              description: The most recently parsed APY for this source.
  responses:
    BadRequest:
      description: Bad Request
      content:
        text/plain:
          schema:
            type: string
            example: 'Something went wrong: You have an error in your SQL syntax.'
    GeneralError:
      description: General Server Error
      content:
        text/plain:
          schema:
            type: string
            example: >-
              Failed to deserialize the JSON body into the target type: missing
              field `mints` at line 1 column 1.

````