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

# Get Setting by Key

> Get a specific global setting by category and key.

_Requires bearer token authentication_



## OpenAPI

````yaml https://spec.speakeasy.com/aries/aries/aries-trading-platform-api-with-code-samples get /v1/config/{category}/settings/{key}
openapi: 3.0.3
info:
  title: Aries Trading Platform API
  description: >-
    Complete API documentation for the Aries trading platform including user
    management, authentication, account management, order management, market
    data, and analytics
  contact:
    name: Aries Financial
    email: dev@aries.com
  version: 1.0.0
servers:
  - url: https://api.tradearies.dev
    description: Production server
security: []
tags:
  - name: Accounts
    description: Account management endpoints for positions, orders, and balances
  - name: Analytics
    description: >-
      Analytics endpoints for market data analysis including top gainers,
      losers, volume leaders, sector analysis, analyst ratings, market breadth,
      and net inflow
  - name: Authentication
    description: User authentication endpoints
  - name: Calendars
    description: Calendar endpoints for economic events and historical data
  - name: Market Data
    description: >-
      Market data endpoints for symbol search, real-time data access, and equity
      details
  - name: Orders
    description: >-
      Order management endpoints for placing, updating, canceling, and
      previewing orders
  - name: Users
    description: User management endpoints
  - name: Health
    description: Service health endpoints
paths:
  /v1/config/{category}/settings/{key}:
    get:
      tags:
        - Settings
      summary: Get Setting by Key
      description: |-
        Get a specific global setting by category and key.

        _Requires bearer token authentication_
      operationId: getSettingByKey
      parameters:
        - name: category
          in: path
          description: >-
            Category of the setting (e.g., 'display', 'trading',
            'notifications')
          required: true
          schema:
            type: string
          example: feature-flags
        - name: key
          in: path
          description: The specific setting key
          required: true
          schema:
            type: string
          example: new_ui_enabled
      responses:
        '200':
          description: Global setting retrieved successfully
          content:
            application/json:
              schema:
                oneOf:
                  - type: string
                  - type: number
                  - type: boolean
                  - type: object
              examples:
                boolean:
                  value: true
                string:
                  value: production
                number:
                  value: 100
            text/plain:
              schema:
                type: string
              example: 'true'
        '400':
          description: Bad request - Invalid category or key
        '401':
          description: Unauthorized
        '500':
          description: Internal server error
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: java
          label: Java (SDK)
          source: >-
            package hello.world;


            import java.lang.Exception;

            import org.openapis.openapi.AriesJava;

            import
            org.openapis.openapi.models.operations.GetSettingByKeyResponse;


            public class Application {

                public static void main(String[] args) throws Exception {

                    AriesJava sdk = AriesJava.builder()
                            .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
                        .build();

                    GetSettingByKeyResponse res = sdk.settings().getByKey()
                            .category("feature-flags")
                            .key("new_ui_enabled")
                            .call();

                    if (res.oneOf().isPresent()) {
                        // handle response
                    }
                }
            }
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````