module Binance::Spot::Margin
def margin_repay(asset:, amount:, **kwargs)
- See: https://binance-docs.github.io/apidocs/spot/en/#margin-account-repay-margin -
Options Hash:
(**kwargs)-
:recvWindow(Integer) -- The value cannot be greater than 60000 -
:symbol(String) -- isolated symbol -
:isIsolated(String) -- for isolated margin or not, "TRUE", "FALSE"; default "FALSE"
Parameters:
-
kwargs(Hash) -- -
amount(Float) -- -
asset(String) --
def margin_repay(asset:, amount:, **kwargs) Binance::Utils::Validation.require_param('asset', asset) Binance::Utils::Validation.require_param('amount', amount) @session.sign_request(:post, '/sapi/v1/margin/repay', params: kwargs.merge( asset: asset, amount: amount )) end