paxful_client 1.0.0 → 1.1.0

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: 66e7dd2c722899ff116712986c06f49dc4890323f20c83357584974c2d15f258
4
- data.tar.gz: d1d24de558f4183569d63e930763cb126ba9b573214460ac519969e02f734945
3
+ metadata.gz: 38ab6d383bb5df7875b7e9301fed592bc332a536461bf128af75a339086445f3
4
+ data.tar.gz: 1c89ae163afef3ab90731be0a1ce06f46216fa91e2db3176d066b7c810cdd3b4
5
5
  SHA512:
6
- metadata.gz: f7c58c18354557383e81f69221ce6a64fe342b36a3637aa9914afd2ce806805189bc491113a3776e10de7cb8432fcae5dfd3e809515340ad7eccaf4c98ec7fcc
7
- data.tar.gz: 9293af9c62f8a7b2195398e9b7210aa55475d7a3766a6c5b773ffbc1f7be6fc2eff32e659103f094651c5086821ca059da3aa7db81eabf55b8c38a9012f28976
6
+ metadata.gz: fe68507b218e42ea75f6134e9b2eed42c738cefa8db6cdd29122a8ad378fe9988f41d60f78af2a6e5a59af4b7cc4ada499506800e60a7cfb356a2792d128e8bd
7
+ data.tar.gz: 202eca3adca90808417edce33f964be8a8dd26f295622161f8cfb488fb0df3c70347338d021ebdc1ba5774839b4976460366154f4f4ec313444ea16a0c59818b
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.1.0] - 2020-11-25
8
+ ### Added
9
+ - Add support for passing in `page` for completed trades
10
+
7
11
  ## [1.0.0] - 2020-11-19
8
12
  ### Added
9
13
  - Ensure that `key` and `secret` are present; raise exception otherwise
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paxful_client (1.0.0)
4
+ paxful_client (1.1.0)
5
5
  activesupport
6
6
  api_client_base
7
7
  dry-validation (~> 0.13)
@@ -42,7 +42,7 @@ GEM
42
42
  dry-container (0.7.2)
43
43
  concurrent-ruby (~> 1.0)
44
44
  dry-configurable (~> 0.1, >= 0.1.3)
45
- dry-core (0.4.9)
45
+ dry-core (0.4.10)
46
46
  concurrent-ruby (~> 1.0)
47
47
  dry-equalizer (0.3.0)
48
48
  dry-inflector (0.2.0)
data/README.md CHANGED
@@ -28,8 +28,13 @@ response = client.get_balance
28
28
  wallet = response.wallet
29
29
  wallet.balance
30
30
 
31
- # Get completed trades
31
+ # Get completed trades (page = 1 by default)
32
32
  response = client.get_completed_trades
33
+
34
+ # Get completed trades by page
35
+ response = client.get_completed_trades(page: page)
36
+
37
+ # Get response
33
38
  order_book = response.order_book
34
39
  order_book.trades
35
40
  ```
@@ -5,6 +5,7 @@ module PaxfulClient
5
5
 
6
6
  attribute :key, String
7
7
  attribute :secret, String
8
+ attribute :page, Integer, default: 1
8
9
 
9
10
  private
10
11
 
@@ -13,12 +14,13 @@ module PaxfulClient
13
14
  apiseal = OpenSSL::HMAC.hexdigest(
14
15
  "SHA256",
15
16
  secret,
16
- "apikey=#{key}&nonce=#{nonce}",
17
+ "apikey=#{key}&nonce=#{nonce}&page=#{page}",
17
18
  )
18
19
 
19
20
  [
20
21
  "apikey=#{key}",
21
22
  "nonce=#{nonce}",
23
+ "page=#{page}",
22
24
  "apiseal=#{apiseal}",
23
25
  ].join("&")
24
26
  end
@@ -1,3 +1,3 @@
1
1
  module PaxfulClient
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paxful_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Chavez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-19 00:00:00.000000000 Z
11
+ date: 2020-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api_client_base
@@ -165,7 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.0.8
168
+ rubyforge_project:
169
+ rubygems_version: 2.7.6
169
170
  signing_key:
170
171
  specification_version: 4
171
172
  summary: API wrapper for Paxful