module Binance::Spot::Subaccount

def universal_transfer(fromAccountType:, toAccountType:, asset:, amount:, **kwargs)

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

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :toEmail (String) -- Transfer to master account by default if toEmail is not sent.
  • :fromEmail (String) -- Transfer from master account by default if fromEmail is not sent.

Parameters:
  • kwargs (Hash) --
  • amount (Float) --
  • asset (String) --
  • toAccountType (String) -- "SPOT","USDT_FUTURE","COIN_FUTURE"
  • fromAccountType (String) -- "SPOT","USDT_FUTURE","COIN_FUTURE"
def universal_transfer(fromAccountType:, toAccountType:, asset:, amount:, **kwargs)
  Binance::Utils::Validation.require_param('fromAccountType', fromAccountType)
  Binance::Utils::Validation.require_param('toAccountType', toAccountType)
  Binance::Utils::Validation.require_param('asset', asset)
  Binance::Utils::Validation.require_param('amount', amount)
  @session.sign_request(:post, '/sapi/v1/sub-account/universalTransfer', params: kwargs.merge(
    fromAccountType: fromAccountType,
    toAccountType: toAccountType,
    asset: asset,
    amount: amount
  ))
end