NAV Navbar
json
  • Introduction
  • Tickers
  • Coin Info
  • Trade History
  • Introduction

    Welcome to the official documentation XBTS DEX API! You can use our API to access public API endpoints.

    We have language bindings in Json! You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.

    All information is broadcasted from the blockchain and can not be forged!

    Available assets pairs XBTS:

    Available all other assets pairs:

    etc etc...

    Tickers

    Get Single Ticker

    https://public.xbts.io/ticker/BTS_STH
    

    The above command returns JSON structured like this:

    {
      "BTS_STH": {
        "time": "2018-07-27T00:47:30",
        "base": "BTS",
        "quote": "STH",
        "latest": "0.01859723",
        "lowest_ask": "0.01859723",
        "highest_bid": "0.01603262",
        "percent_change": "-4.47",
        "base_volume": "12057.0034",
        "quote_volume": "648880.609272",
        "logo_base": "https://ex.xbts.io/asset-symbols/bts.png",
        "logo_quote": "https://ex.xbts.io/asset-symbols/xbtsx.sth.png"
      }
    }
    

    GET https://public.xbts.io/ticker/<ticker_pair>

    Return JSON.

    Get Custom Tickers

    https://public.xbts.io/ticker/BTS_STH,BTS_BTC
    

    The above command returns JSON structured like this:

    {
      "BTS_STH": {
        "time": "2018-07-26T21:03:42",
        "base": "BTS",
        "quote": "STH",
        "latest": "0.01862000",
        "lowest_ask": "0.01860000",
        "highest_bid": "0.01615782",
        "percent_change": "-4.31",
        "base_volume": "1554.69051",
        "quote_volume": "83492.478995"
      },
      "BTS_CNY": {
        "time": "2018-07-26T21:03:42",
        "base": "BTS",
        "quote": "CNY",
        "latest": "0.71681813",
        "lowest_ask": "0.71692375",
        "highest_bid": "0.71684642",
        "percent_change": "1.15",
        "base_volume": "11306693.30177",
        "quote_volume": "16018329.0389"
      }
    }
    

    GET https://public.xbts.io/ticker/<ticker_pair1>,<ticker_pair2>,<ticker_pairN>

    List the pairs by separating them with commas

    Get All XBTS Tickers

    https://public.xbts.io/tickers
    

    The above command returns JSON structured like this:

    {
      "BTS_STH": {
        "time": "2018-07-26T21:05:21",
        "base": "BTS",
        "quote": "STH",
        "latest": "0.01862000",
        "lowest_ask": "0.01860000",
        "highest_bid": "0.01615782",
        "percent_change": "-4.31",
        "base_volume": "1554.69051",
        "quote_volume": "83492.478995"
      },
      "BTS_POST": {
        "time": "2018-07-26T21:05:21",
        "base": "BTS",
        "quote": "POST",
        "latest": "0.06500000",
        "lowest_ask": "0.11999987",
        "highest_bid": "0.06500000",
        "percent_change": "0",
        "base_volume": "0",
        "quote_volume": "0"
      },
      "BTS_DOGE": {
        "time": "2018-07-26T21:05:21",
        "base": "BTS",
        "quote": "DOGE",
        "latest": "0.00874400",
        "lowest_ask": "0.00000000",
        "highest_bid": "0.00000000",
        "percent_change": "0",
        "base_volume": "0",
        "quote_volume": "0"
      },
      ....
    }
    

    https://public.xbts.io/tickers

    Default base ticker BTS

    But there may be others:

    etc..

    Get Custom Base Tickers

    https://public.xbts.io/tickers?base=BTC
    

    The above command returns JSON structured like this:

    {
      "BTC_STH": {
        "time": "2018-07-26T21:09:27",
        "base": "BTC",
        "quote": "STH",
        "latest": "0.00000050",
        "lowest_ask": "0.00000050",
        "highest_bid": "0.00000042",
        "percent_change": "0.35",
        "base_volume": "0.04553569",
        "quote_volume": "98815.095234"
      },
      "BTC_POST": {
        "time": "2018-07-26T21:09:27",
        "base": "BTC",
        "quote": "POST",
        "latest": "0.00000198",
        "lowest_ask": "0.00000205",
        "highest_bid": "0.00000170",
        "percent_change": "-3.41",
        "base_volume": "0.03290543",
        "quote_volume": "16515.795701"
      },
      "BTC_DOGE": {
        "time": "2018-07-26T21:09:27",
        "base": "BTC",
        "quote": "DOGE",
        "latest": "0.00000042",
        "lowest_ask": "0.00000046",
        "highest_bid": "0.00000042",
        "percent_change": "0",
        "base_volume": "0.00254446",
        "quote_volume": "6058.26082"
      },
      ....
    }
    

    https://public.xbts.io/tickers?base=<BASE_COIN>

    Default base ticker BTS. But there may be others.

    Coin Info

    https://public.xbts.io/info/STH
    

    The above command returns JSON structured like this:

    {
      "id": "1.3.4099",
      "ticker": "STH",
      "title": "SmartHoldem",
      "logo": "https://ex.xbts.io/asset-symbols/xbtsx.sth.png",
      "website": "https://smartholdem.io",
      "explorer": "https://blockexplorer.smartholdem.io",
      "type": "coin",
      "prefix": "XBTSX",
      "social": {
        "btt": "https://bitcointalk.org/index.php?topic=2169457.0",
        "github": "https://github.com/smartholdem",
        "twitter": "https://twitter.com/smartholdem",
        "telegram": "https://t.me/smartholdem",
        "community": "https://community.smartholdem.io"
      },
      "exchange": {
        "XBTS": "https://ex.xbts.io/?r=xbtsx"
      }
    }
    

    GET https://public.xbts.io/info/<COIN>

    Return JSON information about coin.

    Trade History

    GET https://public.xbts.io/history/<STEP>/<QUOTE_COIN>/<BASE_COIN>/<LIMIT>/<ToTimeStamp>

    STEP = day or hour

    History by Days

    https://public.xbts.io/history/day/STH/BTS/7/1534293135
    

    The above command returns JSON Trade History 7 days (week) / Step 1 day:

    
      "Response": "Success",
      "Data": [
        {
          "time": 1533765600,
          "humanTime": "2018-08-09T00:00:00",
          "high": "0.03200",
          "low": "0.02002",
          "open": "0.02500",
          "volumefrom": "204872.71448",
          "volumeto": "5769.16014",
          "close": "0.029613"
        },
        {
          "time": 1533852000,
          "humanTime": "2018-08-10T00:00:00",
          "high": "0.02961",
          "low": "0.02164",
          "open": "0.02960",
          "volumefrom": "169364.04439",
          "volumeto": "4110.76956",
          "close": "0.028679"
        },
     .....
        {
          "time": 1534284000,
          "humanTime": "2018-08-15T00:00:00",
          "high": "0.03601",
          "low": "0.03601",
          "open": "0.03601",
          "volumefrom": "8.19994",
          "volumeto": "0.29532",
          "close": "0.036015"
        }
      ],
      "TimeTo": "1534293135"
    }
    

    GET https://public.xbts.io/history/day/<QUOTE_COIN>/<BASE_COIN>/<LIMIT>/<ToTimeStamp>

    Return JSON information about history coin by days.

    Support XBTSX coins:

    History by Hours

    https://public.xbts.io/history/hour/STH/BTS/24/1534293135
    

    The above command returns JSON Trade History 24 Hours/ Step 1 hour:

    
      "Response": "Success",
      "Data": [
    {
          "time": 1534201200,
          "humanTime": "2018-08-14T01:00:00",
          "high": "0.03990",
          "low": "0.03890",
          "open": "0.03890",
          "volumefrom": "9399.29474",
          "volumeto": "370.77409",
          "close": "0.039900"
        },
        {
          "time": 1534204800,
          "humanTime": "2018-08-14T02:00:00",
          "high": "0.03747",
          "low": "0.02645",
          "open": "0.03523",
          "volumefrom": "41691.57997",
          "volumeto": "1291.86200",
          "close": "0.030088"
        },
       .........
        {
          "time": 1534284000,
          "humanTime": "2018-08-15T00:00:00",
          "high": "0.03601",
          "low": "0.03601",
          "open": "0.03601",
          "volumefrom": "8.19994",
          "volumeto": "0.29532",
          "close": "0.036015"
        }
      ],
      "TimeTo": "1534293135"
    }
    

    GET https://public.xbts.io/history/hour/<QUOTE_COIN>/<BASE_COIN>/<LIMIT>/<ToTimeStamp>

    Return JSON information about history coin by hours.

    Support XBTSX coins: