Skip to content

066sub_account

yqh edited this page Mar 12, 2019 · 3 revisions

Transfer between main account and sub account

  • Request description: transfer between main account and sub account.

  • Request type: POST

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

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

  • 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
    transfer_account String Optional the sub account name
    transfer_side String Optional to post "in" or "out", in for deposit, out for withdrawal
    coin_type String Yes coin type
    amount String Yes transfer amount

    If it is the main account using API, transfer_account (the sub account name) and transfer_side (in for deposit, out for withdrawal) are both required.

    If it is the sub account using the API, then neither of them is required, and the transfers are to the main account by default.

  • Example

# Request
POST https://api.coinex.com/v1/sub_account/transfer?access_id=4DA36FFC61334695A66F8D29020EB589&tonce=1513746038205
# Response
{
    "code": 0,
    "message", "Ok",
    "data": {}
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally