API Documentation

GET https://digitalprice.io/api/currencies

Used to return all currency data

Parameters

None

Response JSON

{
    "success":true,"data":[
        ...
        {
            "id":1,
            "status":"Active",
            "currency":"DigitalPrice",
            "symbol":"DP",
            "withdrawFee":0.01,
            "withdrawMin":"0.01000000",
            "depositConfirmations":20,
            "withdrawDisabled":0,
            "depositDisabled":0,
            "tradeDisabled":0,
            "messageDisabled":null
        },
        ...
    ]
}

GET https://digitalprice.io/api/pairs

Used to return all trade pair data

Parameters

None

Response JSON

{
    "success":true,"data":[
        ...
        {
            "id":10,
            "status":"Active",
            "url":"dp-btc",
            "baseCurrency":"Bitcoin",
            "baseSymbol":"BTC",
            "quoteCurrency":"DigitalPrice",
            "quoteSymbol":"DP",
            "tradeFee":0.2,
            "tradeMin":"0.00005000",
            "tradeMax":"100000000.00000000",
            "priceMin":"0.00000001",
            "priceMax":"100000000.00000000"
        },
        ...
    ]
}

GET https://digitalprice.io/api/markets

Used to return all market data

Parameters

baseMarket - optional(id or Symbol), default: All

https://digitalprice.io/api/markets?baseMarket=BTC
https://digitalprice.io/api/markets?baseMarket=2

Response JSON

{
    "success":true,"data":[
        ...
        {
            "pairId":"10",
            "url":"dp-btc",
            "priceLow":"0.00000645",
            "priceHigh":"0.00000645",
            "priceLast":"0.00000645",
            "priceChange":"+0.00%",
            "volumeBase":"0.00000000",
            "volumeQuote":"0.00000000",
            "bidHigh":"0.00000259",
            "askLow":"0.00000500"
        },
        ...
    ]
}

GET https://digitalprice.io/api/orders

Used to return all order data. Limit 50

Parameters

market - required(pairId or pairUrl)

https://digitalprice.io/api/orders?market=10
https://digitalprice.io/api/orders?market=DP-BTC

Response JSON

{
    "success":true,"data":[
        ...
        {
            "pairId":"10",
            "url":"dp-btc",
            "priceLow":"0.00000645",
            "priceHigh":"0.00000645",
            "priceLast":"0.00000645",
            "priceChange":"+0.00%",
            "volumeBase":"0.00000000",
            "volumeQuote":"0.00000000",
            "bidHigh":"0.00000259",
            "askLow":"0.00000500"
        },
        ...
    ]
}

GET https://digitalprice.io/api/history

Used to return all order data. Limit 50

Parameters

market - required(pairId or pairUrl)

https://digitalprice.io/api/history?market=10
https://digitalprice.io/api/history?market=DP-BTC

Response JSON

{
    "success":true,"data":[
        ...
        {
            "pairId":10,
            "url":"dp-btc",
            "type":"Buy",
            "price":"0.00000645",
            "amount":"12.74969441",
            "total":"0.00008224",
            "timestamp":1532542910
        },
        ...
    ]
}