Class: Binance::Spot

Inherits:
Object
  • Object
show all
Includes:
Blvt, C2C, Convert, Fiat, Futures, Loan, Margin, Market, Mining, SimpleEarn, Stream, Subaccount, Trade, Wallet
Defined in:
lib/binance/spot.rb,
lib/binance/spot/c2c.rb,
lib/binance/spot/blvt.rb,
lib/binance/spot/fiat.rb,
lib/binance/spot/loan.rb,
lib/binance/spot/trade.rb,
lib/binance/spot/margin.rb,
lib/binance/spot/market.rb,
lib/binance/spot/mining.rb,
lib/binance/spot/stream.rb,
lib/binance/spot/wallet.rb,
lib/binance/spot/convert.rb,
lib/binance/spot/futures.rb,
lib/binance/spot/websocket.rb,
lib/binance/spot/subaccount.rb,
lib/binance/spot/simple_earn.rb

Overview

Spot class includes the following modules:

  • Blvt

  • C2C

  • Convert

  • Fiat

  • Futures

  • Loan

  • Margin

  • Market

  • Mining

  • SimpleEarn

  • Stream

  • Subaccount

  • Trade

  • Wallet

Defined Under Namespace

Modules: Blvt, C2C, Convert, Fiat, Futures, Loan, Margin, Market, Mining, SimpleEarn, Stream, Subaccount, Trade, Wallet Classes: WebSocket

Instance Method Summary collapse

Methods included from Wallet

#account_snapshot, #account_status, #api_key_permission, #api_trading_status, #asset_detail, #asset_devidend_record, #coin_info, #deposit_address, #deposit_history, #disable_fast_withdraw, #dust_log, #dust_transfer, #enable_fast_withdraw, #funding_wallet, #get_user_asset, #system_status, #trade_fee, #user_universal_transfer, #user_universal_transfer_history, #withdraw, #withdraw_history

Methods included from Trade

#account, #all_order_list, #all_orders, #cancel_open_orders, #cancel_order, #cancel_order_list, #cancel_replace, #get_order, #get_order_rate_limit, #my_trades, #new_oco_order, #new_order, #new_order_test, #open_order_list, #open_orders, #order_list

Methods included from Subaccount

#create_virtual_sub_account, #deposit_to_sub_account, #get_sub_account_assets, #get_sub_account_futures_transfer_history, #get_sub_account_list, #get_sub_account_spot_summary, #get_sub_account_spot_transfer_history, #sub_account_add_ip_list, #sub_account_asset_details, #sub_account_delete_ip_list, #sub_account_deposit_address, #sub_account_deposit_history, #sub_account_enable_blvt, #sub_account_enable_futures, #sub_account_enable_margin, #sub_account_futures_account, #sub_account_futures_account_summary, #sub_account_futures_internal_transfer, #sub_account_futures_position_risk, #sub_account_futures_transfer, #sub_account_ip_list, #sub_account_margin_account, #sub_account_margin_account_summary, #sub_account_margin_transfer, #sub_account_status, #sub_account_toggle_ip_restriction, #sub_account_transfer_sub_account_history, #sub_account_transfer_to_master, #sub_account_transfer_to_sub, #universal_transfer, #universal_transfer_history, #withdraw_from_sub_account

Methods included from Stream

#delete_listen_key, #delete_margin_listen_key, #new_listen_key, #new_margin_listen_key, #renew_listen_key, #renew_margin_listen_key

Methods included from SimpleEarn

#collateral_record, #flexible_auto_subscribe, #flexible_personal_left_quota, #flexible_product_list, #flexible_product_position, #flexible_redeem_product, #flexible_redemption_record, #flexible_rewards_history, #flexible_subscribe, #flexible_subscription_preview, #flexible_subscription_record, #locked_auto_subscribe, #locked_personal_left_quota, #locked_product_list, #locked_product_position, #locked_redeem_product, #locked_redemption_record, #locked_rewards_history, #locked_subscribe, #locked_subscription_preview, #locked_subscription_record, #rate_history, #simple_earn_account

Methods included from Mining

#mining_account_list, #mining_algo_list, #mining_coin_list, #mining_extra_bonus, #mining_resale_cancel, #mining_resale_detail, #mining_resale_list, #mining_resale_request, #mining_revenue_list, #mining_statistics_list, #mining_worker, #mining_worker_list

Methods included from Market

#agg_trades, #avg_price, #book_ticker, #depth, #exchange_info, #historical_trades, #klines, #ping, #ticker, #ticker_24hr, #ticker_price, #time, #trades

Methods included from Margin

#disable_isolated_margin_account, #enable_isolated_margin_account, #get_all_isolated_margin_pairs, #get_bnb_burn, #get_cross_margin_data, #get_isolated_margin_account, #get_isolated_margin_account_limit, #get_isolated_margin_data, #get_isolated_margin_pair, #get_isolated_margin_tier, #get_isolated_margin_transfer, #get_margin_dust_log, #get_margin_interest_rate_history, #get_margin_order_usage, #isolated_margin_transfer, #margin_account, #margin_all_assets, #margin_all_orders, #margin_all_pairs, #margin_asset, #margin_borrow, #margin_cancel_all_order, #margin_cancel_oco, #margin_cancel_order, #margin_force_liquidation_record, #margin_get_all_oco, #margin_get_oco, #margin_get_open_oco, #margin_interest_history, #margin_load_record, #margin_max_borrowable, #margin_max_transferable, #margin_my_trades, #margin_new_order, #margin_oco_order, #margin_open_orders, #margin_order, #margin_pair, #margin_price_index, #margin_repay, #margin_repay_record, #margin_transfer, #margin_transfer_history, #toggle_bnb_burn

Methods included from Loan

#get_loan_history

Methods included from Futures

#adjust_cross_collateral, #adjust_cross_collateral_history, #calculate_adjust_max_amount, #calculate_adjust_rate, #collateral_repay_limit, #collateral_repay_quote, #cross_collateral_borrow, #cross_collateral_borrow_history, #cross_collateral_info, #cross_collateral_interest_history, #cross_collateral_liquidation_history, #cross_collateral_repay, #cross_collateral_repay_history, #cross_collateral_wallet, #futures_account_transfer, #futures_account_transfer_history, #repay_with_collateral, #repayment_result

Methods included from Fiat

#fiat_deposit_withdraw_history, #fiat_payment_history

Methods included from Convert

#convert_trade_flow

Methods included from C2C

#c2c_trade_history

Methods included from Blvt

#get_redeem_record, #get_subscribe_record, #redeem, #subscribe, #token_info, #user_limit

Constructor Details

#initialize(key: '', secret: '', **kwargs) ⇒ Spot

Returns a new instance of Spot.



57
58
59
# File 'lib/binance/spot.rb', line 57

def initialize(key: '', secret: '', **kwargs)
  @session = Session.new kwargs.merge(key: key, secret: secret)
end