fuly 0.0.5 → 0.0.6
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/bitfinex/api/wallet.rb +1 -0
- data/lib/bitfinex/client.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a3844d59050c3711239a3d5ffd0d5b8b19b912316f6c50620c9b7920ab34204
|
|
4
|
+
data.tar.gz: 61aced4ca5c2c7ecee7f632ed2241120029cfcbdc772882fc01e30c93e57d95b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abe0a57b027fc5d3e3b082511813e8b8fabd60a0dc90d701c654200a875229077c6106a964edd0595f6831875bc84d88c2510c7a68df8fa19bad63998b25ecfa
|
|
7
|
+
data.tar.gz: 7e58be76ad2369402a215a69333134c9a0679d7de4566e64abbb0ee00fdbe8908c22d7d579617b97d880690e40e186f5cb82b9cc5015d613e81707f4d4863a62
|
data/lib/bitfinex/api/wallet.rb
CHANGED
data/lib/bitfinex/client.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Bitfinex
|
|
|
16
16
|
|
|
17
17
|
def request(url, options = {})
|
|
18
18
|
body = options || {}
|
|
19
|
-
nonce = (Time.now.to_f * 1000).
|
|
19
|
+
nonce = ((Time.now.to_f * 1000).floor * 1000).to_s
|
|
20
20
|
payload = "/api/v2/#{url}#{nonce}#{body.to_json}"
|
|
21
21
|
sign = OpenSSL::HMAC.hexdigest("sha384", @api_secret, payload)
|
|
22
22
|
|
|
@@ -44,7 +44,7 @@ module Bitfinex
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def v1_request(url, options = {})
|
|
47
|
-
nonce = (Time.now.to_f * 1000).floor.to_s
|
|
47
|
+
nonce = ((Time.now.to_f * 1000).floor * 1000).to_s
|
|
48
48
|
url = "/v1/#{url}"
|
|
49
49
|
payload = build_payload(url, options, nonce)
|
|
50
50
|
headers = {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fuly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rex Chen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|