##### port description:

  • to get deposit and withdrawal records
request URL:
  • https://apiv2.bitz.com/Trade/depositOrwithdraw
request method:
  • POST
parameters:
parameter name required type notes
apiKey is string the apiKey that the user requested
timeStamp is string current time mark
nonce is string random 6 characters
sign is string signature for the requested parameter
coin is string coin name
type is integer 1:deposit,2:withdrawal
page not integer current page
pageSize not integer number showed per page maximum 100
startTime no string starting time mark
endTime not string ending time mark
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&coin=eos&&type=1&page=1&pageSize=10&startTime=1510235730&endTime=1510237730and 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&coin=eos&type=1&page=1&pageSize=10&startTime=1510235730&endTime=1510237730aQmE8U7bxj16KdJcSd3yX8F8Sakd8aO6LopnHXh27d4kWyb28PxcaTvGrajLDvAw

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":{
        "data":[
            {
                "id":"397574",
                "uid":"2033056",
                "wallet":"1AG1gZvQAYu3WBvgg7p4BMMghQD2gE693k",
                "txid":"",
                "confirm":"0",
                "number":"1000.00000000",
                "status":1,
                "updated":"0",
                "addressUrl":"http://omniexplorer.info/lookupadd.aspx?address=",
                "txidUrl":"http://omniexplorer.info/lookuptx.aspx?txid=",
                "description":"Tether",
                "coin":"usdt",
                "memo":""
            },
            {
                "id":"153606",
                "uid":"2033056",
                "wallet":"1AG1gZvQAYu3WBvgg7p4BMMghQD2gE693k",
                "txid":"aa2b179f84cd6dedafd41845e0fbf7f01e14c0d71ea3140d03d6f5a9ccd93199",
                "confirm":"0",
                "number":"761.11110000",
                "status":4,
                "updated":"1536726133579",
                "addressUrl":"http://omniexplorer.info/lookupadd.aspx?address=",
                "txidUrl":"http://omniexplorer.info/lookuptx.aspx?txid=",
                "description":"Tether",
                "coin":"usdt",
                "memo":""
            }
        ],
        "pageInfo":{
            "limit":"10",
            "offest":"0",
            "current_page":1,
            "page_size":10,
            "total_count":2,
            "page_count":1
        }
    },
    "time":1552642133,
    "microtime":"0.45690800 1552642133",
    "source":"api"
}

results matching ""

    No results matching ""