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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/snaptrade/models/cryptocurrency_pair.rb +1 -1
- data/lib/snaptrade/models/trading_instrument.rb +12 -2
- data/lib/snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response.rb +1 -1
- data/lib/snaptrade/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: 3576aa4c476648b0c5c665897f8f421557a9e130f8926ba44c85a477d10e1a19
|
4
|
+
data.tar.gz: dc796c3d61f25d85dd3513cb734dbd6949f4aa82cc4b9d4a271a0935cd1a2a05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fee5927ebd2bc599b69f22096d156b5deeac92f60e5e32d9e792f676359b8785b80dc06171688adf53d98acb06646a9d248d5ce6a9e8d53332d53d3dd3cc1fb1
|
7
|
+
data.tar.gz: f6423adbcc685f9c91e05874d210499ac10167038c9eb294bb4c6a15c72e04aa123e8073449bf730c63025f0c91c52074972674a8688a6af292e040f94190f7d
|
data/Gemfile.lock
CHANGED
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
|
-
[](https://rubygems.org/gems/snaptrade/versions/2.0.89)
|
10
10
|
[](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.
|
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
|
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
|
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
|
|
data/lib/snaptrade/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2025-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|