coin_tracking 1.0.0 → 1.0.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -3
- data/lib/coin_tracking/api.rb +0 -1
- data/lib/coin_tracking/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 461ee8c3836d4563fb01dbab99ceb3819b345715cbcb537700fc7e2649eec79d
|
|
4
|
+
data.tar.gz: 96856eddcbc2c78efe63333a8d8390b656e9b31c6da45fbd460f6bc9c813dc83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 203b5289b0bfc0cb2e7919ed6ac7d05261af505ad0c6c707c31c94c4b63df349f8772288140dc2fbfd00e83eeaee3297146432398788af92571f80e3184da1a5
|
|
7
|
+
data.tar.gz: 5022fc804a3510df02ea2fd3219e9a3272d1d06a3659a3839b9262d25a3db9a6f23006e9db682f384fe8818a19f4d4c17c7156d3108f86686bd315707a52bb05
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -31,12 +31,16 @@ api.historical_currency
|
|
|
31
31
|
api.grouped_balance
|
|
32
32
|
api.gains
|
|
33
33
|
|
|
34
|
-
# Optionally, you can pass a Hash with additional parameters, as documented
|
|
35
|
-
#
|
|
34
|
+
# Optionally, you can pass a Hash with additional parameters, as documented
|
|
35
|
+
# at https://cointracking.info/api/api.php.
|
|
36
|
+
#
|
|
37
|
+
# Note that `start` and `end` are special parameters that accept DateTime,
|
|
38
|
+
# Time or a Unix timestamp. This gem does the conversion for you.
|
|
36
39
|
|
|
37
40
|
api.trades(limit: 100, order: 'DESC', start: 1.year.ago, end: 1525486520)
|
|
38
41
|
|
|
39
|
-
# Each call returns a CoinTracking::Response object. Here are some of the
|
|
42
|
+
# Each call returns a CoinTracking::Response object. Here are some of the
|
|
43
|
+
# methods that are available:
|
|
40
44
|
|
|
41
45
|
response.success? # => true/false
|
|
42
46
|
response.data # => Hash
|
data/lib/coin_tracking/api.rb
CHANGED
|
@@ -62,7 +62,6 @@ module CoinTracking
|
|
|
62
62
|
def api_query(action, params = {})
|
|
63
63
|
params = { method: action, nonce: nonce }.merge(params)
|
|
64
64
|
response = HTTParty.post API_URL, body: params, headers: http_headers(params), debug_output: DEBUG ? $stdout : nil
|
|
65
|
-
puts params
|
|
66
65
|
CoinTracking::Response.new(response)
|
|
67
66
|
end
|
|
68
67
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coin_tracking
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carl Mercier
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-05-
|
|
11
|
+
date: 2018-05-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|