Skip to content

Commit 1b13eda

Browse files
committed
(fix) switch nonces to ms, bump version to 1.0.2
1 parent 838534e commit 1b13eda

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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.1'
7+
spec.version = '1.0.2'
88
spec.authors = ['Bitfinex']
99
spec.email = ['developers@bitfinex.com']
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_i.to_s
92+
(Time.now.to_f * 1000).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
@@ -642,7 +642,7 @@ def auth! (calc = 0, dms = 0)
642642
end
643643

644644
def new_nonce # :nodoc:
645-
Time.now.to_i.to_s
645+
(Time.now.to_f * 1000).floor.to_s
646646
end
647647

648648
def sign (payload) # :nodoc:

0 commit comments

Comments
 (0)