> ## 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 Market

> Retrieve details for a specific trading market

## Overview

Get details for a specific trading market by its symbol. This endpoint does not require authentication.

## Path Parameters

<ParamField path="symbol" type="string" required>
  Trading pair symbol

  **Example:** `USDT-NGN`

  **Allowed values:** `USDT-NGN`, `USDC-NGN`, `USD-NGN`
</ParamField>

## Request Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl --request GET \
    --url https://api.pro.daya.co/public/v1/markets/USDT-NGN
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://api.pro.daya.co/public/v1/markets/USDT-NGN'
  );
  const data = await response.json();
  console.log(data.data);
  ```

  ```python Python theme={null}
  import requests

  response = requests.get('https://api.pro.daya.co/public/v1/markets/USDT-NGN')
  data = response.json()
  print(data['data'])
  ```

  ```go Go theme={null}
  package main

  import (
      "encoding/json"
      "fmt"
      "net/http"
  )

  func main() {
      resp, err := http.Get("https://api.pro.daya.co/public/v1/markets/USDT-NGN")
      if err != nil {
          panic(err)
      }
      defer resp.Body.Close()

      var data map[string]interface{}
      json.NewDecoder(resp.Body).Decode(&data)
      fmt.Println(data["data"])
  }
  ```
</CodeGroup>

## Response

<ResponseField name="success" type="boolean" required>
  Indicates if the request was successful
</ResponseField>

<ResponseField name="message" type="string" required>
  Human-readable response message
</ResponseField>

<ResponseField name="data" type="object" required>
  Market details

  <Expandable title="market properties">
    <ResponseField name="id" type="string">
      Market ID (UUID)

      **Example:** `550e8400-e29b-41d4-a716-446655440000`
    </ResponseField>

    <ResponseField name="symbol" type="string">
      Trading pair identifier

      **Example:** `USD-NGN`
    </ResponseField>

    <ResponseField name="base_asset" type="string">
      Base asset of the pair (always `USD` - unified balance)

      **Example:** `USD`
    </ResponseField>

    <ResponseField name="quote_asset" type="string">
      Quote asset of the pair

      **Example:** `NGN`
    </ResponseField>

    <ResponseField name="status" type="string">
      Market status

      **Values:** `active`, `suspended`, `maintenance`
    </ResponseField>

    <ResponseField name="created_at" type="string">
      ISO 8601 creation timestamp
    </ResponseField>

    <ResponseField name="updated_at" type="string">
      ISO 8601 last update timestamp
    </ResponseField>
  </Expandable>
</ResponseField>

### Success Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "success": true,
    "message": "Market retrieved successfully",
    "data": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "symbol": "USD-NGN",
      "base_asset": "USD",
      "quote_asset": "NGN",
      "status": "active",
      "created_at": "2024-01-01T00:00:00Z",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  }
  ```
</ResponseExample>

## Error Responses

<ResponseExample>
  ```json 404 Not Found theme={null}
  {
    "success": false,
    "message": "Market not found",
    "error": {
      "code": "SYMBOL_NOT_FOUND",
      "message": "Market not found",
      "symbol": "INVALID-PAIR"
    }
  }
  ```
</ResponseExample>

## Unified Balance

<Info>
  **Unified Balance:** The API accepts `USDT-NGN`, `USDC-NGN`, or `USD-NGN` as input symbols. All are treated equivalently and map to a single unified USD balance. The response will show `USD` as the base asset.
</Info>

## Rate Limits

* **100 requests per minute** per IP address
* No authentication required

## Next Steps

<CardGroup cols={2}>
  <Card title="List Markets" icon="chart-line" href="/pro/api-reference/list-markets">
    View all available markets
  </Card>

  <Card title="Get Last Price" icon="tag" href="/pro/api-reference/get-last-price">
    Get the latest price for a market
  </Card>
</CardGroup>
