Margin Transfer for Sub-account(For Master Account)
#
API DescriptionMargin Transfer for Sub-account
#
HTTP RequestPOST /sapi/v1/sub-account/margin/transfer
#
Request Weight(IP)1
#
Request ParametersName | Type | Mandatory | Description |
---|---|---|---|
STRING | YES | Sub-account email | |
asset | STRING | YES | The asset being transferred, e.g., BTC |
amount | DECIMAL | YES | The amount to be transferred |
type | INT | YES | 1: transfer from subaccount's spot account to margin account 2: transfer from subaccount's margin account to its spot account |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
- You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.