General Endpoints

Test connectivity

Test connectivity to the Rest API.

GET /api/v1/ping
https://dexdaq.com/api/v1/ping

Check server time

Test connectivity to the Rest API and get the current server time.

GET /api/v1/time
https://dexdaq.com/api/v1/time

Ticker

24 hour rolling window price change statistics.

https://dexdaq.com/api/v1/ticker

Exchange Information

Current exchange trading rules and symbol information

Weight:1

Parameters : NONE

GET /api/v1/exchangeInfo
https://dexdaq.com/api/v1/exchangeInfo
Success Response
{
    "status": true,
    "success": true,
    "message": "Exchange information has been listed successfuly...",
    "timezone": "UTC",
    "serverTime": 1561469983,
    "rateLimits": [],
    "exchangeFilters": [],
    "symbols": [{
        "symbol": "XRP\/ETH",
        "status": "TRADING",
        "baseAsset": "XRP",
        "baseAssetPrecision": 8,
        "quoteAsset": "ETH",
        "quotePrecision": 8,
        "orderTypes": ["LIMIT"],
        "icebergAllowed": false,
        "filters": []
    }]
}
                            

Get Currencies

This endpoint retrieves a list of all tokens. Not all tokens can be used for trading. Tokens which have or had no representation in ISO 4217 may use a custom code.

Request Sample
https://dexdaq.com/api/v1/currencies
Return Sample
[
   {
      "name":"Ethereum",
      "symbol":"ETH",
      "slug":"eth",
      "min_deposit":"0.01000000",
      "min_withdraw":"0.00300000",
      "processing_fee":"0.00100000",
      "can_trade":true,
      "maintenance_note":"-",
      "can_deposit":true,
      "can_withdraw":true
   },
   {
      "name":"Ripple",
      "symbol":"XRP",
      "slug":"xrp",
      "min_deposit":"0.00000000",
      "min_withdraw":"25.00000000",
      "processing_fee":"0.00100000",
      "can_trade":true,
      "maintenance_note":"-",
      "can_deposit":true,
      "can_withdraw":true
   }
]
                            

Market Data endpoints


Orderbook

GET /api/v1/depth
https://dexdaq.com/api/v1/depth?symbol=XLM-ETH&limit=10

Weight:Adjusted based on the limit:

Limit Weight
5, 10, 20, 50, 100 1
500 5
1000 10

Parameters:

Name Type Mandatory Description
symbol STRING YES
limit INT NO Default 100; max 1000. Valid limits:[5, 10, 20, 50, 100, 500, 1000]
Success Response
{
  "status": true,
  "success": true,
  "message": "Successfuly",
  "data": {
    "bids": [
      [
        "0.00015200", // PRICE
        "2610.00000000" // QTY
      ],
      [
        "0.00015105",
        "1031.00000000"
      ]
    ],
    "asks": [
      [
        "0.00017000",
        "75.00000000"
      ],
      [
        "0.00021989",
        "2612.88099459"
      ]
    ]
  }
}
                            

Old Trade Lookup (MARKET_DATA)

Get older trades.

GET /api/v1/historicalTrades
https://dexdaq.com/api/v1/historicalTrades/?symbol=ETHPLO-ETH&limit=10&fromId=5150

Weight : 5

Parameters:

Name Type Mandatory Description
symbol STRING YES
limit INT NO Default 500; max 1000.
fromId LONG NO TradeId to fetch from. Default gets most recent trades.
[{
    "id": 5182,
    "amount": "2055.22225000",
    "price": "0.00015105"
}, {
    "id": 5174,
    "amount": "240.50680615",
    "price": "0.00015104"
}, {
    "id": 5170,
    "amount": "100.00000000",
    "price": "0.00015103"
}, {
    "id": 5162,
    "amount": "457.65914655",
    "price": "0.00016698"
}, {
    "id": 5160,
    "amount": "36.00000000",
    "price": "0.00017000"
}, {
    "id": 5156,
    "amount": "11.12500000",
    "price": "0.00017000"
}]
                                    

openOrders

Sample Request
curl --location --request POST "https://exnce.com/api/v1/openOrders" \
--header "secretKey: YOUR_SECRET_KEY" \
--header "publicKey: YOUR_PUBLIC_KEY" \
                    
Success Response
{
    "status": true,
    "success": true,
    "message": "Operation successful!",
    "orders": {
        "bids": [
            {
                "amount": "249.99999981",
                "real_amount": "249.99999981",
                "completed_amount": "0.00000000",
                "remaining_amount": "249.99999981",
                "price": "1.00000000",
                "total": "249.99999981",
                "fee": "0.25000000",
                "processing_fee": "0.00100000",
                "orderId": 23,
                "clientOrderId": "2F8877AC92",
                "symbol": "NPXS/ETH",
                "time": 1554047853,
                "updateTime": 1554047853
            }
        ],
        "asks": [
            {
                "amount": "1.00000000",
                "real_amount": "1.00000000",
                "completed_amount": "0.00000000",
                "remaining_amount": "1.00000000",
                "price": "1.30000000",
                "total": "1.30000000",
                "fee": "0.00130000",
                "processing_fee": "0.00100000",
                "orderId": 27,
                "clientOrderId": "0AFB6B04F2",
                "symbol": "NPXS/TUSD",
                "time": 1554198057,
                "updateTime": 1554198057
            }
        ]
    }
}
Failed Response
{
  "status": true,
  "success": false,
  "message": "Invalid Secret Key or Public Key!",
  "orders": null
}
                        

createSell [LIMIT]

Type Data Value
Method POST
Endpoint https://exnce.com/api/v1/createSell
Header
secretKey YOUR_SECRET_KEY
publicKey YOUR_PUBLIC_KEY
Body
symbol ETH/BNB
side SELL
type LIMIT
quantity 1
price 0.012
Response
{
    "success": true,
    "type": "success",
    "title": "Information",
    "message": "Your sell order has been successfully created.",
    "data": {
        "clientOrderId": "E6D9C775372853"
    }
}
                            

createBuy [LIMIT]

Type Data Value
Method POST
Endpoint https://exnce.com/api/v1/createBuy
Header
secretKey YOUR_SECRET_KEY
publicKey YOUR_PUBLIC_KEY
Body
symbol ETH/BNB
side BUY
type LIMIT
quantity 1
price 0.012
Response
{
    "success": true,
    "type": "success",
    "title": "Information",
    "message": "Your buy order has been successfully created.",
    "data": {
        "clientOrderId": "E6D9C775372854"
    }
}