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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5be906cc2e61a53ca9220d0d5e5b6797fe65a3dc9f58f74908ace2d120204669
4
- data.tar.gz: ac6a1a0e7792437dc7671354c1694f9377bdc1e34479c19c2c9fad736891dbdf
3
+ metadata.gz: 5996c0e75e16a7c0214117ad8b70dbc77437cbc4618551fa4497e8c0f03c3b75
4
+ data.tar.gz: 211b164f1c8806bcc36c7d304433bfbb00eee6454fa5d8d16e40c7c3025a01d2
5
5
  SHA512:
6
- metadata.gz: 3bebcce777d62325feeee9c3214e57fff69b398aacb2032a1a0bac25d6e9e919f07c4b43c1827f43f730f97d47bf82f0fba0518107ee1bf80e326a6c437dca01
7
- data.tar.gz: f9d3333b6d35341163387805c339ecfc2dd7d5c93571e7b13fcbc4f79fecf0056c070af320a4180abfebe92e5028906fe2b3b5e21aa6170f23bae08781970def
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
@@ -1,3 +1,3 @@
1
1
  module Luno
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luno
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22