Skip to content

074sub_account_balance_history

何文振 edited this page Jun 29, 2021 · 4 revisions

Balance Transfer History

  • Request description: Get Balance Transfer History Between Sub Account And Main Account(For Main Account Only)

  • Request type: GET

  • Signature required: YES

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

  • 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 Access ID
    sub_user_name String Option sub account username
    coin_type String Option coin type
    page Integer Option default 1
    limit Integer Option default 10, option(10, 100, 1000)
    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 type description
    time Integer unix timestamp (default order by type)
    coin_type String coin type
    amount String transfer amount
    transfer_from String transfer from user name
    transfer_to String transfer to user name
  • Example:

# Request
GET https://api.coinex.com/v1/sub_account/transfer/history
# Request.Params
{
    "sub_user_name": "bkf", 
    "coin_type": "ETH",
    "page": 1, 
    "limit": 10,
    "access_id": "BFFA64957AA240F6BBEA26F4E07EC0D9",
    "tonce": 1513746038205,
}
# Response
{
    "code": 0, 
    "data": {
        "curr_page": 1, 
        "data": [
            {
                "time": 1583762208, 
                "amount": "1", 
                "coin_type": "ETH", 
                "transfer_from": "bkf", 
                "transfer_to": "fengjianchao",
                "status": "success",
            }, 
            {
                "time": 1583762197, 
                "amount": "1", 
                "coin_type": "ETH", 
                "transfer_from": "fengjianchao", 
                "transfer_to": "bkf",
                "status": "success",
            }
        ], 
        "has_next": false, 
        "per_page": 10, 
        "total": 2, 
        "total_page": 1
    }, 
    "message": "Ok"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally