bitex 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bitex/order.rb +4 -1
- data/lib/bitex/version.rb +1 -1
- metadata +1 -1
data/lib/bitex/order.rb
CHANGED
@@ -40,7 +40,10 @@ module Bitex
|
|
40
40
|
retries = 0
|
41
41
|
while wait && order.status == :received
|
42
42
|
sleep 0.2
|
43
|
-
|
43
|
+
begin
|
44
|
+
order = find(order.id)
|
45
|
+
rescue StandardError => e
|
46
|
+
end
|
44
47
|
retries += 1
|
45
48
|
if retries > 5000 # Wait 15 minutes for the order to be accepted.
|
46
49
|
raise StandardError.new(
|
data/lib/bitex/version.rb
CHANGED