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

# Get order



## OpenAPI

````yaml /coins/api-reference/openapi.json get /orders/{id}
openapi: 3.1.0
info:
  contact:
    email: support@daya.co
    name: API Support
  description: >-
    Public developer API for the Coins by Daya product. X-API-Key authenticated.
    Market data, portfolio, balances, transactions, order placement, crypto and
    fiat withdrawals. All responses use the standard envelope: { success,
    message?, data?, error?, timestamp }.
  title: Daya Coins Public API
  version: 1.0.0
servers:
  - url: https://api.daya.co/coins/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /orders/{id}:
    get:
      tags:
        - coins-trading
      summary: Get order
      operationId: getOrdersByid
      parameters:
        - description: Trade order UUID
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: >-
                      #/components/schemas/github_com_dayacoins_daya-coins-service_pkg_response.Envelope
                  - properties:
                      data:
                        $ref: '#/components/schemas/internal_publicapi_v1.PublicOrder'
                    type: object
          description: Trade order
        '400':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-coins-service_pkg_response.Envelope
          description: Invalid id
        '404':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-coins-service_pkg_response.Envelope
          description: Trade order not found
components:
  schemas:
    github_com_dayacoins_daya-coins-service_pkg_response.Envelope:
      properties:
        data: {}
        error:
          $ref: >-
            #/components/schemas/github_com_dayacoins_daya-coins-service_pkg_response.ErrorData
        message:
          description: Message is an optional banner/toast string.
          type: string
        success:
          type: boolean
        timestamp:
          type: string
      type: object
    internal_publicapi_v1.PublicOrder:
      properties:
        base_amount:
          example: '0.00153846'
          type: string
        base_asset:
          example: BTC
          type: string
        created_at:
          example: '2026-01-15T10:30:05Z'
          type: string
        executed_price:
          example: '65000.00'
          type: string
        failure_reason:
          example: trade failed
          type: string
        fee:
          example: '0.50'
          type: string
        fee_asset:
          example: USD
          type: string
        filled_quantity:
          example: '0.00153846'
          type: string
        id:
          example: 7b1204e1-4f89-41d3-9a0c-0305e82c3302
          type: string
        quote_amount:
          example: '100.00'
          type: string
        quote_asset:
          example: USD
          type: string
        side:
          enum:
            - buy
            - sell
          example: buy
          type: string
        status:
          enum:
            - pending
            - filled
            - failed
          example: filled
          type: string
      type: object
    github_com_dayacoins_daya-coins-service_pkg_response.ErrorData:
      properties:
        code:
          type: string
        details: {}
        fields:
          additionalProperties:
            type: string
          type: object
        message:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: >-
        Your Daya API key, sent in the X-API-Key header. Issue and scope keys in
        the Daya dashboard.
      in: header
      name: X-API-Key
      type: apiKey

````