source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
binance-connector-ruby.gemspec
Ruby
mit
45
master
1,681
# frozen_string_literal: true lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'binance/version' Gem::Specification.new do |spec| spec.name = 'binance-connector-ruby' spec.version = Binance::VERSION spec.authors = ['Binance'] spec.sum...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
Gemfile
Ruby
mit
45
master
371
# frozen_string_literal: true source 'https://rubygems.org' gemspec gem 'faraday' gem 'websocket-eventmachine-client' group :dev do gem 'rake', '>= 13.0.0' gem 'yard' end group :test do gem 'rspec' gem 'rspec-parameterized' gem 'rubocop', require: false gem 'simplecov', require: false gem 'unparser',...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/common.rb
Ruby
mit
45
master
234
# frozen_string_literal: true # common module for examples module Common class << self def setup_logger require 'logger' logger = Logger.new($stdout) logger.level = Logger::INFO logger end end end
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/symbol_ticker.rb
Ruby
mit
45
master
735
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/rolling_window_ticker_all_symbols.rb
Ruby
mit
45
master
638
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/mini_ticker.rb
Ruby
mit
45
master
727
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/partial_book_depth.rb
Ruby
mit
45
master
651
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/subscribe.rb
Ruby
mit
45
master
775
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/diff_book_depth.rb
Ruby
mit
45
master
637
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/trade.rb
Ruby
mit
45
master
611
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/book_ticker.rb
Ruby
mit
45
master
727
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/agg_trade.rb
Ruby
mit
45
master
615
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/rolling_window_ticker.rb
Ruby
mit
45
master
645
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/user_data.rb
Ruby
mit
45
master
707
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger # on spot testnet client = Binance::Spot::WebSocket.new(base_url: 'wss://stream.testnet.binance.vision') EM.run do onopen = proc { lo...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/websocket/spot/kline.rb
Ruby
mit
45
master
628
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require 'eventmachine' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot::WebSocket.new EM.run do onopen = proc { logger.info('connected to server') } onmessage = proc { |msg, _type...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/disable_isolated_margin_account.rb
Ruby
mit
45
master
331
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.disable_isolated_margin_account(symbol: '...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/toggle_bnb_burn.rb
Ruby
mit
45
master
317
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.toggle_bnb_burn(spotBNBBurn: 'true'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/get_bnb_burn.rb
Ruby
mit
45
master
293
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.get_bnb_burn)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_new_order.rb
Ruby
mit
45
master
433
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') params = { symbol: 'BNBUSDT', side: 'SELL', type: 'LIMIT', quanti...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/enable_isolated_margin_account.rb
Ruby
mit
45
master
330
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.enable_isolated_margin_account(symbol: 'B...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/get_isolated_margin_tier.rb
Ruby
mit
45
master
383
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env # client = Binance::Spot.new(key: '', secret: '') client = Binance::Spot.new(key: '', secret: '') logger.inf...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_my_trades.rb
Ruby
mit
45
master
303
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_my_trades(symbol: 'BNBUSDT'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/get_isolated_margin_data.rb
Ruby
mit
45
master
305
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.get_isolated_margin_data)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_force_liquidation_record.rb
Ruby
mit
45
master
327
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_force_liquidation_record(startTime: '1581783387...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_max_borrowable.rb
Ruby
mit
45
master
303
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_max_borrowable(asset: 'BNB'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/get_margin_interest_rate_history.rb
Ruby
mit
45
master
315
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.get_margin_interest_rate_history(asset: 'BNB'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_manual_liquidation.rb
Ruby
mit
45
master
321
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_manual_liquidation(type: 'MARGIN'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_price_index.rb
Ruby
mit
45
master
305
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_price_index(symbol: 'BNBUSDT'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_borrow_repay.rb
Ruby
mit
45
master
383
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_borrow_repay(asset: 'BNB', isIsolat...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_available_inventory.rb
Ruby
mit
45
master
322
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_available_inventory(type: 'MARGIN')...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/get_margin_order_usage.rb
Ruby
mit
45
master
303
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.get_margin_order_usage)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/get_all_isolated_margin_pairs.rb
Ruby
mit
45
master
310
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.get_all_isolated_margin_pairs)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/get_isolated_margin_account_limit.rb
Ruby
mit
45
master
314
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.get_isolated_margin_account_limit)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_cancel_oco.rb
Ruby
mit
45
master
338
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_cancel_oco(symbol: 'BNBUSDT', orde...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_get_all_oco.rb
Ruby
mit
45
master
299
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_get_all_oco)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_cancel_order.rb
Ruby
mit
45
master
375
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') params = { symbol: 'BNBUSDT', orderId: '554522951', recvWindow: 5_0...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_account.rb
Ruby
mit
45
master
244
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_account)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_leverage_bracket.rb
Ruby
mit
45
master
303
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_leverage_bracket)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_oco_order.rb
Ruby
mit
45
master
461
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') params = { symbol: 'BNBUSDT', side: 'BUY', quantity: 0...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/get_isolated_margin_account.rb
Ruby
mit
45
master
308
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.get_isolated_margin_account)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_open_orders.rb
Ruby
mit
45
master
286
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_open_orders)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_all_assets.rb
Ruby
mit
45
master
285
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_all_assets)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_max_transferable.rb
Ruby
mit
45
master
305
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_max_transferable(asset: 'BNB'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_get_open_oco.rb
Ruby
mit
45
master
300
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_get_open_oco)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_all_pairs.rb
Ruby
mit
45
master
284
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_all_pairs)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_interest_history.rb
Ruby
mit
45
master
333
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_interest_history(asset: 'BNB', startTime: '1581...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_get_oco.rb
Ruby
mit
45
master
316
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_get_oco(orderListId: 12_345))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_cancel_all_order.rb
Ruby
mit
45
master
323
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_cancel_all_order(symbol: 'BNBUSDT'...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_order.rb
Ruby
mit
45
master
312
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_order(symbol: 'BNBUSDT', orderId: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_borrow_repay_record.rb
Ruby
mit
45
master
322
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.margin_borrow_repay_record(type: 'BORROW')...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_transfer_history.rb
Ruby
mit
45
master
322
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_transfer_history(asset: 'BNB', type: 'ROLL_IN')...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/get_cross_margin_data.rb
Ruby
mit
45
master
302
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.get_cross_margin_data)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/margin/margin_all_orders.rb
Ruby
mit
45
master
304
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '') logger.info(client.margin_all_orders(symbol: 'BNBUSDT'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/convert/convert_limit_cancel_order.rb
Ruby
mit
45
master
324
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.convert_limit_cancel_order(orderId: '1234...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/convert/convert_limit_place_order.rb
Ruby
mit
45
master
413
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.convert_limit_place_order(baseAsset: 'BNB...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/convert/convert_trade_flow.rb
Ruby
mit
45
master
357
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.convert_trade_flow(startTime: 1_640_998_8...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/convert/convert_asset_info.rb
Ruby
mit
45
master
299
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.convert_asset_info)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/convert/convert_accept_quote.rb
Ruby
mit
45
master
318
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.convert_accept_quote(quoteId: '1234'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/convert/convert_limit_query_open_orders.rb
Ruby
mit
45
master
312
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.convert_limit_query_open_orders)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/convert/convert_get_quote.rb
Ruby
mit
45
master
350
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.convert_get_quote(fromAsset: 'BNB', toAss...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/convert/convert_exchange_info.rb
Ruby
mit
45
master
302
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.convert_exchange_info)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/convert/convert_order_status.rb
Ruby
mit
45
master
301
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key here # or BINANCE_PUBLIC_API_KEY in env client = Binance::Spot.new(key: '', secret: '') logger.info(client.convert_order_status)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_rewards_history.rb
Ruby
mit
45
master
252
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_rewards_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_product_list.rb
Ruby
mit
45
master
249
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_product_list)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_subscribe.rb
Ruby
mit
45
master
283
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_subscribe(productId: 'BTC001', amount: 0.01))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_subscription_preview.rb
Ruby
mit
45
master
292
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_subscription_preview(projectId: 'Bnb*120', amount: 1.0))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_auto_subscribe.rb
Ruby
mit
45
master
293
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_auto_subscribe(productId: '1234', autoSubscribe: true))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/rate_history.rb
Ruby
mit
45
master
263
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.rate_history(productId: 'BTC001'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_rewards_history.rb
Ruby
mit
45
master
269
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_rewards_history(type: 'BONUS'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_product_position.rb
Ruby
mit
45
master
253
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_product_position)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/collateral_record.rb
Ruby
mit
45
master
247
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.collateral_record)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_redeem_product.rb
Ruby
mit
45
master
271
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_redeem_product(positionId: '1234'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_product_list.rb
Ruby
mit
45
master
251
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_product_list)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_subscribe.rb
Ruby
mit
45
master
281
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_subscribe(projectId: 'Bnb*120', amount: 1.0))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_subscription_record.rb
Ruby
mit
45
master
258
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_subscription_record)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_subscription_record.rb
Ruby
mit
45
master
256
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_subscription_record)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_redeem_option.rb
Ruby
mit
45
master
288
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_redeem_option(positionId: '1234', redeemTo: 'SPOT'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_redemption_record.rb
Ruby
mit
45
master
256
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_redemption_record)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_redeem_product.rb
Ruby
mit
45
master
274
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_redeem_product(productId: 'BTC001'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/simple_earn_account.rb
Ruby
mit
45
master
249
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.simple_earn_account)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_subscription_preview.rb
Ruby
mit
45
master
293
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_subscription_preview(productId: 'BTC001', amount: 1.0))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_redemption_record.rb
Ruby
mit
45
master
254
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_redemption_record)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_auto_subscribe.rb
Ruby
mit
45
master
292
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_auto_subscribe(positionId: '1234', autoSubscribe: true))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_personal_left_quota.rb
Ruby
mit
45
master
279
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_personal_left_quota(productId: 'BTC001'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/locked_personal_left_quota.rb
Ruby
mit
45
master
278
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.locked_personal_left_quota(projectId: 'Bnb*120'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/simple_earn/flexible_product_position.rb
Ruby
mit
45
master
255
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', secret: '') logger.info(client.flexible_product_position)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_account_list.rb
Ruby
mit
45
master
355
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_account_l...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_coin_list.rb
Ruby
mit
45
master
322
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_coin_list...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_statistics_list.rb
Ruby
mit
45
master
358
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_statistic...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_worker_list.rb
Ruby
mit
45
master
354
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_worker_li...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_resale_request.rb
Ruby
mit
45
master
507
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_resale_re...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_algo_list.rb
Ruby
mit
45
master
322
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_algo_list...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_resale_detail.rb
Ruby
mit
45
master
354
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_resale_de...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_worker.rb
Ruby
mit
45
master
365
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_worker(al...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_revenue_list.rb
Ruby
mit
45
master
355
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_revenue_l...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_extra_bonus.rb
Ruby
mit
45
master
354
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_extra_bon...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_resale_cancel.rb
Ruby
mit
45
master
397
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_resale_re...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/mining/mining_resale_list.rb
Ruby
mit
45
master
324
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env client = Binance::Spot.new(key: '') logger.info(client.mining_resale_li...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/agg_trades.rb
Ruby
mit
45
master
484
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', base_url: 'https://testnet.binance.vision') logger.info(client.agg_trades(symbol: 'BTCUSDT')) # with limit logger.info(cli...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/avg_price.rb
Ruby
mit
45
master
290
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger client = Binance::Spot.new(key: '', base_url: 'https://testnet.binance.vision') logger.info(client.avg_price(symbol: 'BTCUSDT'))