[Deprecated] Price API

Real-time market price inquiry API (delay time: 30 seconds)

Prices API is deprecated.

Get All makret price

GET https://open-api.dexlab.space/v1/prices

Display current prices for all markets

{
    "success": true,
    "data": [
        {
            "price": "0.1000000000",
            "market": "SWAG/USDT",
            "time": "2021-01-31T16:53:35.559Z",
            "marketAddress": "AF2oQQaLtcrTnQyVs3EPTdyw57TPaK6njKYDq2Qw7LqP"
        },
        {
            "price": "0.8619200000",
            "market": "FIDA/USDC",
            "time": "2021-02-05T14:07:04.000Z",
            "marketAddress": "FrDavxi4QawYnQY259PVfYUjUvuyPNfqSXbLBqMnbfWJ"
        },
        {
            "price": "6.8160000000",
            "market": "SOL/USDT",
            "time": "2021-02-05T14:07:33.000Z",
            "marketAddress": "7xLk17EQQ5KLDLDe44wCmupJKJjTGd8hs3eSVVhCx932"
        }
    ]
}

Get All market 24h change price

GET https://open-api.dexlab.space/v1/prices/recent

Inquiry of price change information compared to 24 hours

{
  "success": true,
  "data": [
    {
      "marketAddress": "F1rxD8Ns5w4WzVcTRdaJ96LG7YKaA5a25BBmM32yFP4b",
      "closePrice": "0.0381150000",
      "price": "0.0404940000",
      "changePrice": 0.002378999999999999,
      "percent": "6.242"
    },
    {
      "marketAddress": "FQbCNSVH3RgosCPB4CJRstkLh5hXkvuXzAjQzT11oMYo",
      "closePrice": "0.0381190000",
      "price": "0.0403110000",
      "changePrice": 0.0021919999999999995,
      "percent": "5.750"
    }
  ]
}

Get market price

GET https://open-api.dexlab.space/v1/prices/:address/last

Path Parameters

NameTypeDescription

address

string

{
    "success": true,
    "data": {
        "price": "38358.5000000000",
        "market": "BTC/USDT",
        "time": "2021-02-05T14:09:33.000Z",
        "marketAddress": "EXnGBBSamqzd3uxEdRLUiYzjJkTwQyorAaFXdfteuGXe"
    }
}

Get market 24 hours ago price

GET https://open-api.dexlab.space/v1/prices/:address/closing-price

Market price inquiry up to 24 hours ago

Path Parameters

NameTypeDescription

address

string

{
    "success": true,
    "data": {
        "price": "37921.8000000000",
        "market": "BTC/USDT",
        "time": "2021-02-05T13:05:34.000Z",
        "marketAddress": "EXnGBBSamqzd3uxEdRLUiYzjJkTwQyorAaFXdfteuGXe"
    }
}

Last updated