port description:
  • submit batch limit orders
request URL:
  • https://apiv2.bitz.com/Trade/addEntrustSheetBatch
request method:
  • POST
parameters:
parameter name required type notes
apiKey is string the apiKey requested by the user
timeStamp is string current time mark
nonce is string random 6 characters
sign is string signature of the requested parameter
tradeData is string request json string,maximum 30 groups of data
tradeData request data format example:

the transaction password submitted tradepwd is md5 data after encryption

strict notice tradeData json string contained data,30 groups of data need to follow trading rules,strictly noticed to write the name of the data parameter within the string json properly

type 1 buy 2 sell

number、price parameter value cannot be smaller than 0

[
    {
        "coins":"btc_usdt",
        "number":10,
        "price":3942,
        "tradepwd":"1847d944c2ae00f555fd5eeeabaf0f3d",
        "type":2
    },
    {
        "coins":"btc_usdt",
        "number":0.1,
        "price":3942,
        "tradepwd":"1847d944c2ae00f555fd5eeeabaf0f3d",
        "type":2
    },
    ...
]
how to sign on the requested parameter:

Signatures are required for all the requested parameters except the sign parameter.

First, please arrange the characters that needed to be signed alphabetically(compare the first letters of all the parameters, rank according to abcd, if two first letters are the same, then compare the second letters, and so on).

For example: to sign for the below parameter

apiKey=376892265asdad5d12726d8bbfbd8912b3&timeStamp=1510235730&nonce=309127&tradeData=5B7B22coins223A22btc_usdt222C22number22A102C22price223A39422C22tradepwd223A221847d944c2ae00f555fd5eeeabaf0f3d222C22type223A27D2C7B22and then add the requested secretKey(only value required, no variable name needed, no need to write'&')

>

Example:secretKey=aQmE8U7bxj16KdJcSd3yX8F8Sakd8aO6LopnHXh27d4kWyb28PxcaTvGrajLDvAw

signature line after conjunction: apiKey=376892265asdad5d12726d8bbfbd8912b3&timeStamp=1510235730&nonce=309127&radeData=5B7B22coins223A22btc_usdt222C22number22A102C22price223A39422C22tradepwd223A221847d944c2ae00f555fd5eeeabaf0f3d222C22type223A27D2C7B22aQmE8U7bxj16KdJcSd3yX8F8Sakd8aO6LopnHXh27d4kWyb28PxcaTvGrajLDvAw

Notice,"sign" is a critical parameter for a signature.

Lastly, it is the 32-digit md5 calculation method that is used to calculate the final character line that needed to be signed and to get the final signed resulting character line(this character line assigns value to parameter sign).

returning result example:
{
    {
        "status": 200,
        "msg": "",
        "data": [
            {
                "id": 1854694831,
                "uId": 1483815,
                "price": "0.0000000600",
                "number": "2000.0000",
                "numberOver": "2000.0000",
                "flag": "buy",
                "status": 0,
                "coinFrom": "uc",
                "coinTo": "btc",
                "numberDeal": 0
            },
            {
                "id": 1854694836,
                "uId": 1483815,
                "price": "1.0000000000",
                "number": "1000.0000",
                "numberOver": "1000.0000",
                "flag": "sale",
                "status": 0,
                "coinFrom": "uc",
                "coinTo": "btc",
                "numberDeal": 0
            },
            ...
        ],
        "time": 1553745062,
        "microtime": "0.05590700 1553745062",
        "source": "api"
    }
}

results matching ""

    No results matching ""