API Domain : https://api.aladiex.com

Sign in

Request Format This method requires the following Body parameters:
Fields Value Description
api_key string Your api key
secret string Your secret key

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Fields Value Description
status string The value success indicates that this is a successful response
token string The token
message string Signin is success!
Request Example
api_key: key-1234557969557293d0235
secret: 6LeMbT0UAAAAAB5Ze-hjSFMOn0RbM9BE09MjmNns
Response Example
{
    "status": 200,
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6eyIkb2lkIjoiNWU3N2E1MzA0YzM0NTk1ZWYzMmZkNTBkIn0sInVpZCI6eyIkb2lkIjoiNWU3N2E1MDk0YzM0NTk1ZGQ2MjU0ZmRlIn0sImFwaV9rZXkiOiJldGltZWRtbG1xNXY1Z3ZycHpudWgxZDNzaGtkMXZsZXUxamZuOTJweHl0aXRlMmxrdHl6NG51ZXBreGF2dHVseCIsInRpbWUiOnsiJGRhdGUiOnsiJG51bWJlckxvbmciOiIxNTg0OTAxNzY0In19fQ.7Ra-b6uciiR9N9pxiInwanmdz1_h1pthq6bUAJ-0d3B",
    "message": "Signin is success!"
}

Market

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token
main string Main coin. Example: Pair is BTC_USDT then main is USDT
child string Child coin. Example: Pair is BTC_USDT then main is BTC
type string The value: buy/sell
amount float The amount
price float The price
stop float The stop for trigger
group string The value: limit/market/stop_limit

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
data array The information of market
Request Example
token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6eyIkb2lkIjoiNWU3N2E1MzA0Yz
main: USDT
child: BTC
type: buy
amount: 0.01
price: 6200
stop: 6200
group: limit
Response Example
{
    "status": 200,
    "data": {
        "_id": {
            "$oid": "5e7865bd2f6c7827202874c2"
        },
        "time": 1584934269000,
        "main": "USDT",
        "child": "BTC",
        "type": false, // true = sell, false = buy
        "price": 6200,
        "amount": 0.01,
        "total": 62,
        "filled": 0,
        "fee": 0,
        "trigger": "6200",
        "lock": false,
        "uid": {
            "$oid": "5e77a5094c34595dd6254fde"
        },
        "state": "open",
        "group": "limit",
        "before": 10061.969,
        "after": 9999.969,
        "price_usd": 6200
    }
}

Get price

Request Format This method requires the following URL parameters:
Fields Value Description
child string Child coin. Example: Pair is BTC_USDT then main is BTC
main string Main coin. Example: Pair is BTC_USDT then main is USDT.
If main coin empty then default is USDT

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
data array The information of symbol
Request Example
/v1/get_price/BTC/USDT
Response Example
{
    "status": 200,
    "data": {
        "name": "Bitcoin",
        "symbol": "BTC_USDT",
        "last_price": 7802.68,
        "price_usd": 7804.61,
        "volume_24h": 10715.902569,
        "high_24h": 8140.9,
        "low_24h": 7802.68,
        "percent_change_1s": -1.929,
        "percent_change_1h": -15.090000,
        "percent_change_24h": -12.729999,
        "percent_change_7d": -14.090000
    }
}

Get ticker

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token
main string Main coin. Example: Pair is BTC_USDT then main is USDT
child string Child coin. Example: Pair is BTC_USDT then main is BTC

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
data array The information of ticker
Response Example
{
    "status": 200,
    "data": {
        "time": 1584934269000,
        "ask": 7503.12,
        "bid": 6000,
        "last_price": 6750.62,
        "high": 9362.01,
        "low": 6556.47
    }
}

Get currency

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
data array The information of currency
Response Example
{
    "status": 200,
    "data": [
    {
      "_id": {
        "$oid": "5ba2444a6c267205505d0be1"
      },
      "name": "Bitcoin",
      "symbol": "BTC",
      "fee": 0.0005,
      "min_wdr": 0.1,
      "deposit_lock": false,
      "withdraw_lock": false,
      "trade_lock": false,
      "market_otc": true
    },
    {
      "_id": {
        "$oid": "5ba2445f6c267205505d0be5"
      },
      "name": "Ethereum",
      "symbol": "ETH",
      "min_wdr": 0.2,
      "deposit_lock": false,
      "withdraw_lock": false,
      "trade_lock": false,
      "fee": 0.001,
      "market_otc": true
    }
    ]
}
    

Cancel all order

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token
pair integer pair = 1 mean cancel pair of coin
pair = 2 mean cancel all coin
main string Main coin. Example: Pair is BTC_USDT then main is USDT
child string Child coin. Example: Pair is BTC_USDT then main is BTC

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
message string The response data
Response Example
{
    "status": 200,
    "message": "Cancel all successfully"
}

Cancel order

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token
id string ID of order
main string Main coin. Example: Pair is BTC_USDT then main is USDT
child string Child coin. Example: Pair is BTC_USDT then main is BTC

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
message string The response data
Response Example
{
    "status": 200,
    "message": "Cancel success"
}

Get account information

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
data array The information wallets of account
Response Example
{
    "status": 200,
    "data": [
        {
            "_id": {
                "$oid": "5e7dce4368a3ff4030005022"
            },
            "symbol": "BTC",
            "name": "Bitcoin",
            "status": "active",
            "address": "",
            "available_balance": 1000,
            "in_order": 0,
            "total_balance": 1000
        },
        {
            "_id": {
                "$oid": "5e7dce4368a3ff4030005023"
            },
            "symbol": "ETH",
            "name": "Ethereum",
            "status": "active",
            "address": "",
            "available_balance": 0,
            "in_order": 0,
            "total_balance": 0
        }
	]
}

Get pair currency

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
data array The response data
Response Example
{
    "status": 200,
    "data": [
        {
            "symbol": "BTC_USDT",
            "last_price": 8716.32,
            "price_usd": 8716.27,
            "volume_24h": 80.35451999999995,
            "high_24h": 8718.48,
            "low_24h": 8703.02,
            "percent_change_1s": 0.049999999999272404,
            "percent_change_1h": -614.5,
            "percent_change_24h": 13.299999999999272,
            "percent_change_7d": -614.5
        }
	]
}

Query all order

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token
pair integer pair = 1 mean query order by pair of coin
pair = 2 mean query all order
main string Main coin. Example: Pair is BTC_USDT then main is USDT
child string Child coin. Example: Pair is BTC_USDT then main is BTC
limit Number limits of record
offset Number The offset. Offer is 0

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
data array The information of orders
Response Example
{
    "status": 200,
    "data": [
        {
            "_id": {
                "$oid": "5e7dd65d68a3ff403000502a"
            },
            "time": 1585305181000,
            "main": "USDT",
            "child": "BTC",
            "type": true, // true = sell, false = buy
            "price": 8716.32,
            "amount": 0.1,
            "total": 871.632,
            "filled": 0,
            "fee": 0,
            "trigger": "8716.32",
            "state": "open",
            "group": "limit"
        }
	]
}

Get order book

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token
main string Main coin. Example: Pair is BTC_USDT then main is USDT
child string Child coin. Example: Pair is BTC_USDT then main is BTC
limit number The limits of record
offset number The offset. Offer is 0

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
data array The response data
Response Example
{
    "status": 200,
    "data": {
        "sell": [
            {
                "price": 9590.94,
                "amount": 0.90534
            },
            {
                "price": 9672.47,
                "amount": 0.70024
            }
        ],
        "buy": [
            {
                "price": 8992.66,
                "amount": 0.93481
            },
            {
                "price": 8295.85,
                "amount": 1.98782
            }
        ]
    }
}

Get order details

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token
id string the ID of market

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
message array The response data
Response Example
{
    "status": 200,
    "message": {
        "infor": {
            "_id": {
                "$oid": "5db6656819126251401cd0f5"
            },
            "time": {
                "$numberLong": "1572234600597"
            },
            "main": "USDT",
            "child": "BTC",
            "type": true, // true = sell, false = buy
            "price": 9672.47,
            "amount": 0.70024,
            "total": 6773.05039,
            "filled": 0,
            "fee": 0,
            "state": "open",
            "group": "limit"
        },
        "trade_list": [
            {
                "_id": {
                    "$oid": "5db6cbf5027439000169c49e"
                },
                "amount": 0.35612,
                "price": 9433.01,
                "status": "new",
                "create_at": {
                    "$numberLong": "1572260853037"
                }
            },
            {
                "_id": {
                    "$oid": "5db6cc6e027439000169c51e"
                },
                "amount": 0.28113000000000005,
                "price": 9426.7,
                "status": "new",
                "create_at": {
                    "$numberLong": "1572260974378"
                }
            }
        ]
    }
}

Get depth

Request Format This method requires the following Body parameters:
Fields Value Description
token string The token
main string Main coin. Example: Pair is BTC_USDT then main is USDT
child string Child coin. Example: Pair is BTC_USDT then main is BTC

Response Format
A successful response header uses the HTTP code 200 OK and has a JSON body with the following:

Field Value Description
status string The value success indicates that this is a successful response
data array The response data
Response Example
{
    "status": 200,
    "data": {
        "sell": [
            {
                "_id": "0.028877"
                "total": 116.8
            },
            {
                "_id": "0.027433"
                "total": 115.5
            }
        ],
        "buy": [
            {
                "_id": "0.028877"
                "total": 116.8
            },
            {
                "_id": "0.027433"
                "total": 115.5
            }
        ]
    }
}