GET
/
api
/
markets
curl "https://unidexv4-api-production.up.railway.app/api/markets"
{
  "success": true,
  "timestamp": 123,
  "marketsCount": 123,
  "markets": [
    {
      "assetId": "<string>",
      "pair": "BTC/USD",
      "price": "75964.03651450",
      "fundingRate": 0.0001234,
      "borrowRateForLong": 0.005,
      "borrowRateForShort": 0.0025,
      "longOpenInterest": 125.5,
      "shortOpenInterest": 100.2,
      "maxLongOpenInterest": 1000,
      "maxShortOpenInterest": 1000,
      "longTradingFee": 0.0005,
      "shortTradingFee": 0.0005,
      "utilization": 12.55,
      "longShortRatio": {
        "longPercentage": 55.61,
        "shortPercentage": 44.39
      },
      "availableLiquidity": {
        "long": 874.5,
        "short": 899.8
      }
    }
  ]
}

Overview

The Markets endpoint provides detailed information about all available trading pairs, including current prices, funding rates, and market statistics.

Use Cases

  • Fetch real-time market prices
  • Monitor market liquidity
  • Track funding rates
  • Analyze market utilization

Tips

  • Use the optional address parameter to get user-specific market data
  • Monitor the utilization field to understand market capacity
  • Watch fundingRate to optimize trading timing

Market Statistics

The endpoint provides comprehensive statistics including:

  • Long/Short ratios
  • Open interest
  • Available liquidity
  • Trading fees
  • Borrowing rates
curl "https://unidexv4-api-production.up.railway.app/api/markets"

Query Parameters

address
string

Ethereum address (optional)

Response

200 - application/json

Successful response

The response is of type object.