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/wallet/deposit_address.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.deposit_address(coin: 'BNB')) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/user_delegation_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
client = Binance::Spot.new(key: '', secret: '')
logger.info(client.user_delegation_history(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/wallet/delist_schedule.rb | Ruby | mit | 45 | master | 245 | #!/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.delist_schedule) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/account_snapshot.rb | Ruby | mit | 45 | master | 260 | #!/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.account_snapshot(type: 'SPOT')) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/dust_transfer.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.dust_transfer(asset: %w[EOS BCH])) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/asset_devidend_record.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
client = Binance::Spot.new(key: '', secret: '')
param = {
asset: 'BNB'
}
logger.info(client.asset_devidend_record(param)) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/withdraw.rb | Ruby | mit | 45 | master | 410 | #!/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: '')
param = {
coin: 'BNB',
address: '',
amount: 0.1,
withdrawOrderId: 'withdraw_order_id',
network: 'BNB'... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/user_universal_transfer_history.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.user_universal_transfer_history(type: 'MAIN_MARGIN')) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/disable_fast_withdraw.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.disable_fast_withdraw) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/enable_fast_withdraw.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.enable_fast_withdraw) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/api_key_permission.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.api_key_permission) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/api_trading_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.api_trading_status) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/account_status.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.account_status) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/funding_wallet.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.funding_wallet) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/account_info.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.account_info) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/wallet_balance.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.wallet_balance) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/trade_fee.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.trade_fee) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/get_assets_converted_into_bnb.rb | Ruby | mit | 45 | master | 259 | #!/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_assets_converted_into_bnb) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/withdraw_history.rb | Ruby | mit | 45 | master | 259 | #!/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_history(coin: 'BNB')) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/deposit_history.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.deposit_history(coin: 'BNB')) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/cloud_mining_payment_and_refund_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.cloud_mining_payment_and_refund_history) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/get_user_asset.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.get_user_asset(asset: 'BNB', needBtcValuation: true)) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | examples/spot/wallet/deposit_address_list.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.deposit_address_list(coin: 'BNB')) |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/spec_helper.rb | Ruby | mit | 45 | master | 3,280 | # frozen_string_literal: true
require 'bundler/setup'
require 'webmock/rspec'
require 'addressable/template'
require 'rspec-parameterized'
require 'simplecov'
require 'binance'
BASE_URL = 'https://api.binance.com'
FAKE_SECRET = 'secret'
FAKE_SIGNATURE = '07ac61c8cfbeaf3d86f1e4e96f97fc2c56227e243ed490b0dc9401a422ea... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/session_spec.rb | Ruby | mit | 45 | master | 2,279 | # frozen_string_literal: true
class Session < Binance::Session
attr_reader :base_url, :headers, :auth, :logger, :show_weight_usage, :show_header, :timeout
end
RSpec.describe Binance::Session do
context 'should init' do
where(:options, :expected_options) do
[
[{ base_url: 'base_url' }, { base_url... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/utils/validation_spec.rb | Ruby | mit | 45 | master | 1,348 | # frozen_string_literal: true
RSpec.describe Binance::Utils::Validation do
context '#require_param' do
context 'should fail validation' do
where(:param) do
[nil, '', [], {}]
end
with_them do
it 'should raise RequiredParameterError' do
expect { described_class.require_p... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/utils/custom_params_encoder_spec.rb | Ruby | mit | 45 | master | 2,259 | # frozen_string_literal: true
RSpec.describe Binance::Utils::Faraday::CustomParamsEncoder do
context 'encode param string' do
it 'return an encoded string given an array with a param' do
expect(described_class.encode_array([%w[key value]])).to eq('key=value')
end
it 'return an encoded string given... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/utils/url_spec.rb | Ruby | mit | 45 | master | 1,246 | # frozen_string_literal: true
RSpec.describe Binance::Utils::Url do
context 'encode url' do
it 'return encoded url' do
expect(described_class.build_query({ foo: 'bar' })).to eq('foo=bar')
end
end
context 'with array' do
it 'return flat encoding' do
expect(described_class.build_query({ fo... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/c2c/trade_history_spec.rb | Ruby | mit | 45 | master | 1,147 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::C2C, '#c2c_trade_history' do
let(:path) { '/sapi/v1/c2c/orderMatch/listUserOrderHistory' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { { tradeType: 'BUY' } }
before do
mocking_signature_and... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/open_orders_spec.rb | Ruby | mit | 45 | master | 797 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#open_orders' do
let(:path) { '/api/v3/openOrders' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:get... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/account_spec.rb | Ruby | mit | 45 | master | 751 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#account' do
let(:path) { '/api/v3/account' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:get, path,... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/cancel_open_orders_spec.rb | Ruby | mit | 45 | master | 1,130 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#cancel_open_orders' do
let(:path) { '/api/v3/openOrders' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1589425967140' }
let(:params) { { symbol: 'BNBUSDT' } }
before do
mocking_sign... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/new_oco_order_spec.rb | Ruby | mit | 45 | master | 2,104 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#new_oco_order' do
let(:path) { '/api/v3/order/oco' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) do
{
symbol: 'BNBUSDT',
side: 'BUY',
quantity: 10,
aboveType: 'L... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/commission_rate.rb | Ruby | mit | 45 | master | 947 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#commission_rate' do
let(:path) { '/api/v3/account/commission' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:get, path, ... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/cancel_order_list_spec.rb | Ruby | mit | 45 | master | 1,190 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#cancel_order_list' do
let(:path) { '/api/v3/orderList' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { { symbol: 'BNBUSDT' } }
before do
mocking_signature_and_ts(**params)
stub_b... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/open_order_list_spec.rb | Ruby | mit | 45 | master | 836 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#open_order_list' do
let(:path) { '/api/v3/openOrderList' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_reque... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/get_order_rate_limit_spec.rb | Ruby | mit | 45 | master | 802 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#get_order_rate_limit' do
let(:path) { '/api/v3/rateLimit/order' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_ts(**params)
stub_binance_sig... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/order_list_spec.rb | Ruby | mit | 45 | master | 923 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#order_list' do
let(:path) { '/api/v3/orderList' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1589425967140' }
let(:params) { { orderListId: '11111' } }
before do
mocking_signature_... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/cancel_order_spec.rb | Ruby | mit | 45 | master | 1,213 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#cancel_order' do
let(:path) { '/api/v3/order' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1589425967140' }
let(:params) { { orderId: '1234455', symbol: 'BNBUSDT' } }
before do
moc... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/new_order_spec.rb | Ruby | mit | 45 | master | 2,127 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#new_order' do
let(:path) { '/api/v3/order' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) do
{
price: '1000',
side: 'BUY',
symbol: 'BNBUSDT',
timeInForce: 'GTC',
... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/my_allocations.rb | Ruby | mit | 45 | master | 953 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#my_allocations' do
let(:path) { '/api/v3/myAllocations' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:get, path, status... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/my_trades_spec.rb | Ruby | mit | 45 | master | 942 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#my_trades' do
let(:path) { '/api/v3/myTrades' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1589425967140' }
let(:params) { { symbol: 'BNBUSDT' } }
before do
mocking_signature_and_t... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/all_orders_spec.rb | Ruby | mit | 45 | master | 1,152 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#all_orders' do
let(:path) { '/api/v3/allOrders' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1589425967140' }
let(:params) { { symbol: 'BNBUSDT' } }
before do
mocking_signature_and... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/all_order_list_spec.rb | Ruby | mit | 45 | master | 947 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#all_order_list' do
let(:path) { '/api/v3/allOrderList' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1589425967140' }
let(:params) { {} }
before do
mocking_signature_and_ts(**params... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/get_order_spec.rb | Ruby | mit | 45 | master | 1,152 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#get_order' do
let(:path) { '/api/v3/order' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1589425967140' }
let(:params) { { orderId: '11111', symbol: 'BNBUSDT' } }
before do
mocking_... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/my_prevented_matches.rb | Ruby | mit | 45 | master | 979 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#my_prevented_matches' do
let(:path) { '/api/v3/myPreventedMatches' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:get, p... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/new_order_test_spec.rb | Ruby | mit | 45 | master | 2,135 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#new_order_test' do
let(:path) { '/api/v3/order/test' }
let(:body) { {} }
let(:status) { 200 }
let(:params) do
{
price: '1000',
side: 'BUY',
symbol: 'BNBUSDT',
timeInForce: 'GTC',
type: ... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/trade/cancel_replace_spec.rb | Ruby | mit | 45 | master | 2,271 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Trade, '#cancel_replace' do
let(:path) { '/api/v3/order/cancelReplace' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) do
{
symbol: 'BNBBUSD',
side: 'BUY',
type: 'LIMIT',
c... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_redemption_record_spec.rb | Ruby | mit | 45 | master | 931 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_redemption_record' do
let(:path) { '/sapi/v1/simple-earn/locked/history/redemptionRecord' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/simple_earn_account_spec.rb | Ruby | mit | 45 | master | 888 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#simple_earn_account' do
let(:path) { '/sapi/v1/simple-earn/account' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_ts(**params)
stub_bi... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_redeem_product_spec.rb | Ruby | mit | 45 | master | 1,230 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_redeem_product' do
let(:path) { '/sapi/v1/simple-earn/flexible/redeem' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { productId: 'BTC001' } }... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_auto_subscribe_spec.rb | Ruby | mit | 45 | master | 1,604 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_auto_subscribe' do
let(:path) { '/sapi/v1/simple-earn/locked/setAutoSubscribe' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { positionId: '1234... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/collateral_record_spec.rb | Ruby | mit | 45 | master | 898 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#collateral_record' do
let(:path) { '/sapi/v1/simple-earn/flexible/history/collateralRecord' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_subscription_preview_spec.rb | Ruby | mit | 45 | master | 1,607 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_subscription_preview' do
let(:path) { '/sapi/v1/simple-earn/locked/subscriptionPreview' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { projectI... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_product_list_spec.rb | Ruby | mit | 45 | master | 953 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_product_list' do
let(:path) { '/sapi/v1/simple-earn/flexible/list' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { {} }
before do
mocking... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_rewards_history_spec.rb | Ruby | mit | 45 | master | 1,233 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_rewards_history' do
let(:path) { '/sapi/v1/simple-earn/flexible/history/rewardsRecord' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { type: '... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_product_list_spec.rb | Ruby | mit | 45 | master | 915 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_product_list_spec' do
let(:path) { '/sapi/v1/simple-earn/locked/list' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_ts(**params)
... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/rate_history_spec.rb | Ruby | mit | 45 | master | 1,206 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#rate_history' do
let(:path) { '/sapi/v1/simple-earn/flexible/history/rateHistory' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { productId: 'BTC001' }... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_redemption_record_spec.rb | Ruby | mit | 45 | master | 963 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_redemption_record' do
let(:path) { '/sapi/v1/simple-earn/flexible/history/redemptionRecord' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signa... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_subscription_preview_spec.rb | Ruby | mit | 45 | master | 1,622 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_subscription_preview' do
let(:path) { '/sapi/v1/simple-earn/flexible/subscriptionPreview' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { prod... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_personal_left_quota_spec.rb | Ruby | mit | 45 | master | 1,282 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_personal_left_quota' do
let(:path) { '/sapi/v1/simple-earn/flexible/personalLeftQuota' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { product... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_subscribe_spec.rb | Ruby | mit | 45 | master | 1,550 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_subscribe' do
let(:path) { '/sapi/v1/simple-earn/flexible/subscribe' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { productId: 'BTC001', amou... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_subscription_record_spec.rb | Ruby | mit | 45 | master | 943 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_subscription_record' do
let(:path) { '/sapi/v1/simple-earn/locked/history/subscriptionRecord' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signa... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_redeem_option.rb | Ruby | mit | 45 | master | 1,065 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#locked_redeem_option' do
let(:path) { '/sapi/v1/simple-earn/locked/setRedeemOption' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sig... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_subscribe_spec.rb | Ruby | mit | 45 | master | 1,534 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_subscribe' do
let(:path) { '/sapi/v1/simple-earn/locked/subscribe' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { projectId: 'Bnb*120', amount:... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_personal_left_quota_spec.rb | Ruby | mit | 45 | master | 1,270 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_personal_left_quota' do
let(:path) { '/sapi/v1/simple-earn/locked/personalLeftQuota' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { projectId: ... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_redeem_product_spec.rb | Ruby | mit | 45 | master | 1,217 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_redeem_product' do
let(:path) { '/sapi/v1/simple-earn/locked/redeem' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { positionId: '1234' } }
b... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_product_position_spec.rb | Ruby | mit | 45 | master | 934 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_product_position' do
let(:path) { '/sapi/v1/simple-earn/locked/position' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_ts(**params)... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_auto_subscribe_spec.rb | Ruby | mit | 45 | master | 1,614 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_auto_subscribe' do
let(:path) { '/sapi/v1/simple-earn/flexible/setAutoSubscribe' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:ts) { '1708632518001' }
let(:params) { { productId: '1... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_product_position_spec.rb | Ruby | mit | 45 | master | 966 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_product_position' do
let(:path) { '/sapi/v1/simple-earn/flexible/position' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_ts(**par... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/flexible_subscription_record_spec.rb | Ruby | mit | 45 | master | 975 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#flexible_subscription_record' do
let(:path) { '/sapi/v1/simple-earn/flexible/history/subscriptionRecord' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_s... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/simple_earn/locked_rewards_history_spec.rb | Ruby | mit | 45 | master | 918 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::SimpleEarn, '#locked_rewards_history' do
let(:path) { '/sapi/v1/simple-earn/locked/history/rewardsRecord' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_resale_detail_spec.rb | Ruby | mit | 45 | master | 1,259 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_resale_detail' do
let(:path) { '/sapi/v1/mining/hash-transfer/profit/details' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:configId) { 168 }
let(:userName) { 'mining_acct' }
let(:pageI... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_account_list_spec.rb | Ruby | mit | 45 | master | 1,055 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_account_list' do
let(:path) { '/sapi/v1/mining/statistics/user/list' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) do
{
algo: 'sha256',
userName: 'user1'
}
end... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_worker_list_spec.rb | Ruby | mit | 45 | master | 1,120 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_worker_list' do
let(:path) { '/sapi/v1/mining/worker/list' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) do
{
algo: 'sha256',
userName: 'user1',
pageIndex: 1,
... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_revenue_list_spec.rb | Ruby | mit | 45 | master | 1,066 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_revenue_list' do
let(:path) { '/sapi/v1/mining/payment/list' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) do
{
algo: 'sha256',
userName: 'user1',
coin: 'BTC'
... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_coin_list_spec.rb | Ruby | mit | 45 | master | 440 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_coin_list' do
let(:path) { '/sapi/v1/mining/pub/coinList' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
stub_binance_request(:get, path, status, body)
end
it 'should return c... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_extra_bonus_spec.rb | Ruby | mit | 45 | master | 1,138 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_extra_bonus' do
let(:path) { '/sapi/v1/mining/payment/other' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:algo) { 'sha256' }
let(:userName) { 'mining_acct' }
let(:coin) { 'BNB' }
let... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_resale_request_spec.rb | Ruby | mit | 45 | master | 1,984 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_resale_request' do
let(:path) { '/sapi/v1/mining/hash-transfer/config' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:userName) { 'mining_acct' }
let(:algo) { 'sha256' }
let(:startDate) ... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_resale_cancel_spec.rb | Ruby | mit | 45 | master | 1,247 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_resale_cancel' do
let(:path) { '/sapi/v1/mining/hash-transfer/config/cancel' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:userName) { 'mining_acct' }
let(:configId) { 168 }
let(:params... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_worker_spec.rb | Ruby | mit | 45 | master | 1,313 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_worker' do
let(:path) { '/sapi/v1/mining/worker/detail' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) do
{
algo: 'sha256',
userName: 'user1',
workerName: 'test... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_algo_list_spec.rb | Ruby | mit | 45 | master | 440 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_algo_list' do
let(:path) { '/sapi/v1/mining/pub/algoList' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
stub_binance_request(:get, path, status, body)
end
it 'should return a... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_statistics_list_spec.rb | Ruby | mit | 45 | master | 1,071 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_statistics_list' do
let(:path) { '/sapi/v1/mining/statistics/user/status' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) do
{
algo: 'sha256',
userName: 'user1'
}
... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/mining/mining_resale_list_spec.rb | Ruby | mit | 45 | master | 699 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Mining, '#mining_resale_list' do
let(:path) { '/sapi/v1/mining/hash-transfer/config/details/list' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:pageIndex) { 1 }
let(:pageSize) { 100 }
let(:params) do
... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/convert/convert_limit_place_order.rb | Ruby | mit | 45 | master | 1,609 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#convert_limit_place_order' do
let(:path) { '/sapi/v1/convert/limit/placeOrder' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_req... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/convert/convert_limit_cancel_order.rb | Ruby | mit | 45 | master | 970 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#convert_limit_cancel_order' do
let(:path) { '/sapi/v1/convert/limit/cancelOrder' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_r... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/convert/convert_accept_quote.rb | Ruby | mit | 45 | master | 962 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#convert_accept_quote' do
let(:path) { '/sapi/v1/convert/acceptQuote' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:post... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/convert/convert_order_status.rb | Ruby | mit | 45 | master | 483 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#convert_order_status' do
let(:path) { '/sapi/v1/convert/orderStatus' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
stub_binance_sign_request(:get, path, status, body)
end
it 'shoul... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/convert/convert_trade_flow_spec.rb | Ruby | mit | 45 | master | 1,064 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#convert_trade_flow' do
let(:path) { '/sapi/v1/convert/tradeFlow' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:get, pat... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/convert/convert_get_quote.rb | Ruby | mit | 45 | master | 1,036 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#convert_get_quote' do
let(:path) { '/sapi/v1/convert/getQuote' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:post, path... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/convert/convert_exchange_info.rb | Ruby | mit | 45 | master | 561 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#convert_exchange_info' do
let(:path) { '/sapi/v1/convert/exchangeInfo' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
stub_binance_sign_request(:get, path, status, body, params)
end
... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/convert/convert_limit_query_open_orders.rb | Ruby | mit | 45 | master | 531 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#convert_limit_query_open_orders' do
let(:path) { '/sapi/v1/convert/limit/queryOpenOrders' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
stub_binance_sign_request(:post, path, status, bo... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/convert/convert_asset_info.rb | Ruby | mit | 45 | master | 492 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#convert_asset_info' do
let(:path) { '/sapi/v1/convert/assetInfo' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
stub_binance_sign_request(:get, path, status, body)
end
it 'should re... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/margin/get_margin_interest_rate_history_spec.rb | Ruby | mit | 45 | master | 998 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Margin, '#margin_interest_rate_history' do
let(:path) { '/sapi/v1/margin/interestRateHistory' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/margin/margin_cancel_all_order_spec.rb | Ruby | mit | 45 | master | 884 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Margin, '#margin_cancel_all_order' do
let(:path) { '/sapi/v1/margin/openOrders' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:dele... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/margin/margin_available_inventory.rb | Ruby | mit | 45 | master | 978 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Convert, '#margin_available_inventory' do
let(:path) { '/sapi/v1/margin/available-inventory' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/margin/margin_open_orders_spec.rb | Ruby | mit | 45 | master | 673 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Margin, '#margin_open_orders' do
let(:path) { '/sapi/v1/margin/openOrders' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:get, path... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/margin/margin_get_open_oco_spec.rb | Ruby | mit | 45 | master | 831 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Margin, '#margin_get_open_oco' do
let(:path) { '/sapi/v1/margin/openOrderList' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:get, ... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/margin/get_isolated_margin_account_spec.rb | Ruby | mit | 45 | master | 1,302 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Margin, '#get_isolated_margin_account' do
let(:path) { '/sapi/v1/margin/isolated/account' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
let(:params) { {} }
before do
mocking_signature_and_ts(**params)
... |
github | binance/binance-connector-ruby | https://github.com/binance/binance-connector-ruby | spec/binance/spot/margin/margin_get_oco_spec.rb | Ruby | mit | 45 | master | 812 | # frozen_string_literal: true
require 'spec_helper'
RSpec.describe Binance::Spot::Margin, '#margin_get_oco' do
let(:path) { '/sapi/v1/margin/orderList' }
let(:body) { fixture('response.json') }
let(:status) { 200 }
before do
mocking_signature_and_ts(**params)
stub_binance_sign_request(:get, path, sta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.