Class: Binance::Spot

Inherits:
Object
  • Object
show all
Includes:
C2C, Convert, Fiat, Loan, Margin, Market, Mining, SimpleEarn, Stream, Subaccount, Trade, Wallet
Defined in:
lib/binance/spot.rb,
lib/binance/spot/c2c.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/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: C2C, Convert, Fiat, 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_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_tier, #get_margin_interest_rate_history, #get_margin_order_usage, #margin_account, #margin_all_assets, #margin_all_orders, #margin_all_pairs, #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_max_borrowable, #margin_max_transferable, #margin_my_trades, #margin_new_order, #margin_oco_order, #margin_open_orders, #margin_order, #margin_price_index, #margin_transfer_history, #toggle_bnb_burn

Methods included from Loan

#get_loan_history

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

Constructor Details

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

Returns a new instance of Spot.



53
54
55
# File 'lib/binance/spot.rb', line 53

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