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
examples/spot/market/historical_trades.rb
Ruby
mit
45
master
537
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # historical trades endpoint require api key, no signature required # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env cli...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/klines.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 client = Binance::Spot.new(key: '', base_url: 'https://testnet.binance.vision') logger.info(client.klines(symbol: 'BTCUSDT', interval: '1m'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/exchange_info.rb
Ruby
mit
45
master
396
#!/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(base_url: 'https://testnet.binance.vision') logger.info(client.exchange_info(symbols: %w[BTCUSDT])) logger.info(client.exchange_info...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/book_ticker.rb
Ruby
mit
45
master
340
#!/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.book_ticker) # with symbol logger.info(client.book_ticker(...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/ticker_trading_day.rb
Ruby
mit
45
master
348
#!/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.ticker_price) # with symbol logger.info(client.ticker_trad...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/ping.rb
Ruby
mit
45
master
257
#!/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(base_url: 'https://testnet.binance.vision') logger.info(client.ping)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/ticker.rb
Ruby
mit
45
master
363
#!/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 # single symbol # logger.info(client.ticker(symbol: 'btcusdt', windowSize: '1d')) # multi symbols logger.info(client.ticker(symbol...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/trades.rb
Ruby
mit
45
master
348
#!/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(base_url: 'https://testnet.binance.vision') logger.info(client.trades(symbol: 'BTCUSDT')) # with limit logger.info(client.trades(sy...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/depth.rb
Ruby
mit
45
master
346
#!/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(base_url: 'https://testnet.binance.vision') logger.info(client.depth(symbol: 'BTCUSDT')) # with limit logger.info(client.depth(symb...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/time.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(base_url: 'https://testnet.binance.vision') logger.info(client.time)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/ticker_24hr.rb
Ruby
mit
45
master
340
#!/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.ticker_24hr) # with symbol logger.info(client.ticker_24hr(...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/ticker_price.rb
Ruby
mit
45
master
342
#!/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.ticker_price) # with symbol logger.info(client.ticker_pric...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/market/ui_klines.rb
Ruby
mit
45
master
306
#!/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.ui_klines(symbol: 'BTCUSDT', interval: '1m'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/fiat/fiat_deposit_withdraw_history.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.fiat_deposit_withdraw_history(transaction...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/fiat/fiat_payment_history.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.fiat_payment_history(transactionType: 0))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/c2c/c2c_trade_history.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.c2c_trade_history(tradeType: 'BUY'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/borrow_flexible_loan.rb
Ruby
mit
45
master
335
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.borrow_flexible_loan(loanCoin: 'BUSD', collateralCoin: 'BNB', loa...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_loan_repayment_history.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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_loan_repayment_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_flexible_loan_ongoing_orders.rb
Ruby
mit
45
master
289
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_flexible_loan_ongoing_orders)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_flexible_loan_borrow_history.rb
Ruby
mit
45
master
289
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_flexible_loan_borrow_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_flexible_loan_repayment_history.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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_flexible_loan_repayment_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_flexible_loan_collateral_data.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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_flexible_loan_collateral_data)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_flexible_loan_ltv_adjustment_history.rb
Ruby
mit
45
master
297
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_flexible_loan_ltv_adjustment_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_loan_history.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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_loan_history(asset: 'USDT'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_loan_borrow_history.rb
Ruby
mit
45
master
280
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_loan_borrow_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_flexible_loan_assets_data.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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_flexible_loan_assets_data)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/repay_flexible_loan.rb
Ruby
mit
45
master
335
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.repay_flexible_loan(loanCoin: 'BUSD', collateralCoin: 'BNB', repa...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/adjust_flexible_loan_ltv.rb
Ruby
mit
45
master
370
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.adjust_flexible_loan_ltv(loanCoin: 'BUSD', collateralCoin: 'BNB',...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/loan/get_loan_ltv_adjustment_history.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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret) logger.info(client.get_loan_ltv_adjustment_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/create_virtual_sub_account.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.create_virtual_sub_account(subAccountString: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_delete_ip_list.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 client = Binance::Spot.new(key: '', secret: '') logger.info(client.sub_account_delete_ip_list(email: 'alice@test.com', subAccountApiKey: 'xxxxxx', ipAddress: '...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_status.rb
Ruby
mit
45
master
248
#!/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.sub_account_status)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/universal_transfer_history.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.universal_transfer_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_list.rb
Ruby
mit
45
master
246
#!/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.sub_account_list)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_margin_account_summary.rb
Ruby
mit
45
master
264
#!/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.sub_account_margin_account_summary)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_margin_asset_details.rb
Ruby
mit
45
master
273
#!/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.sub_account_margin_asset_details(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_toggle_ip_restriction.rb
Ruby
mit
45
master
329
#!/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.sub_account_toggle_ip_restriction(email: 'alice@test.com', subAccountApiKey: 'xxxxxx', statu...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_margin_transfer.rb
Ruby
mit
45
master
346
#!/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: '') params = { email: 'alice@test.com', asset: 'BNB', amount: 1, type: 1 } logger.info(client.sub_account_m...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_ip_list.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 client = Binance::Spot.new(key: '', secret: '') logger.info(client.sub_account_ip_list(email: 'alice@test.com', subAccountApiKey: 'xxxxxx'))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_deposit_history.rb
Ruby
mit
45
master
268
#!/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.sub_account_deposit_history(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_transfer_sub_account_history.rb
Ruby
mit
45
master
270
#!/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.sub_account_transfer_sub_account_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/get_sub_account_assets.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.get_sub_account_assets(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/deposit_to_sub_account.rb
Ruby
mit
45
master
294
#!/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.deposit_to_sub_account(toEmail: '', asset: 'USDT', amount: 0.01))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/get_sub_account_assets_v4.rb
Ruby
mit
45
master
266
#!/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.get_sub_account_assets_v4(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_transfer_log.rb
Ruby
mit
45
master
343
#!/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.sub_account_transfer_log(email: '', startTime: 1_640_998_861_000, endTime: 1_646_096_461_000...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/get_sub_account_list.rb
Ruby
mit
45
master
250
#!/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.get_sub_account_list)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_enable_blvt.rb
Ruby
mit
45
master
282
#!/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.sub_account_enable_blvt(email: '', enableBlvt: true))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_margin_account.rb
Ruby
mit
45
master
267
#!/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.sub_account_margin_account(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_futures_account_summary.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.sub_account_futures_account_summary(futuresType: 1))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_asset_details.rb
Ruby
mit
45
master
266
#!/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.sub_account_asset_details(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_transfer_log_sub_account.rb
Ruby
mit
45
master
344
#!/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.sub_account_transfer_log_sub_account(startTime: 1_640_998_861_000, endTime: 1_646_096_461_00...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_futures_transfer.rb
Ruby
mit
45
master
347
#!/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: '') params = { email: 'alice@test.com', asset: 'BNB', amount: 1, type: 1 } logger.info(client.sub_account_f...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_futures_internal_transfer.rb
Ruby
mit
45
master
340
#!/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.sub_account_futures_internal_transfer(fromEmail: '', toEmail: '', futuresType: 1, asset: 'US...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_futures_position_risk.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: '', secret: '') logger.info(client.sub_account_futures_position_risk(email: '', futuresType: 1))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_transfer_to_sub.rb
Ruby
mit
45
master
337
#!/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: '') params = { toEmail: 'alice@test.com', asset: 'BNB', amount: 1 } logger.info(client.sub_account_transfer_t...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_futures_account.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 client = Binance::Spot.new(key: '', secret: '') logger.info(client.sub_account_futures_account(email: '', futuresType: 1))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/withdraw_from_sub_account.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 client = Binance::Spot.new(key: '', secret: '') logger.info(client.withdraw_from_sub_account(fromEmail: '', asset: 'USDT', amount: 0.01))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_transfer_log_investor.rb
Ruby
mit
45
master
352
#!/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.sub_account_transfer_log_investor(email: '', startTime: 1_640_998_861_000, endTime: 1_646_09...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/get_sub_account_spot_summary.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.get_sub_account_spot_summary)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/universal_transfer.rb
Ruby
mit
45
master
332
#!/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.universal_transfer(fromAccountType: 'SPOT', toAccountType: 'COIN_FUTURE', asset: 'USDT', amo...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_transaction_statistics.rb
Ruby
mit
45
master
275
#!/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.sub_account_transaction_statistics(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_enable_futures.rb
Ruby
mit
45
master
267
#!/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.sub_account_enable_futures(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_deposit_address.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.sub_account_deposit_address(email: '', coin: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_futures_asset_details.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.sub_account_futures_asset_details(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_enable_options.rb
Ruby
mit
45
master
267
#!/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.sub_account_enable_options(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/get_sub_account_futures_transfer_history.rb
Ruby
mit
45
master
297
#!/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.get_sub_account_futures_transfer_history(email: '', futuresType: 1))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_enable_margin.rb
Ruby
mit
45
master
266
#!/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.sub_account_enable_margin(email: ''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/sub_account_transfer_to_master.rb
Ruby
mit
45
master
309
# !/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: '') params = { asset: '', amount: 1 } logger.info(client.sub_account_transfer_to_master(**params))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/subaccount/get_sub_account_spot_transfer_history.rb
Ruby
mit
45
master
267
#!/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.get_sub_account_spot_transfer_history)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/stream/renew_listen_key.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 key = '' client = Binance::Spot.new(key: key) logger.info(client.renew_listen_key(''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/stream/delete_listen_key.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 key = '' client = Binance::Spot.new(key: key) logger.info(client.delete_listen_key(''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/stream/delete_margin_listen_key.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 key = '' client = Binance::Spot.new(key: key) logger.info(client.delete_margin_listen_key(''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/stream/new_margin_listen_key.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 key = '' client = Binance::Spot.new(key: key) logger.info(client.new_margin_listen_key)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/stream/renew_margin_listen_key.rb
Ruby
mit
45
master
307
#!/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 key = '' client = Binance::Spot.new(key: key) logger.info(client.renew_margin_listen_key(''))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/stream/new_listen_key.rb
Ruby
mit
45
master
294
#!/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 key = '' client = Binance::Spot.new(key: key) logger.info(client.new_listen_key)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/my_allocations.rb
Ruby
mit
45
master
423
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/open_orders.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 # set key and secret here # or BINANCE_PUBLIC_API_KEY and BINANCE_PRIVATE_SECRET in env key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/account.rb
Ruby
mit
45
master
983
#!/usr/bin/env ruby # frozen_string_literal: true $LOAD_PATH.unshift('./lib') require 'binance' require_relative '../../common' logger = Common.setup_logger # HMAC signature; Both API key and secret are required. key = '' secret = '' client = Binance::Spot.new(key: key, secret: secret, base_url: 'https://testnet.bi...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/new_order.rb
Ruby
mit
45
master
612
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/commission_rate.rb
Ruby
mit
45
master
424
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/new_order_test.rb
Ruby
mit
45
master
666
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/my_trades.rb
Ruby
mit
45
master
501
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/new_oco_order.rb
Ruby
mit
45
master
570
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/order_list.rb
Ruby
mit
45
master
419
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/all_orders.rb
Ruby
mit
45
master
503
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/all_order_list.rb
Ruby
mit
45
master
509
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/my_prevented_matches.rb
Ruby
mit
45
master
429
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/get_order.rb
Ruby
mit
45
master
551
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/open_order_list.rb
Ruby
mit
45
master
431
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/get_order_rate_limit.rb
Ruby
mit
45
master
414
#!/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 # key = '' # secret = '' client = Binance::Spot.new(key: key, secret: ...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/cancel_order_list.rb
Ruby
mit
45
master
443
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/cancel_open_orders.rb
Ruby
mit
45
master
427
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/cancel_order.rb
Ruby
mit
45
master
434
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/trade/cancel_replace.rb
Ruby
mit
45
master
675
#!/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 key = '' secret = '' client = Binance::Spot.new(key: key, secret: secr...
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/wallet/asset_detail.rb
Ruby
mit
45
master
242
#!/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.asset_detail)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/wallet/one_click_arrival_deposit_apply.rb
Ruby
mit
45
master
261
#!/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.one_click_arrival_deposit_apply)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/wallet/coin_info.rb
Ruby
mit
45
master
239
#!/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.coin_info)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/wallet/user_universal_transfer.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 client = Binance::Spot.new(key: '', secret: '') logger.info(client.user_universal_transfer(type: 'MAIN_MARGIN', asset: 'USDT', amount: 0.1))
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/wallet/system_status.rb
Ruby
mit
45
master
222
#!/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 logger.info(client.system_status)
github
binance/binance-connector-ruby
https://github.com/binance/binance-connector-ruby
examples/spot/wallet/dust_log.rb
Ruby
mit
45
master
238
#!/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.dust_log)