module Binance::Spot::Wallet

def account_snapshot(type:, **kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#daily-account-snapshot-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :limit (Integer) -- min 5, max 30, default 5
  • :endTime (Integer) --
  • :startTime (Integer) --

Parameters:
  • kwargs (Hash) --
  • type (String) -- "SPOT", "MARGIN", "FUTURES"
def account_snapshot(type:, **kwargs)
  Binance::Utils::Validation.require_param('type', type)
  @session.sign_request(:get, '/sapi/v1/accountSnapshot', params: kwargs.merge(
    type: type
  ))
end

def account_status(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#account-status-user_data -

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

Parameters:
  • kwargs (Hash) --
def account_status(**kwargs)
  @session.sign_request(:get, '/sapi/v1/account/status', params: kwargs)
end

def api_key_permission(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#get-api-key-permission-user_data -

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

Parameters:
  • kwargs (Hash) --
def api_key_permission(**kwargs)
  @session.sign_request(:get, '/sapi/v1/account/apiRestrictions', params: kwargs)
end

def api_trading_status(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#account-api-trading-status-user_data -

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

Parameters:
  • kwargs (Hash) --
def api_trading_status(**kwargs)
  @session.sign_request(:get, '/sapi/v1/account/apiTradingStatus', params: kwargs)
end

def asset_detail(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#asset-detail-user_data -

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

Parameters:
  • kwargs (Hash) --
def asset_detail(**kwargs)
  @session.sign_request(:get, '/sapi/v1/asset/assetDetail', params: kwargs)
end

def asset_devidend_record(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#asset-dividend-record-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :limit (Integer) -- Default 20, max 500
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :asset (String) --

Parameters:
  • kwargs (Hash) --
def asset_devidend_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/asset/assetDividend', params: kwargs)
end

def coin_info(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#all-coins-39-information-user_data -

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

Parameters:
  • kwargs (Hash) --
def coin_info(**kwargs)
  @session.sign_request(:get, '/sapi/v1/capital/config/getall', params: kwargs)
end

def deposit_address(coin:, **kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data -

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

Parameters:
  • kwargs (Hash) --
  • coin (String) --
def deposit_address(coin:, **kwargs)
  Binance::Utils::Validation.require_param('coin', coin)
  @session.sign_request(:get, '/sapi/v1/capital/deposit/address', params: kwargs.merge(
    coin: coin
  ))
end

def deposit_history(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#deposit-history-supporting-network-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :limit (Integer) -- Default:1000, Max:1000
  • :offest (Integer) -- Default:0
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :status (Integer) -- 0(0:pending,6: credited but cannot withdraw, 1:success)
  • :coin (String) --

Parameters:
  • kwargs (Hash) --
def deposit_history(**kwargs)
  @session.sign_request(:get, '/sapi/v1/capital/deposit/hisrec', params: kwargs)
end

def disable_fast_withdraw(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#disable-fast-withdraw-switch-user_data -

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

Parameters:
  • kwargs (Hash) --
def disable_fast_withdraw(**kwargs)
  @session.sign_request(:post, '/sapi/v1/account/disableFastWithdrawSwitch', params: kwargs)
end

def dust_log(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#dustlog-user_data -

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

Parameters:
  • kwargs (Hash) --
def dust_log(**kwargs)
  @session.sign_request(:get, '/sapi/v1/asset/dribblet', params: kwargs)
end

def dust_transfer(asset:, **kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#dust-transfer-user_data -

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

Parameters:
  • kwargs (Hash) --
  • asset (Array) --
def dust_transfer(asset:, **kwargs)
  Binance::Utils::Validation.require_param('asset', asset)
  @session.sign_request(:post, '/sapi/v1/asset/dust', params: kwargs.merge(
    asset: asset
  ))
end

def enable_fast_withdraw(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#enable-fast-withdraw-switch-user_data -

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

Parameters:
  • kwargs (Hash) --
def enable_fast_withdraw(**kwargs)
  @session.sign_request(:post, '/sapi/v1/account/enableFastWithdrawSwitch', params: kwargs)
end

def funding_wallet(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#funding-wallet-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :needBtcValuation (String) -- true or false
  • :asset (String) --

Parameters:
  • kwargs (Hash) --
def funding_wallet(**kwargs)
  @session.sign_request(:post, '/sapi/v1/asset/get-funding-asset', params: kwargs)
end

def get_user_asset(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#user-asset-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :needBtcValuation (Boolean) --
  • :asset (String) -- If asset is blank, then query all positive assets user have.

Parameters:
  • kwargs (Hash) --
def get_user_asset(**kwargs)
  @session.sign_request(:post, '/sapi/v3/asset/getUserAsset', params: kwargs)
end

def system_status

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#system-status-system -
def system_status
  @session.public_request(path: '/sapi/v1/system/status')
end

def trade_fee(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#trade-fee-user_data -

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

Parameters:
  • kwargs (Hash) --
def trade_fee(**kwargs)
  @session.sign_request(:get, '/sapi/v1/asset/tradeFee', params: kwargs)
end

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

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#user-universal-transfer-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :toSymbol (String) -- must be sent when type are MARGIN_ISOLATEDMARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN
  • :fromSymbol (String) -- must be sent when type are ISOLATEDMARGIN_MARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN

Parameters:
  • kwargs (Hash) --
  • amount (Float) --
  • asset (String) --
  • type (String) --
def user_universal_transfer(type:, asset:, amount:, **kwargs)
  Binance::Utils::Validation.require_param('type', type)
  Binance::Utils::Validation.require_param('asset', asset)
  Binance::Utils::Validation.require_param('amount', amount)
  @session.sign_request(:post, '/sapi/v1/asset/transfer', params: kwargs.merge(
    type: type,
    asset: asset,
    amount: amount
  ))
end

def user_universal_transfer_history(type:, **kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#query-user-universal-transfer-history-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :toSymbol (String) -- must be sent when type are MARGIN_ISOLATEDMARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN
  • :fromSymbol (String) -- must be sent when type are ISOLATEDMARGIN_MARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN
  • :size (Integer) -- Default 10, Max 100
  • :current (Integer) -- Default 1
  • :endTime (Integer) --
  • :startTime (Integer) --

Parameters:
  • kwargs (Hash) --
  • type (String) --
def user_universal_transfer_history(type:, **kwargs)
  Binance::Utils::Validation.require_param('type', type)
  @session.sign_request(:get, '/sapi/v1/asset/transfer', params: kwargs.merge(type: type))
end

def withdraw(coin:, address:, amount:, **kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#withdraw-sapi -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :name (String) --
  • :transactionFeeFlag (Boolean) --
  • :addressTag (String) --
  • :network (String) -- If network not send, return with default network of the coin.
  • :withdrawOrderId (String) --

Parameters:
  • kwargs (Hash) --
  • amount (Float) --
  • address (String) --
  • coin (String) --
def withdraw(coin:, address:, amount:, **kwargs)
  Binance::Utils::Validation.require_param('coin', coin)
  Binance::Utils::Validation.require_param('address', address)
  Binance::Utils::Validation.require_param('amount', amount)
  @session.sign_request(:post, '/sapi/v1/capital/withdraw/apply', params: kwargs.merge(
    coin: coin,
    address: address,
    amount: amount
  ))
end

def withdraw_history(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#withdraw-history-supporting-network-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :limit (Integer) --
  • :offest (Integer) --
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :status (Integer) -- 0(0:pending,6: credited but cannot withdraw, 1:success)
  • :withdrawOrderId (String) --
  • :coin (String) --

Parameters:
  • kwargs (Hash) --
def withdraw_history(**kwargs)
  @session.sign_request(:get, '/sapi/v1/capital/withdraw/history', params: kwargs)
end