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"
}

Changes

Changed in 2 of the 26 revisions of this API.526

  • 558ab69ec55522See the full diff
    • removed the enum value 1.00 from the query request parameter type

      request-parameter-enum-value-removed

    • removed the enum value 2.00 from the query request parameter type

      request-parameter-enum-value-removed

    • for the query request parameter type, the max was set to 2.00

      request-parameter-max-set

    • for the query request parameter type, the min was set to 1.00

      request-parameter-min-set

  • a484ce871a7236See the full diff
    • for the query request parameter recvWindow, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter timestamp, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter type, the type/format was changed from integer/ to integer/int32

      request-parameter-type-changed

    • for the query request parameter amount, the type/format was generalized from number/float to number/double

      request-parameter-type-generalized

    • the response property code became required for the status 400

      response-property-became-required

    • the response property code became required for the status 401

      response-property-became-required

    • the response property msg became required for the status 400

      response-property-became-required

    • the response property msg became required for the status 401

      response-property-became-required

    • the response property txnId became required for the status 200

      response-property-became-required