SubAccountApi: SubAccount operations

SubAccountApiR Documentation

SubAccount operations

Description

binanceRapi.SubAccount

Format

An R6Class generator object

Methods

SapiV1CapitalDepositSubAddressGet Sub-account Spot Assets Summary (For Master Account) Fetch sub-account deposit address Weight(IP): 1

  • @param email character

  • @param coin character

  • @param network character

  • @param recv.window integer

  • @returnType InlineResponse20058

  • status code : 200 | Deposit address info

  • return type : InlineResponse20058

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1CapitalDepositSubHisrecGet Sub-account Deposit History (For Master Account) Fetch sub-account deposit history Weight(IP): 1

  • @param email character

  • @param coin character

  • @param status integer

  • @param start.time integer

  • @param end.time integer

  • @param limit integer

  • @param offset integer

  • @param recv.window integer

  • @returnType list( inline_response_200_59 )

  • status code : 200 | Sub-account deposit history

  • return type : array[InlineResponse20059]

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1ManagedSubaccountAccountSnapshotGet Managed sub-account snapshot (For Investor Master Account) - The query time period must be less then 30 days - Support query within the last one month only - If `startTime` and `endTime` not sent, return records of the last 7 days by default Weight(IP): 2400

  • @param email character

  • @param type character

  • @param timestamp integer

  • @param signature character

  • @param start.time integer

  • @param end.time integer

  • @param limit integer

  • @param recv.window integer

  • @returnType InlineResponse20075

  • status code : 200 | Sub-account spot snapshot

  • return type : InlineResponse20075

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1ManagedSubaccountAssetGet Managed sub-account asset details(For Investor Master Account) Weight(IP): 1

  • @param email character

  • @param recv.window integer

  • @returnType list( inline_response_200_74 )

  • status code : 200 | List of asset details

  • return type : array[InlineResponse20074]

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1ManagedSubaccountDepositPost Deposit assets into the managed sub-account(For Investor Master Account) Weight(IP): 1

  • @param to.email character

  • @param asset character

  • @param amount numeric

  • @param recv.window integer

  • @returnType InlineResponse20073

  • status code : 200 | Transfer id

  • return type : InlineResponse20073

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1ManagedSubaccountWithdrawPost Withdrawl assets from the managed sub-account(For Investor Master Account) Weight(IP): 1

  • @param from.email character

  • @param asset character

  • @param amount numeric

  • @param transfer.date integer

  • @param recv.window integer

  • @returnType InlineResponse20073

  • status code : 200 | Transfer id

  • return type : InlineResponse20073

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountBlvtEnablePost Enable Leverage Token for Sub-account (For Master Account) Weight(IP): 1

  • @param email character

  • @param enable.blvt character

  • @param recv.window integer

  • @returnType InlineResponse20072

  • status code : 200 | BLVT status

  • return type : InlineResponse20072

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountFuturesAccountGet Detail on Sub-account's Futures Account (For Master Account) Weight(IP): 10

  • @param email character

  • @param recv.window integer

  • @returnType InlineResponse20065

  • status code : 200 | Futures account details

  • return type : InlineResponse20065

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountFuturesAccountSummaryGet Summary of Sub-account's Futures Account (For Master Account) Weight(IP): 1

  • @param recv.window integer

  • @returnType InlineResponse20066

  • status code : 200 | Futures account summary

  • return type : InlineResponse20066

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountFuturesEnablePost Enable Futures for Sub-account (For Master Account) Weight(IP): 1

  • @param email character

  • @param recv.window integer

  • @returnType InlineResponse20064

  • status code : 200 | Futures status

  • return type : InlineResponse20064

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountFuturesInternalTransferGet Sub-account Futures Asset Transfer History (For Master Account) Weight(IP): 1

  • @param email character

  • @param futures.type integer

  • @param start.time integer

  • @param end.time integer

  • @param page integer

  • @param limit integer

  • @param recv.window integer

  • @returnType InlineResponse20054

  • status code : 200 | Sub-account Futures Asset Transfer History

  • return type : InlineResponse20054

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountFuturesInternalTransferPost Sub-account Futures Asset Transfer (For Master Account) - Master account can transfer max 2000 times a minute Weight(IP): 1

  • @param from.email character

  • @param to.email character

  • @param futures.type integer

  • @param asset character

  • @param amount numeric

  • @param recv.window integer

  • @returnType InlineResponse20055

  • status code : 200 | Futures Asset Transfer Info

  • return type : InlineResponse20055

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountFuturesPositionRiskGet Futures Position-Risk of Sub-account (For Master Account) Weight(IP): 10

  • @param email character

  • @param recv.window integer

  • @returnType list( inline_response_200_67 )

  • status code : 200 | Futures account summary

  • return type : array[InlineResponse20067]

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountFuturesTransferPost Transfer for Sub-account (For Master Account) Weight(IP): 1

  • @param email character

  • @param asset character

  • @param amount numeric

  • @param type Enum < [1, 2, 3, 4] >

  • @param recv.window integer

  • @returnType InlineResponse20068

  • status code : 200 | Transfer id

  • return type : InlineResponse20068

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountListGet Query Sub-account List (For Master Account) Weight(IP): 1

  • @param email character

  • @param is.freeze Enum < [true, false] >

  • @param page integer

  • @param limit integer

  • @param recv.window integer

  • @returnType InlineResponse20052

  • status code : 200 | List of sub-accounts

  • return type : InlineResponse20052

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountMarginAccountGet Detail on Sub-account&#39;s Margin Account (For Master Account) Weight(IP): 10

  • @param email character

  • @param recv.window integer

  • @returnType InlineResponse20062

  • status code : 200 | Margin sub-account details

  • return type : InlineResponse20062

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountMarginAccountSummaryGet Summary of Sub-account&#39;s Margin Account (For Master Account) Weight(IP): 10

  • @param recv.window integer

  • @returnType InlineResponse20063

  • status code : 200 | Margin sub-account details

  • return type : InlineResponse20063

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountMarginEnablePost Enable Margin for Sub-account (For Master Account) Weight(IP): 1

  • @param email character

  • @param recv.window integer

  • @returnType InlineResponse20061

  • status code : 200 | Margin status

  • return type : InlineResponse20061

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountMarginTransferPost Margin Transfer for Sub-account (For Master Account) Weight(IP): 1

  • @param email character

  • @param asset character

  • @param amount numeric

  • @param type Enum < [1, 2] >

  • @param recv.window integer

  • @returnType InlineResponse20068

  • status code : 200 | Transfer id

  • return type : InlineResponse20068

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountSpotSummaryGet Sub-account Spot Assets Summary (For Master Account) Get BTC valued asset summary of subaccounts. Weight(IP): 1

  • @param email character

  • @param page integer

  • @param size integer

  • @param recv.window integer

  • @returnType InlineResponse20057

  • status code : 200 | Summary of Sub-account Spot Assets

  • return type : InlineResponse20057

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountStatusGet Sub-account&#39;s Status on Margin/Futures (For Master Account) - If no &#x60;email&#x60; sent, all sub-accounts&#39; information will be returned. Weight(IP): 10

  • @param email character

  • @param recv.window integer

  • @returnType list( inline_response_200_60 )

  • status code : 200 | Status on Margin/Futures

  • return type : array[InlineResponse20060]

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountSubAccountApiIpRestrictionGet Get IP Restriction for a Sub-account API Key (For Master Account) Weight(UID): 3000

  • @param email character

  • @param sub.account.api.key character

  • @param recv.window integer

  • @returnType InlineResponse20076

  • status code : 200 | IP Restriction information

  • return type : InlineResponse20076

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountSubAccountApiIpRestrictionIpListDelete Delete IP List for a Sub-account API Key (For Master Account) Weight(UID): 3000

  • @param email character

  • @param sub.account.api.key character

  • @param ip.address character

  • @param recv.window integer

  • @returnType InlineResponse20079

  • status code : 200 | Delete IP information

  • return type : InlineResponse20079

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountSubAccountApiIpRestrictionIpListPost Add IP List for a Sub-account API Key (For Master Account) Before the usage of this endpoint, please ensure &#x60;POST /sapi/v1/sub-account/subAccountApi/ipRestriction&#x60; was used to enable the IP restriction. Weight(UID): 3000

  • @param email character

  • @param sub.account.api.key character

  • @param ip.address character

  • @param recv.window integer

  • @returnType InlineResponse20078

  • status code : 200 | Add IP information

  • return type : InlineResponse20078

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountSubAccountApiIpRestrictionPost Enable or Disable IP Restriction for a Sub-account API Key (For Master Account) Weight(UID): 3000

  • @param email character

  • @param sub.account.api.key character

  • @param ip.restrict character

  • @param recv.window integer

  • @returnType InlineResponse20077

  • status code : 200 | IP Restriction information

  • return type : InlineResponse20077

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountSubTransferHistoryGet Sub-account Spot Asset Transfer History (For Master Account) - fromEmail and toEmail cannot be sent at the same time. - Return fromEmail equal master account email by default. Weight(IP): 1

  • @param from.email character

  • @param to.email character

  • @param start.time integer

  • @param end.time integer

  • @param page integer

  • @param limit integer

  • @param recv.window integer

  • @returnType list( inline_response_200_53 )

  • status code : 200 | Sub-account Spot Asset Transfer History

  • return type : array[InlineResponse20053]

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountTransferSubToMasterPost Transfer to Master (For Sub-account) Weight(IP): 1

  • @param asset character

  • @param amount numeric

  • @param recv.window integer

  • @returnType InlineResponse20068

  • status code : 200 | Transfer id

  • return type : InlineResponse20068

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountTransferSubToSubPost Transfer to Sub-account of Same Master (For Sub-account) Weight(IP): 1

  • @param to.email character

  • @param asset character

  • @param amount numeric

  • @param recv.window integer

  • @returnType InlineResponse20068

  • status code : 200 | Transfer id

  • return type : InlineResponse20068

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountTransferSubUserHistoryGet Sub-account Transfer History (For Sub-account) - If &#x60;type&#x60; is not sent, the records of type 2: transfer out will be returned by default. - If &#x60;startTime&#x60; and &#x60;endTime&#x60; are not sent, the recent 30-day data will be returned. Weight(IP): 1

  • @param asset character

  • @param type Enum < [1, 2] >

  • @param start.time integer

  • @param end.time integer

  • @param limit integer

  • @param recv.window integer

  • @returnType list( inline_response_200_69 )

  • status code : 200 | Transfer id

  • return type : array[InlineResponse20069]

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountUniversalTransferGet Universal Transfer History (For Master Account) - &#x60;fromEmail&#x60; and &#x60;toEmail&#x60; cannot be sent at the same time. - Return &#x60;fromEmail&#x60; equal master account email by default. - The query time period must be less then 30 days. - If startTime and endTime not sent, return records of the last 30 days by default. Weight(IP): 1

  • @param from.email character

  • @param to.email character

  • @param client.tran.id character

  • @param start.time integer

  • @param end.time integer

  • @param page integer

  • @param limit integer

  • @param recv.window integer

  • @returnType list( inline_response_200_70 )

  • status code : 200 | Transfer History

  • return type : array[InlineResponse20070]

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountUniversalTransferPost Universal Transfer (For Master Account) - You need to enable \&quot;internal transfer\&quot; option for the api key which requests this endpoint. - Transfer from master account by default if fromEmail is not sent. - Transfer to master account by default if toEmail is not sent. - Supported transfer scenarios: - Master account SPOT transfer to sub-account SPOT,USDT_FUTURE,COIN_FUTURE,MARGIN(Cross),ISOLATED_MARGIN - Sub-account SPOT,USDT_FUTURE,COIN_FUTURE,MARGIN(Cross),ISOLATED_MARGIN transfer to master account SPOT - Transfer between two sub-account SPOT accounts Weight(IP): 1

  • @param from.account.type Enum < [SPOT, USDT_FUTURE, COIN_FUTURE, MARGIN, ISOLATED_MARGIN] >

  • @param to.account.type Enum < [SPOT, USDT_FUTURE, COIN_FUTURE, MARGIN, ISOLATED_MARGIN] >

  • @param asset character

  • @param amount numeric

  • @param from.email character

  • @param to.email character

  • @param client.tran.id character

  • @param symbol character

  • @param recv.window integer

  • @returnType InlineResponse20071

  • status code : 200 | Transfer id

  • return type : InlineResponse20071

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV1SubAccountVirtualSubAccountPost Create a Virtual Sub-account(For Master Account) - This request will generate a virtual sub account under your master account. - You need to enable \&quot;trade\&quot; option for the api key which requests this endpoint. Weight(IP): 1

  • @param sub.account.string character

  • @param recv.window integer

  • @returnType InlineResponse20051

  • status code : 200 | Return the created virtual email

  • return type : InlineResponse20051

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV2SubAccountFuturesAccountGet Detail on Sub-account&#39;s Futures Account V2 (For Master Account) Weight(IP): 1

  • @param email character

  • @param futures.type Enum < [1, 2] >

  • @param recv.window integer

  • @returnType OneOfsubAccountUSDTFuturesDetailssubAccountCOINFuturesDetails

  • status code : 200 | USDT or COIN Margined Futures Details

  • return type : OneOfsubAccountUSDTFuturesDetailssubAccountCOINFuturesDetails

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV2SubAccountFuturesAccountSummaryGet Summary of Sub-account&#39;s Futures Account V2 (For Master Account) Weight(IP): 10

  • @param futures.type Enum < [1, 2] >

  • @param page integer

  • @param limit integer

  • @param recv.window integer

  • @returnType OneOfsubAccountUSDTFuturesSummarysubAccountCOINFuturesSummary

  • status code : 200 | USDT or COIN Margined Futures Summary

  • return type : OneOfsubAccountUSDTFuturesSummarysubAccountCOINFuturesSummary

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV2SubAccountFuturesPositionRiskGet Futures Position-Risk of Sub-account V2 (For Master Account) Weight(IP): 1

  • @param email character

  • @param futures.type Enum < [1, 2] >

  • @param recv.window integer

  • @returnType OneOfsubAccountUSDTFuturesPositionRisksubAccountCOINFuturesPositionRisk

  • status code : 200 | USDT or COIN Margined Futures Position Risk

  • return type : OneOfsubAccountUSDTFuturesPositionRisksubAccountCOINFuturesPositionRisk

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

SapiV3SubAccountAssetsGet Sub-account Assets (For Master Account) Fetch sub-account assets Weight(IP): 1

  • @param email character

  • @param recv.window integer

  • @returnType InlineResponse20056

  • status code : 200 | List of assets balances

  • return type : InlineResponse20056

  • response headers :

  • status code : 400 | Bad Request

  • return type : Error

  • response headers :

  • status code : 401 | Unauthorized Request

  • return type : Error

  • response headers :

Public fields

apiClient

Handles the client-server communication.

Methods

Public methods


Method new()

Usage
SubAccountApi$new(apiClient)

Method SapiV1CapitalDepositSubAddressGet()

Usage
SubAccountApi$SapiV1CapitalDepositSubAddressGet(
  email,
  coin,
  network = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1CapitalDepositSubAddressGetWithHttpInfo()

Usage
SubAccountApi$SapiV1CapitalDepositSubAddressGetWithHttpInfo(
  email,
  coin,
  network = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1CapitalDepositSubHisrecGet()

Usage
SubAccountApi$SapiV1CapitalDepositSubHisrecGet(
  email,
  coin = NULL,
  status = NULL,
  start.time = NULL,
  end.time = NULL,
  limit = NULL,
  offset = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1CapitalDepositSubHisrecGetWithHttpInfo()

Usage
SubAccountApi$SapiV1CapitalDepositSubHisrecGetWithHttpInfo(
  email,
  coin = NULL,
  status = NULL,
  start.time = NULL,
  end.time = NULL,
  limit = NULL,
  offset = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1ManagedSubaccountAccountSnapshotGet()

Usage
SubAccountApi$SapiV1ManagedSubaccountAccountSnapshotGet(
  email,
  type,
  start.time = NULL,
  end.time = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1ManagedSubaccountAccountSnapshotGetWithHttpInfo()

Usage
SubAccountApi$SapiV1ManagedSubaccountAccountSnapshotGetWithHttpInfo(
  email,
  type,
  start.time = NULL,
  end.time = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1ManagedSubaccountAssetGet()

Usage
SubAccountApi$SapiV1ManagedSubaccountAssetGet(email, recv.window = NULL, ...)

Method SapiV1ManagedSubaccountAssetGetWithHttpInfo()

Usage
SubAccountApi$SapiV1ManagedSubaccountAssetGetWithHttpInfo(
  email,
  recv.window = NULL,
  ...
)

Method SapiV1ManagedSubaccountDepositPost()

Usage
SubAccountApi$SapiV1ManagedSubaccountDepositPost(
  to.email,
  asset,
  amount,
  recv.window = NULL,
  ...
)

Method SapiV1ManagedSubaccountDepositPostWithHttpInfo()

Usage
SubAccountApi$SapiV1ManagedSubaccountDepositPostWithHttpInfo(
  to.email,
  asset,
  amount,
  recv.window = NULL,
  ...
)

Method SapiV1ManagedSubaccountWithdrawPost()

Usage
SubAccountApi$SapiV1ManagedSubaccountWithdrawPost(
  from.email,
  asset,
  amount,
  transfer.date = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1ManagedSubaccountWithdrawPostWithHttpInfo()

Usage
SubAccountApi$SapiV1ManagedSubaccountWithdrawPostWithHttpInfo(
  from.email,
  asset,
  amount,
  transfer.date = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountBlvtEnablePost()

Usage
SubAccountApi$SapiV1SubAccountBlvtEnablePost(
  email,
  enable.blvt,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountBlvtEnablePostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountBlvtEnablePostWithHttpInfo(
  email,
  enable.blvt,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesAccountGet()

Usage
SubAccountApi$SapiV1SubAccountFuturesAccountGet(email, recv.window = NULL, ...)

Method SapiV1SubAccountFuturesAccountGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountFuturesAccountGetWithHttpInfo(
  email,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesAccountSummaryGet()

Usage
SubAccountApi$SapiV1SubAccountFuturesAccountSummaryGet(recv.window = NULL, ...)

Method SapiV1SubAccountFuturesAccountSummaryGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountFuturesAccountSummaryGetWithHttpInfo(
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesEnablePost()

Usage
SubAccountApi$SapiV1SubAccountFuturesEnablePost(email, recv.window = NULL, ...)

Method SapiV1SubAccountFuturesEnablePostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountFuturesEnablePostWithHttpInfo(
  email,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesInternalTransferGet()

Usage
SubAccountApi$SapiV1SubAccountFuturesInternalTransferGet(
  email,
  futures.type,
  start.time = NULL,
  end.time = NULL,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesInternalTransferGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountFuturesInternalTransferGetWithHttpInfo(
  email,
  futures.type,
  start.time = NULL,
  end.time = NULL,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesInternalTransferPost()

Usage
SubAccountApi$SapiV1SubAccountFuturesInternalTransferPost(
  from.email,
  to.email,
  futures.type,
  asset,
  amount,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesInternalTransferPostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountFuturesInternalTransferPostWithHttpInfo(
  from.email,
  to.email,
  futures.type,
  asset,
  amount,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesPositionRiskGet()

Usage
SubAccountApi$SapiV1SubAccountFuturesPositionRiskGet(
  email,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesPositionRiskGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountFuturesPositionRiskGetWithHttpInfo(
  email,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesTransferPost()

Usage
SubAccountApi$SapiV1SubAccountFuturesTransferPost(
  email,
  asset,
  amount,
  type,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountFuturesTransferPostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountFuturesTransferPostWithHttpInfo(
  email,
  asset,
  amount,
  type,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountListGet()

Usage
SubAccountApi$SapiV1SubAccountListGet(
  email = NULL,
  is.freeze = NULL,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountListGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountListGetWithHttpInfo(
  email = NULL,
  is.freeze = NULL,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountMarginAccountGet()

Usage
SubAccountApi$SapiV1SubAccountMarginAccountGet(email, recv.window = NULL, ...)

Method SapiV1SubAccountMarginAccountGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountMarginAccountGetWithHttpInfo(
  email,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountMarginAccountSummaryGet()

Usage
SubAccountApi$SapiV1SubAccountMarginAccountSummaryGet(recv.window = NULL, ...)

Method SapiV1SubAccountMarginAccountSummaryGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountMarginAccountSummaryGetWithHttpInfo(
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountMarginEnablePost()

Usage
SubAccountApi$SapiV1SubAccountMarginEnablePost(email, recv.window = NULL, ...)

Method SapiV1SubAccountMarginEnablePostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountMarginEnablePostWithHttpInfo(
  email,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountMarginTransferPost()

Usage
SubAccountApi$SapiV1SubAccountMarginTransferPost(
  email,
  asset,
  amount,
  type,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountMarginTransferPostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountMarginTransferPostWithHttpInfo(
  email,
  asset,
  amount,
  type,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSpotSummaryGet()

Usage
SubAccountApi$SapiV1SubAccountSpotSummaryGet(
  email = NULL,
  page = NULL,
  size = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSpotSummaryGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountSpotSummaryGetWithHttpInfo(
  email = NULL,
  page = NULL,
  size = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountStatusGet()

Usage
SubAccountApi$SapiV1SubAccountStatusGet(email = NULL, recv.window = NULL, ...)

Method SapiV1SubAccountStatusGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountStatusGetWithHttpInfo(
  email = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubAccountApiIpRestrictionGet()

Usage
SubAccountApi$SapiV1SubAccountSubAccountApiIpRestrictionGet(
  email,
  sub.account.api.key,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubAccountApiIpRestrictionGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountSubAccountApiIpRestrictionGetWithHttpInfo(
  email,
  sub.account.api.key,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubAccountApiIpRestrictionIpListDelete()

Usage
SubAccountApi$SapiV1SubAccountSubAccountApiIpRestrictionIpListDelete(
  email,
  sub.account.api.key,
  ip.address,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubAccountApiIpRestrictionIpListDeleteWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountSubAccountApiIpRestrictionIpListDeleteWithHttpInfo(
  email,
  sub.account.api.key,
  ip.address,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubAccountApiIpRestrictionIpListPost()

Usage
SubAccountApi$SapiV1SubAccountSubAccountApiIpRestrictionIpListPost(
  email,
  sub.account.api.key,
  ip.address,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubAccountApiIpRestrictionIpListPostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountSubAccountApiIpRestrictionIpListPostWithHttpInfo(
  email,
  sub.account.api.key,
  ip.address,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubAccountApiIpRestrictionPost()

Usage
SubAccountApi$SapiV1SubAccountSubAccountApiIpRestrictionPost(
  email,
  sub.account.api.key,
  ip.restrict,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubAccountApiIpRestrictionPostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountSubAccountApiIpRestrictionPostWithHttpInfo(
  email,
  sub.account.api.key,
  ip.restrict,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubTransferHistoryGet()

Usage
SubAccountApi$SapiV1SubAccountSubTransferHistoryGet(
  from.email = NULL,
  to.email = NULL,
  start.time = NULL,
  end.time = NULL,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountSubTransferHistoryGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountSubTransferHistoryGetWithHttpInfo(
  from.email = NULL,
  to.email = NULL,
  start.time = NULL,
  end.time = NULL,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountTransferSubToMasterPost()

Usage
SubAccountApi$SapiV1SubAccountTransferSubToMasterPost(
  asset,
  amount,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountTransferSubToMasterPostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountTransferSubToMasterPostWithHttpInfo(
  asset,
  amount,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountTransferSubToSubPost()

Usage
SubAccountApi$SapiV1SubAccountTransferSubToSubPost(
  to.email,
  asset,
  amount,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountTransferSubToSubPostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountTransferSubToSubPostWithHttpInfo(
  to.email,
  asset,
  amount,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountTransferSubUserHistoryGet()

Usage
SubAccountApi$SapiV1SubAccountTransferSubUserHistoryGet(
  asset = NULL,
  type = NULL,
  start.time = NULL,
  end.time = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountTransferSubUserHistoryGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountTransferSubUserHistoryGetWithHttpInfo(
  asset = NULL,
  type = NULL,
  start.time = NULL,
  end.time = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountUniversalTransferGet()

Usage
SubAccountApi$SapiV1SubAccountUniversalTransferGet(
  from.email = NULL,
  to.email = NULL,
  client.tran.id = NULL,
  start.time = NULL,
  end.time = NULL,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountUniversalTransferGetWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountUniversalTransferGetWithHttpInfo(
  from.email = NULL,
  to.email = NULL,
  client.tran.id = NULL,
  start.time = NULL,
  end.time = NULL,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountUniversalTransferPost()

Usage
SubAccountApi$SapiV1SubAccountUniversalTransferPost(
  from.account.type,
  to.account.type,
  asset,
  amount,
  from.email = NULL,
  to.email = NULL,
  client.tran.id = NULL,
  symbol = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountUniversalTransferPostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountUniversalTransferPostWithHttpInfo(
  from.account.type,
  to.account.type,
  asset,
  amount,
  from.email = NULL,
  to.email = NULL,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountVirtualSubAccountPost()

Usage
SubAccountApi$SapiV1SubAccountVirtualSubAccountPost(
  sub.account.string,
  recv.window = NULL,
  ...
)

Method SapiV1SubAccountVirtualSubAccountPostWithHttpInfo()

Usage
SubAccountApi$SapiV1SubAccountVirtualSubAccountPostWithHttpInfo(
  sub.account.string,
  recv.window = NULL,
  ...
)

Method SapiV2SubAccountFuturesAccountGet()

Usage
SubAccountApi$SapiV2SubAccountFuturesAccountGet(
  email,
  futures.type,
  recv.window = NULL,
  ...
)

Method SapiV2SubAccountFuturesAccountGetWithHttpInfo()

Usage
SubAccountApi$SapiV2SubAccountFuturesAccountGetWithHttpInfo(
  email,
  futures.type,
  recv.window = NULL,
  ...
)

Method SapiV2SubAccountFuturesAccountSummaryGet()

Usage
SubAccountApi$SapiV2SubAccountFuturesAccountSummaryGet(
  futures.type,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV2SubAccountFuturesAccountSummaryGetWithHttpInfo()

Usage
SubAccountApi$SapiV2SubAccountFuturesAccountSummaryGetWithHttpInfo(
  futures.type,
  page = NULL,
  limit = NULL,
  recv.window = NULL,
  ...
)

Method SapiV2SubAccountFuturesPositionRiskGet()

Usage
SubAccountApi$SapiV2SubAccountFuturesPositionRiskGet(
  email,
  futures.type,
  recv.window = NULL,
  ...
)

Method SapiV2SubAccountFuturesPositionRiskGetWithHttpInfo()

Usage
SubAccountApi$SapiV2SubAccountFuturesPositionRiskGetWithHttpInfo(
  email,
  futures.type,
  recv.window = NULL,
  ...
)

Method SapiV3SubAccountAssetsGet()

Usage
SubAccountApi$SapiV3SubAccountAssetsGet(email, recv.window = NULL, ...)

Method SapiV3SubAccountAssetsGetWithHttpInfo()

Usage
SubAccountApi$SapiV3SubAccountAssetsGetWithHttpInfo(
  email,
  recv.window = NULL,
  ...
)

Method clone()

The objects of this class are cloneable with this method.

Usage
SubAccountApi$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

## Not run: 
####################  SapiV1CapitalDepositSubAddressGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.coin <- 'BNB' # character | Coin name
var.network <- 'network_example' # character | 
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Sub-account Spot Assets Summary (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1CapitalDepositSubAddressGet(var.email, var.coin, network=var.network, recv.window=var.recv.window)


####################  SapiV1CapitalDepositSubHisrecGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.coin <- 'BNB' # character | Coin name
var.status <- 56 # integer | 0(0:pending,6: credited but cannot withdraw, 1:success)
var.start.time <- 56 # integer | UTC timestamp in ms
var.end.time <- 56 # integer | UTC timestamp in ms
var.limit <- 56 # integer | 
var.offset <- 56 # integer | 
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Sub-account Deposit History (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1CapitalDepositSubHisrecGet(var.email, coin=var.coin, status=var.status, start.time=var.start.time, end.time=var.end.time, limit=var.limit, offset=var.offset, recv.window=var.recv.window)


####################  SapiV1ManagedSubaccountAccountSnapshotGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.type <- 'SPOT' # character | \"SPOT\", \"MARGIN\"(cross), \"FUTURES\"(UM)
var.timestamp <- 56 # integer | UTC timestamp in ms
var.signature <- 'signature_example' # character | Signature
var.start.time <- 56 # integer | UTC timestamp in ms
var.end.time <- 56 # integer | UTC timestamp in ms
var.limit <- 56 # integer | min 7, max 30, default 7
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Managed sub-account snapshot (For Investor Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1ManagedSubaccountAccountSnapshotGet(var.email, var.type, var.timestamp, var.signature, start.time=var.start.time, end.time=var.end.time, limit=var.limit, recv.window=var.recv.window)


####################  SapiV1ManagedSubaccountAssetGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Managed sub-account asset details(For Investor Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1ManagedSubaccountAssetGet(var.email, recv.window=var.recv.window)


####################  SapiV1ManagedSubaccountDepositPost  ####################

library(binanceRapi)
var.to.email <- 'to.email_example' # character | Recipient email
var.asset <- 'BTC' # character | 
var.amount <- 1.01 # numeric | 
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Deposit assets into the managed sub-account(For Investor Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1ManagedSubaccountDepositPost(var.to.email, var.asset, var.amount, recv.window=var.recv.window)


####################  SapiV1ManagedSubaccountWithdrawPost  ####################

library(binanceRapi)
var.from.email <- 'from.email_example' # character | Sender email
var.asset <- 'BTC' # character | 
var.amount <- 1.01 # numeric | 
var.transfer.date <- 56 # integer | Withdrawals is automatically occur on the transfer date(UTC0). If a date is not selected, the withdrawal occurs right now
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Withdrawl assets from the managed sub-account(For Investor Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1ManagedSubaccountWithdrawPost(var.from.email, var.asset, var.amount, transfer.date=var.transfer.date, recv.window=var.recv.window)


####################  SapiV1SubAccountBlvtEnablePost  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.enable.blvt <- 'enable.blvt_example' # character | Only true for now
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Enable Leverage Token for Sub-account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountBlvtEnablePost(var.email, var.enable.blvt, recv.window=var.recv.window)


####################  SapiV1SubAccountFuturesAccountGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Detail on Sub-account's Futures Account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountFuturesAccountGet(var.email, recv.window=var.recv.window)


####################  SapiV1SubAccountFuturesAccountSummaryGet  ####################

library(binanceRapi)
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Summary of Sub-account's Futures Account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountFuturesAccountSummaryGet(recv.window=var.recv.window)


####################  SapiV1SubAccountFuturesEnablePost  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Enable Futures for Sub-account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountFuturesEnablePost(var.email, recv.window=var.recv.window)


####################  SapiV1SubAccountFuturesInternalTransferGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.futures.type <- 2 # integer | 1:USDT-margined Futures, 2: Coin-margined Futures
var.start.time <- 56 # integer | UTC timestamp in ms
var.end.time <- 56 # integer | UTC timestamp in ms
var.page <- 1 # integer | Default 1
var.limit <- 56 # integer | Default value: 50, Max value: 500
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Sub-account Futures Asset Transfer History (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountFuturesInternalTransferGet(var.email, var.futures.type, start.time=var.start.time, end.time=var.end.time, page=var.page, limit=var.limit, recv.window=var.recv.window)


####################  SapiV1SubAccountFuturesInternalTransferPost  ####################

library(binanceRapi)
var.from.email <- 'from.email_example' # character | Sender email
var.to.email <- 'to.email_example' # character | Recipient email
var.futures.type <- 2 # integer | 1:USDT-margined Futures,2: Coin-margined Futures
var.asset <- 'BTC' # character | 
var.amount <- 1.01 # numeric | 
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Sub-account Futures Asset Transfer (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountFuturesInternalTransferPost(var.from.email, var.to.email, var.futures.type, var.asset, var.amount, recv.window=var.recv.window)


####################  SapiV1SubAccountFuturesPositionRiskGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Futures Position-Risk of Sub-account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountFuturesPositionRiskGet(var.email, recv.window=var.recv.window)


####################  SapiV1SubAccountFuturesTransferPost  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.asset <- 'BTC' # character | 
var.amount <- 1.01 # numeric | 
var.type <- 56 # integer | * `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
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Transfer for Sub-account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountFuturesTransferPost(var.email, var.asset, var.amount, var.type, recv.window=var.recv.window)


####################  SapiV1SubAccountListGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.is.freeze <- 'is.freeze_example' # character | 
var.page <- 1 # integer | Default 1
var.limit <- 1 # integer | Default 1; max 200
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Query Sub-account List (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountListGet(email=var.email, is.freeze=var.is.freeze, page=var.page, limit=var.limit, recv.window=var.recv.window)


####################  SapiV1SubAccountMarginAccountGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Detail on Sub-account's Margin Account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountMarginAccountGet(var.email, recv.window=var.recv.window)


####################  SapiV1SubAccountMarginAccountSummaryGet  ####################

library(binanceRapi)
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Summary of Sub-account's Margin Account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountMarginAccountSummaryGet(recv.window=var.recv.window)


####################  SapiV1SubAccountMarginEnablePost  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Enable Margin for Sub-account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountMarginEnablePost(var.email, recv.window=var.recv.window)


####################  SapiV1SubAccountMarginTransferPost  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.asset <- 'BTC' # character | 
var.amount <- 1.01 # numeric | 
var.type <- 56 # integer | 1: transfer from subaccount's spot account to margin account  2: transfer from subaccount's margin account to its spot account
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Margin Transfer for Sub-account (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountMarginTransferPost(var.email, var.asset, var.amount, var.type, recv.window=var.recv.window)


####################  SapiV1SubAccountSpotSummaryGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.page <- 1 # integer | Default 1
var.size <- 56 # integer | Default:10 Max:20
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Sub-account Spot Assets Summary (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountSpotSummaryGet(var.email, page=var.page, size=var.size, recv.window=var.recv.window)


####################  SapiV1SubAccountStatusGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Sub-account's Status on Margin/Futures (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountStatusGet(email=var.email, recv.window=var.recv.window)


####################  SapiV1SubAccountSubAccountApiIpRestrictionGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.sub.account.api.key <- 'sub.account.api.key_example' # character | 
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Get IP Restriction for a Sub-account API Key (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountSubAccountApiIpRestrictionGet(var.email, var.sub.account.api.key, recv.window=var.recv.window)


####################  SapiV1SubAccountSubAccountApiIpRestrictionIpListDelete  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.sub.account.api.key <- 'sub.account.api.key_example' # character | 
#' var.ip.address <- 'ip.address_example' # character | Can be added in batches, separated by commas
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Delete IP List for a Sub-account API Key (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountSubAccountApiIpRestrictionIpListDelete(var.email, var.sub.account.api.key, var.ip.address, recv.window=var.recv.window)


####################  SapiV1SubAccountSubAccountApiIpRestrictionIpListPost  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.sub.account.api.key <- 'sub.account.api.key_example' # character | 
var.ip.address <- 'ip.address_example' # character | Can be added in batches, separated by commas
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Add IP List for a Sub-account API Key (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountSubAccountApiIpRestrictionIpListPost(var.email, var.sub.account.api.key, var.ip.address, recv.window=var.recv.window)


####################  SapiV1SubAccountSubAccountApiIpRestrictionPost  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.sub.account.api.key <- 'sub.account.api.key_example' # character | 
var.ip.restrict <- 'ip.restrict_example' # character | true or false
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Enable or Disable IP Restriction for a Sub-account API Key (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountSubAccountApiIpRestrictionPost(var.email, var.sub.account.api.key, var.ip.restrict, recv.window=var.recv.window)


####################  SapiV1SubAccountSubTransferHistoryGet  ####################

library(binanceRapi)
var.from.email <- 'from.email_example' # character | Sub-account email
var.to.email <- 'to.email_example' # character | Sub-account email
var.start.time <- 56 # integer | UTC timestamp in ms
var.end.time <- 56 # integer | UTC timestamp in ms
var.page <- 1 # integer | Default 1
var.limit <- 1 # integer | Default 1
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Sub-account Spot Asset Transfer History (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountSubTransferHistoryGet(from.email=var.from.email, to.email=var.to.email, start.time=var.start.time, end.time=var.end.time, page=var.page, limit=var.limit, recv.window=var.recv.window)


####################  SapiV1SubAccountTransferSubToMasterPost  ####################

library(binanceRapi)
var.asset <- 'BTC' # character | 
var.amount <- 1.01 # numeric | 
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Transfer to Master (For Sub-account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountTransferSubToMasterPost(var.asset, var.amount, recv.window=var.recv.window)


####################  SapiV1SubAccountTransferSubToSubPost  ####################

library(binanceRapi)
var.to.email <- 'to.email_example' # character | Recipient email
var.asset <- 'BTC' # character | 
var.amount <- 1.01 # numeric | 
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Transfer to Sub-account of Same Master (For Sub-account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountTransferSubToSubPost(var.to.email, var.asset, var.amount, recv.window=var.recv.window)


####################  SapiV1SubAccountTransferSubUserHistoryGet  ####################

library(binanceRapi)
var.asset <- 'BNB' # character | 
var.type <- 56 # integer | * `1` - transfer in * `2` - transfer out
var.start.time <- 56 # integer | UTC timestamp in ms
var.end.time <- 56 # integer | UTC timestamp in ms
var.limit <- 500 # integer | Default 500; max 1000.
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Sub-account Transfer History (For Sub-account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountTransferSubUserHistoryGet(asset=var.asset, type=var.type, start.time=var.start.time, end.time=var.end.time, limit=var.limit, recv.window=var.recv.window)


####################  SapiV1SubAccountUniversalTransferGet  ####################

library(binanceRapi)
var.from.email <- 'from.email_example' # character | Sub-account email
var.to.email <- 'to.email_example' # character | Sub-account email
var.client.tran.id <- 'client.tran.id_example' # character | 
var.start.time <- 56 # integer | UTC timestamp in ms
var.end.time <- 56 # integer | UTC timestamp in ms
var.page <- 1 # integer | Default 1
var.limit <- 56 # integer | Default 500, Max 500
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Universal Transfer History (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountUniversalTransferGet(var.timestamp, var.signature, from.email=var.from.email, to.email=var.to.email, client.tran.id=var.client.tran.id, start.time=var.start.time, end.time=var.end.time, page=var.page, limit=var.limit, recv.window=var.recv.window)


####################  SapiV1SubAccountUniversalTransferPost  ####################

library(binanceRapi)
var.from.account.type <- 'from.account.type_example' # character | 
var.to.account.type <- 'to.account.type_example' # character | 
var.asset <- 'BTC' # character | 
var.amount <- 1.01 # numeric | 
var.from.email <- 'from.email_example' # character | Sub-account email
var.to.email <- 'to.email_example' # character | Sub-account email
var.client.tran.id <- 'client.tran.id_example' # character | 
var.symbol <- 'BNBUSDT' # character | Only supported under ISOLATED_MARGIN type
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Universal Transfer (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountUniversalTransferPost(var.from.account.type, var.to.account.type, var.asset, var.amount, var.timestamp, var.signature, from.email=var.from.email, to.email=var.to.email, client.tran.id=var.client.tran.id, symbol=var.symbol, recv.window=var.recv.window)


####################  SapiV1SubAccountVirtualSubAccountPost  ####################

library(binanceRapi)
var.sub.account.string <- 'sub.account.string_example' # character | Please input a string. We will create a virtual email using that string for you to register
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Create a Virtual Sub-account(For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV1SubAccountVirtualSubAccountPost(var.sub.account.string, recv.window=var.recv.window)


####################  SapiV2SubAccountFuturesAccountGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.futures.type <- 56 # integer | * `1` - USDT Margined Futures * `2` - COIN Margined Futures
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Detail on Sub-account's Futures Account V2 (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV2SubAccountFuturesAccountGet(var.email, var.futures.type, recv.window=var.recv.window)


####################  SapiV2SubAccountFuturesAccountSummaryGet  ####################

library(binanceRapi)
var.futures.type <- 56 # integer | * `1` - USDT Margined Futures * `2` - COIN Margined Futures
var.page <- 1 # integer | Default 1
var.limit <- 56 # integer | Default 10, Max 20
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Summary of Sub-account's Futures Account V2 (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV2SubAccountFuturesAccountSummaryGet(var.futures.type, page=var.page, limit=var.limit, recv.window=var.recv.window)


####################  SapiV2SubAccountFuturesPositionRiskGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.futures.type <- 56 # integer | * `1` - USDT Margined Futures * `2` - COIN Margined Futures
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Futures Position-Risk of Sub-account V2 (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV2SubAccountFuturesPositionRiskGet(var.email, var.futures.type, recv.window=var.recv.window)


####################  SapiV3SubAccountAssetsGet  ####################

library(binanceRapi)
var.email <- 'email_example' # character | Sub-account email
var.recv.window <- 5000 # integer | The value cannot be greater than 60000

#Sub-account Assets (For Master Account)
api.instance <- SubAccountApi$new()

result <- api.instance$SapiV3SubAccountAssetsGet(var.email, recv.window=var.recv.window)



## End(Not run)

grahamjwhite/binanceRapi documentation built on Nov. 22, 2022, 9:37 p.m.