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

# Get DCA order by address

> Returns a single DCA account by its pubkey.

Order status values:

| Status | Meaning |
|--------|---------|
| `active` | Recurring in progress — has fills and waiting for the next scheduled cycle, or due now |
| `pending` | Funded but first cycle not run yet |
| `paused` | Schedule paused on-chain or overdue well past 2× cycle frequency |
| `completed` | No remaining input to spend |

USD fields are included when price data is available; otherwise `*Usd` fields may be null or omitted.

## SDK Example

<CodeGroup>
  ```typescript SDK
  import { Client } from '@solana-tracker/data-api';

  const client = new Client({ apiKey: 'YOUR_API_KEY' });

  const data = await client.getDcaOrder('125PQmudTAXHUUGxtSra1xTzGu3NRCMbRU7i9cikEpwd');

  ```
</CodeGroup>


## OpenAPI

````yaml /data-api/dca/openapi.json get /dca/order/{address}
openapi: 3.1.0
info:
  title: Solana Tracker Jupiter DCA API
  description: >-
    Recurring (DCA) order data on Solana. Query live DCA positions by wallet,
    token, or trading pair. Jupiter is supported today; responses include a
    `program` id for filtering when more platforms are added.


    USD fields are included when price data is available.
  version: 1.0.0
  contact:
    email: contact@solanatracker.io
servers:
  - url: https://data.solanatracker.io
    description: Production server
security:
  - apiKey: []
tags:
  - name: Programs
    description: Supported DCA programs
  - name: Wallet
    description: Wallet DCA orders and summaries
  - name: Token
    description: Token-level DCA flow, buyers, sellers, and top users
  - name: Orders
    description: Single order and trading pair queries
paths:
  /dca/order/{address}:
    get:
      tags:
        - Orders
      summary: Get DCA order by address
      description: >-
        Returns a single DCA account by its pubkey.


        Order status values:


        | Status | Meaning |

        |--------|---------|

        | `active` | Recurring in progress — has fills and waiting for the next
        scheduled cycle, or due now |

        | `pending` | Funded but first cycle not run yet |

        | `paused` | Schedule paused on-chain or overdue well past 2× cycle
        frequency |

        | `completed` | No remaining input to spend |


        USD fields are included when price data is available; otherwise `*Usd`
        fields may be null or omitted.
      parameters:
        - name: address
          in: path
          required: true
          schema:
            type: string
        - name: program
          in: query
          description: >-
            DCA program to query. Aliases: `dex`, `platform`. Default:
            `jupiter`. Use GET /dca/programs for supported ids.
          schema:
            type: string
            default: jupiter
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DcaOrderResponse'
              example:
                program: jupiter
                programId: DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M
                address: 125PQmudTAXHUUGxtSra1xTzGu3NRCMbRU7i9cikEpwd
                owner: 2FbbdMWfrfGpyyK4Wh76vyxbmDGcp3LxZNhwBwFpV5UK
                status: active
                direction: buying
                pair: USDC → SOL
                input:
                  mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
                  symbol: USDC
                  name: USD Coin
                  decimals: 6
                  image: https://image.solanatracker.io/proxy?url=example
                  uri: https://example.com
                  description: ''
                  twitter: null
                  website: null
                  hasFileMetaData: true
                  priceUsd: 1
                output:
                  mint: So11111111111111111111111111111111111111112
                  symbol: SOL
                  name: Wrapped SOL
                  decimals: 9
                  image: https://image.solanatracker.io/proxy?url=example-sol
                  priceUsd: 142.5
                deposited: 1000
                depositedUsd: 1000
                used: 200
                usedUsd: 200
                remaining: 800
                remainingUsd: 800
                received: 5.2
                receivedUsd: 741
                perCycle: 50
                perCycleUsd: 50
                frequency: 1h
                progressPercent: 20
                volume: 5.2
                volumeUsd: 741
                createdAt: '2024-01-01T00:00:00.000Z'
                nextCycleAt: '2024-01-02T00:00:00.000Z'
                raw:
                  deposited: '1000000000'
                  used: '200000000'
        '400':
          description: Invalid order address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DcaErrorResponse'
              example:
                error:
                  code: INVALID_ORDER
                  message: Invalid order address
        '404':
          description: DCA order not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DcaErrorResponse'
              example:
                error:
                  code: NOT_FOUND
                  message: DCA order not found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DcaErrorResponse'
              example:
                error:
                  code: SERVER_ERROR
                  message: Internal server error
      x-codeSamples:
        - lang: typescript
          label: SDK
          source: >
            import { Client } from '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getDcaOrder('125PQmudTAXHUUGxtSra1xTzGu3NRCMbRU7i9cikEpwd');
      x-code-samples:
        - lang: typescript
          label: SDK
          source: >
            import { Client } from '@solana-tracker/data-api';


            const client = new Client({ apiKey: 'YOUR_API_KEY' });


            const data = await
            client.getDcaOrder('125PQmudTAXHUUGxtSra1xTzGu3NRCMbRU7i9cikEpwd');
components:
  schemas:
    DcaOrderResponse:
      allOf:
        - $ref: '#/components/schemas/DcaOrder'
    DcaErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - INVALID_WALLET
                - INVALID_MINT
                - INVALID_ORDER
                - NOT_FOUND
                - INVALID_SORT
                - INVALID_STATUS
                - INVALID_LIMIT
                - INVALID_PROGRAM
                - PROGRAM_PARAM_CONFLICT
                - INVALID_CURSOR
                - TIMEOUT
                - SERVER_ERROR
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
    DcaOrder:
      type: object
      properties:
        program:
          type: string
        programId:
          type: string
        address:
          type: string
        owner:
          type: string
        status:
          type: string
          enum:
            - active
            - paused
            - completed
            - pending
        direction:
          type: string
          enum:
            - buying
            - selling
            - mixed
        pair:
          type: string
        input:
          $ref: '#/components/schemas/DcaToken'
        output:
          $ref: '#/components/schemas/DcaToken'
        deposited:
          type: number
        depositedUsd:
          type: number
          nullable: true
        used:
          type: number
        usedUsd:
          type: number
          nullable: true
        remaining:
          type: number
        remainingUsd:
          type: number
          nullable: true
        received:
          type: number
        receivedUsd:
          type: number
          nullable: true
        perCycle:
          type: number
        perCycleUsd:
          type: number
          nullable: true
        frequency:
          type: string
        progressPercent:
          type: number
        volume:
          type: number
        volumeUsd:
          type: number
          nullable: true
        createdAt:
          type: string
          format: date-time
        nextCycleAt:
          type: string
          format: date-time
          nullable: true
        raw:
          $ref: '#/components/schemas/DcaOrderRaw'
    DcaToken:
      type: object
      properties:
        mint:
          type: string
        symbol:
          type: string
        name:
          type: string
        decimals:
          type: integer
        image:
          type: string
          nullable: true
        uri:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        twitter:
          type: string
          nullable: true
        website:
          type: string
          nullable: true
        hasFileMetaData:
          type: boolean
        priceUsd:
          type: number
          nullable: true
    DcaOrderRaw:
      type: object
      additionalProperties:
        type: string
      description: Raw on-chain amounts as strings
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````