-
Notifications
You must be signed in to change notification settings - Fork 87
084margin_single_account_settings
yangjialong edited this page Jun 26, 2019
·
4 revisions
-
Request description: Get all information of the margin trading account of a specific coin, including the maximum loan amount, interest rate, and maximum leverage.
-
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 market String Yes See <API invocation description·market> 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 -
Example:
# Request
GET https://api.coinex.com/v1/margin/config?access_id=4DA36FFC61334695A66F8D29020EB589&tonce=1513746038205&market=BTCUSDT
# Response
{
"code": 0,
"data": {
"market": "BTCUSDT",
"BTC": {
"amount": "1.0",
"day_rate": "0.0001",
"leverage": 5,
},
"USDT": {
"amount": "500.0",
"day_rate": "0.0001",
"leverage": 5,
},
},
"message": "Ok"
}
Common API
Market API
-
Acquire Market List
-
Acquire Market Statistics
-
Acquire Market Depth
-
Acquire Latest Transaction Data
-
Acquire K-Line Data
-
Acquire Market Information
-
Acquire Single Market Information
-
Acquire AMM Market List
Account API
-
Inquire Account Info
-
Inquire Withdrawal List
-
Submit A Withdrawal Order
-
Cancel Withdrawal
-
Inquire Deposit List
-
Transfer between main account and sub account
-
Transfer between main account and margin account
-
Get deposit address
-
Generate deposit address
-
Inquire Sub Account Balance
-
Inquire Sub Account Balance History
-
Create Sub Account
-
Frozen Sub Account
-
Unfrozen Sub Account
-
Acquire Credit Account Info
Trading API
-
Place Limit Order
-
Place Multiple Limit Orders
-
Place Market Order
-
Place Stop Limit Order
-
Place IOC Order
-
Acquire Unexecuted Order List
-
Acquire Executed Order List
-
Acquire Order Status
-
Acquire Multiple Orders Status
-
Acquire Executed Order Detail
-
Acquire User Deals
-
Cancel Order
-
Cancel Multiple Orders
-
Cancel All Orders
Margin API
-
Inquire Margin Account Info
-
Inquire Margin Account Market Info
-
Inquire Margin Account of A Currency
-
Acquire Margin Account Settings
-
Acquire Margin Account Settings of A Currency
-
Acquire Loan List
-
Place Loan
-
Place Flat
-
Margin Balance Transfer
Contract API