API sub account endpoints

Methods

managedSubAccountAssets(email, optionsopt)

Query managed sub-account asset details(For Investor Master Account)

GET /sapi/v1/managed-subaccount/asset

https://binance-docs.github.io/apidocs/spot/en/#query-managed-sub-account-asset-details-for-investor-master-account

Parameters:
NameTypeAttributesDescription
emailstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

managedSubAccountDeposit(toEmail, asset, amount, optionsopt)

Deposit assets into the managed sub-account(For Investor Master Account)

POST /sapi/v1/managed-subaccount/deposit

https://binance-docs.github.io/apidocs/spot/en/#deposit-assets-into-the-managed-sub-account-for-investor-master-account

Parameters:
NameTypeAttributesDescription
toEmailstring
assetstring
amountnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

managedSubAccountSnapshot(email, type, optionsopt)

Query Managed Sub-account Snapshot(For Investor Master Account)

GET /sapi/v1/managed-subaccount/accountSnapshot

https://binance-docs.github.io/apidocs/spot/en/#query-managed-sub-account-snapshot-for-investor-master-account

Parameters:
NameTypeAttributesDescription
emailstring
typestring

"SPOT", "MARGIN"(cross), "FUTURES"(UM)

optionsobject<optional>
Properties
NameTypeAttributesDescription
startTimenumber<optional>
endTimenumber<optional>
limitnumber<optional>

min 7, max 30, default 7

recvWindownumber<optional>

managedSubAccountWithdraw(fromEmail, asset, amount, optionsopt)

Withdrawl assets from the managed sub-account(For Investor Master Account)

POST /sapi/v1/managed-subaccount/withdraw

https://binance-docs.github.io/apidocs/spot/en/#withdrawl-assets-from-the-managed-sub-account-for-investor-master-account

Parameters:
NameTypeAttributesDescription
fromEmailstring
assetstring
amountnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
transferDatenumber<optional>

Withdrawals is automatically occur on the transfer date(UTC0).
If a date is not selected, the withdrawal occurs right now

recvWindownumber<optional>

subAccountApiAddIp(email, subAccountApiKey, ipAddress, optionsopt)

Add IP List for a Sub-account API Key (For Master Account)

POST /sapi/v1/sub-account/subAccountApi/ipRestriction/ipList

Before the usage of this endpoint, please ensure POST /sapi/v1/sub-account/subAccountApi/ipRestriction was used to enable the IP restriction.

https://binance-docs.github.io/apidocs/spot/en/#add-ip-list-for-a-sub-account-api-key-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring

Sub-account email

subAccountApiKeystring
ipAddressstring

Can be added in batches, separated by commas

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

subAccountApiDeleteIp(email, subAccountApiKey, ipAddress, optionsopt)

Delete IP List for a Sub-account API Key (For Master Account)

DELETE /sapi/v1/sub-account/subAccountApi/ipRestriction/ipList

https://binance-docs.github.io/apidocs/spot/en/#delete-ip-list-for-a-sub-account-api-key-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring

Sub-account email

subAccountApiKeystring
ipAddressstring

Can be added in batches, separated by commas

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

subAccountApiGetIpRestriction(email, subAccountApiKey, optionsopt)

Get IP Restriction for a Sub-account API Key (For Master Account)

GET /sapi/v1/sub-account/subAccountApi/ipRestriction

https://binance-docs.github.io/apidocs/spot/en/#get-ip-restriction-for-a-sub-account-api-key-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring

Sub-account email

subAccountApiKeystring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

subAccountApiToggleIpRestriction(email, subAccountApiKey, ipRestrict, optionsopt)

Enable or Disable IP Restriction for a Sub-account API Key (For Master Account)

POST /sapi/v1/sub-account/subAccountApi/ipRestriction

https://binance-docs.github.io/apidocs/spot/en/#enable-or-disable-ip-restriction-for-a-sub-account-api-key-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring

Sub-account email

subAccountApiKeystring
ipRestrictboolean

true or false

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

subAccountAssets(email, optionsopt)

Query Sub-account Assets(For Master Account)

GET /sapi/v3/sub-account/assets

https://binance-docs.github.io/apidocs/spot/en/#query-sub-account-assets-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountCreation(subAccountString, optionsopt)

Create a Virtual Sub-account(For Master Account)

POST /sapi/v1/sub-account/virtualSubAccount

https://binance-docs.github.io/apidocs/spot/en/#create-a-virtual-sub-account-for-master-account

Parameters:
NameTypeAttributesDescription
subAccountStringstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountDepositAddress(email, coin, optionsopt)

Get Sub-account Deposit Address (For Master Account)

GET /sapi/v1/capital/deposit/subAddress

https://binance-docs.github.io/apidocs/spot/en/#get-sub-account-deposit-address-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
coinstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
networkstring<optional>
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountDepositHistory(email, optionsopt)

Get Sub-account Deposit History (For Master Account)

GET /sapi/v1/capital/deposit/subHisrec

https://binance-docs.github.io/apidocs/spot/en/#get-sub-account-deposit-address-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
coinstring<optional>
statusnumber<optional>
startTimenumber<optional>
endTimenumber<optional>
limitnumber<optional>
offsetnumber<optional>
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountEnableFutures(email, optionsopt)

Enable Futures for Sub-account (For Master Account)

GET /sapi/v1/sub-account/futures/enable

https://binance-docs.github.io/apidocs/spot/en/#enable-futures-for-sub-account-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountEnableMargin(email, optionsopt)

Enable Margin for Sub-account (For Master Account)

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

https://binance-docs.github.io/apidocs/spot/en/#enable-margin-for-sub-account-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring

Sub-account email

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountFuturesAccount(email, optionsopt)

Get Detail on Sub-account's Futures Account (For Master Account)

GET /sapi/v1/sub-account/futures/account

https://binance-docs.github.io/apidocs/spot/en/#get-detail-on-sub-account-39-s-futures-account-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountFuturesAccountSummary(optionsopt)

Get Summary of Sub-account's Futures Account (For Master Account)

GET /sapi/v1/sub-account/futures/accountSummary

https://binance-docs.github.io/apidocs/spot/en/#get-summary-of-sub-account-39-s-futures-account-for-master-account

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountFuturesAccountSummaryV2(futuresType, optionsopt)

Get Summary of Sub-account's Futures Account V2 (For Master Account)

GET /sapi/v2/sub-account/futures/accountSummary

https://binance-docs.github.io/apidocs/spot/en/#get-summary-of-sub-account-39-s-futures-account-v2-for-master-account

Parameters:
NameTypeAttributesDescription
futuresTypenumber

1:USDT Margined Futures, 2:COIN Margined Futures

optionsobject<optional>
Properties
NameTypeAttributesDescription
pagenumber<optional>

default:1

limitnumber<optional>

default:10, max:20

recvWindownumber<optional>

subAccountFuturesAccountV2(email, futuresType, optionsopt)

Get Detail on Sub-account's Futures Account V2 (For Master Account)

GET /sapi/v2/sub-account/futures/account

https://binance-docs.github.io/apidocs/spot/en/#get-detail-on-sub-account-39-s-futures-account-v2-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring

Sub-account email

futuresTypenumber

1:USDT Margined Futures, 2:COIN Margined Futures

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

subAccountFuturesAssetTransfer(fromEmail, toEmail, futuresType, asset, amount, optionsopt)

Sub-account Futures Asset Transfer(For Master Account)

POST /sapi/v1/sub-account/futures/internalTransfer

https://binance-docs.github.io/apidocs/spot/en/#sub-account-futures-asset-transfer-for-master-account

Parameters:
NameTypeAttributesDescription
fromEmailstring

Sender email

toEmailstring

Recipient email

futuresTypenumber

1: USDT-margined Futures,2: Coin-margined Futures

assetstring
amountnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountFuturesAssetTransferHistory(email, futuresType, optionsopt)

Query Sub-account Futures Asset Transfer History(For Master Account)

GET /sapi/v1/sub-account/futures/internalTransfer

https://binance-docs.github.io/apidocs/spot/en/#query-sub-account-futures-asset-transfer-history-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring

Sub-account email

futuresTypenumber

1: USDT-margined Futures,2: Coin-margined Futures

optionsobject<optional>
Properties
NameTypeAttributesDescription
startTimenumber<optional>

Default return the history with in 100 days

endTimenumber<optional>

Default return the history with in 100 days

pagenumber<optional>

Default value: 1

limitnumber<optional>

Default value: 50, Max value: 500

recvWindownumber<optional>

The value cannot be greater than 60000

subAccountFuturesPositionRisk(email, optionsopt)

Get Futures Postion-Risk of Sub-account (For Master Account)

GET /sapi/v1/sub-account/futures/positionRisk

https://binance-docs.github.io/apidocs/spot/en/#get-futures-postion-risk-of-sub-account-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountFuturesPositionRiskV2(email, futuresType, optionsopt)

Get Futures Position-Risk of Sub-account V2 (For Master Account)

GET /sapi/v2/sub-account/futures/positionRisk

https://binance-docs.github.io/apidocs/spot/en/#get-futures-position-risk-of-sub-account-v2-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring

Sub-account email

futuresTypenumber

1:USDT Margined Futures, 2:COIN Margined Futures

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

subAccountFuturesTransfer(email, asset, amount, type, optionsopt)

Futures Transfer for Sub-account(For Master Account)

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

https://binance-docs.github.io/apidocs/spot/en/#futures-transfer-for-sub-account-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
assetstring
amountnumber
typenumber

1: transfer from subaccount's spot account to its USDT-margined futures account
2: transfer from subaccount's USDT-margined futures account to its spot account
3: transfer from subaccount's spot account to its COIN-margined futures account
4: transfer from subaccount's COIN-margined futures account to its spot account

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountLeverageToken(email, enableBlvt, optionsopt)

Enable Leverage Token for Sub-account (For Master Account)

POST /sapi/v1/sub-account/blvt/enable

https://binance-docs.github.io/apidocs/spot/en/#enable-leverage-token-for-sub-account-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
enableBlvtboolean
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountList(optionsopt)

Query Sub-account List(For Master Account)

GET /sapi/v1/sub-account/list

https://binance-docs.github.io/apidocs/spot/en/#query-sub-account-list-sapi-for-master-account

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
emailstring<optional>
isFreezestring<optional>

true or false

pagenumber<optional>
limitnumber<optional>
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountMarginAccount(email, optionsopt)

Get Detail on Sub-account's Margin Account (For Master Account)

GET /sapi/v1/sub-account/margin/account

https://binance-docs.github.io/apidocs/spot/en/#get-detail-on-sub-account-39-s-margin-account-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountMarginAccountSummary(optionsopt)

Get Summary of Sub-account's Margin Account (For Master Account)

GET /sapi/v1/sub-account/margin/accountSummary

https://binance-docs.github.io/apidocs/spot/en/#get-detail-on-sub-account-39-s-margin-account-for-master-account

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountMarginTransfer(email, asset, amount, type, optionsopt)

Margin Transfer for Sub-account(For Master Account)

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

https://binance-docs.github.io/apidocs/spot/en/#margin-transfer-for-sub-account-for-master-account

Parameters:
NameTypeAttributesDescription
emailstring
assetstring
amountnumber
typenumber

1: transfer from subaccount's spot account to margin account
2: transfer from subaccount's margin account to its spot account

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountSpotSummary(optionsopt)

Query Sub-account Spot Assets Summary (For Master Account)

GET /sapi/v1/sub-account/spotSummary

https://binance-docs.github.io/apidocs/spot/en/#query-sub-account-spot-assets-summary-for-master-account

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
emailstring<optional>

Sub account email

pagenumber<optional>

default 1

sizenumber<optional>

default 10, max 20

recvWindownumber<optional>

The value cannot be greater than 60000

subAccountStatus(optionsopt)

Get Sub-account's Status on Margin/Futures(For Master Account)

GET /sapi/v1/sub-account/status

https://binance-docs.github.io/apidocs/spot/en/#get-sub-account-39-s-status-on-margin-futures-for-master-account

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
emailstring<optional>
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountTransferHistory(optionsopt)

Query Sub-account Transfer History(For Master Account)

GET /sapi/v1/sub-account/sub/transfer/history

https://binance-docs.github.io/apidocs/spot/en/#query-sub-account-spot-asset-transfer-history-sapi-for-master-account

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
fromEmailstring<optional>
toEmailstring<optional>
startTimenumber<optional>
endTimenumber<optional>
pagenumber<optional>
limitnumber<optional>
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountTransferSubAccountHistory(optionsopt)

Sub-account Transfer History (For Sub-account)

GET /sapi/v1/sub-account/transfer/subUserHistory

https://binance-docs.github.io/apidocs/spot/en/#sub-account-transfer-history-for-sub-account

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
assetstring<optional>

If not sent, result of all assets will be returned

typenumber<optional>

1: transfer in, 2: transfer out

startTimenumber<optional>
endTimenumber<optional>
limitnumber<optional>

Default 500

recvWindownumber<optional>

The value cannot be greater than 60000

subAccountTransferToMaster(asset, amount, optionsopt)

Transfer to Master(For Sub-account)

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

https://binance-docs.github.io/apidocs/spot/en/#transfer-to-master-for-sub-account

Parameters:
NameTypeAttributesDescription
assetstring
amountnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountTransferToSub(toEmail, asset, amount, optionsopt)

Transfer to Sub-account of Same Master(For Sub-account)

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

https://binance-docs.github.io/apidocs/spot/en/#transfer-to-sub-account-of-same-master-for-sub-account

Parameters:
NameTypeAttributesDescription
toEmailstring
assetstring
amountnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

subAccountUniversalTransfer(fromAccountType, toAccountType, asset, amount, optionsopt)

Universal Transfer (For Master Account)

POST /sapi/v1/sub-account/universalTransfer

https://binance-docs.github.io/apidocs/spot/en/#universal-transfer-for-master-account

Parameters:
NameTypeAttributesDescription
fromAccountTypestring

"SPOT", "USDT_FUTURE", "COIN_FUTURE", "MARGIN"(Cross), "ISOLATED_MARGIN"

toAccountTypestring

"SPOT", "USDT_FUTURE", "COIN_FUTURE", "MARGIN"(Cross), "ISOLATED_MARGIN"

assetstring
amountnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
fromEmailstring<optional>
toEmailstring<optional>
clientTranIdstring<optional>

Must be unique

symbolstring<optional>

Only supported under ISOLATED_MARGIN type

recvWindownumber<optional>

subAccountUniversalTransferHistory(optionsopt)

Query Universal Transfer History (For Master Account)

GET /sapi/v1/sub-account/universalTransfer

https://binance-docs.github.io/apidocs/spot/en/#query-universal-transfer-history-for-master-account

Parameters:
NameTypeAttributesDescription
optionsobject<optional>
Properties
NameTypeAttributesDescription
fromEmailstring<optional>
toEmailstring<optional>
clientTranIdstring<optional>
startTimestring<optional>
endTimestring<optional>
pagestring<optional>

Default 1

limitstring<optional>

Default 500, Max 500

recvWindownumber<optional>