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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/atlasats.rb +10 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTUwYjA4YWUzZDRjN2FhNjhmMTEzMjJmMWZiYTQ2MTQ1OGI5NGM1MQ==
4
+ ZWEwNmRkNzNkNWZkYjRjMmE4NjAwZGZhNTUzODNlNjFkZWZjMDIwZg==
5
5
  data.tar.gz: !binary |-
6
- MmJlNmJjYzgwZDE0M2JmZTJiZmFmZDRiNTA3ODMyMmQyMGE0MjUwYg==
6
+ YzlmOWUxMDIwYmU0Zjk3ZDEyZGZmYjg1ZjYyOTcwZTVjNGI0M2I1Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTAxNWViNjM2OWFhZTMzZDllMzc3NGNlNDI0OWNmN2RhYmI2NTVmNWEwYTFi
10
- Nzk4YTQ2NzdlZjI4OWZjZWNhOGE1NzFmNTczNjg2ZWQzNzYzNDE5Y2Q5OTRh
11
- ZmRmZjJjOTFjZGJhYjJlNjkwZTUzNGI3MDAxMjI5NmIwMDYyOTA=
9
+ MGEwYTQ1OTY3OGQ1OTY1ZmFhZTlhZGRjMjU5ZDVhMzJkNTJkOTNkNjI4OWFl
10
+ NTEyYjllMjg4NWFiOGUwZWVjYWEwMTkzNmE2NDdmNWFmNDEzMTBhOTI3YWYy
11
+ MjVmMWM1NjNmZWY3YzJkNzY0OWQ1YjI1OGYyZDliZDI2NWEzYzU=
12
12
  data.tar.gz: !binary |-
13
- ODMxMTNlMjM4MDY1ZjYwYjEwZTYxNTUyNzEzN2YyYjljZDYyNzViY2ExNDRm
14
- OTg1MGIzMTliZjcwYTBhMmZmYWU4NTQ4NDhkZWYxZDA5MGM4ZTA1ZDg2OTBh
15
- NzYxZTc1ZDM4MDZhMTI5NWVmNWJmNmY0OTZjMjViZmEzNWJhOTc=
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}:4000/api")
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}:4000/api")
148
+ client = Faye::Client.new("#{@baseuri}/api/v1/streaming")
141
149
  client.subscribe("/market") do |msg|
142
150
  pmsg = nil
143
151
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlasats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Habeel Ahmed