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

# Who am I (production)

> **Switched off.** Production trading is implemented but not available: orders are refused with `403 production_trading_disabled`. Once it opens, Bullionwale enables production access per account (see Production access requirements).

The account and key behind `X-API-Key`.



## OpenAPI

````yaml /openapi.json get /api/trading/v1/me
openapi: 3.1.0
info:
  description: >-
    Place and read bullion orders with an API key. The test environment
    (`/api/trading/test/v1`) simulates orders; the production environment
    (`/api/trading/v1`) books real orders. **Test: available on request.
    Production: switched off.** See the availability notice in the
    documentation.
  title: Bullionwale API
  version: 1.0.0
servers:
  - description: Once the API is available
    url: https://api.bullionwale.com
security: []
tags:
  - description: >-
      Simulated orders for building and testing your integration. Nothing is
      booked. Available on request through the Bullionwale desk.
    name: Test environment
  - description: >-
      Real orders. Switched off: production trading is not available yet and,
      once it opens, is enabled per account by Bullionwale.
    name: Production environment
paths:
  /api/trading/v1/me:
    get:
      tags:
        - Production environment
      summary: Who am I (production)
      description: >-
        **Switched off.** Production trading is implemented but not available:
        orders are refused with `403 production_trading_disabled`. Once it
        opens, Bullionwale enables production access per account (see Production
        access requirements).


        The account and key behind `X-API-Key`.
      operationId: me_live_api_trading_v1_me_get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Me'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: >-
            `missing_credential`: No X-API-Key header.

            `malformed_credential`: The key is not shaped like an API key.

            `wrong_tenant`: The key belongs to a different broker.

            `wrong_environment`: A test key on the production API, or the
            reverse.

            `invalid_credential`: Unknown key or wrong secret.

            `credential_revoked`: The key was revoked.

            `credential_rotated`: The key was replaced and its overlap period
            ended.

            `credential_expired`: The key expired.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: |-
            `api_access_disabled`: API access is switched off for this account.
            `account_inactive`: The account is not active.
            `insufficient_scope`: The key lacks the scope this route needs.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: >-
            `invalid_request`: The request body or parameters are invalid; see
            `detail.errors`.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
          description: >-
            `auth_throttled`: Too many failed authentications from this address;
            see Retry-After.

            `rate_limited`: This key (or, for orders, this account) exhausted
            its budget; see Retry-After.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Me:
      properties:
        environment:
          description: '`test` or `production`.'
          title: Environment
          type: string
        firm_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Firm Name
        key_id:
          title: Key Id
          type: string
        key_name:
          title: Key Name
          type: string
        login_id:
          title: Login Id
          type: string
        production_trading_available:
          description: >-
            Whether this account can place production orders right now:
            Bullionwale's production switches are on, your account's API access
            is on and production trading is enabled for your account. The same
            answer on the test and production APIs. It is a hint, not a promise:
            every order is checked again, in full, when it is placed.
          title: Production Trading Available
          type: boolean
        scopes:
          items:
            type: string
          title: Scopes
          type: array
      required:
        - login_id
        - environment
        - key_id
        - key_name
        - scopes
        - production_trading_available
      title: Me
      type: object
    ApiError:
      description: Every refusal on the trading API.
      properties:
        detail:
          $ref: '#/components/schemas/ApiErrorDetail'
      required:
        - detail
      title: ApiError
      type: object
    ApiErrorDetail:
      additionalProperties: true
      properties:
        code:
          description: Stable machine code; branch on this, not on `message`.
          title: Code
          type: string
        message:
          description: Human-readable text; may change.
          title: Message
          type: string
      required:
        - code
        - message
      title: ApiErrorDetail
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-API-Key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.