Mercatox API V1
Public Endpoints
URL for API access: https://mercatox.com/api/public/v1/{endpoint}?{params}
‘endpoint’ - Endpoint of API you are accessing,
‘params’ - incoming request parameters (if required)
Endpoint: asset
Description: The assets endpoint is to provide a detailed summary for each currency available on the exchange.
Request parameter(s): Not needed
https://mercatox.com/api/public/v1/asset

Success response:
{
    "BTC": {
        "name": "Bitcoin",
        "id": "4",
        "can_withdraw": "1",
        "can_deposit": "1",
        "min_withdraw": "0.00100000",
        "max_withdraw": "0",
        "maker_fee": "0.25",
        "taker_fee": "0.25"
    },
    "ETH": {
        "name": "Ethereum",
        "id": "7",
        "can_withdraw": "1",
        "can_deposit": "1",
        "min_withdraw": "0.00500000",
        "max_withdraw": "0",
        "maker_fee": "0.25",
        "taker_fee": "0.25"
    }
}
Response parameter(s):
Parameter Type Description
name string Name of cryptocurrency.
id string Unique ID.
can_withdraw string Identifies whether withdraws are enabled or disabled.
can_deposit string Identifies whether deposits are enabled or disabled
min_withdraw string Identifies the single minimum withdraw amount of a cryptocurrency.
max_withdraw string Identifies the single maximum withdraw amount of a cryptocurrency. 0 - disabled.
maker_fee string Fees applied when liquidity is added to the order book.
taker_fee string Fees applied when liquidity is removed from the order book.

Ratelimit 2 req/sec
Endpoint: ticker
Description: The ticker endpoint is to provide a 24-hour pricing and volume summary for each market pair available on the exchange.
Request parameter(s): Not needed
https://mercatox.com/api/public/v1/ticker

Success response:
{
    "ETH_BTC": {
        "base_id": "7",
        "quote_id": "4",
        "last_price": "0.10900100",
        "base_volume": "120.23360000",
        "quote_volume": "12.79950000",
        "isFrozen": "0",
        "low24hr": "0.10331007",
        "high24hr": "0.11000000",
        "percentChange": "0.00000000",
        "lowestAsk": "0.02099987",
        "highestBid": "0.02023951"
    },
    "LTC_BTC": {
        "base_id": "8",
        "quote_id": "4",
        "last_price": "0.01621999",
        "base_volume": "235.63020000",
        "quote_volume": "3.78740000",
        "isFrozen": "0",
        "low24hr": "0.01590011",
        "high24hr": "0.01649998",
        "percentChange": "0.00000000",
        "lowestAsk": "0.00682898",
        "highestBid": "0.00663000"
    }
}
Response parameter(s):
Parameter Type Description
base_id string The base asset unique ID.
quote_id string The quote asset unique ID.
last_price string The price of the last executed order.
base_volume string 24 hour trading volume in base units.
quote_volume string 24 hour trading volume in quoted units.
isFrozen string Indicates if the market is currently enabled (1) or disabled (0).
low24hr string The lowest execution price for this pair within the last 24 hours.
high24hr string The highest execution price for this pair within the last 24 hours.
percentChange string Price change percentage.
lowestAsk string Lowest current purchase price for this asset.
highestBid string Highest current sale price for this asset.

Ratelimit 2 req/sec
Endpoint: orderbook
Description: The order book endpoint is to provide a complete order book with full depth returned for a given market pair.
Request parameter(s):
Parameter Is required Type Description
market_pair string Must be ETH_BTC format.

https://mercatox.com/api/public/v1/orderbook?market_pair=ETH_BTC

Success response:
{
    "timestamp": "1570712983",
    "asks": [
        [
            "0.02099999",
            "0.22454389"
        ],
        [
            "0.02114000",
            "0.10000000"
        ]
    ],
    "bids": [
        [
            "0.02011000",
            "0.05104000"
        ],
        [
            "0.02009993",
            "0.04798341"
        ]
    ]
}
Response parameter(s):
Parameter Type Description
timestamp string Unix timestamp in seconds for when the last updated time occurred.
asks array An array containing 2 elements. The ask price and quantity for each ask order.
bids array An array containing 2 elements. The offer price and quantity for each bid order.

Ratelimit 2 req/sec
Endpoint: trades
Description: The trades endpoint is to return data on all recently completed trades for a given market pair.
Request parameter(s):
Parameter Is required Type Description
market_pair string Must be ETH_BTC format.

https://mercatox.com/api/public/v1/trades?market_pair=ETH_BTC

Success response:
[
    {
        "trade_id": "11536286",
        "price": "0.02023952",
        "base_volume": "0.01145925",
        "quote_volume": "0.00023192",
        "trade_timestamp": "1569591808",
        "type": "sell"
    },
    {
        "trade_id": "11536284",
        "price": "0.02024000",
        "base_volume": "0.11302150",
        "quote_volume": "0.00228755",
        "trade_timestamp": "1569591808",
        "type": "sell"
    },
    {
        "trade_id": "..."
    },
    {
        "trade_id": "11534676",
        "price": "0.02080524",
        "base_volume": "35.64549988",
        "quote_volume": "0.74161317",
        "trade_timestamp": "1569301803",
        "type": "sell"
    },
    {
        "trade_id": "11534668",
        "price": "0.02079909",
        "base_volume": "45.19564606",
        "quote_volume": "0.94002831",
        "trade_timestamp": "1569301707",
        "type": "sell"
    }
]
Response parameter(s):
Parameter Type Description
trade_id string A unique ID associated with the trade for the currency pair transaction.
price string Transaction price in quoted units.
base_volume string Transaction amount in base units.
quote_volume string Transaction amount in quoted units.
trade_timestamp string Unix timestamp in seconds for when the transaction occurred.
type string Used to determine whether or not the transaction originated as a buy or sell.
Buy – Identifies an ask was removed from the order book.
Sell – Identifies a bid was removed from the order book.

Ratelimit 2 req/sec