snaptrade 2.0.88 → 2.0.89

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: 5288ec81880134f7a7c1345658d4a36bb9bef18cd160a95c98ebf58e945f785e
4
- data.tar.gz: 91a729976464b2860ff5fb5ae4110e8598e559e28f0c63e0701d633f566dce0c
3
+ metadata.gz: 3576aa4c476648b0c5c665897f8f421557a9e130f8926ba44c85a477d10e1a19
4
+ data.tar.gz: dc796c3d61f25d85dd3513cb734dbd6949f4aa82cc4b9d4a271a0935cd1a2a05
5
5
  SHA512:
6
- metadata.gz: b851d08f25987ebb368d69def3c6d155e916aec302a207890aa7dc5bf326ea35dd1f8da15f0606999c008ccf3d104e1b53d5ac14700e89c9aaf243a2e8db68fb
7
- data.tar.gz: d8d2904f25786de03b11e1b460e97a9ae2a58881481f592ec3eabc789d8b8d207edd8b0f70368832d9744e769677d60aa04a3ff37d8cd867676de6b16b517d3a
6
+ metadata.gz: fee5927ebd2bc599b69f22096d156b5deeac92f60e5e32d9e792f676359b8785b80dc06171688adf53d98acb06646a9d248d5ce6a9e8d53332d53d3dd3cc1fb1
7
+ data.tar.gz: f6423adbcc685f9c91e05874d210499ac10167038c9eb294bb4c6a15c72e04aa123e8073449bf730c63025f0c91c52074972674a8688a6af292e040f94190f7d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.88)
4
+ snaptrade (2.0.89)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
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.88-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.88)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.89-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.89)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -81,7 +81,7 @@ Connect brokerage accounts to your app for live positions and trading
81
81
  Add to Gemfile:
82
82
 
83
83
  ```ruby
84
- gem 'snaptrade', '~> 2.0.88'
84
+ gem 'snaptrade', '~> 2.0.89'
85
85
  ```
86
86
 
87
87
  ## Getting Started<a id="getting-started"></a>
@@ -13,7 +13,7 @@ require 'time'
13
13
  module SnapTrade
14
14
  # A cryptocurrency pair instrument.
15
15
  class CryptocurrencyPair
16
- # Cryptocurrency pair instrument instrument symbol
16
+ # Cryptocurrency pair instrument symbol
17
17
  attr_accessor :symbol
18
18
 
19
19
  # The base currency of a pair (e.g., \"BTC\" in BTC/USD). Either fiat or cryptocurrency symbol, for fiat use ISO-4217 codes.
@@ -12,9 +12,10 @@ require 'time'
12
12
 
13
13
  module SnapTrade
14
14
  class TradingInstrument
15
- # The security's trading ticker symbol
15
+ # The instrument's trading ticker symbol
16
16
  attr_accessor :symbol
17
17
 
18
+ # The type of the instrument
18
19
  attr_accessor :type
19
20
 
20
21
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -41,7 +42,6 @@ module SnapTrade
41
42
  # List of attributes with nullable: true
42
43
  def self.openapi_nullable
43
44
  Set.new([
44
- :'type'
45
45
  ])
46
46
  end
47
47
 
@@ -73,12 +73,22 @@ module SnapTrade
73
73
  # @return Array for valid properties with the reasons
74
74
  def list_invalid_properties
75
75
  invalid_properties = Array.new
76
+ if @symbol.nil?
77
+ invalid_properties.push('invalid value for "symbol", symbol cannot be nil.')
78
+ end
79
+
80
+ if @type.nil?
81
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
82
+ end
83
+
76
84
  invalid_properties
77
85
  end
78
86
 
79
87
  # Check to see if the all the properties in the model are valid
80
88
  # @return true if the model is valid
81
89
  def valid?
90
+ return false if @symbol.nil?
91
+ return false if @type.nil?
82
92
  true
83
93
  end
84
94
 
@@ -11,7 +11,7 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- # The symbols
14
+ # The instruments
15
15
  class TradingSearchCryptocurrencyPairInstruments200Response
16
16
  attr_accessor :items
17
17
 
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.88'
11
+ VERSION = '2.0.89'
12
12
  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.88
4
+ version: 2.0.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-28 00:00:00.000000000 Z
11
+ date: 2025-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday