Skip to content

060balance

卜永济 edited this page Aug 29, 2019 · 5 revisions

Inquire Account Info

  • Request description: Inquire account asset constructure. When the total assets (available + frozen) of a coin are 0, no coin data return.

  • Request type: GET

  • Signature required: Yes

  • Request Header:
    authorization:"xxxx"(32-digit capital letters, see generating method in <API invocation instruction>)

  • Request Url:https://api.coinex.com/v1/balance/info

  • Request parameter:

    name type required description
    access_id String Yes access_id
    tonce Integer Yes Tonce is a timestamp with a positive Interger that represents the number of milliseconds from Unix epoch to the current time. Error between tonce and server time can not exceed plus or minus 60s
  • Return value description:

    name description
    frozen frozen amount
    available available amount
  • Example:

# Request
GET https://api.coinex.com/v1/balance/info?access_id=4DA36FFC61334695A66F8D29020EB589&tonce=1513746038205
# Response
{
 "code": 0,
 "data": {
   "BCH": {                     # BCH account
     "available": "13.60109",   # Available BCH
     "frozen": "0.00000"        # Frozen BCH
   },
   "BTC": {                     # BTC account
     "available": "32590.16",   # Available BTC
     "frozen": "7000.00"        # Frozen BTC
   },
   "ETH": {                     # ETH account
     "available": "5.06000",    # Available ETH
     "frozen": "0.00000"        # Frozen ETH
   }
 },
 "message": "Ok"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally