Skip to content

api_description

luogang edited this page Nov 30, 2021 · 4 revisions

API Description

  • API Endpoint: https://www.viabtc.net

  • API return the following json object, success when code=0. message is error description and data is a json object or array.

{
  "code": 0,
  "data": {}
  "message": "OK"
}
  • For GET and DELETE requests,the request parameter should be placed in the url.

  • For POST and PUT requests, the request parameter should be a json string, placed in the request body, with the Content-Type: application/json header.

  • By default, the daily data returned by API is in Beijing time (UTC+8). If you want to acquire the daily data in UTC time, pass the parameter utc=true. API that support the utc parameter will list it in their request parameter list.

name type required description
utc string no true/false, default: false