Skip to content

074sub_account_balance

冯健超 edited this page Mar 10, 2020 · 3 revisions

Sub Account Balance

  • Request description: Get Sub Account Balance (Main Account API key only)

  • Request type: GET

  • Signature required: YES

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

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

  • Request parameter:

    name type required description
    access_id String Yes Main Account 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
    sub_user_name String Option Sub Account username
    coin_type String Option coin type
  • Return value description:

    name type description
    available String available amount
    frozen String frozen amount
  • Example:

# Request
GET https://api.coinex.com/v1/sub_account/balance
# Request.Params
{
    "sub_user_name": "jcc", 
    "coin_type": "ETH",
    "access_id": "BFFA64957AA240F6BBEA26F4E07EC0D9",
    "tonce": 1513746038205,
}
# Response
{
    "code": 0, 
    "data": {
        "jcc": {
            "ETH": {
                "available": "11.00000000", 
                "frozen": "0.00000000"
            }
        }
    }, 
    "message": "Ok"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally