binance-ruby 1.2.3 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d65034451ca51ae18a078816fb6720092510d51a20e02f5ea7c3f38d80b9ee0
4
- data.tar.gz: ce2259686745d4a183360480a99ede60956f4f3c96ca087a6ea80d51732093b4
3
+ metadata.gz: ed932ba3687136b21bbf45ab2a104ebb89c8ad2073852c166c49bae172ee2693
4
+ data.tar.gz: f62479b21ed010c103f47f7cda6b1c64961389ce55667775e3099524fbca1490
5
5
  SHA512:
6
- metadata.gz: 8cbcd3f1dff2cc730c2215c0f8086188d59e4c44bfd4156d6d6367326f6705bb4d7a5790b3c783b0f615cc458f8f5f7ee240d056779ca706072b577d758cb09a
7
- data.tar.gz: 3ad8f062b8e1a153cbc3e2cd4b9a37fff8feea1f356e395acd3c1c3f3a37bef08d1b660e2e483ab8b71cd749b88c627161f7a349b1b73dc53dc164d0f618a0d2
6
+ metadata.gz: 6f2748f9c2124ff7615a23b8b73b3edbe3f88606395e9bc99ce864f6891803cbabe1fad881496a07441e1d518dd30dc1922b1e535752446513a91debb3f5001a
7
+ data.tar.gz: 6753fa662464ea79db5eb58f132c4f24ee94190279ce8de845389d40d4ae78e9232584caf71c330abd0d8e12e895d2a73afa94464a30c2d6ee6ec981bbbeffb7
data/lib/binance-ruby.rb CHANGED
@@ -12,6 +12,7 @@ require "binance/api/margin/account"
12
12
  require "binance/api/margin/order"
13
13
  require "binance/api/order"
14
14
  require "binance/api/request"
15
+ require "binance/api/trade"
15
16
  require "binance/api/user_data_stream"
16
17
  require "binance/api/version"
17
18
  require "binance/websocket"
@@ -19,6 +19,7 @@ module Binance
19
19
  when :get
20
20
  response = get(path, headers: all_headers, query: params)
21
21
  when :post
22
+ byebug
22
23
  response = post(path, body: params, headers: all_headers)
23
24
  when :put
24
25
  response = put(path, body: params, headers: all_headers)
@@ -0,0 +1,27 @@
1
+ module Binance
2
+ module Api
3
+ class Trade
4
+ class << self
5
+ def get_bnb_burn_status!(recvWindow: nil, api_key: nil, api_secret_key: nil)
6
+ timestamp = Configuration.timestamp
7
+ params = { recvWindow: recvWindow, timestamp: timestamp }
8
+ Request.send!(api_key_type: :read_info, path: "/sapi/v1/bnbBurn",
9
+ params: params.delete_if { |key, value| value.nil? },
10
+ security_type: :user_data, tld: Configuration.tld, api_key: api_key,
11
+ api_secret_key: api_secret_key)
12
+ end
13
+
14
+ def toggle_bnb_burn!(spot_bnb_burn: true, interest_bnb_burn: false, recvWindow: nil, api_key: nil,
15
+ api_secret_key: nil)
16
+ timestamp = Configuration.timestamp
17
+ params = { spotBNBBurn: spot_bnb_burn, interestBNBBurn: interest_bnb_burn,
18
+ recvWindow: recvWindow, timestamp: timestamp }
19
+ Request.send!(api_key_type: :read_info, path: "/sapi/v1/bnbBurn", method: :post,
20
+ params: params.delete_if { |key, value| value.nil? },
21
+ security_type: :user_data, tld: Configuration.tld, api_key: api_key,
22
+ api_secret_key: api_secret_key)
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -1,5 +1,5 @@
1
1
  module Binance
2
2
  module Api
3
- VERSION = "1.2.3"
3
+ VERSION = "1.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binance-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Peterson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-16 00:00:00.000000000 Z
11
+ date: 2021-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codecov
@@ -210,6 +210,7 @@ files:
210
210
  - lib/binance/api/market_stream.rb
211
211
  - lib/binance/api/order.rb
212
212
  - lib/binance/api/request.rb
213
+ - lib/binance/api/trade.rb
213
214
  - lib/binance/api/user_data_stream.rb
214
215
  - lib/binance/api/version.rb
215
216
  - lib/binance/websocket.rb
@@ -236,5 +237,5 @@ requirements: []
236
237
  rubygems_version: 3.1.6
237
238
  signing_key:
238
239
  specification_version: 4
239
- summary: binance-ruby-1.2.3
240
+ summary: binance-ruby-1.2.7
240
241
  test_files: []