Skip to content

083margin_account_settings

jiangrui edited this page Jun 29, 2021 · 6 revisions

Acquire Margin Account Settings

  • Request description: Get all information of the margin trading coin, including the general maximum loan amount, interest rate.

  • Request type: GET

  • 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/config

  • 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
  • Return value description:

    name type description
    amount String maximum loan amount
    day_rate String daily interest rate
    leverage Integer maximum leverage
    market String Market Name
  • Example:

# Request
GET https://api.coinex.com/v1/margin/config?access_id=4DA36FFC61334695A66F8D29020EB589&tonce=1513746038205
# Response
{
 "code": 0,
 "data": [
    {
      'BTC': {
        'max_amount': '200',
        'min_amount': '0.0001'
      },
      'USDT': {
        'max_amount': '1000000',
        'min_amount': '1'
      },
      'day_rate': '0.0009',
      'leverage': 5,
      'market': 'BTCUSDT'
    },
    {
      'ETH': {
        'max_amount': '2000',
        'min_amount': '0.01'
      },
      'USDT': {
        'max_amount': '1000000',
        'min_amount': '1'
      },
      'day_rate': '0.0009',
      'leverage': 5,
      'market': 'ETHUSDT'
    },
   ...
 ]
 "message": "Ok"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally