Skip to content

Commit 063014b

Browse files
authored
Merge pull request #100 from Daniel1984/fix/nonce
Fix/nonce
2 parents 5f30386 + b43263b commit 063014b

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.0.11
2+
- Fixes nonce issue to be compatible with other libraries
3+
14
1.0.10
25
- Adds function rest/v2 get_pulse_profile
36
- Adds function rest/v2 get_public_pulse_history

bitfinex-rb.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
44

55
Gem::Specification.new do |spec|
66
spec.name = 'bitfinex-rb'
7-
spec.version = '1.0.10'
7+
spec.version = '1.0.11'
88
spec.authors = ['Bitfinex']
99
spec.email = ['[email protected]']
1010
spec.summary = %q{Bitfinex API Wrapper}

lib/rest/rest_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def build_payload(url, params = {}, nonce)
8989
end
9090

9191
def new_nonce
92-
(Time.now.to_f * 1000).floor.to_s
92+
(Time.now.to_f * 1000000).floor.to_s
9393
end
9494

9595
def sign(payload)

lib/ws/ws2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def auth! (calc = 0, dms = 0)
645645
end
646646

647647
def new_nonce # :nodoc:
648-
(Time.now.to_f * 1000).floor.to_s
648+
(Time.now.to_f * 1000000).floor.to_s
649649
end
650650

651651
def sign (payload) # :nodoc:

0 commit comments

Comments
 (0)