Skip to content

Commit

Permalink
Merge pull request #100 from Daniel1984/fix/nonce
Browse files Browse the repository at this point in the history
Fix/nonce
  • Loading branch information
prdn authored Jan 1, 2021
2 parents 5f30386 + b43263b commit 063014b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.0.11
- Fixes nonce issue to be compatible with other libraries

1.0.10
- Adds function rest/v2 get_pulse_profile
- Adds function rest/v2 get_public_pulse_history
Expand Down
2 changes: 1 addition & 1 deletion bitfinex-rb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = 'bitfinex-rb'
spec.version = '1.0.10'
spec.version = '1.0.11'
spec.authors = ['Bitfinex']
spec.email = ['[email protected]']
spec.summary = %q{Bitfinex API Wrapper}
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/rest_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def build_payload(url, params = {}, nonce)
end

def new_nonce
(Time.now.to_f * 1000).floor.to_s
(Time.now.to_f * 1000000).floor.to_s
end

def sign(payload)
Expand Down
2 changes: 1 addition & 1 deletion lib/ws/ws2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ def auth! (calc = 0, dms = 0)
end

def new_nonce # :nodoc:
(Time.now.to_f * 1000).floor.to_s
(Time.now.to_f * 1000000).floor.to_s
end

def sign (payload) # :nodoc:
Expand Down

0 comments on commit 063014b

Please sign in to comment.