Skip to content

086margin_loan

yangjialong edited this page Jun 25, 2019 · 3 revisions

Place Loan

  • Request description: Borrowing coins in a margin account.

  • Request type: POST

  • 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/margin/loan

  • 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
    market String Yes See<API invocation description·market>
    coin_type String Yes Coin type, e.g. BCH
    amount String Yes borrow amount
  • Return value description:

    name type description
    loan_id Integer loan record ID
  • Example:

# Request
GET https://api.coinex.com/v1/margin/account?access_id=4DA36FFC61334695A66F8D29020EB589&tonce=1513746038205
# Response
{
 "code": 0,
 "data": {
   "loan_id": 64,
 },
 "message": "Ok"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally