sb-alpaca 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sb/alpaca.rb +2 -2
- data/lib/sb/alpaca/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bbc24665a40f5fca4c02d3b580895c0a01ee40bb6be115977ed77e6d369f124
|
4
|
+
data.tar.gz: df85be632eab3d2caa6e98d8e432783dab5b84ee605d922d9c1eae1b511ce7f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0615dbbbfb9bc676c9039580098a2bd8e1421cb974e62700b299b010ca9e4ce63979a356611d21f58cc1ea94ad39f8b6bafae312280ca03c0f5c672e3967916
|
7
|
+
data.tar.gz: f0ea660bd1a3f4b1860487e492ffd4212d5638df459615eaaf57bec4f46c45e8b5d41161a5427c45757a9dbb4acd18f96a8d87c870ed1efe69d22427cefd1416
|
data/lib/sb/alpaca.rb
CHANGED
@@ -104,9 +104,9 @@ module Sb
|
|
104
104
|
if data['status'] == 'authorized'
|
105
105
|
@state = 'authorized'
|
106
106
|
elsif e_data['stream'] == 'trade_updates' || e_data['stream'] == 'account_updates'
|
107
|
-
@subscriptions[@type].each {|s| s.call(
|
107
|
+
@subscriptions[@type].each {|s| s.call(e_data) }
|
108
108
|
elsif data['ev']
|
109
|
-
@subscriptions[@type].each {|s| s.call(
|
109
|
+
@subscriptions[@type].each {|s| s.call(e_data) }
|
110
110
|
end
|
111
111
|
|
112
112
|
#p [:message, p_data]
|
data/lib/sb/alpaca/version.rb
CHANGED