Skip to main content

Margin Transfer for Sub-account(For Master Account)

API Description

Margin Transfer for Sub-account

HTTP Request

POST /sapi/v1/sub-account/margin/transfer

Request Weight(IP)

1

Request Parameters

NameTypeMandatoryDescription
emailSTRINGYESSub-account email
assetSTRINGYESThe asset being transferred, e.g., BTC
amountDECIMALYESThe amount to be transferred
typeINTYES1: transfer from subaccount's spot account to margin account 2: transfer from subaccount's margin account to its spot account
recvWindowLONGNO
timestampLONGYES
  • You need to open Enable Spot & Margin Trading permission for the API Key which requests this endpoint.

Response Example

{
"txnId":"2966662589"
}