bitex 0.1.7 → 0.1.8
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.
- 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