snaptrade 1.4.0 → 1.5.0

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: 8dd0bfaa14bf0c6966ef2f18d57aecdbaa3d8d4157060dd80c5f747d51cbfd71
4
- data.tar.gz: a5296ae0d5da64682f7aee91c1eb1923471cad30ab794edad60e93b960c236f9
3
+ metadata.gz: cfbb41c300acc1d64e3c9fea3cc1310822074a131d642ae216325f4eee44d074
4
+ data.tar.gz: 5308f919f05089da3f5312ad996ebecf4e15e0702a3c08e38d4f9b5914c34ecc
5
5
  SHA512:
6
- metadata.gz: 5c029bdde10bbe5223e2bf0c9f6f8147471dc2fd4c69f01e2bb2f3298ace09f6f31dddd79eb33f83c6b5daa78ca48d6024075c3ddf3f0c48a126952dc5832082
7
- data.tar.gz: e96fedd2b6a7aafeaa590550481d6f4dbeb2810e73624690616bca2f00913722e709084a473ce22825fc44a1b63aab069c0f2f5330074e07f1f3e2b204db3ec1
6
+ metadata.gz: 75a9403db777dbb546c91da68706a7b78abaa07fcadea441ff434c3480097cb4f42710a07843c771ad1b7058a2f57f4f49edcec1d8d59fb8cfbed55d97c989d2
7
+ data.tar.gz: f69564daf8529b3b8f6e7884aede1d42d8dd58ea963fa8a03aae991779ce8721e564222940edaf1462a0b6af8e564b1ac11ab99ad280b890bf242f8325df63c3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (1.4.0)
4
+ snaptrade (1.5.0)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -15,7 +15,7 @@ GEM
15
15
  irb (>= 1.5.0)
16
16
  reline (>= 0.3.1)
17
17
  diff-lcs (1.5.0)
18
- faraday (2.7.5)
18
+ faraday (2.7.6)
19
19
  faraday-net_http (>= 2.0, < 3.1)
20
20
  ruby2_keywords (>= 0.0.4)
21
21
  faraday-multipart (1.0.4)
data/README.md CHANGED
@@ -9,7 +9,7 @@ For more information, please visit [https://snaptrade.com/](https://snaptrade.co
9
9
  Add to Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'snaptrade', '~> 1.4.0'
12
+ gem 'snaptrade', '~> 1.5.0'
13
13
  ```
14
14
 
15
15
  ## Getting Started
@@ -13,7 +13,7 @@
13
13
  require 'snaptrade'
14
14
 
15
15
  instance = SnapTrade::MonthlyDividends.new(
16
- date: Sun Jan 23 17:00:00 MST 2022,
16
+ date: Sun Jan 23 16:00:00 PST 2022,
17
17
  dividends: null
18
18
  )
19
19
  ```
@@ -14,7 +14,7 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::NetContributions.new(
17
- date: Sun Jan 23 17:00:00 MST 2022,
17
+ date: Sun Jan 23 16:00:00 PST 2022,
18
18
  contributions: 524.74,
19
19
  currency: CAD
20
20
  )
data/docs/PastValue.md CHANGED
@@ -14,7 +14,7 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::PastValue.new(
17
- date: Sun Jan 23 17:00:00 MST 2022,
17
+ date: Sun Jan 23 16:00:00 PST 2022,
18
18
  value: 52.74,
19
19
  currency: CAD
20
20
  )
@@ -14,8 +14,8 @@
14
14
  require 'snaptrade'
15
15
 
16
16
  instance = SnapTrade::SubPeriodReturnRate.new(
17
- period_start: Sun Jan 23 17:00:00 MST 2022,
18
- period_end: Sun Jan 23 17:00:00 MST 2022,
17
+ period_start: Sun Jan 23 16:00:00 PST 2022,
18
+ period_end: Sun Jan 23 16:00:00 PST 2022,
19
19
  rate_of_return: 0.012312367452
20
20
  )
21
21
  ```
@@ -14,7 +14,7 @@ require 'snaptrade'
14
14
 
15
15
  instance = SnapTrade::TransactionsStatus.new(
16
16
  initial_sync_completed: null,
17
- last_successful_sync: Sun Jan 23 17:00:00 MST 2022
17
+ last_successful_sync: Sun Jan 23 16:00:00 PST 2022
18
18
  )
19
19
  ```
20
20
 
@@ -117,6 +117,9 @@ module SnapTrade
117
117
  # List of attributes with nullable: true
118
118
  def self.openapi_nullable
119
119
  Set.new([
120
+ :'execution_price',
121
+ :'limit_price',
122
+ :'stop_price',
120
123
  ])
121
124
  end
122
125
 
@@ -68,6 +68,7 @@ module SnapTrade
68
68
  # List of attributes with nullable: true
69
69
  def self.openapi_nullable
70
70
  Set.new([
71
+ :'price'
71
72
  ])
72
73
  end
73
74
 
@@ -69,6 +69,7 @@ module SnapTrade
69
69
  # List of attributes with nullable: true
70
70
  def self.openapi_nullable
71
71
  Set.new([
72
+ :'price',
72
73
  :'stop',
73
74
  ])
74
75
  end
@@ -61,6 +61,7 @@ module SnapTrade
61
61
  # List of attributes with nullable: true
62
62
  def self.openapi_nullable
63
63
  Set.new([
64
+ :'price',
64
65
  :'average_purchase_price'
65
66
  ])
66
67
  end
@@ -46,6 +46,7 @@ module SnapTrade
46
46
  # List of attributes with nullable: true
47
47
  def self.openapi_nullable
48
48
  Set.new([
49
+ :'price'
49
50
  ])
50
51
  end
51
52
 
@@ -89,10 +90,6 @@ module SnapTrade
89
90
  invalid_properties.push('invalid value for "time_in_force", time_in_force cannot be nil.')
90
91
  end
91
92
 
92
- if @price.nil?
93
- invalid_properties.push('invalid value for "price", price cannot be nil.')
94
- end
95
-
96
93
  invalid_properties
97
94
  end
98
95
 
@@ -101,7 +98,6 @@ module SnapTrade
101
98
  def valid?
102
99
  return false if @order_type.nil?
103
100
  return false if @time_in_force.nil?
104
- return false if @price.nil?
105
101
  true
106
102
  end
107
103
 
@@ -64,6 +64,7 @@ module SnapTrade
64
64
  # List of attributes with nullable: true
65
65
  def self.openapi_nullable
66
66
  Set.new([
67
+ :'price',
67
68
  :'average_purchase_price'
68
69
  ])
69
70
  end
@@ -82,6 +82,8 @@ module SnapTrade
82
82
  # List of attributes with nullable: true
83
83
  def self.openapi_nullable
84
84
  Set.new([
85
+ :'limit_price',
86
+ :'execution_price',
85
87
  ])
86
88
  end
87
89
 
@@ -60,6 +60,9 @@ module SnapTrade
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
+ :'open_price',
64
+ :'bid_price',
65
+ :'ask_price',
63
66
  ])
64
67
  end
65
68
 
@@ -9,5 +9,5 @@ Contact: api@snaptrade.com
9
9
  =end
10
10
 
11
11
  module SnapTrade
12
- VERSION = '1.4.0'
12
+ VERSION = '1.5.0'
13
13
  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: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday