atlasats 1.1.0 → 1.1.1
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.
- checksums.yaml +8 -8
- data/lib/atlasats.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWEwNmRkNzNkNWZkYjRjMmE4NjAwZGZhNTUzODNlNjFkZWZjMDIwZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzlmOWUxMDIwYmU0Zjk3ZDEyZGZmYjg1ZjYyOTcwZTVjNGI0M2I1Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGEwYTQ1OTY3OGQ1OTY1ZmFhZTlhZGRjMjU5ZDVhMzJkNTJkOTNkNjI4OWFl
|
10
|
+
NTEyYjllMjg4NWFiOGUwZWVjYWEwMTkzNmE2NDdmNWFmNDEzMTBhOTI3YWYy
|
11
|
+
MjVmMWM1NjNmZWY3YzJkNzY0OWQ1YjI1OGYyZDliZDI2NWEzYzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGFmZTc3OGIxOWI0MTM5OTMyNjkzOGZlM2M4Mzk3NmFmNWYxM2QzMDEzYWY2
|
14
|
+
ZTlkNGQ0ZWU1MTJmNDI4OThmYTgyNTAzNzA2NzA4ZGMxY2U4MTQyNGYyMjQ4
|
15
|
+
YjRiYTkwYWY4ZDM3ODAyNGYyZTNlYWI2ZmZkODA5MzAwOWNmY2Q=
|
data/lib/atlasats.rb
CHANGED
@@ -56,6 +56,14 @@ class AtlasClient
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
# For most accounts this will return todays orders both (open, cancelled and done except rejects)
|
60
|
+
# but for some users who do alot of orders you can only rely on it to give you open orders
|
61
|
+
def recent_orders(orderid)
|
62
|
+
with_auth nil do |options|
|
63
|
+
self.class.get("/api/v1/orders", options)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
59
67
|
# account
|
60
68
|
def account_info()
|
61
69
|
with_auth_query nil do |options|
|
@@ -119,7 +127,7 @@ class AtlasClient
|
|
119
127
|
def subscribe_trades(item, currency, &block)
|
120
128
|
Thread.new do
|
121
129
|
EM.run {
|
122
|
-
client = Faye::Client.new("#{@baseuri}
|
130
|
+
client = Faye::Client.new("#{@baseuri}/api/v1/streaming")
|
123
131
|
client.subscribe("/trades") do |msg|
|
124
132
|
begin
|
125
133
|
pmsg = JSON.parse(msg)
|
@@ -137,7 +145,7 @@ class AtlasClient
|
|
137
145
|
def subscribe_book_updates(item, currency, &block)
|
138
146
|
Thread.new do
|
139
147
|
EM.run {
|
140
|
-
client = Faye::Client.new("#{@baseuri}
|
148
|
+
client = Faye::Client.new("#{@baseuri}/api/v1/streaming")
|
141
149
|
client.subscribe("/market") do |msg|
|
142
150
|
pmsg = nil
|
143
151
|
begin
|