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 +4 -4
- data/lib/binance-ruby.rb +1 -0
- data/lib/binance/api/request.rb +1 -0
- data/lib/binance/api/trade.rb +27 -0
- data/lib/binance/api/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed932ba3687136b21bbf45ab2a104ebb89c8ad2073852c166c49bae172ee2693
|
4
|
+
data.tar.gz: f62479b21ed010c103f47f7cda6b1c64961389ce55667775e3099524fbca1490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"
|
data/lib/binance/api/request.rb
CHANGED
@@ -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
|
data/lib/binance/api/version.rb
CHANGED
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.
|
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-
|
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.
|
240
|
+
summary: binance-ruby-1.2.7
|
240
241
|
test_files: []
|