snaptrade 2.0.146 → 2.0.147

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dc93f6ba47560a7625dc7d9131286397846559dae48f66645b91a7279be983d
4
- data.tar.gz: 557c29bc302ac3a0c2ed2e6290d6c75bfb320ff4ef8c7ab3e7be9fefc9183ac9
3
+ metadata.gz: 53fb91666d99d24d7f0cdc3aeb138718f8866c33969da189032618829de3a0c1
4
+ data.tar.gz: a083b24828187093a23b276c3abc177a6b3a4f2777439c9859a2d8c3e913e3f1
5
5
  SHA512:
6
- metadata.gz: 52695d003c0ff1b3836deddd1cf772244b961374e0a9928b6e8bbf3461345ff6c4c41885531ce26d98d0b3dac8e09b1d1b39e84ad30cf1afa00e51d08a765e38
7
- data.tar.gz: 617aced40e9e86c5a43d54156ba65944b2fa64f0eb1aaa457073816b896257ddbed4d7c388b55d72024e714c0787c4c8e7fef94bbaa8ab421fc6827b89b0fa46
6
+ metadata.gz: 62c6cdf3102ff3faa8df63128271f449796b193bb4bdaf63b581339381afd6e4df53aab29543e49cc84465afe3110319017344c7fed183b3d82f0c82c3d6b69b
7
+ data.tar.gz: dbbc70112a5b7cc5e3d84dcd5d6e089744274f54db083c4fbcf70f7164c6f6b16aa4b63d41f58ca74f98285127a3115cfeeec10a681ea21f10283ec8c51f78c1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.146)
4
+ snaptrade (2.0.147)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -43,7 +43,7 @@ GEM
43
43
  rainbow (3.1.1)
44
44
  rake (13.0.6)
45
45
  regexp_parser (2.11.3)
46
- reline (0.6.2)
46
+ reline (0.6.3)
47
47
  io-console (~> 0.5)
48
48
  rexml (3.4.4)
49
49
  rspec (3.13.2)
@@ -68,7 +68,7 @@ GEM
68
68
  rubocop-ast (>= 1.2.0, < 2.0)
69
69
  ruby-progressbar (~> 1.7)
70
70
  unicode-display_width (>= 1.4.0, < 3.0)
71
- rubocop-ast (1.47.1)
71
+ rubocop-ast (1.48.0)
72
72
  parser (>= 3.3.7.2)
73
73
  prism (~> 1.4)
74
74
  ruby-progressbar (1.13.0)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v2.0.146-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.146)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.147-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.147)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -83,7 +83,7 @@ Connect brokerage accounts to your app for live positions and trading
83
83
  Add to Gemfile:
84
84
 
85
85
  ```ruby
86
- gem 'snaptrade', '~> 2.0.146'
86
+ gem 'snaptrade', '~> 2.0.147'
87
87
  ```
88
88
 
89
89
  ## Getting Started<a id="getting-started"></a>
@@ -22,12 +22,15 @@ module SnapTrade
22
22
  # The quote currency of a pair (e.g., \"USD\" in BTC/USD). Either fiat or cryptocurrency symbol, for fiat use ISO-4217 codes.
23
23
  attr_accessor :quote
24
24
 
25
+ attr_accessor :increment
26
+
25
27
  # Attribute mapping from ruby-style variable name to JSON key.
26
28
  def self.attribute_map
27
29
  {
28
30
  :'symbol' => :'symbol',
29
31
  :'base' => :'base',
30
- :'quote' => :'quote'
32
+ :'quote' => :'quote',
33
+ :'increment' => :'increment'
31
34
  }
32
35
  end
33
36
 
@@ -41,13 +44,15 @@ module SnapTrade
41
44
  {
42
45
  :'symbol' => :'String',
43
46
  :'base' => :'String',
44
- :'quote' => :'String'
47
+ :'quote' => :'String',
48
+ :'increment' => :'String'
45
49
  }
46
50
  end
47
51
 
48
52
  # List of attributes with nullable: true
49
53
  def self.openapi_nullable
50
54
  Set.new([
55
+ :'increment'
51
56
  ])
52
57
  end
53
58
 
@@ -77,6 +82,10 @@ module SnapTrade
77
82
  if attributes.key?(:'quote')
78
83
  self.quote = attributes[:'quote']
79
84
  end
85
+
86
+ if attributes.key?(:'increment')
87
+ self.increment = attributes[:'increment']
88
+ end
80
89
  end
81
90
 
82
91
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -109,7 +118,8 @@ module SnapTrade
109
118
  self.class == o.class &&
110
119
  symbol == o.symbol &&
111
120
  base == o.base &&
112
- quote == o.quote
121
+ quote == o.quote &&
122
+ increment == o.increment
113
123
  end
114
124
 
115
125
  # @see the `==` method
@@ -121,7 +131,7 @@ module SnapTrade
121
131
  # Calculates hash code according to all attributes.
122
132
  # @return [Integer] Hash code
123
133
  def hash
124
- [symbol, base, quote].hash
134
+ [symbol, base, quote, increment].hash
125
135
  end
126
136
 
127
137
  # Builds the object from hash
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.146'
11
+ VERSION = '2.0.147'
12
12
  end
@@ -38,4 +38,10 @@ describe SnapTrade::CryptocurrencyPair do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "increment"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
41
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.146
4
+ version: 2.0.147
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-07 00:00:00.000000000 Z
11
+ date: 2025-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday