module Binance::Spot::Margin

def margin_transfer(asset:, amount:, type:, **kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#cross-margin-account-transfer-margin -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • type (Integer) --
  • amount (Float) --
  • asset (String) --
def margin_transfer(asset:, amount:, type:, **kwargs)
  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/margin/transfer', params: kwargs.merge(
    asset: asset,
    amount: amount,
    type: type
  ))
end