binance-ruby 1.3 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/binance/api.rb +4 -2
- data/lib/binance/api/account.rb +2 -2
- data/lib/binance/api/order.rb +1 -1
- data/lib/binance/api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eaed3bdcc2611924c8e1e6d361ce6e4634845da9da89a97e10c242e7367e7ea0
|
|
4
|
+
data.tar.gz: 0ee997d53d85aa416ed36282c5646cbe088676ad17fbc81e7d0228830aebe8e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c3871752fac15616de6a866f5f9f399303bb27847fd740cd9071160c70694baa4ca8135244af491259281dde411b4ec9b3cb96809ec23e306f41b027f9cb60d
|
|
7
|
+
data.tar.gz: 7e48535b7170dd65aa5a23bc707a7a934853e79e26b64a20db8c65e84ea0f46067b35254bab930d0eaf7d949f73832c8b6043d4b429533227ca9b2eea57abf30
|
data/lib/binance/api.rb
CHANGED
|
@@ -2,8 +2,10 @@ module Binance
|
|
|
2
2
|
module Api
|
|
3
3
|
class << self
|
|
4
4
|
def all_coins_info!(recvWindow: nil, api_key: nil, api_secret_key: nil)
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
timestamp = Configuration.timestamp
|
|
6
|
+
params = { recvWindow: recvWindow, timestamp: timestamp }
|
|
7
|
+
Request.send!(api_key_type: :read_info, security_type: :user_data,
|
|
8
|
+
path: "/sapi/v1/capital/config/getall", params: params,
|
|
7
9
|
api_key: api_key, api_secret_key: api_secret_key)
|
|
8
10
|
end
|
|
9
11
|
|
data/lib/binance/api/account.rb
CHANGED
|
@@ -2,7 +2,7 @@ module Binance
|
|
|
2
2
|
module Api
|
|
3
3
|
class Account
|
|
4
4
|
class << self
|
|
5
|
-
def fees!(recvWindow:
|
|
5
|
+
def fees!(recvWindow: nil, api_key: nil, api_secret_key: nil)
|
|
6
6
|
timestamp = Configuration.timestamp
|
|
7
7
|
params = { recvWindow: recvWindow, timestamp: timestamp }
|
|
8
8
|
Request.send!(api_key_type: :read_info, path: "/wapi/v3/assetDetail.html",
|
|
@@ -10,7 +10,7 @@ module Binance
|
|
|
10
10
|
security_type: :user_data, api_key: api_key, api_secret_key: api_secret_key)
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
def info!(recvWindow:
|
|
13
|
+
def info!(recvWindow: nil, api_key: nil, api_secret_key: nil)
|
|
14
14
|
timestamp = Configuration.timestamp
|
|
15
15
|
params = { recvWindow: recvWindow, timestamp: timestamp }
|
|
16
16
|
Request.send!(api_key_type: :read_info, path: "/api/v3/account",
|
data/lib/binance/api/order.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Binance
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
# Be careful when accessing without a symbol!
|
|
17
|
-
def all_open!(recvWindow:
|
|
17
|
+
def all_open!(recvWindow: nil, symbol: nil, api_key: nil, api_secret_key: nil)
|
|
18
18
|
timestamp = Configuration.timestamp
|
|
19
19
|
params = { recvWindow: recvWindow, symbol: symbol, timestamp: timestamp }
|
|
20
20
|
Request.send!(api_key_type: :read_info, path: "/api/v3/openOrders",
|
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:
|
|
4
|
+
version: 1.3.1
|
|
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-06-
|
|
11
|
+
date: 2021-06-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: codecov
|
|
@@ -237,5 +237,5 @@ requirements: []
|
|
|
237
237
|
rubygems_version: 3.1.6
|
|
238
238
|
signing_key:
|
|
239
239
|
specification_version: 4
|
|
240
|
-
summary: binance-ruby-1.3
|
|
240
|
+
summary: binance-ruby-1.3.1
|
|
241
241
|
test_files: []
|