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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/README.md +6 -1
- data/lib/paxful_client/requests/base_request.rb +3 -1
- data/lib/paxful_client/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38ab6d383bb5df7875b7e9301fed592bc332a536461bf128af75a339086445f3
|
4
|
+
data.tar.gz: 1c89ae163afef3ab90731be0a1ce06f46216fa91e2db3176d066b7c810cdd3b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe68507b218e42ea75f6134e9b2eed42c738cefa8db6cdd29122a8ad378fe9988f41d60f78af2a6e5a59af4b7cc4ada499506800e60a7cfb356a2792d128e8bd
|
7
|
+
data.tar.gz: 202eca3adca90808417edce33f964be8a8dd26f295622161f8cfb488fb0df3c70347338d021ebdc1ba5774839b4976460366154f4f4ec313444ea16a0c59818b
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
paxful_client (1.
|
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.
|
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
|
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.
|
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-
|
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
|
-
|
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
|