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
The response is of type object.
object