v26

latestOpenAPI 3.0.2raw.githubusercontent.com2024-10-0834042975.6 KB
Sub-Account

Margin Transfer for Sub-account (For Master Account)

Weight(IP): 1

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

Query parameters

emailstring required

Sub-account email

assetstring required
Example:BTC
amountnumber double required
typeinteger required
  • 1 - transfer from subaccount's spot account to margin account
  • 2 - transfer from subaccount's margin account to its spot account
recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Transfer id

txnIdstring required

Example response

{
  "txnId": "2966662589"
}