Bingx Ruby API client
gem 'bingx' # in your Gemfile
client = Bingx::Client.new(
api_key: '<your API KEY>',
secret_key: '<your SECRET KEY>'
)
client.request(:get, '/openApi/swap/v2/quote/trades', symbol: 'BTC-USDT')
client.get_user_balance
client.trade_order_test(
symbol: 'ETH-USDT',
side: 'BUY',
positionSide: 'LONG',
type: 'MARKET',
quantity: 5
)
bin/setup
to install dependenciesrake spec
to run the testsbin/console
for an interactive prompt
bundle exec rake install
to install this gem onto your local machine
- Update the version number in
version.rb
- Run
bundle exec rake release
Bug reports and pull requests are welcome on GitHub at https://github.com/light-flight/bingx.