Public Endpoints

Get server time

GET /api/v1/time

Response

{
    "time": 1539670787
}

Get all markets info

GET /api/v2/markets

Parameters

Key Mandatory Data type Description Example
market option string Market symbol BTC_ETH, ETH_MAS, …

Response

{
    "status": 200,
    "data": [
        {
            "symbol": "BTC_ETH",
            "lastPrice": 0.002,
            "volume": 0.002,
            "volume24h": 0.002,
            "change24h": 0.002,
            "high24h": 0.002,
            "low24h": 0.002,
            "threshold": 0.0005
        },
        {
            "symbol": "ETH_MAS",
            "lastPrice": 0.002,
            "volume": 0.002,
            "volume24h": 0.002,
            "change24h": 0.002,
            "high24h": 0.002,
            "low24h": 0.002,
            "threshold": 0.0005
        }
    ]
}

Get one market info

GET /api/v2/markets/<market_symbol>

Parameters

Key Mandatory Data type Description Example
market required string Market symbol BTC_ETH, ETH_MAS, …

Response

{
    "status": 200,
    "data":
        {
            "symbol": "BTC_ETH",
            "lastPrice": 0.002,
            "volume": 0.002,
            "volume24h": 0.002,
            "change24h": 0.002,
            "high24h": 0.002,
            "low24h": 0.002,
            "threshold": 0.0005
        }
}

Get Ticker

GET /api/v2/get-ticker?market=<market_symbol>

Parameters

Key Mandatory Data type Description Example
market required string Market symbol BTC_ETH, ETH_MAS, …

Response

{
    "status": 200,
    "data": {
        "symbol": "BTC_VEIL",
        "lastPrice": 0.00008505,
        "highPrice": 0.00009599,
        "lowPrice": 0.00007515,
        "volume": 8.39123625,
        "quoteVolume": 8.39123625,
        "baseVolume": 98662.3897,
        "change24h": 0.13173653,
        "threshold": 0.001,
        "bidPrice": 0.00008505,
        "askPrice": 0.00008998
    }
}

Get Orderbook

GET /api/v2/get-order-book?market=<market_symbol>

Parameters

Key Mandatory Data type Description Example
market required string Market symbol BTC_ETH, ETH_MAS, …

Response

{
    "status": 200,
    "data": {
        "bids": [{
                "price": 0.00007975,
                "quantity": 112.1706
            },
            {
                "price": 0.0000785,
                "quantity": 254.1053
            },
            {
                "price": 0.00007817,
                "quantity": 1017.093
            }
        ],
        "asks": [{
                "price": 0.0000805,
                "quantity": 3.892
            },
            {
                "price": 0.00008248,
                "quantity": 101.45
            },
            {
                "price": 0.00008249,
                "quantity": 50.4596
            }
        ]
    }
}

Get Market History

GET /api/v2/get-market-history?market=<market_symbol>

Parameters

Key Mandatory Data type Description Example
market required string Market symbol BTC_ETH, ETH_MAS, …

Response Description

Field Description
type 0: Sell. 1: Buy

Response

{
    "status": 200,
    "data": [
        {
            "id": 138,
            "amount": 4702.0043,
            "price": 0.00003477,
            "createdAt": 1557832063,
            "type": 1
        },
        {
            "id": 137,
            "amount": 3504.6358,
            "price": 0.00003448,
            "createdAt": 1557832054,
            "type": 1
        },
        {
            "id": 136,
            "amount": 4903.0832,
            "price": 0.00003457,
            "createdAt": 1557832051,
            "type": 0
        }
    ]
}