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

# Get status

> Identity and permissions of the API key used, whether a new order would be accepted now, and your order limits. Takes no parameters. Unlike other endpoints, the response has no serverTimeMs.

Guide: [Authentication](/market-makers/authentication), [Trading Rules](/market-makers/trading-rules).



## OpenAPI

````yaml /api-reference/openapi.json get /mm/v1/status
openapi: 3.1.0
info:
  title: D1 Market Maker API
  version: mm/v1
  description: >-
    API for authorized market makers: market data, account state, order
    placement and cancellation, fills and sequenced executions. Read endpoints
    require the mm:read scope; trading endpoints require mm:trade.
servers:
  - url: '{D1_API_URL}'
    description: Base URL provided by D1 during onboarding.
    variables:
      D1_API_URL:
        default: $D1_API_URL
        description: Provided by D1 during onboarding.
security:
  - bearerAuth:
      - mm:read
tags:
  - name: Status
  - name: Market data
  - name: Account
  - name: Orders
  - name: Trading
  - name: Executions
paths:
  /mm/v1/status:
    get:
      tags:
        - Status
      summary: Get status
      description: >-
        Identity and permissions of the API key used, whether a new order would
        be accepted now, and your order limits. Takes no parameters. Unlike
        other endpoints, the response has no serverTimeMs.


        Guide: [Authentication](/market-makers/authentication), [Trading
        Rules](/market-makers/trading-rules).
      operationId: getStatus
      parameters: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
              example:
                apiVersion: mm/v1
                dealer:
                  id: <account-id>
                  status: ACTIVE
                  displayName: Alpha Markets
                credential:
                  keyId: <key-id>
                  scopes:
                    - mm:read
                    - mm:trade
                capabilities:
                  read: true
                  trade: true
                  writeOptions: false
                trading:
                  available: true
                  reason: null
                  sellPolicy: CLOSE_ONLY
                limits:
                  maxOpenExposure:
                    units: …
                    decimals: 6
                  maxRestingOrders: 128
                  maxRestingOrdersPerInstrument: 8
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
components:
  schemas:
    Status:
      type: object
      properties:
        apiVersion:
          type: string
          enum:
            - mm/v1
        dealer:
          type: object
          properties:
            id:
              type: string
              description: Your account identifier.
            status:
              type: string
              enum:
                - ACTIVE
            displayName:
              type: string
          required:
            - id
            - status
            - displayName
        credential:
          type: object
          properties:
            keyId:
              type: string
              description: Public identifier of the key used. Safe to log.
            scopes:
              type: array
              items:
                type: string
              example:
                - mm:read
                - mm:trade
          required:
            - keyId
            - scopes
        capabilities:
          type: object
          properties:
            read:
              type: boolean
              description: true when the key has mm:read.
            trade:
              type: boolean
              description: >-
                true exactly when a new order from this key would pass D1's
                trading checks now.
            writeOptions:
              type: boolean
              enum:
                - false
              description: >-
                Always false: option writing is not available. SELL is
                sell-to-close.
          required:
            - read
            - trade
            - writeOptions
        trading:
          type: object
          properties:
            available:
              type: boolean
              description: Same as capabilities.trade.
            reason:
              oneOf:
                - type: string
                  enum:
                    - TRADING_DISABLED
                - type: 'null'
              description: null when available; TRADING_DISABLED otherwise.
            sellPolicy:
              type: string
              enum:
                - CLOSE_ONLY
              description: SELL orders can only close long positions.
          required:
            - available
            - reason
            - sellPolicy
        limits:
          type: object
          description: Order limits for your account. Configuration, not current usage.
          properties:
            maxOpenExposure:
              oneOf:
                - $ref: '#/components/schemas/Exact'
                - type: 'null'
              description: >-
                Maximum total notional of resting orders, USDC (decimals 6).
                null if not configured, in which case new orders are refused.
            maxRestingOrders:
              type: integer
              description: Maximum resting orders across all markets.
            maxRestingOrdersPerInstrument:
              type: integer
              description: Maximum resting orders in one market.
          required:
            - maxOpenExposure
            - maxRestingOrders
            - maxRestingOrdersPerInstrument
      required:
        - apiVersion
        - dealer
        - credential
        - capabilities
        - trading
        - limits
    Exact:
      type: object
      properties:
        units:
          type: string
          description: >-
            Integer value as a decimal string. May be negative. May exceed 2^53
            − 1: parse with BigInt or a decimal library, never Number.
          example: '105000123456'
        decimals:
          type: integer
          minimum: 0
          description: Scale. value = units × 10^-decimals.
          example: 6
      required:
        - units
        - decimals
      description: Exact fixed-point number. value = units × 10^-decimals.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Stable error code.
          enum:
            - AUTH_REQUIRED
            - INVALID_API_KEY
            - API_KEY_REVOKED
            - DEALER_SUSPENDED
            - INSUFFICIENT_SCOPE
            - MALFORMED_REQUEST
            - INVALID_CURSOR
            - NOT_FOUND
            - RATE_LIMITED
            - INTERNAL
            - TRADING_DISABLED
            - UNKNOWN_INSTRUMENT
            - MARKET_NOT_TRADING
            - MARKET_PAUSED
            - INVALID_PRICE
            - INVALID_QUANTITY
            - IDEMPOTENCY_CONFLICT
            - INSUFFICIENT_FUNDS
            - INSUFFICIENT_POSITION
            - RISK_LIMIT
            - ORDER_NOT_FOUND
            - ORDER_NOT_CANCELLABLE
        message:
          type: string
          description: Human-readable message. Do not parse.
        limit:
          type: string
          enum:
            - MAX_OPEN_EXPOSURE
            - MAX_RESTING_ORDERS
            - MAX_RESTING_ORDERS_PER_INSTRUMENT
          description: >-
            Present only when error is RISK_LIMIT: the limit the order would
            exceed.
      required:
        - error
        - message
  responses:
    BadRequest:
      description: MALFORMED_REQUEST or INVALID_CURSOR.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: MALFORMED_REQUEST
            message: …
    Unauthorized:
      description: AUTH_REQUIRED, INVALID_API_KEY or API_KEY_REVOKED.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INVALID_API_KEY
            message: …
    Forbidden:
      description: DEALER_SUSPENDED or INSUFFICIENT_SCOPE.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INSUFFICIENT_SCOPE
            message: …
    RateLimited:
      description: >-
        RATE_LIMITED: not admitted. Wait Retry-After seconds, then retry the
        same request.
      headers:
        Retry-After:
          description: Seconds until the rate-limit window ends (at least 1).
          schema:
            type: integer
            minimum: 1
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: RATE_LIMITED
            message: Too many requests. Retry after the indicated delay.
    Internal:
      description: INTERNAL. Retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: INTERNAL
            message: …
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authorization: Bearer <your-api-key>. Scopes: mm:read (GET endpoints),
        mm:trade (POST endpoints).

````

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