snaptrade 2.0.32 → 2.0.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 887242914b86d8378fc839b462051ccc0489d1e2a1ba0b37bc6bff2ad458003a
4
- data.tar.gz: bd3892448dcca278db8625b0df2f88bc81cd53011ee7b93db4823909f2d273c7
3
+ metadata.gz: 5850595b939dd6002902054531b756f0355f067082c8f22428ef8d2ed0fe8cca
4
+ data.tar.gz: 1558b337647677cc79abda65377e9bdca6a70caae86ec26742d37eb4d33d578f
5
5
  SHA512:
6
- metadata.gz: 9f9941bbba13715288cfe8a284dd215fb0d43a89760285651ff7f7f114def7ab938cc79dbdbcd554134017fd448be5944236098aa0831c05304397509dc57cd1
7
- data.tar.gz: a1f13e4ff3b7d3faf8702b6f4c8fda8f82ce5ca4bd78811b2180011f31f8f88d21362a19685c3e245acdfe2c8818a07e1d1ae31e414a1c03b6e38dd81edf98a9
6
+ metadata.gz: 7db59e62afd2e024cf15723d2385a7374ac2660561eea3e30fa46ca0acdabc7bc563060776e44e9291b6b5f0755f50764b44f24151e023c5f4f216b757a163de
7
+ data.tar.gz: 8d373f45a9e72438a8de270fa118c399b8e8dbce9d63e11136c22eccf0d0226f7c2b739325be1d3ed4c8803a3a0efaeb47d0e9af6b76c588f39cf9dfdfe62e08
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.32)
4
+ snaptrade (2.0.33)
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.32-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.32)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.33-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.33)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -70,7 +70,7 @@ Connect brokerage accounts to your app for live positions and trading
70
70
  Add to Gemfile:
71
71
 
72
72
  ```ruby
73
- gem 'snaptrade', '~> 2.0.32'
73
+ gem 'snaptrade', '~> 2.0.33'
74
74
  ```
75
75
 
76
76
  ## Getting Started<a id="getting-started"></a>
@@ -29,6 +29,7 @@ module SnapTrade
29
29
 
30
30
  attr_accessor :meta
31
31
 
32
+ # This field is deprecated.
32
33
  attr_accessor :cash_restrictions
33
34
 
34
35
  attr_accessor :sync_status
@@ -68,7 +69,7 @@ module SnapTrade
68
69
  :'institution_name' => :'String',
69
70
  :'created_date' => :'String',
70
71
  :'meta' => :'Hash<String, Object>',
71
- :'cash_restrictions' => :'Array<CashRestriction>',
72
+ :'cash_restrictions' => :'Array<String>',
72
73
  :'sync_status' => :'AccountSyncStatus',
73
74
  :'balance' => :'AccountBalance'
74
75
  }
@@ -24,7 +24,7 @@ module SnapTrade
24
24
  # List of option positions in the account.
25
25
  attr_accessor :option_positions
26
26
 
27
- # List of recent orders in the account, including both pending and executed orders.
27
+ # List of recent orders in the account, including both pending and executed orders. Note that option orders are included in this list. Option orders will have a null `universal_symbol` field and a non-null `option_symbol` field.
28
28
  attr_accessor :orders
29
29
 
30
30
  attr_accessor :total_value
@@ -11,7 +11,7 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- # Describes a single recent order in an account.
14
+ # Describes a single recent order in an account. Each record here represents a single order leg. For multi-leg orders, there will be multiple records.
15
15
  class AccountOrderRecord
16
16
  # Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
17
17
  attr_accessor :brokerage_order_id
@@ -26,43 +26,46 @@ module SnapTrade
26
26
 
27
27
  attr_accessor :option_symbol
28
28
 
29
- # Trade Action potential values include (but are not limited to) - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
29
+ # The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
30
30
  attr_accessor :action
31
31
 
32
+ # The total number of shares or contracts of the order. This should be the sum of the filled, canceled, and open quantities. Can be a decimal number for fractional shares.
32
33
  attr_accessor :total_quantity
33
34
 
34
- # Trade Units
35
+ # The number of shares or contracts that are still open (waiting for execution). Can be a decimal number for fractional shares.
35
36
  attr_accessor :open_quantity
36
37
 
37
- # Trade Units
38
+ # The number of shares or contracts that have been canceled. Can be a decimal number for fractional shares.
38
39
  attr_accessor :canceled_quantity
39
40
 
40
- # Trade Units
41
+ # The number of shares or contracts that have been filled. Can be a decimal number for fractional shares.
41
42
  attr_accessor :filled_quantity
42
43
 
43
- # Trade Price if limit or stop limit order
44
+ # The price at which the order was executed.
44
45
  attr_accessor :execution_price
45
46
 
46
- # Trade Price if limit or stop limit order
47
+ # The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders.
47
48
  attr_accessor :limit_price
48
49
 
49
- # Stop Price. If stop loss or stop limit order, the price to trigger the stop
50
+ # The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
50
51
  attr_accessor :stop_price
51
52
 
52
- # Order Type potential values include (but are not limited to) - Limit - Market - StopLimit - StopLoss
53
+ # The type of order placed. The most common values are `Market`, `Limit`, `Stop`, and `StopLimit`. We try our best to map brokerage order types to these values. When mapping fails, we will return the brokerage's order type value.
53
54
  attr_accessor :order_type
54
55
 
55
- # Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled * GTD - Good Til Date
56
+ # The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. We try our best to map brokerage time in force values to the following. When mapping fails, we will return the brokerage's time in force value. - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled. - `GTD` - Good Til Date. The order is valid until the specified date.
56
57
  attr_accessor :time_in_force
57
58
 
58
- # Time
59
+ # The time the order was placed. This is the time the order was submitted to the brokerage.
59
60
  attr_accessor :time_placed
60
61
 
62
+ # The time the order was last updated in the brokerage system. This value is not always available from the brokerage.
61
63
  attr_accessor :time_updated
62
64
 
65
+ # The time the order was executed in the brokerage system. This value is not always available from the brokerage.
63
66
  attr_accessor :time_executed
64
67
 
65
- # Time
68
+ # The time the order expires. This value is not always available from the brokerage.
66
69
  attr_accessor :expiry_date
67
70
 
68
71
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -101,8 +104,8 @@ module SnapTrade
101
104
  :'brokerage_order_id' => :'String',
102
105
  :'status' => :'AccountOrderRecordStatus',
103
106
  :'symbol' => :'String',
104
- :'universal_symbol' => :'UniversalSymbol',
105
- :'option_symbol' => :'OptionsSymbol',
107
+ :'universal_symbol' => :'AccountOrderRecordUniversalSymbol',
108
+ :'option_symbol' => :'AccountOrderRecordOptionSymbol',
106
109
  :'action' => :'String',
107
110
  :'total_quantity' => :'Float',
108
111
  :'open_quantity' => :'Float',
@@ -113,10 +116,10 @@ module SnapTrade
113
116
  :'stop_price' => :'Float',
114
117
  :'order_type' => :'String',
115
118
  :'time_in_force' => :'String',
116
- :'time_placed' => :'String',
117
- :'time_updated' => :'String',
118
- :'time_executed' => :'String',
119
- :'expiry_date' => :'String'
119
+ :'time_placed' => :'Time',
120
+ :'time_updated' => :'Time',
121
+ :'time_executed' => :'Time',
122
+ :'expiry_date' => :'Time'
120
123
  }
121
124
  end
122
125
 
@@ -133,6 +136,7 @@ module SnapTrade
133
136
  :'order_type',
134
137
  :'time_updated',
135
138
  :'time_executed',
139
+ :'expiry_date'
136
140
  ])
137
141
  end
138
142
 
@@ -11,26 +11,38 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- # Cash restriction rules that apply to this account when undergoing portfolio rebalance calculations.
15
- class CashRestriction
14
+ # Contains information about the option contract that the order is for. This field is only present for option orders. For stock/ETF/crypto/mutual fund orders, this field will be null and the `universal_symbol` field will be populated.
15
+ class AccountOrderRecordOptionSymbol
16
+ # Unique identifier for the option symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
16
17
  attr_accessor :id
17
18
 
18
- attr_accessor :account
19
+ # The [OCC symbol](https://en.wikipedia.org/wiki/Option_symbol) for the option.
20
+ attr_accessor :ticker
19
21
 
20
- attr_accessor :currency
22
+ # The type of option. Either \"CALL\" or \"PUT\".
23
+ attr_accessor :option_type
21
24
 
22
- attr_accessor :type
25
+ # The option strike price.
26
+ attr_accessor :strike_price
23
27
 
24
- attr_accessor :amount
28
+ # The option expiration date.
29
+ attr_accessor :expiration_date
30
+
31
+ # Whether the option is a mini option. Mini options have 10 underlying shares per contract instead of the standard 100.
32
+ attr_accessor :is_mini_option
33
+
34
+ attr_accessor :underlying_symbol
25
35
 
26
36
  # Attribute mapping from ruby-style variable name to JSON key.
27
37
  def self.attribute_map
28
38
  {
29
39
  :'id' => :'id',
30
- :'account' => :'account',
31
- :'currency' => :'currency',
32
- :'type' => :'type',
33
- :'amount' => :'amount'
40
+ :'ticker' => :'ticker',
41
+ :'option_type' => :'option_type',
42
+ :'strike_price' => :'strike_price',
43
+ :'expiration_date' => :'expiration_date',
44
+ :'is_mini_option' => :'is_mini_option',
45
+ :'underlying_symbol' => :'underlying_symbol'
34
46
  }
35
47
  end
36
48
 
@@ -43,10 +55,12 @@ module SnapTrade
43
55
  def self.openapi_types
44
56
  {
45
57
  :'id' => :'String',
46
- :'account' => :'String',
47
- :'currency' => :'String',
48
- :'type' => :'Type',
49
- :'amount' => :'Float'
58
+ :'ticker' => :'String',
59
+ :'option_type' => :'OptionType',
60
+ :'strike_price' => :'Float',
61
+ :'expiration_date' => :'Date',
62
+ :'is_mini_option' => :'Boolean',
63
+ :'underlying_symbol' => :'UnderlyingSymbol'
50
64
  }
51
65
  end
52
66
 
@@ -56,17 +70,24 @@ module SnapTrade
56
70
  ])
57
71
  end
58
72
 
73
+ # List of class defined in allOf (OpenAPI v3)
74
+ def self.openapi_all_of
75
+ [
76
+ :'OptionsSymbol'
77
+ ]
78
+ end
79
+
59
80
  # Initializes the object
60
81
  # @param [Hash] attributes Model attributes in the form of hash
61
82
  def initialize(attributes = {})
62
83
  if (!attributes.is_a?(Hash))
63
- fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::CashRestriction` initialize method"
84
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::AccountOrderRecordOptionSymbol` initialize method"
64
85
  end
65
86
 
66
87
  # check to see if the attribute exists and convert string to symbol for hash key
67
88
  attributes = attributes.each_with_object({}) { |(k, v), h|
68
89
  if (!self.class.attribute_map.key?(k.to_sym))
69
- fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::CashRestriction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::AccountOrderRecordOptionSymbol`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
91
  end
71
92
  h[k.to_sym] = v
72
93
  }
@@ -75,20 +96,28 @@ module SnapTrade
75
96
  self.id = attributes[:'id']
76
97
  end
77
98
 
78
- if attributes.key?(:'account')
79
- self.account = attributes[:'account']
99
+ if attributes.key?(:'ticker')
100
+ self.ticker = attributes[:'ticker']
101
+ end
102
+
103
+ if attributes.key?(:'option_type')
104
+ self.option_type = attributes[:'option_type']
105
+ end
106
+
107
+ if attributes.key?(:'strike_price')
108
+ self.strike_price = attributes[:'strike_price']
80
109
  end
81
110
 
82
- if attributes.key?(:'currency')
83
- self.currency = attributes[:'currency']
111
+ if attributes.key?(:'expiration_date')
112
+ self.expiration_date = attributes[:'expiration_date']
84
113
  end
85
114
 
86
- if attributes.key?(:'type')
87
- self.type = attributes[:'type']
115
+ if attributes.key?(:'is_mini_option')
116
+ self.is_mini_option = attributes[:'is_mini_option']
88
117
  end
89
118
 
90
- if attributes.key?(:'amount')
91
- self.amount = attributes[:'amount']
119
+ if attributes.key?(:'underlying_symbol')
120
+ self.underlying_symbol = attributes[:'underlying_symbol']
92
121
  end
93
122
  end
94
123
 
@@ -96,12 +125,42 @@ module SnapTrade
96
125
  # @return Array for valid properties with the reasons
97
126
  def list_invalid_properties
98
127
  invalid_properties = Array.new
128
+ if @id.nil?
129
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
130
+ end
131
+
132
+ if @ticker.nil?
133
+ invalid_properties.push('invalid value for "ticker", ticker cannot be nil.')
134
+ end
135
+
136
+ if @option_type.nil?
137
+ invalid_properties.push('invalid value for "option_type", option_type cannot be nil.')
138
+ end
139
+
140
+ if @strike_price.nil?
141
+ invalid_properties.push('invalid value for "strike_price", strike_price cannot be nil.')
142
+ end
143
+
144
+ if @expiration_date.nil?
145
+ invalid_properties.push('invalid value for "expiration_date", expiration_date cannot be nil.')
146
+ end
147
+
148
+ if @underlying_symbol.nil?
149
+ invalid_properties.push('invalid value for "underlying_symbol", underlying_symbol cannot be nil.')
150
+ end
151
+
99
152
  invalid_properties
100
153
  end
101
154
 
102
155
  # Check to see if the all the properties in the model are valid
103
156
  # @return true if the model is valid
104
157
  def valid?
158
+ return false if @id.nil?
159
+ return false if @ticker.nil?
160
+ return false if @option_type.nil?
161
+ return false if @strike_price.nil?
162
+ return false if @expiration_date.nil?
163
+ return false if @underlying_symbol.nil?
105
164
  true
106
165
  end
107
166
 
@@ -111,10 +170,12 @@ module SnapTrade
111
170
  return true if self.equal?(o)
112
171
  self.class == o.class &&
113
172
  id == o.id &&
114
- account == o.account &&
115
- currency == o.currency &&
116
- type == o.type &&
117
- amount == o.amount
173
+ ticker == o.ticker &&
174
+ option_type == o.option_type &&
175
+ strike_price == o.strike_price &&
176
+ expiration_date == o.expiration_date &&
177
+ is_mini_option == o.is_mini_option &&
178
+ underlying_symbol == o.underlying_symbol
118
179
  end
119
180
 
120
181
  # @see the `==` method
@@ -126,7 +187,7 @@ module SnapTrade
126
187
  # Calculates hash code according to all attributes.
127
188
  # @return [Integer] Hash code
128
189
  def hash
129
- [id, account, currency, type, amount].hash
190
+ [id, ticker, option_type, strike_price, expiration_date, is_mini_option, underlying_symbol].hash
130
191
  end
131
192
 
132
193
  # Builds the object from hash
@@ -0,0 +1,346 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'date'
11
+ require 'time'
12
+
13
+ module SnapTrade
14
+ # Contains information about the security that the order is for. This field is only present for stock/ETF/crypto/mutual fund orders. For option orders, this field will be null and the `option_symbol` field will be populated.
15
+ class AccountOrderRecordUniversalSymbol
16
+ # Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
17
+ attr_accessor :id
18
+
19
+ # The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
20
+ attr_accessor :symbol
21
+
22
+ # The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
23
+ attr_accessor :raw_symbol
24
+
25
+ # A human-readable description of the security. This is usually the company name or ETF name.
26
+ attr_accessor :description
27
+
28
+ attr_accessor :currency
29
+
30
+ attr_accessor :exchange
31
+
32
+ attr_accessor :type
33
+
34
+ # This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
35
+ attr_accessor :currencies
36
+
37
+ # This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information. This value should be the same as the `figi_code` in the `figi_instrument` child property.
38
+ attr_accessor :figi_code
39
+
40
+ attr_accessor :figi_instrument
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ def self.attribute_map
44
+ {
45
+ :'id' => :'id',
46
+ :'symbol' => :'symbol',
47
+ :'raw_symbol' => :'raw_symbol',
48
+ :'description' => :'description',
49
+ :'currency' => :'currency',
50
+ :'exchange' => :'exchange',
51
+ :'type' => :'type',
52
+ :'currencies' => :'currencies',
53
+ :'figi_code' => :'figi_code',
54
+ :'figi_instrument' => :'figi_instrument'
55
+ }
56
+ end
57
+
58
+ # Returns all the JSON keys this model knows about
59
+ def self.acceptable_attributes
60
+ attribute_map.values
61
+ end
62
+
63
+ # Attribute type mapping.
64
+ def self.openapi_types
65
+ {
66
+ :'id' => :'String',
67
+ :'symbol' => :'String',
68
+ :'raw_symbol' => :'String',
69
+ :'description' => :'String',
70
+ :'currency' => :'UniversalSymbolCurrency',
71
+ :'exchange' => :'UniversalSymbolExchange',
72
+ :'type' => :'SecurityType',
73
+ :'currencies' => :'Array<Currency>',
74
+ :'figi_code' => :'String',
75
+ :'figi_instrument' => :'SymbolFigiInstrument'
76
+ }
77
+ end
78
+
79
+ # List of attributes with nullable: true
80
+ def self.openapi_nullable
81
+ Set.new([
82
+ :'description',
83
+ :'figi_code',
84
+ :'figi_instrument'
85
+ ])
86
+ end
87
+
88
+ # List of class defined in allOf (OpenAPI v3)
89
+ def self.openapi_all_of
90
+ [
91
+ :'UniversalSymbol'
92
+ ]
93
+ end
94
+
95
+ # Initializes the object
96
+ # @param [Hash] attributes Model attributes in the form of hash
97
+ def initialize(attributes = {})
98
+ if (!attributes.is_a?(Hash))
99
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::AccountOrderRecordUniversalSymbol` initialize method"
100
+ end
101
+
102
+ # check to see if the attribute exists and convert string to symbol for hash key
103
+ attributes = attributes.each_with_object({}) { |(k, v), h|
104
+ if (!self.class.attribute_map.key?(k.to_sym))
105
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::AccountOrderRecordUniversalSymbol`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
106
+ end
107
+ h[k.to_sym] = v
108
+ }
109
+
110
+ if attributes.key?(:'id')
111
+ self.id = attributes[:'id']
112
+ end
113
+
114
+ if attributes.key?(:'symbol')
115
+ self.symbol = attributes[:'symbol']
116
+ end
117
+
118
+ if attributes.key?(:'raw_symbol')
119
+ self.raw_symbol = attributes[:'raw_symbol']
120
+ end
121
+
122
+ if attributes.key?(:'description')
123
+ self.description = attributes[:'description']
124
+ end
125
+
126
+ if attributes.key?(:'currency')
127
+ self.currency = attributes[:'currency']
128
+ end
129
+
130
+ if attributes.key?(:'exchange')
131
+ self.exchange = attributes[:'exchange']
132
+ end
133
+
134
+ if attributes.key?(:'type')
135
+ self.type = attributes[:'type']
136
+ end
137
+
138
+ if attributes.key?(:'currencies')
139
+ if (value = attributes[:'currencies']).is_a?(Array)
140
+ self.currencies = value
141
+ end
142
+ end
143
+
144
+ if attributes.key?(:'figi_code')
145
+ self.figi_code = attributes[:'figi_code']
146
+ end
147
+
148
+ if attributes.key?(:'figi_instrument')
149
+ self.figi_instrument = attributes[:'figi_instrument']
150
+ end
151
+ end
152
+
153
+ # Show invalid properties with the reasons. Usually used together with valid?
154
+ # @return Array for valid properties with the reasons
155
+ def list_invalid_properties
156
+ invalid_properties = Array.new
157
+ if @id.nil?
158
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
159
+ end
160
+
161
+ if @symbol.nil?
162
+ invalid_properties.push('invalid value for "symbol", symbol cannot be nil.')
163
+ end
164
+
165
+ if @raw_symbol.nil?
166
+ invalid_properties.push('invalid value for "raw_symbol", raw_symbol cannot be nil.')
167
+ end
168
+
169
+ if @currency.nil?
170
+ invalid_properties.push('invalid value for "currency", currency cannot be nil.')
171
+ end
172
+
173
+ if @type.nil?
174
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
175
+ end
176
+
177
+ if @currencies.nil?
178
+ invalid_properties.push('invalid value for "currencies", currencies cannot be nil.')
179
+ end
180
+
181
+ invalid_properties
182
+ end
183
+
184
+ # Check to see if the all the properties in the model are valid
185
+ # @return true if the model is valid
186
+ def valid?
187
+ return false if @id.nil?
188
+ return false if @symbol.nil?
189
+ return false if @raw_symbol.nil?
190
+ return false if @currency.nil?
191
+ return false if @type.nil?
192
+ return false if @currencies.nil?
193
+ true
194
+ end
195
+
196
+ # Checks equality by comparing each attribute.
197
+ # @param [Object] Object to be compared
198
+ def ==(o)
199
+ return true if self.equal?(o)
200
+ self.class == o.class &&
201
+ id == o.id &&
202
+ symbol == o.symbol &&
203
+ raw_symbol == o.raw_symbol &&
204
+ description == o.description &&
205
+ currency == o.currency &&
206
+ exchange == o.exchange &&
207
+ type == o.type &&
208
+ currencies == o.currencies &&
209
+ figi_code == o.figi_code &&
210
+ figi_instrument == o.figi_instrument
211
+ end
212
+
213
+ # @see the `==` method
214
+ # @param [Object] Object to be compared
215
+ def eql?(o)
216
+ self == o
217
+ end
218
+
219
+ # Calculates hash code according to all attributes.
220
+ # @return [Integer] Hash code
221
+ def hash
222
+ [id, symbol, raw_symbol, description, currency, exchange, type, currencies, figi_code, figi_instrument].hash
223
+ end
224
+
225
+ # Builds the object from hash
226
+ # @param [Hash] attributes Model attributes in the form of hash
227
+ # @return [Object] Returns the model itself
228
+ def self.build_from_hash(attributes)
229
+ new.build_from_hash(attributes)
230
+ end
231
+
232
+ # Builds the object from hash
233
+ # @param [Hash] attributes Model attributes in the form of hash
234
+ # @return [Object] Returns the model itself
235
+ def build_from_hash(attributes)
236
+ return nil unless attributes.is_a?(Hash)
237
+ attributes = attributes.transform_keys(&:to_sym)
238
+ self.class.openapi_types.each_pair do |key, type|
239
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
240
+ self.send("#{key}=", nil)
241
+ elsif type =~ /\AArray<(.*)>/i
242
+ # check to ensure the input is an array given that the attribute
243
+ # is documented as an array but the input is not
244
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
245
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
246
+ end
247
+ elsif !attributes[self.class.attribute_map[key]].nil?
248
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
249
+ end
250
+ end
251
+
252
+ self
253
+ end
254
+
255
+ # Deserializes the data based on type
256
+ # @param string type Data type
257
+ # @param string value Value to be deserialized
258
+ # @return [Object] Deserialized data
259
+ def _deserialize(type, value)
260
+ case type.to_sym
261
+ when :Time
262
+ Time.parse(value)
263
+ when :Date
264
+ Date.parse(value)
265
+ when :String
266
+ value.to_s
267
+ when :Integer
268
+ value.to_i
269
+ when :Float
270
+ value.to_f
271
+ when :Boolean
272
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
273
+ true
274
+ else
275
+ false
276
+ end
277
+ when :Object
278
+ # generic object (usually a Hash), return directly
279
+ value
280
+ when /\AArray<(?<inner_type>.+)>\z/
281
+ inner_type = Regexp.last_match[:inner_type]
282
+ value.map { |v| _deserialize(inner_type, v) }
283
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
284
+ k_type = Regexp.last_match[:k_type]
285
+ v_type = Regexp.last_match[:v_type]
286
+ {}.tap do |hash|
287
+ value.each do |k, v|
288
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
289
+ end
290
+ end
291
+ else # model
292
+ # models (e.g. Pet) or oneOf
293
+ klass = SnapTrade.const_get(type)
294
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
295
+ end
296
+ end
297
+
298
+ # Returns the string representation of the object
299
+ # @return [String] String presentation of the object
300
+ def to_s
301
+ to_hash.to_s
302
+ end
303
+
304
+ # to_body is an alias to to_hash (backward compatibility)
305
+ # @return [Hash] Returns the object in the form of hash
306
+ def to_body
307
+ to_hash
308
+ end
309
+
310
+ # Returns the object in the form of hash
311
+ # @return [Hash] Returns the object in the form of hash
312
+ def to_hash
313
+ hash = {}
314
+ self.class.attribute_map.each_pair do |attr, param|
315
+ value = self.send(attr)
316
+ if value.nil?
317
+ is_nullable = self.class.openapi_nullable.include?(attr)
318
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
319
+ end
320
+
321
+ hash[param] = _to_hash(value)
322
+ end
323
+ hash
324
+ end
325
+
326
+ # Outputs non-array value in the form of hash
327
+ # For object, use to_hash. Otherwise, just return the value
328
+ # @param [Object] value Any valid value
329
+ # @return [Hash] Returns the value in the form of hash
330
+ def _to_hash(value)
331
+ if value.is_a?(Array)
332
+ value.compact.map { |v| _to_hash(v) }
333
+ elsif value.is_a?(Hash)
334
+ {}.tap do |hash|
335
+ value.each { |k, v| hash[k] = _to_hash(v) }
336
+ end
337
+ elsif value.respond_to? :to_hash
338
+ value.to_hash
339
+ else
340
+ value
341
+ end
342
+ end
343
+
344
+ end
345
+
346
+ end
@@ -39,7 +39,7 @@ module SnapTrade
39
39
  def self.openapi_types
40
40
  {
41
41
  :'id' => :'String',
42
- :'type' => :'BrokerageAuthorizationTypeReadOnlyType',
42
+ :'type' => :'Type',
43
43
  :'auth_type' => :'AuthType',
44
44
  :'brokerage' => :'BrokerageAuthorizationTypeReadOnlyBrokerage'
45
45
  }
@@ -12,7 +12,7 @@ require 'time'
12
12
 
13
13
  module SnapTrade
14
14
  class MonthlyDividends
15
- # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format)
15
+ # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
16
16
  attr_accessor :date
17
17
 
18
18
  attr_accessor :dividends
@@ -12,7 +12,7 @@ require 'time'
12
12
 
13
13
  module SnapTrade
14
14
  class NetContributions
15
- # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format)
15
+ # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
16
16
  attr_accessor :date
17
17
 
18
18
  attr_accessor :contributions
@@ -15,10 +15,10 @@ module SnapTrade
15
15
  LIMIT = "Limit".freeze
16
16
  MARKET = "Market".freeze
17
17
  STOP_LIMIT = "StopLimit".freeze
18
- STOP_LOSS = "StopLoss".freeze
18
+ STOP = "Stop".freeze
19
19
 
20
20
  def self.all_vars
21
- @all_vars ||= [LIMIT, MARKET, STOP_LIMIT, STOP_LOSS].freeze
21
+ @all_vars ||= [LIMIT, MARKET, STOP_LIMIT, STOP].freeze
22
22
  end
23
23
 
24
24
  # Builds the enum from string
@@ -12,7 +12,7 @@ require 'time'
12
12
 
13
13
  module SnapTrade
14
14
  class PastValue
15
- # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format)
15
+ # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
16
16
  attr_accessor :date
17
17
 
18
18
  attr_accessor :value
@@ -74,7 +74,7 @@ module SnapTrade
74
74
  :'institution_name' => :'String',
75
75
  :'balance' => :'SnapTradeHoldingsAccountAccountIdBalance',
76
76
  :'meta' => :'Hash<String, Object>',
77
- :'cash_restrictions' => :'Array<CashRestriction>',
77
+ :'cash_restrictions' => :'Array<String>',
78
78
  :'created_date' => :'Time'
79
79
  }
80
80
  end
@@ -23,7 +23,7 @@ module SnapTrade
23
23
 
24
24
  attr_accessor :closed_quantity
25
25
 
26
- # Order Type potential values include (but are not limited to) - Limit - Market - StopLimit - StopLoss
26
+ # Order Type potential values include (but are not limited to) - Limit - Market - StopLimit - Stop
27
27
  attr_accessor :order_type
28
28
 
29
29
  # Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled * GTD - Good Til Date
@@ -12,10 +12,10 @@ require 'time'
12
12
 
13
13
  module SnapTrade
14
14
  class SubPeriodReturnRate
15
- # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format)
15
+ # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
16
16
  attr_accessor :period_start
17
17
 
18
- # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format)
18
+ # Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
19
19
  attr_accessor :period_end
20
20
 
21
21
  # The return rate for the given period
@@ -12,11 +12,11 @@ require 'time'
12
12
 
13
13
  module SnapTrade
14
14
  class Type
15
- ALLOCATE_MAX = "ALLOCATE_MAX".freeze
16
- RETAIN_MIN = "RETAIN_MIN".freeze
15
+ READ = "read".freeze
16
+ TRADE = "trade".freeze
17
17
 
18
18
  def self.all_vars
19
- @all_vars ||= [ALLOCATE_MAX, RETAIN_MIN].freeze
19
+ @all_vars ||= [READ, TRADE].freeze
20
20
  end
21
21
 
22
22
  # Builds the enum from string
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.32'
11
+ VERSION = '2.0.33'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -22,7 +22,9 @@ require 'snaptrade/models/account_balance_total'
22
22
  require 'snaptrade/models/account_holdings'
23
23
  require 'snaptrade/models/account_holdings_account'
24
24
  require 'snaptrade/models/account_order_record'
25
+ require 'snaptrade/models/account_order_record_option_symbol'
25
26
  require 'snaptrade/models/account_order_record_status'
27
+ require 'snaptrade/models/account_order_record_universal_symbol'
26
28
  require 'snaptrade/models/account_simple'
27
29
  require 'snaptrade/models/account_sync_status'
28
30
  require 'snaptrade/models/action_strict'
@@ -36,9 +38,7 @@ require 'snaptrade/models/brokerage_authorization_disabled_confirmation'
36
38
  require 'snaptrade/models/brokerage_authorization_refresh_confirmation'
37
39
  require 'snaptrade/models/brokerage_authorization_type_read_only'
38
40
  require 'snaptrade/models/brokerage_authorization_type_read_only_brokerage'
39
- require 'snaptrade/models/brokerage_authorization_type_read_only_type'
40
41
  require 'snaptrade/models/brokerage_type'
41
- require 'snaptrade/models/cash_restriction'
42
42
  require 'snaptrade/models/connection_portal_version'
43
43
  require 'snaptrade/models/connection_type'
44
44
  require 'snaptrade/models/connections_session_events200_response_inner'
@@ -11,13 +11,13 @@ require 'spec_helper'
11
11
  require 'json'
12
12
  require 'date'
13
13
 
14
- # Unit tests for SnapTrade::CashRestriction
15
- describe SnapTrade::CashRestriction do
16
- let(:instance) { SnapTrade::CashRestriction.new }
14
+ # Unit tests for SnapTrade::AccountOrderRecordOptionSymbol
15
+ describe SnapTrade::AccountOrderRecordOptionSymbol do
16
+ let(:instance) { SnapTrade::AccountOrderRecordOptionSymbol.new }
17
17
 
18
- describe 'test an instance of CashRestriction' do
19
- it 'should create an instance of CashRestriction' do
20
- expect(instance).to be_instance_of(SnapTrade::CashRestriction)
18
+ describe 'test an instance of AccountOrderRecordOptionSymbol' do
19
+ it 'should create an instance of AccountOrderRecordOptionSymbol' do
20
+ expect(instance).to be_instance_of(SnapTrade::AccountOrderRecordOptionSymbol)
21
21
  end
22
22
  end
23
23
  describe 'test attribute "id"' do
@@ -26,25 +26,37 @@ describe SnapTrade::CashRestriction do
26
26
  end
27
27
  end
28
28
 
29
- describe 'test attribute "account"' do
29
+ describe 'test attribute "ticker"' do
30
30
  it 'should work' do
31
31
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
32
  end
33
33
  end
34
34
 
35
- describe 'test attribute "currency"' do
35
+ describe 'test attribute "option_type"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "type"' do
41
+ describe 'test attribute "strike_price"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "amount"' do
47
+ describe 'test attribute "expiration_date"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "is_mini_option"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "underlying_symbol"' do
48
60
  it 'should work' do
49
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
62
  end
@@ -0,0 +1,83 @@
1
+ =begin
2
+ #SnapTrade
3
+
4
+ #Connect brokerage accounts to your app for live positions and trading
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@snaptrade.com
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SnapTrade::AccountOrderRecordUniversalSymbol
15
+ describe SnapTrade::AccountOrderRecordUniversalSymbol do
16
+ let(:instance) { SnapTrade::AccountOrderRecordUniversalSymbol.new }
17
+
18
+ describe 'test an instance of AccountOrderRecordUniversalSymbol' do
19
+ it 'should create an instance of AccountOrderRecordUniversalSymbol' do
20
+ expect(instance).to be_instance_of(SnapTrade::AccountOrderRecordUniversalSymbol)
21
+ end
22
+ end
23
+ describe 'test attribute "id"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ describe 'test attribute "symbol"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
35
+ describe 'test attribute "raw_symbol"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "description"' 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
+
47
+ describe 'test attribute "currency"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "exchange"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "type"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "currencies"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "figi_code"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "figi_instrument"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ 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.32
4
+ version: 2.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-14 00:00:00.000000000 Z
11
+ date: 2024-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -101,7 +101,9 @@ files:
101
101
  - lib/snaptrade/models/account_holdings.rb
102
102
  - lib/snaptrade/models/account_holdings_account.rb
103
103
  - lib/snaptrade/models/account_order_record.rb
104
+ - lib/snaptrade/models/account_order_record_option_symbol.rb
104
105
  - lib/snaptrade/models/account_order_record_status.rb
106
+ - lib/snaptrade/models/account_order_record_universal_symbol.rb
105
107
  - lib/snaptrade/models/account_simple.rb
106
108
  - lib/snaptrade/models/account_sync_status.rb
107
109
  - lib/snaptrade/models/action_strict.rb
@@ -115,9 +117,7 @@ files:
115
117
  - lib/snaptrade/models/brokerage_authorization_refresh_confirmation.rb
116
118
  - lib/snaptrade/models/brokerage_authorization_type_read_only.rb
117
119
  - lib/snaptrade/models/brokerage_authorization_type_read_only_brokerage.rb
118
- - lib/snaptrade/models/brokerage_authorization_type_read_only_type.rb
119
120
  - lib/snaptrade/models/brokerage_type.rb
120
- - lib/snaptrade/models/cash_restriction.rb
121
121
  - lib/snaptrade/models/connection_portal_version.rb
122
122
  - lib/snaptrade/models/connection_type.rb
123
123
  - lib/snaptrade/models/connections_session_events200_response_inner.rb
@@ -220,8 +220,10 @@ files:
220
220
  - spec/models/account_balance_total_spec.rb
221
221
  - spec/models/account_holdings_account_spec.rb
222
222
  - spec/models/account_holdings_spec.rb
223
+ - spec/models/account_order_record_option_symbol_spec.rb
223
224
  - spec/models/account_order_record_spec.rb
224
225
  - spec/models/account_order_record_status_spec.rb
226
+ - spec/models/account_order_record_universal_symbol_spec.rb
225
227
  - spec/models/account_simple_spec.rb
226
228
  - spec/models/account_spec.rb
227
229
  - spec/models/account_sync_status_spec.rb
@@ -235,10 +237,8 @@ files:
235
237
  - spec/models/brokerage_authorization_spec.rb
236
238
  - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
237
239
  - spec/models/brokerage_authorization_type_read_only_spec.rb
238
- - spec/models/brokerage_authorization_type_read_only_type_spec.rb
239
240
  - spec/models/brokerage_spec.rb
240
241
  - spec/models/brokerage_type_spec.rb
241
- - spec/models/cash_restriction_spec.rb
242
242
  - spec/models/connection_portal_version_spec.rb
243
243
  - spec/models/connection_type_spec.rb
244
244
  - spec/models/connections_session_events200_response_inner_spec.rb
@@ -377,7 +377,6 @@ test_files:
377
377
  - spec/models/snap_trade_login_user_request_body_spec.rb
378
378
  - spec/models/manual_trade_form_spec.rb
379
379
  - spec/models/option_strategy_legs_inner_spec.rb
380
- - spec/models/brokerage_authorization_type_read_only_type_spec.rb
381
380
  - spec/models/session_event_type_spec.rb
382
381
  - spec/models/account_holdings_spec.rb
383
382
  - spec/models/exchange_spec.rb
@@ -418,7 +417,7 @@ test_files:
418
417
  - spec/models/underlying_symbol_type_spec.rb
419
418
  - spec/models/security_type_spec.rb
420
419
  - spec/models/amount_spec.rb
421
- - spec/models/cash_restriction_spec.rb
420
+ - spec/models/account_order_record_option_symbol_spec.rb
422
421
  - spec/models/account_simple_spec.rb
423
422
  - spec/models/symbols_quotes_inner_spec.rb
424
423
  - spec/models/account_balance_spec.rb
@@ -452,6 +451,7 @@ test_files:
452
451
  - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
453
452
  - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
454
453
  - spec/models/option_chain_inner_spec.rb
454
+ - spec/models/account_order_record_universal_symbol_spec.rb
455
455
  - spec/models/connections_session_events200_response_inner_spec.rb
456
456
  - spec/models/figi_instrument_spec.rb
457
457
  - spec/models/encrypted_response_encrypted_message_data_spec.rb
@@ -1,37 +0,0 @@
1
- =begin
2
- #SnapTrade
3
-
4
- #Connect brokerage accounts to your app for live positions and trading
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: api@snaptrade.com
8
- =end
9
-
10
- require 'date'
11
- require 'time'
12
-
13
- module SnapTrade
14
- class BrokerageAuthorizationTypeReadOnlyType
15
- READ = "read".freeze
16
- TRADE = "trade".freeze
17
-
18
- def self.all_vars
19
- @all_vars ||= [READ, TRADE].freeze
20
- end
21
-
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
28
-
29
- # Builds the enum from string
30
- # @param [String] The enum value in the form of the string
31
- # @return [String] The enum value
32
- def build_from_hash(value)
33
- return value if BrokerageAuthorizationTypeReadOnlyType.all_vars.include?(value)
34
- raise "Invalid ENUM value #{value} for class #BrokerageAuthorizationTypeReadOnlyType"
35
- end
36
- end
37
- end
@@ -1,23 +0,0 @@
1
- =begin
2
- #SnapTrade
3
-
4
- #Connect brokerage accounts to your app for live positions and trading
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: api@snaptrade.com
8
- =end
9
-
10
- require 'spec_helper'
11
- require 'json'
12
- require 'date'
13
-
14
- # Unit tests for SnapTrade::BrokerageAuthorizationTypeReadOnlyType
15
- describe SnapTrade::BrokerageAuthorizationTypeReadOnlyType do
16
- let(:instance) { SnapTrade::BrokerageAuthorizationTypeReadOnlyType.new }
17
-
18
- describe 'test an instance of BrokerageAuthorizationTypeReadOnlyType' do
19
- it 'should create an instance of BrokerageAuthorizationTypeReadOnlyType' do
20
- expect(instance).to be_instance_of(SnapTrade::BrokerageAuthorizationTypeReadOnlyType)
21
- end
22
- end
23
- end