module Binance::Spot::Subaccount
def sub_account_margin_transfer(email:, asset:, amount:, type:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#margin-transfer-for-sub-account-for-master-account -
Options Hash:
(**kwargs)
-
:recvWindow
(Integer
) -- The value cannot be greater than 60000
Parameters:
-
kwargs
(Hash
) -- -
type
(Integer
) -- 1: transfer from subaccount's spot account to margin account
-
amount
(Float
) -- -
asset
(String
) -- -
email
(String
) --
def sub_account_margin_transfer(email:, asset:, amount:, type:, **kwargs) Binance::Utils::Validation.require_param('email', email) Binance::Utils::Validation.require_param('asset', asset) Binance::Utils::Validation.require_param('amount', amount) Binance::Utils::Validation.require_param('type', type) @session.sign_request(:post, '/sapi/v1/sub-account/margin/transfer', params: kwargs.merge( email: email, asset: asset, amount: amount, type: type )) end