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

# Get strategy orders



## OpenAPI

````yaml https://backend.swap.coffee/openapi get /v1/strategies/{address}/orders
openapi: 3.0.3
info:
  title: Swap Coffee API
  version: 1.0.0
servers:
  - url: https://backend.swap.coffee/
  - url: http://localhost:8080/
security:
  - {}
  - ApiKey: []
tags:
  - name: Entity
    description: Tokens, pools, DEXes, etc.
  - name: Routing
    description: >-
      Core functionality of the aggregation service. Build routes, get
      transactions, etc.
  - name: Strategies
    description: Limit orders, DCA, VCA, etc.
  - name: Yield
    description: >-
      Yield aggregator functionality. Provides and handles routes to pools with
      the best yield.
  - name: Referral
    description: Everything related to the referral program of swap.coffee.
  - name: Cashback
    description: Cashback programs conducted on swap.coffee.
  - name: Claim
    description: Claiming various rewards available on swap.coffee.
  - name: Contests
    description: Timed contests based on trading volumes for certain token-pairs.
  - name: Staking
    description: Responsible of managing staked funds, corresponding rewards, etc.
  - name: DEX
    description: Core functionality of the Coffee DEX service.
  - name: LiquidityProvisioning
    description: Everything related to liquidity provisioning in DEXes.
  - name: Boosts
    description: >-
      Functionality to support incentives and rewards for liquidity providers
      among all DEXes.
  - name: Profile
    description: Retrieve information about user profiles.
  - name: Partnership
    description: Various functionality for our partners.
  - name: Statistics
    description: Retrieve information about dex aggregation stats.
  - name: Ton
    description: Retrieve information about TON entities.
  - name: Auth
    description: Auth operations. For internal usage only.
paths:
  /v1/strategies/{address}/orders:
    get:
      tags:
        - Strategies
      summary: Get strategy orders
      operationId: getStrategyOrders
      parameters:
        - $ref: '#/components/parameters/pathWalletAddress'
        - $ref: '#/components/parameters/headerXVerify'
        - $ref: '#/components/parameters/queryStrategyOrderType'
        - name: include_finished
          in: query
          description: >-
            By default, only active and pending cancellation orders are being
            returned
          schema:
            type: boolean
            default: false
        - $ref: '#/components/parameters/querySize100'
        - name: before_id
          in: query
          description: Return only those orders, which id is lower than the given one
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Account's strategy orders
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiStrategyOrder'
        default:
          $ref: '#/components/responses/ApiError'
components:
  parameters:
    pathWalletAddress:
      in: path
      name: address
      required: true
      schema:
        type: string
        example: UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV
    headerXVerify:
      in: header
      name: x-verify
      required: true
      description: TON proof for the given address
      schema:
        type: string
    queryStrategyOrderType:
      in: query
      name: type
      schema:
        $ref: '#/components/schemas/ApiStrategyOrderType'
    querySize100:
      in: query
      name: size
      schema:
        type: integer
        format: int32
        minimum: 1
        maximum: 100
        default: 100
  schemas:
    ApiStrategyOrder:
      type: object
      required:
        - id
        - type
        - wallet
        - status
        - creation_timestamp
        - token_from
        - token_to
        - initial_input_amount
        - current_input_amount
        - settings
        - current_output_amount
        - max_suborders
        - suborders_executed
        - max_invocations
        - invocations_executed
        - slippage
        - max_path_length
        - active_transactions
      properties:
        id:
          type: integer
          format: int32
        type:
          $ref: '#/components/schemas/ApiStrategyOrderType'
        wallet:
          type: string
          example: UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV
        status:
          $ref: '#/components/schemas/ApiStrategyOrderStatus'
        creation_timestamp:
          type: integer
          format: int64
          description: Unix time in seconds
        token_from:
          $ref: '#/components/schemas/ApiToken'
        token_to:
          $ref: '#/components/schemas/ApiToken'
        initial_input_amount:
          type: string
        current_input_amount:
          type: string
        settings:
          $ref: '#/components/schemas/ApiJson'
        current_output_amount:
          type: string
        max_suborders:
          type: integer
          format: int32
        suborders_executed:
          type: integer
          format: int32
        max_invocations:
          type: integer
          format: int32
          description: >-
            Max amount of swaps to be potentially executed (including those that
            fail to reasons like slippage tolerance abortion)
        invocations_executed:
          type: integer
          format: int32
          description: >-
            Amount of swaps that had already been tried to be executed
            (including those that failed to reasons like slippage tolerance
            abortion)
        slippage:
          type: number
          format: double
          minimum: 0.001
          maximum: 1
        max_path_length:
          type: integer
          format: int32
          description: >-
            Max path length in tokens for every route that could potentially be
            executed within this order
        active_transactions:
          type: integer
          format: int32
          description: >-
            Amount of this order transactions that were sent, but their result
            is still unknown
        close_timestamp:
          type: integer
          format: int64
          description: Unix time in seconds
    ApiStrategyOrderType:
      type: string
      enum:
        - limit
        - dca
        - vca
    ApiStrategyOrderStatus:
      type: string
      enum:
        - active
        - requested_cancellation
        - cancelled_by_user
        - cancelled_by_system
        - executed
        - max_retries_exceeded
    ApiToken:
      type: object
      required:
        - address
        - metadata
      properties:
        address:
          $ref: '#/components/schemas/ApiTokenAddress'
        metadata:
          $ref: '#/components/schemas/ApiTokenMetadata'
    ApiJson:
      type: object
      additionalProperties: {}
    ApiTokenAddress:
      type: object
      required:
        - blockchain
        - address
      properties:
        blockchain:
          type: string
          example: ton
        address:
          type: string
          example: native
    ApiTokenMetadata:
      type: object
      required:
        - name
        - symbol
        - decimals
        - listed
        - verification
      properties:
        name:
          type: string
          example: ARBUZ
        symbol:
          type: string
          example: ARBUZ
        decimals:
          type: integer
          format: int32
        image_url:
          type: string
        listed:
          type: boolean
        verification:
          $ref: '#/components/schemas/ApiTokenVerification'
    ApiTokenVerification:
      type: string
      enum:
        - whitelisted
        - blacklisted
        - community
        - unknown
  responses:
    ApiError:
      description: Some error during request processing
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      name: X-Api-Key
      in: header

````