Interface Description:
  • Get a list of personal history orders
Request URL:
  • https://apiv2.bitz.com/Trade/getUserHistoryEntrustSheet
Request Mode:
  • POST
Parameter:
Parameter Required Type Comment
apiKey Yes string User application apiKey
timeStamp Yes string Current timestamp
nonce Yes string Random 6-character string
sign Yes string Request signature
coinFrom No string eos、vtc coin
coinTo No string btc、eth Trading range
type No integer 1: Buy, 2: Sell, return all when not passed
page No integer current page number
pageSize No integer Number of impressions per page Maximum 100
startTime No string Start timestamp
endTime No string End timestamp

How to sign for required parameter:

All parameter submitted by users except sign requires signature.

Firstly, sort signature strings in alphabetical order based on parameters (compare the first letter of all parameter, if they differ, then the string whose first letter comes earlier in the alphabet comes before the other string. If the first letters are the same, then the second letters are compared, and so on).

For example:Sign for the following parameter

timeStamp=1552641715&nonce=ue8jAx&apiKey=17919e05dc57d5d44dccdda03bdd6e2e&coin=usdt&address=1AG1gZvQAYu3WBvgg7p4BvvfNQD2gE693k&number=1000&sign=6932efc6aa44f7605e808bfaa98fd630 and add application secretKey (only needs value, parameter and ‘&” is not required.)

For example:secretKey=aQmE8U7bxj16KdJcSd3yX8F8Sakd8aO6LopnHXh27d4kWyb28PxcaTvGrajLDvAw

Signature string after splicing: timeStamp=1552641715&nonce=ue8jAx&apiKey=17919e05dc57d5d44dccdda03bdd6e2e&coin=usdt&address=1AG1gZvQAYu3WBvJJ7p4BMMfNQD2gE693k&number=1000aQmE8U7bxj16KdJcSd3yX8F8Sakd8aO6LopnHXh27d4kWyb28PxcaTvGrajLDvAw

Note,"sign" is a required parameter.

Lastly,use md5 32bit algorithm to apply signature algorithm to the parameter, and then generate final signature string (the string assigns value to parameter ‘sign’).

Example of Return Result:
{
    "status":200,  //status code successful
    "msg":"",      //message
    "data":{
        "data":[
            {
                "id":"693248739",        //order number
                "uid":"2074056",
                "price":"100.00000000", //Commission price
                "number":"10.0000",     //Number of orders
                "total":"0.00000000",   //Commissioned total price
                "numberOver":"0.0000",  //The remaining amount
                "numberDeal":"0.0000",  //The number of transactions
                "flag":"sale",          //Trading type
                "status":3,  // 0: not filled, 1: part of the transaction, 2: all transactions, 3: has been revoked
                "isNew":"N",            //New commission
                "coinFrom":"vtc",       //The currency to be exchanged
                "coinTo":"dkkt",        //Target exchange
                "tradeType" :"1", //1 limit price 2 market price
                "created":"1533035300"
            },
            {
                "id":"723086996",
                "uid":"2074056",
                "price":"100.00000000",
                "number":"10.0000",
                "total":"0.00000000",
                "numberOver":"0.0000",
                "numberDeal":"0.0000",
                "flag":"sale",
                "status":3,
                "isNew":"N",
                "coinFrom":"bz",
                "coinTo":"usdt",
                "tradeType" :"1", //1 limit price 2 market price
                "created":"1533523568"
            },
        ],
        "pageInfo":{
            "limit":"10",
            "offest":"0",
            "current_page":"1",
            "page_size":"10",
            "total_count":"17",
            "page_count":"2"
        }
    },
    "time":1533279329,  //timestamp
    "microtime":"0.15305300 1533279329",//milliseconds timestamp
    "source":"api"  //source
}

results matching ""

    No results matching ""