Skip to content
dcoinapi edited this page Jan 18, 2019 · 8 revisions

OpenApi

Document

Signature description

The request parameters are sorted by dictionary, then spliced into a string in the form of keyvalue, and then sign=MD5(string+secretKey). Note: If the value of the request parameter is NULL In the case, the signature string is not counted when splicing the string.

For example

The parameters are as follows:

{
    country = 86;
    mobile = 15882133579;
    password = 654321zz;
    time = 1516007245;
}

After spliced:

string = country86mobile15882133579password654321zztime1516007278
sign=MD5(string+secretKey)

Request format

  • Post request parameters submit data in a form format:

  • content-type:application/x-www-form-urlencoded

  • The get request format is as follows:

  • http://url/open/api/get_records?symbol=ltcbtc&period=10min

Return format

parameter type needed description
code int true Error code, 0 is successful, others fail
msg string true Error message
data struct flase Return data, see each request
Clone this wiki locally