luno 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/luno/markets.rb +11 -1
- data/lib/luno/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: 5996c0e75e16a7c0214117ad8b70dbc77437cbc4618551fa4497e8c0f03c3b75
|
4
|
+
data.tar.gz: 211b164f1c8806bcc36c7d304433bfbb00eee6454fa5d8d16e40c7c3025a01d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bcf85710dd090c938b197756e1a536be5ed366ba9b52c7fd07d6b77b4678ed779ae77effa208262d8c62bb75cc4e7995c0828f28224d24b4bc7b37fdc735422
|
7
|
+
data.tar.gz: f9647d25fcac5354d2f4d99ca70249f4fdef9c9484aa8cc2ac8cab015e17d64875b31908a599f58215a897000f3e5d2ff178376153499929c339dfb06add8f2b
|
data/lib/luno/markets.rb
CHANGED
@@ -4,5 +4,15 @@ module Luno
|
|
4
4
|
path = "orderbook_top?pair=#{pair}"
|
5
5
|
unauthorised_and_send(http_method: :get, path: path)
|
6
6
|
end
|
7
|
+
|
8
|
+
def list_ticker_for_pair(pair:)
|
9
|
+
path = 'ticker'
|
10
|
+
authorise_and_send(http_method: :get, path: path, params: { pair: pair })
|
11
|
+
end
|
12
|
+
|
13
|
+
def list_tickets_for_all_pairs
|
14
|
+
path = 'tickers'
|
15
|
+
authorise_and_send(http_method: :get, path: path)
|
16
|
+
end
|
7
17
|
end
|
8
|
-
end
|
18
|
+
end
|
data/lib/luno/version.rb
CHANGED