In CROSS exchange, the margin account is a separate account from standard account(Wallet). When your placing a margin order, you need to ensure that the margin account has sufficient balance.
This api describes how to transfer in/out funds to your margin account from your wallet.
/POST/api/v1/trans/leverAccount
Url:
https://api.crossexchange.io/POST/api/v1/trans/leverAccount
Request:
|
Name |
Type |
Description |
|
api_key |
String |
API KEY |
|
auth_nonce |
String |
Timestamp |
|
auth_sign |
String |
Sign: MD5coding.MD5( api_key+auth_nonce+ orderId+stopLossPrice+ stopProfitPrice) |
|
coinType |
String |
The coin type for transfer in / out. eg. USDT Only USDT transfers are available for Margin accounts. |
|
number |
BigDecimal |
The number of transfer,positive number is transfer in, and negative number it means transfer out. |
Response:
{
"code": 0,
"data": { }
}
|
code |
String |
0: successful |
If you need to check the balance of your margin account, please click here to view the api of "margin account balance".
