Skip to content

068margin_transfer

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

Transfer between main account and margin account

  • Request description: transfer between main account and margin 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/margin/transfer

  • Request parameter:

    name type required description
    access_id String Yes access_id
    from_account Integer Yes the remitting account ID, main account ID:0, margin account ID: See < Inquire Margin Account Market Info>
    to_account Integer Yes the remitting account ID, main account ID:0, margin account ID: See < Inquire Margin Account Market Info>
    coin_type String Yes Coin type, e.g. BCH
    amount String Yes transfer amount
    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
  • Example

# Request
POST https://api.coinex.com/v1/margin/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