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

# Get market details

> Returns the configuration and metadata for a single market. The one-or-none form of `GET /v1/markets?address={address}`: the bare market object for an active market, `404 MARKET_NOT_FOUND` otherwise, with no list envelope to unwrap.



## OpenAPI

````yaml /openapi.json get /v1/markets/{address}
openapi: 3.0.3
info:
  description: >-
    REST API for the Archer Exchange — a high-performance Solana-based order
    book exchange.


    All monetary values (prices, sizes, fees) are returned as decimal strings
    for precision.


    ### Rate Limiting

    All endpoints are rate-limited via a token-bucket algorithm. When the limit
    is exceeded, the API returns `429 Too Many Requests`.


    ### Error Format

    All errors follow a consistent JSON format:

    ```json

    {
      "error": "ERROR_CODE",
      "message": "Human-readable description"
    }

    ```


    ### Handling errors

    Every error falls into one of five actions. REST errors come back as
    `{"error": CODE, "message"}`. A transaction that fails on-chain reports
    `{"InstructionError": [index, {"Custom": code}]}`; codes are the `errors`
    list of the program IDL (`archer-sdk/idl/archer_v1.json`). When a build
    endpoint's preflight catches an on-chain error first, it returns `400
    INVALID_PARAMS` with the reason in `message`.


    | Action | REST | On-chain (code) |

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

    | **Retry as is**, with backoff | `RATE_LIMITED` (429),
    `SERVICE_UNAVAILABLE` (503), `INTERNAL_ERROR` (500); relay `OVERLOADED`,
    `PREFLIGHT_UNAVAILABLE`. Keep backing off on 429: 50 of them within a minute
    from one IP returns `BANNED` (403) for 10 minutes | none |

    | **Refetch, rebuild, retry**: the book or registry changed under you | |
    `LevelSizeMismatch` (527), `StaleSequenceNumber` (509),
    `SequenceNumberTooFarAhead` (522), `RegistryBooksMismatch` (525),
    `IncompleteMakerBooks` (513), `NoMatchingLiquidity` (507); relay status
    `expired` (re-sign with a fresh blockhash) |

    | **Reprice** | `CROSSES_SPREAD`, `SLIPPAGE_EXCEEDED` | `PostOnlyWouldCross`
    (524), `CrossingOrderLevels` (505), `InvalidPrice` (503),
    `SlippageToleranceExceeded` (703) |

    | **Resize** | `INSUFFICIENT_LIQUIDITY` (the body's `availableSize` is what
    fits) | `MakerBookSideFull` (528: cancel a level first),
    `InvalidSizeAtLevel` (506), `InsufficientBalance` (402) and SPL Token `1`
    (fund the account or shrink), `ZeroSwapAmount` (702) |

    | **Stop**: fix the request or the setup; retrying cannot help |
    `INVALID_PARAMS`, `MISSING_API_KEY` / `INVALID_API_KEY` (401), `FORBIDDEN`,
    `NOT_FOUND`, `MARKET_NOT_FOUND`, `METHOD_NOT_ALLOWED`; `MARKET_PAUSED` /
    `MARKET_FROZEN` until the market resumes |
    `UnauthorizedArcherAccountDelegate` (1001), `BuilderFeeExceedsAccountCap`
    (1003), `UnauthorizedMaker` (502), `MakerNotRegistered` (512),
    `PostOnlyRequiresLimitOrderBook` (526), `MarketNotActive` (107),
    `MarketFrozen` (114); any 200–399 code (wrong account wiring, a bug to
    report) |
  title: Archer Exchange API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.archer.exchange
  - description: Staging
    url: https://api-staging.archer.exchange
  - description: Local
    url: http://localhost:8080
security:
  - apiKey: []
tags:
  - description: Discover and inspect available trading markets
    name: Markets
  - description: Token metadata for every mint Archer lists
    name: Tokens
  - description: Get price quotes before placing an order
    name: Quote
  - description: Build unsigned Solana transactions for swaps
    name: Orders
  - description: Build unsigned Solana transactions for limit orders
    name: Limit Orders
  - description: >-
      ArcherAccount — a wallet's delegated trading identity. Collateral sits in
      token accounts owned by the account PDA; an authorized delegate can trade
      and quote as the account but never withdraw.
    name: Account
  - description: Read a maker book — balances and resting levels — by PDA or by owner
    name: Maker Books
  - description: Deposit / withdraw / close — fund movement for a maker book
    name: Maker Funds
  - description: Public protocol-wide aggregate statistics
    name: Stats
  - description: >-
      Submit signed Solana transactions and let Archer land them. Hosted at
      `https://send.archer.exchange`, separate from the REST API, using the same
      API key.
    name: Transaction Relay
paths:
  /v1/markets/{address}:
    get:
      tags:
        - Markets
      summary: Get market details
      description: >-
        Returns the configuration and metadata for a single market. The
        one-or-none form of `GET /v1/markets?address={address}`: the bare market
        object for an active market, `404 MARKET_NOT_FOUND` otherwise, with no
        list envelope to unwrap.
      operationId: getMarket
      parameters:
        - description: Base58-encoded Solana address of the market.
          example: u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4
          in: path
          name: address
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketResponse'
          description: Market details.
        '400':
          $ref: '#/components/responses/InvalidParams'
        '404':
          $ref: '#/components/responses/MarketNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    MarketResponse:
      properties:
        address:
          description: Base58-encoded Solana address of the market.
          example: u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4
          type: string
        baseToken:
          $ref: '#/components/schemas/TokenInfo'
        createdAt:
          description: ISO 8601 timestamp of market creation.
          type: string
        limitOrdersEnabled:
          description: >-
            Whether the market has a maker registry, which placing a limit order
            requires. `false` means limit orders cannot be placed here
            (cancelling an existing one still works).
          type: boolean
        makerFeePpm:
          description: >-
            Signed maker fee in parts per million: positive means the maker
            pays, negative means the maker is rebated. This is the fee a resting
            limit order pays or earns.
          type: integer
        minOrderSize:
          description: Minimum order size in base tokens (decimal string).
          type: string
        quoteToken:
          $ref: '#/components/schemas/TokenInfo'
        status:
          description: >-
            On-chain market status. `frozen` is an emergency stop: swaps, maker
            withdrawals and fee collection are halted until the market is moved
            back to `paused`.
          enum:
            - active
            - paused
            - closed
            - frozen
          type: string
        takerFeePpm:
          description: Taker fee in parts per million (e.g., 1000 = 0.1%).
          type: integer
        tickSize:
          description: Minimum price increment (decimal string).
          type: string
      required:
        - address
        - baseToken
        - quoteToken
        - tickSize
        - minOrderSize
        - takerFeePpm
        - makerFeePpm
        - status
        - createdAt
      type: object
    TokenInfo:
      properties:
        decimals:
          example: 9
          type: integer
        logoUri:
          format: uri
          type: string
        mint:
          description: Base58-encoded SPL token mint address.
          example: So11111111111111111111111111111111111111112
          type: string
        name:
          example: Wrapped SOL
          type: string
        symbol:
          example: wSOL
          type: string
      required:
        - symbol
        - name
        - mint
        - decimals
        - logoUri
      type: object
    ErrorResponse:
      properties:
        error:
          description: Machine-readable error code.
          enum:
            - INVALID_PARAMS
            - MARKET_NOT_FOUND
            - MARKET_PAUSED
            - INSUFFICIENT_LIQUIDITY
            - SLIPPAGE_EXCEEDED
            - NOT_FOUND
            - FORBIDDEN
            - RATE_LIMITED
            - INTERNAL_ERROR
            - SERVICE_UNAVAILABLE
            - MARKET_FROZEN
            - CROSSES_SPREAD
            - MISSING_API_KEY
            - INVALID_API_KEY
            - BANNED
            - METHOD_NOT_ALLOWED
          type: string
        message:
          description: Human-readable error description.
          type: string
      required:
        - error
        - message
      type: object
  responses:
    InvalidParams:
      content:
        application/json:
          example:
            error: INVALID_PARAMS
            message: 'Invalid market address: xyz'
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Invalid request parameters.
    MarketNotFound:
      content:
        application/json:
          example:
            error: MARKET_NOT_FOUND
            message: 'Market not found: 5Ggx...abc'
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Market not found.
    RateLimited:
      content:
        application/json:
          example:
            error: RATE_LIMITED
            message: Too many requests. Please slow down.
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      description: Too many requests.
  securitySchemes:
    apiKey:
      in: header
      name: X-API-Key
      type: apiKey

````

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