API Documentation

Bitliber provides a simple API to allow for anyone to access the market. Requests are made using standard HTTP and responses are returned in JSON format.

The endpoint used for API calls is https://bitliber.com/api/v1 with methods appended. Always check the status flag to ensure that your API call succeeded. In case of error the error message will be provided in error field.

Public API

These API calls do not require any authentication.

/public/assets

Retrieve all supported asses at Bitliber.

Method (GET)

Response

{
  "status": "ok",
  "error": null,
  "result": [
    {
      "currency": "BTC",
      "currencyLong": "Bitcoin"
    },
    {
      "currency": "XMR",
      "currencyLong": "Monero"
    }
  ]
}

/public/pairs

Retrieve all supported pairs at Bitliber.

Method (GET)

Response

{
  "status": "ok",
  "error": null,
  "result": [
    {
      "pair": "AEON-BTC",
      "baseCurrency": "AEON",
      "quoteCurrency": "BTC",
      "baseCurrencyLong": "Aeon",
      "quoteCurrencyLong": "Bitcoin"
    },
    {
      "pair": "XMR-BTC",
      "baseCurrency": "XMR",
      "quoteCurrency": "BTC",
      "baseCurrencyLong": "Monero",
      "quoteCurrencyLong": "Bitcoin"
    }
  ]
}

/public/markets

Retrieve the last 24 hour summary of all active markets. The change represents the volume change in percentage.

Method (GET)

Response

{
  "status": "ok",
  "error": null,
  "result": [
    {
      "pair": "AEON-BTC",
      "volume": 0.054,
      "change": 4.34782609,
      "last": 0.0022,
      "high": 0.0023,
      "low": 0.0022,
      "bid": 0.002,
      "ask": 0.0023
    },
    {
      "pair": "XMR-BTC",
      "volume": 1.896,
      "change": -7.23,
      "last": 0.024,
      "high": 0.03,
      "low": 0.024,
      "bid": 0.023,
      "ask": 0.025
    }
  ]
}

/public/ticker/{pair}

Retrieve the current tick values for a market. volume, change, high and low are in the last 24 hours. The change represents the volume change in percentage.

Method (GET)

Response

{
  "status": "ok",
  "error": null,
  "result": {
    "volume": 0.054,
    "change": 4.34609,
    "last": 0.0022,
    "high": 0.0023,
    "low": 0.0022,
    "bid": 0.002,
    "ask": 0.0023
  }
}

/public/orders/{pair}

Retrieve orderbook for a market.

Method (GET)

Response

{
  "status": "ok",
  "error": null,
  "result": {
    "buy": [
      {
        "price": 0.002,
        "size": 12
      }
    ],
    "sell": [
      {
        "price": 0.0023,
        "size": 12
      },
      {
        "price": 0.0024,
        "size": 23
      }
    ]
  }
}

/public/history/{pair}

Retrieve the latest trades that have occured for a market. Limited to 100 of the most recent trades. The date is a Unix UTC timestamp.

Method (GET)

Response

{
  "status": "ok",
  "error": null,
  "result": [
    {
      "date": "1529351745517",
      "quantity": 12,
      "price": 0.0022,
      "total": 0.0264,
      "type": "buy"
    },
    {
      "date": "1529351740431",
      "quantity": 12,
      "price": 0.0023,
      "total": 0.0276,
      "type": "sell"
    }
  ]
}

Private API

Coming soon...

Node client

See it on gihthub