├── .circleci └── config.yml ├── .env.example ├── .gitignore ├── .rspec ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── bin ├── console └── setup ├── binance-ruby.gemspec ├── lib ├── binance-ruby.rb └── binance │ ├── api.rb │ ├── api │ ├── account.rb │ ├── configuration.rb │ ├── error.rb │ ├── futures │ │ └── account.rb │ ├── margin.rb │ ├── margin │ │ ├── account.rb │ │ └── order.rb │ ├── market_stream.rb │ ├── order.rb │ ├── request.rb │ ├── trade.rb │ ├── user_data_stream.rb │ └── version.rb │ └── websocket.rb └── spec ├── binance ├── api │ ├── account_spec.rb │ ├── configuration_spec.rb │ ├── data_stream_spec.rb │ ├── error_spec.rb │ ├── margin │ │ ├── account_spec.rb │ │ └── order_spec.rb │ ├── margin_spec.rb │ ├── order_spec.rb │ └── request_spec.rb ├── api_spec.rb └── websocket_spec.rb ├── fixtures ├── account.json ├── assetDetail.json ├── candlesticks.json ├── compressed_aggregate_trades.json ├── depth.json ├── exchange_info.json ├── executionReport.json ├── kline.json ├── margin-cancel.json ├── margin.json ├── market-order-new.json ├── order-cancel.json ├── order-new.json ├── order-status.json ├── streams │ ├── book_depth.json │ ├── partial_book_depth.json │ └── trade.json ├── ticker-24hr.json ├── ticker-book_ticker.json ├── ticker-price.json ├── trade.json └── trades.json ├── spec_helper.rb └── support └── rspec_helpers.rb /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/bin/setup -------------------------------------------------------------------------------- /binance-ruby.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/binance-ruby.gemspec -------------------------------------------------------------------------------- /lib/binance-ruby.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance-ruby.rb -------------------------------------------------------------------------------- /lib/binance/api.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api.rb -------------------------------------------------------------------------------- /lib/binance/api/account.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/account.rb -------------------------------------------------------------------------------- /lib/binance/api/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/configuration.rb -------------------------------------------------------------------------------- /lib/binance/api/error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/error.rb -------------------------------------------------------------------------------- /lib/binance/api/futures/account.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/futures/account.rb -------------------------------------------------------------------------------- /lib/binance/api/margin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/margin.rb -------------------------------------------------------------------------------- /lib/binance/api/margin/account.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/margin/account.rb -------------------------------------------------------------------------------- /lib/binance/api/margin/order.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/margin/order.rb -------------------------------------------------------------------------------- /lib/binance/api/market_stream.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/market_stream.rb -------------------------------------------------------------------------------- /lib/binance/api/order.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/order.rb -------------------------------------------------------------------------------- /lib/binance/api/request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/request.rb -------------------------------------------------------------------------------- /lib/binance/api/trade.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/trade.rb -------------------------------------------------------------------------------- /lib/binance/api/user_data_stream.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/user_data_stream.rb -------------------------------------------------------------------------------- /lib/binance/api/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/api/version.rb -------------------------------------------------------------------------------- /lib/binance/websocket.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/lib/binance/websocket.rb -------------------------------------------------------------------------------- /spec/binance/api/account_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api/account_spec.rb -------------------------------------------------------------------------------- /spec/binance/api/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api/configuration_spec.rb -------------------------------------------------------------------------------- /spec/binance/api/data_stream_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api/data_stream_spec.rb -------------------------------------------------------------------------------- /spec/binance/api/error_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api/error_spec.rb -------------------------------------------------------------------------------- /spec/binance/api/margin/account_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api/margin/account_spec.rb -------------------------------------------------------------------------------- /spec/binance/api/margin/order_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api/margin/order_spec.rb -------------------------------------------------------------------------------- /spec/binance/api/margin_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api/margin_spec.rb -------------------------------------------------------------------------------- /spec/binance/api/order_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api/order_spec.rb -------------------------------------------------------------------------------- /spec/binance/api/request_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api/request_spec.rb -------------------------------------------------------------------------------- /spec/binance/api_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/api_spec.rb -------------------------------------------------------------------------------- /spec/binance/websocket_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/binance/websocket_spec.rb -------------------------------------------------------------------------------- /spec/fixtures/account.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/account.json -------------------------------------------------------------------------------- /spec/fixtures/assetDetail.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/assetDetail.json -------------------------------------------------------------------------------- /spec/fixtures/candlesticks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/candlesticks.json -------------------------------------------------------------------------------- /spec/fixtures/compressed_aggregate_trades.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/compressed_aggregate_trades.json -------------------------------------------------------------------------------- /spec/fixtures/depth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/depth.json -------------------------------------------------------------------------------- /spec/fixtures/exchange_info.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/exchange_info.json -------------------------------------------------------------------------------- /spec/fixtures/executionReport.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/executionReport.json -------------------------------------------------------------------------------- /spec/fixtures/kline.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/kline.json -------------------------------------------------------------------------------- /spec/fixtures/margin-cancel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/margin-cancel.json -------------------------------------------------------------------------------- /spec/fixtures/margin.json: -------------------------------------------------------------------------------- 1 | { 2 | "tranId": 73383637 3 | } 4 | -------------------------------------------------------------------------------- /spec/fixtures/market-order-new.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/market-order-new.json -------------------------------------------------------------------------------- /spec/fixtures/order-cancel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/order-cancel.json -------------------------------------------------------------------------------- /spec/fixtures/order-new.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/order-new.json -------------------------------------------------------------------------------- /spec/fixtures/order-status.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/order-status.json -------------------------------------------------------------------------------- /spec/fixtures/streams/book_depth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/streams/book_depth.json -------------------------------------------------------------------------------- /spec/fixtures/streams/partial_book_depth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/streams/partial_book_depth.json -------------------------------------------------------------------------------- /spec/fixtures/streams/trade.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/streams/trade.json -------------------------------------------------------------------------------- /spec/fixtures/ticker-24hr.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/ticker-24hr.json -------------------------------------------------------------------------------- /spec/fixtures/ticker-book_ticker.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/ticker-book_ticker.json -------------------------------------------------------------------------------- /spec/fixtures/ticker-price.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/ticker-price.json -------------------------------------------------------------------------------- /spec/fixtures/trade.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/trade.json -------------------------------------------------------------------------------- /spec/fixtures/trades.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/fixtures/trades.json -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/rspec_helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xjmp/binance-ruby/HEAD/spec/support/rspec_helpers.rb --------------------------------------------------------------------------------