cURL
curl --request GET \ --url 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 } } ] }
Retrieve comprehensive market data for all trading pairs
Show Market Object Properties
longPercentage
shortPercentage
long
short
curl "https://unidexv4-api-production.up.railway.app/api/markets"
{ "success": true, "timestamp": 1699454789123, "marketsCount": 57, "markets": [ { "assetId": "1", "pair": "BTC/USD", "price": "75964.03651450", "fundingRate": 0.0001234, "borrowRateForLong": 0.0050, "borrowRateForShort": 0.0025, "longOpenInterest": 125.50, "shortOpenInterest": 100.20, "maxLongOpenInterest": 1000.00, "maxShortOpenInterest": 1000.00, "longTradingFee": 0.0005, "shortTradingFee": 0.0005, "utilization": 12.55, "longShortRatio": { "longPercentage": 55.61, "shortPercentage": 44.39 }, "availableLiquidity": { "long": 874.50, "short": 899.80 } } ] }
Ethereum address (optional)
Successful response
Indicates if the request was successful
Current Unix timestamp in milliseconds
Total number of available markets
Array of market data
Show child attributes
Trading pair identifier
Trading pair name
"BTC/USD"
Current market price
"75964.03651450"
Current funding rate
0.0001234
Borrow rate for long positions
0.005
Borrow rate for short positions
0.0025
Total long positions
125.5
Total short positions
100.2
Maximum allowed long open interest
1000
Maximum allowed short open interest
Trading fee for long positions
0.0005
Trading fee for short positions
Current market utilization percentage
12.55
Percentage of positions that are long
55.61
Percentage of positions that are short
44.39
Available liquidity for long positions
874.5
Available liquidity for short positions
899.8