snaptrade 2.0.99 → 2.0.100

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: c48bd0756faff5c29b1642adbf405f37f66338645c30b1ddfd598271ea449284
4
- data.tar.gz: 1c33444711aa6be4af2627f32d9678921d11392baa7f5af6c2978bf562d6e362
3
+ metadata.gz: 1d4c656316835408d1a923f701e4ff833d5cb8d91d0257918bb873f03a352189
4
+ data.tar.gz: b75fbf129ccdb4db0485c01dd61ddc619ca74d42f47cb04866e568bd22771b89
5
5
  SHA512:
6
- metadata.gz: 5495bc4bf0b6b179e96de1440fef9fe142c1d54bfab486de895abbd4a95d8cf4c1e444e801733f6cf35e9f8df035db8ac61dea3e57f32f65cd5ce30b147074bb
7
- data.tar.gz: 0a6ae06dc8e9aeb0bc787d73ff1d1332b3713aab687e3b1ee9e3e21193efaa262a1c6d0ac665501ad6ec2ab1fa038d140b6125a2f685f8dd22e6d72206c6c969
6
+ metadata.gz: ee6a52a9bc4909bb378abc8c935f0ee1c5ebf512965d3354e44d14e20bcf01068928c8e1a367630122f976e99790e76e1ddc713616d7299d57ab17ff7f52e22d
7
+ data.tar.gz: 4b1d7dbd00e5f022f6c958807c667e37df2589e610857b0e249f008dc6a5e2ebcca6d4a33bf979f4185e8c2557f2e928ce745f3168074447b0eadc7619833006
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.99)
4
+ snaptrade (2.0.100)
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.99-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.99)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.100-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.100)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -82,7 +82,7 @@ Connect brokerage accounts to your app for live positions and trading
82
82
  Add to Gemfile:
83
83
 
84
84
  ```ruby
85
- gem 'snaptrade', '~> 2.0.99'
85
+ gem 'snaptrade', '~> 2.0.100'
86
86
  ```
87
87
 
88
88
  ## Getting Started<a id="getting-started"></a>
@@ -1963,8 +1963,8 @@ provided, otherwise must be provided.
1963
1963
 
1964
1964
  ##### symbol: `String`<a id="symbol-string"></a>
1965
1965
  The security's trading ticker symbol. This currently supports stock symbols and
1966
- Options symbols in the 21 character OCC format. For example \"AAPL
1967
- 131124C00240000\" represents a call option on AAPL expiring on 2024-11-13 with a
1966
+ Options symbols in the 21 character OCC format. For example `AAPL
1967
+ 131124C00240000` represents a call option on AAPL expiring on 2024-11-13 with a
1968
1968
  strike price of $240. For more information on the OCC format, see
1969
1969
  [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If 'symbol' is
1970
1970
  provided, then 'universal_symbol_id' must be 'null'.
@@ -2145,10 +2145,10 @@ p result
2145
2145
  The action describes the intent or side of a trade. This is either `BUY` or
2146
2146
  `SELL`.
2147
2147
 
2148
- ##### type: [`Type`](./lib/snaptrade/models/type.rb)<a id="type-typelibsnaptrademodelstyperb"></a>
2148
+ ##### type: [`SimpleOrderFormType`](./lib/snaptrade/models/simple_order_form_type.rb)<a id="type-simpleorderformtypelibsnaptrademodelssimple_order_form_typerb"></a>
2149
2149
  The type of order to place.
2150
2150
 
2151
- ##### time_in_force: [`SimpleOrderRequestBodyTimeInForce`](./lib/snaptrade/models/simple_order_request_body_time_in_force.rb)<a id="time_in_force-simpleorderrequestbodytimeinforcelibsnaptrademodelssimple_order_request_body_time_in_forcerb"></a>
2151
+ ##### time_in_force: [`SimpleOrderFormTimeInForce`](./lib/snaptrade/models/simple_order_form_time_in_force.rb)<a id="time_in_force-simpleorderformtimeinforcelibsnaptrademodelssimple_order_form_time_in_forcerb"></a>
2152
2152
  The Time in Force type for the order. This field indicates how long the order
2153
2153
  will remain active before it is executed or expires. - `GTC` - Good Til
2154
2154
  Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or
@@ -2226,10 +2226,10 @@ p result
2226
2226
  The action describes the intent or side of a trade. This is either `BUY` or
2227
2227
  `SELL`.
2228
2228
 
2229
- ##### type: [`Type`](./lib/snaptrade/models/type.rb)<a id="type-typelibsnaptrademodelstyperb"></a>
2229
+ ##### type: [`SimpleOrderFormType`](./lib/snaptrade/models/simple_order_form_type.rb)<a id="type-simpleorderformtypelibsnaptrademodelssimple_order_form_typerb"></a>
2230
2230
  The type of order to place.
2231
2231
 
2232
- ##### time_in_force: [`SimpleOrderRequestBodyTimeInForce`](./lib/snaptrade/models/simple_order_request_body_time_in_force.rb)<a id="time_in_force-simpleorderrequestbodytimeinforcelibsnaptrademodelssimple_order_request_body_time_in_forcerb"></a>
2232
+ ##### time_in_force: [`SimpleOrderFormTimeInForce`](./lib/snaptrade/models/simple_order_form_time_in_force.rb)<a id="time_in_force-simpleorderformtimeinforcelibsnaptrademodelssimple_order_form_time_in_forcerb"></a>
2233
2233
  The Time in Force type for the order. This field indicates how long the order
2234
2234
  will remain active before it is executed or expires. - `GTC` - Good Til
2235
2235
  Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or
@@ -807,7 +807,7 @@ module SnapTrade
807
807
  # @param user_id [String]
808
808
  # @param user_secret [String]
809
809
  # @param universal_symbol_id [String] The universal symbol ID of the security to trade. Must be 'null' if `symbol` is provided, otherwise must be provided.
810
- # @param symbol [String] The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example \"AAPL 131124C00240000\" represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If 'symbol' is provided, then 'universal_symbol_id' must be 'null'.
810
+ # @param symbol [String] The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 131124C00240000` represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If 'symbol' is provided, then 'universal_symbol_id' must be 'null'.
811
811
  # @param price [Float] The limit price for `Limit` and `StopLimit` orders.
812
812
  # @param stop [Float] The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
813
813
  # @param units [Float] For Equity orders, this represents the number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided. If placing an Option order, this field represents the number of contracts to buy or sell. (e.g., 1 contract = 100 shares).
@@ -846,7 +846,7 @@ module SnapTrade
846
846
  # @param user_id [String]
847
847
  # @param user_secret [String]
848
848
  # @param universal_symbol_id [String] The universal symbol ID of the security to trade. Must be 'null' if `symbol` is provided, otherwise must be provided.
849
- # @param symbol [String] The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example \"AAPL 131124C00240000\" represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If 'symbol' is provided, then 'universal_symbol_id' must be 'null'.
849
+ # @param symbol [String] The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 131124C00240000` represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If 'symbol' is provided, then 'universal_symbol_id' must be 'null'.
850
850
  # @param price [Float] The limit price for `Limit` and `StopLimit` orders.
851
851
  # @param stop [Float] The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
852
852
  # @param units [Float] For Equity orders, this represents the number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided. If placing an Option order, this field represents the number of contracts to buy or sell. (e.g., 1 contract = 100 shares).
@@ -1223,8 +1223,8 @@ module SnapTrade
1223
1223
  #
1224
1224
  # @param instrument [TradingInstrument]
1225
1225
  # @param side [ActionStrict] The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
1226
- # @param type [Type] The type of order to place.
1227
- # @param time_in_force [SimpleOrderRequestBodyTimeInForce] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `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.
1226
+ # @param type [SimpleOrderFormType] The type of order to place.
1227
+ # @param time_in_force [SimpleOrderFormTimeInForce] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `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.
1228
1228
  # @param amount [Float] The amount of the base currency to buy or sell.
1229
1229
  # @param user_id [String]
1230
1230
  # @param user_secret [String]
@@ -1233,7 +1233,7 @@ module SnapTrade
1233
1233
  # @param stop_price [Float] The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET or TAKE_PROFIT_LIMIT.
1234
1234
  # @param post_only [Boolean] Valid and required only for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1235
1235
  # @param expiration_date [Time] The expiration date of the order. Required if the time_in_force is GTD.
1236
- # @param body [TradingPlaceSimpleOrderRequest]
1236
+ # @param body [SimpleOrderForm]
1237
1237
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1238
1238
  def place_simple_order(instrument:, side:, type:, time_in_force:, amount:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, post_only: SENTINEL, expiration_date: SENTINEL, extra: {})
1239
1239
  _body = {}
@@ -1246,8 +1246,8 @@ module SnapTrade
1246
1246
  _body[:stop_price] = stop_price if stop_price != SENTINEL
1247
1247
  _body[:post_only] = post_only if post_only != SENTINEL
1248
1248
  _body[:expiration_date] = expiration_date if expiration_date != SENTINEL
1249
- trading_place_simple_order_request = _body
1250
- data, _status_code, _headers = place_simple_order_with_http_info_impl(user_id, user_secret, account_id, trading_place_simple_order_request, extra)
1249
+ simple_order_form = _body
1250
+ data, _status_code, _headers = place_simple_order_with_http_info_impl(user_id, user_secret, account_id, simple_order_form, extra)
1251
1251
  data
1252
1252
  end
1253
1253
 
@@ -1258,8 +1258,8 @@ module SnapTrade
1258
1258
  #
1259
1259
  # @param instrument [TradingInstrument]
1260
1260
  # @param side [ActionStrict] The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
1261
- # @param type [Type] The type of order to place.
1262
- # @param time_in_force [SimpleOrderRequestBodyTimeInForce] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `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.
1261
+ # @param type [SimpleOrderFormType] The type of order to place.
1262
+ # @param time_in_force [SimpleOrderFormTimeInForce] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `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.
1263
1263
  # @param amount [Float] The amount of the base currency to buy or sell.
1264
1264
  # @param user_id [String]
1265
1265
  # @param user_secret [String]
@@ -1268,7 +1268,7 @@ module SnapTrade
1268
1268
  # @param stop_price [Float] The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET or TAKE_PROFIT_LIMIT.
1269
1269
  # @param post_only [Boolean] Valid and required only for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1270
1270
  # @param expiration_date [Time] The expiration date of the order. Required if the time_in_force is GTD.
1271
- # @param body [TradingPlaceSimpleOrderRequest]
1271
+ # @param body [SimpleOrderForm]
1272
1272
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1273
1273
  def place_simple_order_with_http_info(instrument:, side:, type:, time_in_force:, amount:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, post_only: SENTINEL, expiration_date: SENTINEL, extra: {})
1274
1274
  _body = {}
@@ -1281,8 +1281,8 @@ module SnapTrade
1281
1281
  _body[:stop_price] = stop_price if stop_price != SENTINEL
1282
1282
  _body[:post_only] = post_only if post_only != SENTINEL
1283
1283
  _body[:expiration_date] = expiration_date if expiration_date != SENTINEL
1284
- trading_place_simple_order_request = _body
1285
- place_simple_order_with_http_info_impl(user_id, user_secret, account_id, trading_place_simple_order_request, extra)
1284
+ simple_order_form = _body
1285
+ place_simple_order_with_http_info_impl(user_id, user_secret, account_id, simple_order_form, extra)
1286
1286
  end
1287
1287
 
1288
1288
  # Place order
@@ -1290,11 +1290,11 @@ module SnapTrade
1290
1290
  # @param user_id [String]
1291
1291
  # @param user_secret [String]
1292
1292
  # @param account_id [String]
1293
- # @param trading_place_simple_order_request [TradingPlaceSimpleOrderRequest]
1293
+ # @param simple_order_form [SimpleOrderForm]
1294
1294
  # @param [Hash] opts the optional parameters
1295
1295
  # @return [OrderUpdatedResponse]
1296
- private def place_simple_order_impl(user_id, user_secret, account_id, trading_place_simple_order_request, opts = {})
1297
- data, _status_code, _headers = place_simple_order_with_http_info(user_id, user_secret, account_id, trading_place_simple_order_request, opts)
1296
+ private def place_simple_order_impl(user_id, user_secret, account_id, simple_order_form, opts = {})
1297
+ data, _status_code, _headers = place_simple_order_with_http_info(user_id, user_secret, account_id, simple_order_form, opts)
1298
1298
  data
1299
1299
  end
1300
1300
 
@@ -1303,10 +1303,10 @@ module SnapTrade
1303
1303
  # @param user_id [String]
1304
1304
  # @param user_secret [String]
1305
1305
  # @param account_id [String]
1306
- # @param trading_place_simple_order_request [TradingPlaceSimpleOrderRequest]
1306
+ # @param simple_order_form [SimpleOrderForm]
1307
1307
  # @param [Hash] opts the optional parameters
1308
1308
  # @return [Array<(OrderUpdatedResponse, Integer, Hash)>] OrderUpdatedResponse data, response status code and response headers
1309
- private def place_simple_order_with_http_info_impl(user_id, user_secret, account_id, trading_place_simple_order_request, opts = {})
1309
+ private def place_simple_order_with_http_info_impl(user_id, user_secret, account_id, simple_order_form, opts = {})
1310
1310
  if @api_client.config.debugging
1311
1311
  @api_client.config.logger.debug 'Calling API: TradingApi.place_simple_order ...'
1312
1312
  end
@@ -1322,9 +1322,9 @@ module SnapTrade
1322
1322
  if @api_client.config.client_side_validation && account_id.nil?
1323
1323
  fail ArgumentError, "Missing the required parameter 'account_id' when calling TradingApi.place_simple_order"
1324
1324
  end
1325
- # verify the required parameter 'trading_place_simple_order_request' is set
1326
- if @api_client.config.client_side_validation && trading_place_simple_order_request.nil?
1327
- fail ArgumentError, "Missing the required parameter 'trading_place_simple_order_request' when calling TradingApi.place_simple_order"
1325
+ # verify the required parameter 'simple_order_form' is set
1326
+ if @api_client.config.client_side_validation && simple_order_form.nil?
1327
+ fail ArgumentError, "Missing the required parameter 'simple_order_form' when calling TradingApi.place_simple_order"
1328
1328
  end
1329
1329
  # resource path
1330
1330
  local_var_path = '/accounts/{accountId}/trading/simple'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
@@ -1348,7 +1348,7 @@ module SnapTrade
1348
1348
  form_params = opts[:form_params] || {}
1349
1349
 
1350
1350
  # http body (model)
1351
- post_body = opts[:debug_body] || @api_client.object_to_http_body(trading_place_simple_order_request)
1351
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_order_form)
1352
1352
 
1353
1353
  # return_type
1354
1354
  return_type = opts[:debug_return_type] || 'OrderUpdatedResponse'
@@ -1380,8 +1380,8 @@ module SnapTrade
1380
1380
  #
1381
1381
  # @param instrument [TradingInstrument]
1382
1382
  # @param side [ActionStrict] The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
1383
- # @param type [Type] The type of order to place.
1384
- # @param time_in_force [SimpleOrderRequestBodyTimeInForce] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `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.
1383
+ # @param type [SimpleOrderFormType] The type of order to place.
1384
+ # @param time_in_force [SimpleOrderFormTimeInForce] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `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.
1385
1385
  # @param amount [Float] The amount of the base currency to buy or sell.
1386
1386
  # @param user_id [String]
1387
1387
  # @param user_secret [String]
@@ -1390,7 +1390,7 @@ module SnapTrade
1390
1390
  # @param stop_price [Float] The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET or TAKE_PROFIT_LIMIT.
1391
1391
  # @param post_only [Boolean] Valid and required only for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1392
1392
  # @param expiration_date [Time] The expiration date of the order. Required if the time_in_force is GTD.
1393
- # @param body [TradingPlaceSimpleOrderRequest]
1393
+ # @param body [SimpleOrderForm]
1394
1394
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1395
1395
  def preview_simple_order(instrument:, side:, type:, time_in_force:, amount:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, post_only: SENTINEL, expiration_date: SENTINEL, extra: {})
1396
1396
  _body = {}
@@ -1403,8 +1403,8 @@ module SnapTrade
1403
1403
  _body[:stop_price] = stop_price if stop_price != SENTINEL
1404
1404
  _body[:post_only] = post_only if post_only != SENTINEL
1405
1405
  _body[:expiration_date] = expiration_date if expiration_date != SENTINEL
1406
- trading_place_simple_order_request = _body
1407
- data, _status_code, _headers = preview_simple_order_with_http_info_impl(user_id, user_secret, account_id, trading_place_simple_order_request, extra)
1406
+ simple_order_form = _body
1407
+ data, _status_code, _headers = preview_simple_order_with_http_info_impl(user_id, user_secret, account_id, simple_order_form, extra)
1408
1408
  data
1409
1409
  end
1410
1410
 
@@ -1414,8 +1414,8 @@ module SnapTrade
1414
1414
  #
1415
1415
  # @param instrument [TradingInstrument]
1416
1416
  # @param side [ActionStrict] The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
1417
- # @param type [Type] The type of order to place.
1418
- # @param time_in_force [SimpleOrderRequestBodyTimeInForce] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `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.
1417
+ # @param type [SimpleOrderFormType] The type of order to place.
1418
+ # @param time_in_force [SimpleOrderFormTimeInForce] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. - `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.
1419
1419
  # @param amount [Float] The amount of the base currency to buy or sell.
1420
1420
  # @param user_id [String]
1421
1421
  # @param user_secret [String]
@@ -1424,7 +1424,7 @@ module SnapTrade
1424
1424
  # @param stop_price [Float] The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET or TAKE_PROFIT_LIMIT.
1425
1425
  # @param post_only [Boolean] Valid and required only for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
1426
1426
  # @param expiration_date [Time] The expiration date of the order. Required if the time_in_force is GTD.
1427
- # @param body [TradingPlaceSimpleOrderRequest]
1427
+ # @param body [SimpleOrderForm]
1428
1428
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
1429
1429
  def preview_simple_order_with_http_info(instrument:, side:, type:, time_in_force:, amount:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, post_only: SENTINEL, expiration_date: SENTINEL, extra: {})
1430
1430
  _body = {}
@@ -1437,8 +1437,8 @@ module SnapTrade
1437
1437
  _body[:stop_price] = stop_price if stop_price != SENTINEL
1438
1438
  _body[:post_only] = post_only if post_only != SENTINEL
1439
1439
  _body[:expiration_date] = expiration_date if expiration_date != SENTINEL
1440
- trading_place_simple_order_request = _body
1441
- preview_simple_order_with_http_info_impl(user_id, user_secret, account_id, trading_place_simple_order_request, extra)
1440
+ simple_order_form = _body
1441
+ preview_simple_order_with_http_info_impl(user_id, user_secret, account_id, simple_order_form, extra)
1442
1442
  end
1443
1443
 
1444
1444
  # Preview order
@@ -1446,11 +1446,11 @@ module SnapTrade
1446
1446
  # @param user_id [String]
1447
1447
  # @param user_secret [String]
1448
1448
  # @param account_id [String]
1449
- # @param trading_place_simple_order_request [TradingPlaceSimpleOrderRequest]
1449
+ # @param simple_order_form [SimpleOrderForm]
1450
1450
  # @param [Hash] opts the optional parameters
1451
1451
  # @return [SimpleOrderPreview]
1452
- private def preview_simple_order_impl(user_id, user_secret, account_id, trading_place_simple_order_request, opts = {})
1453
- data, _status_code, _headers = preview_simple_order_with_http_info(user_id, user_secret, account_id, trading_place_simple_order_request, opts)
1452
+ private def preview_simple_order_impl(user_id, user_secret, account_id, simple_order_form, opts = {})
1453
+ data, _status_code, _headers = preview_simple_order_with_http_info(user_id, user_secret, account_id, simple_order_form, opts)
1454
1454
  data
1455
1455
  end
1456
1456
 
@@ -1459,10 +1459,10 @@ module SnapTrade
1459
1459
  # @param user_id [String]
1460
1460
  # @param user_secret [String]
1461
1461
  # @param account_id [String]
1462
- # @param trading_place_simple_order_request [TradingPlaceSimpleOrderRequest]
1462
+ # @param simple_order_form [SimpleOrderForm]
1463
1463
  # @param [Hash] opts the optional parameters
1464
1464
  # @return [Array<(SimpleOrderPreview, Integer, Hash)>] SimpleOrderPreview data, response status code and response headers
1465
- private def preview_simple_order_with_http_info_impl(user_id, user_secret, account_id, trading_place_simple_order_request, opts = {})
1465
+ private def preview_simple_order_with_http_info_impl(user_id, user_secret, account_id, simple_order_form, opts = {})
1466
1466
  if @api_client.config.debugging
1467
1467
  @api_client.config.logger.debug 'Calling API: TradingApi.preview_simple_order ...'
1468
1468
  end
@@ -1478,9 +1478,9 @@ module SnapTrade
1478
1478
  if @api_client.config.client_side_validation && account_id.nil?
1479
1479
  fail ArgumentError, "Missing the required parameter 'account_id' when calling TradingApi.preview_simple_order"
1480
1480
  end
1481
- # verify the required parameter 'trading_place_simple_order_request' is set
1482
- if @api_client.config.client_side_validation && trading_place_simple_order_request.nil?
1483
- fail ArgumentError, "Missing the required parameter 'trading_place_simple_order_request' when calling TradingApi.preview_simple_order"
1481
+ # verify the required parameter 'simple_order_form' is set
1482
+ if @api_client.config.client_side_validation && simple_order_form.nil?
1483
+ fail ArgumentError, "Missing the required parameter 'simple_order_form' when calling TradingApi.preview_simple_order"
1484
1484
  end
1485
1485
  # resource path
1486
1486
  local_var_path = '/accounts/{accountId}/trading/simple/preview'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
@@ -1504,7 +1504,7 @@ module SnapTrade
1504
1504
  form_params = opts[:form_params] || {}
1505
1505
 
1506
1506
  # http body (model)
1507
- post_body = opts[:debug_body] || @api_client.object_to_http_body(trading_place_simple_order_request)
1507
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_order_form)
1508
1508
 
1509
1509
  # return_type
1510
1510
  return_type = opts[:debug_return_type] || 'SimpleOrderPreview'
@@ -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
  }
@@ -22,7 +22,7 @@ module SnapTrade
22
22
  # The universal symbol ID of the security to trade. Must be 'null' if `symbol` is provided, otherwise must be provided.
23
23
  attr_accessor :universal_symbol_id
24
24
 
25
- # The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example \"AAPL 131124C00240000\" represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If 'symbol' is provided, then 'universal_symbol_id' must be 'null'.
25
+ # The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 131124C00240000` represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If 'symbol' is provided, then 'universal_symbol_id' must be 'null'.
26
26
  attr_accessor :symbol
27
27
 
28
28
  # The type of order to place. - For `Limit` and `StopLimit` orders, the `price` field is required. - For `Stop` and `StopLimit` orders, the `stop` field is required.
@@ -12,7 +12,7 @@ require 'time'
12
12
 
13
13
  module SnapTrade
14
14
  class MlegTradingInstrument
15
- # The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example \"AAPL 131124C00240000\" represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
15
+ # The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL 131124C00240000` represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
16
16
  attr_accessor :symbol
17
17
 
18
18
  # The instrument's type
@@ -11,7 +11,7 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- class TradingPlaceSimpleOrderRequest
14
+ class SimpleOrderForm
15
15
  attr_accessor :instrument
16
16
 
17
17
  # The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
@@ -63,8 +63,8 @@ module SnapTrade
63
63
  {
64
64
  :'instrument' => :'TradingInstrument',
65
65
  :'side' => :'ActionStrict',
66
- :'type' => :'Type',
67
- :'time_in_force' => :'SimpleOrderRequestBodyTimeInForce',
66
+ :'type' => :'SimpleOrderFormType',
67
+ :'time_in_force' => :'SimpleOrderFormTimeInForce',
68
68
  :'amount' => :'Float',
69
69
  :'limit_price' => :'Float',
70
70
  :'stop_price' => :'Float',
@@ -83,13 +83,13 @@ module SnapTrade
83
83
  # @param [Hash] attributes Model attributes in the form of hash
84
84
  def initialize(attributes = {})
85
85
  if (!attributes.is_a?(Hash))
86
- fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::TradingPlaceSimpleOrderRequest` initialize method"
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::SimpleOrderForm` initialize method"
87
87
  end
88
88
 
89
89
  # check to see if the attribute exists and convert string to symbol for hash key
90
90
  attributes = attributes.each_with_object({}) { |(k, v), h|
91
91
  if (!self.class.attribute_map.key?(k.to_sym))
92
- fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::TradingPlaceSimpleOrderRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::SimpleOrderForm`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
93
  end
94
94
  h[k.to_sym] = v
95
95
  }
@@ -11,7 +11,7 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- class SimpleOrderRequestBodyTimeInForce
14
+ class SimpleOrderFormTimeInForce
15
15
  GTC = "GTC".freeze
16
16
  FOK = "FOK".freeze
17
17
  IOC = "IOC".freeze
@@ -32,8 +32,8 @@ module SnapTrade
32
32
  # @param [String] The enum value in the form of the string
33
33
  # @return [String] The enum value
34
34
  def build_from_hash(value)
35
- return value if SimpleOrderRequestBodyTimeInForce.all_vars.include?(value)
36
- raise "Invalid ENUM value #{value} for class #SimpleOrderRequestBodyTimeInForce"
35
+ return value if SimpleOrderFormTimeInForce.all_vars.include?(value)
36
+ raise "Invalid ENUM value #{value} for class #SimpleOrderFormTimeInForce"
37
37
  end
38
38
  end
39
39
  end
@@ -11,12 +11,16 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- class BrokerageAuthorizationTypeReadOnlyType
15
- READ = "read".freeze
16
- TRADE = "trade".freeze
14
+ class SimpleOrderFormType
15
+ MARKET = "MARKET".freeze
16
+ LIMIT = "LIMIT".freeze
17
+ STOP_LOSS_MARKET = "STOP_LOSS_MARKET".freeze
18
+ STOP_LOSS_LIMIT = "STOP_LOSS_LIMIT".freeze
19
+ TAKE_PROFIT_MARKET = "TAKE_PROFIT_MARKET".freeze
20
+ TAKE_PROFIT_LIMIT = "TAKE_PROFIT_LIMIT".freeze
17
21
 
18
22
  def self.all_vars
19
- @all_vars ||= [READ, TRADE].freeze
23
+ @all_vars ||= [MARKET, LIMIT, STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET, TAKE_PROFIT_LIMIT].freeze
20
24
  end
21
25
 
22
26
  # Builds the enum from string
@@ -30,8 +34,8 @@ module SnapTrade
30
34
  # @param [String] The enum value in the form of the string
31
35
  # @return [String] The enum value
32
36
  def build_from_hash(value)
33
- return value if BrokerageAuthorizationTypeReadOnlyType.all_vars.include?(value)
34
- raise "Invalid ENUM value #{value} for class #BrokerageAuthorizationTypeReadOnlyType"
37
+ return value if SimpleOrderFormType.all_vars.include?(value)
38
+ raise "Invalid ENUM value #{value} for class #SimpleOrderFormType"
35
39
  end
36
40
  end
37
41
  end
@@ -12,15 +12,11 @@ require 'time'
12
12
 
13
13
  module SnapTrade
14
14
  class Type
15
- MARKET = "MARKET".freeze
16
- LIMIT = "LIMIT".freeze
17
- STOP_LOSS_MARKET = "STOP_LOSS_MARKET".freeze
18
- STOP_LOSS_LIMIT = "STOP_LOSS_LIMIT".freeze
19
- TAKE_PROFIT_MARKET = "TAKE_PROFIT_MARKET".freeze
20
- TAKE_PROFIT_LIMIT = "TAKE_PROFIT_LIMIT".freeze
15
+ READ = "read".freeze
16
+ TRADE = "trade".freeze
21
17
 
22
18
  def self.all_vars
23
- @all_vars ||= [MARKET, LIMIT, STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET, TAKE_PROFIT_LIMIT].freeze
19
+ @all_vars ||= [READ, TRADE].freeze
24
20
  end
25
21
 
26
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.99'
11
+ VERSION = '2.0.100'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -46,7 +46,6 @@ require 'snaptrade/models/brokerage_authorization_disabled_confirmation'
46
46
  require 'snaptrade/models/brokerage_authorization_refresh_confirmation'
47
47
  require 'snaptrade/models/brokerage_authorization_type_read_only'
48
48
  require 'snaptrade/models/brokerage_authorization_type_read_only_brokerage'
49
- require 'snaptrade/models/brokerage_authorization_type_read_only_type'
50
49
  require 'snaptrade/models/brokerage_type'
51
50
  require 'snaptrade/models/child_brokerage_order_ids'
52
51
  require 'snaptrade/models/connection_portal_version'
@@ -123,9 +122,11 @@ require 'snaptrade/models/recent_orders_response'
123
122
  require 'snaptrade/models/security_type'
124
123
  require 'snaptrade/models/session_event'
125
124
  require 'snaptrade/models/session_event_type'
125
+ require 'snaptrade/models/simple_order_form'
126
+ require 'snaptrade/models/simple_order_form_time_in_force'
127
+ require 'snaptrade/models/simple_order_form_type'
126
128
  require 'snaptrade/models/simple_order_preview'
127
129
  require 'snaptrade/models/simple_order_preview_estimated_fee'
128
- require 'snaptrade/models/simple_order_request_body_time_in_force'
129
130
  require 'snaptrade/models/snap_trade_holdings_account'
130
131
  require 'snaptrade/models/snap_trade_holdings_total_value'
131
132
  require 'snaptrade/models/snap_trade_login_user_request_body'
@@ -150,7 +151,6 @@ require 'snaptrade/models/timeframe'
150
151
  require 'snaptrade/models/trading_cancel_user_account_order_request'
151
152
  require 'snaptrade/models/trading_instrument'
152
153
  require 'snaptrade/models/trading_instrument_type'
153
- require 'snaptrade/models/trading_place_simple_order_request'
154
154
  require 'snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response'
155
155
  require 'snaptrade/models/transactions_status'
156
156
  require 'snaptrade/models/type'
@@ -167,7 +167,7 @@ describe 'TradingApi' do
167
167
  # @param user_id
168
168
  # @param user_secret
169
169
  # @param account_id
170
- # @param trading_place_simple_order_request
170
+ # @param simple_order_form
171
171
  # @param [Hash] opts the optional parameters
172
172
  # @return [OrderUpdatedResponse]
173
173
  describe 'place_simple_order test' do
@@ -182,7 +182,7 @@ describe 'TradingApi' do
182
182
  # @param user_id
183
183
  # @param user_secret
184
184
  # @param account_id
185
- # @param trading_place_simple_order_request
185
+ # @param simple_order_form
186
186
  # @param [Hash] opts the optional parameters
187
187
  # @return [SimpleOrderPreview]
188
188
  describe 'preview_simple_order test' do
@@ -11,13 +11,13 @@ require 'spec_helper'
11
11
  require 'json'
12
12
  require 'date'
13
13
 
14
- # Unit tests for SnapTrade::TradingPlaceSimpleOrderRequest
15
- describe SnapTrade::TradingPlaceSimpleOrderRequest do
16
- let(:instance) { SnapTrade::TradingPlaceSimpleOrderRequest.new }
14
+ # Unit tests for SnapTrade::SimpleOrderForm
15
+ describe SnapTrade::SimpleOrderForm do
16
+ let(:instance) { SnapTrade::SimpleOrderForm.new }
17
17
 
18
- describe 'test an instance of TradingPlaceSimpleOrderRequest' do
19
- it 'should create an instance of TradingPlaceSimpleOrderRequest' do
20
- expect(instance).to be_instance_of(SnapTrade::TradingPlaceSimpleOrderRequest)
18
+ describe 'test an instance of SimpleOrderForm' do
19
+ it 'should create an instance of SimpleOrderForm' do
20
+ expect(instance).to be_instance_of(SnapTrade::SimpleOrderForm)
21
21
  end
22
22
  end
23
23
  describe 'test attribute "instrument"' do
@@ -0,0 +1,23 @@
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::SimpleOrderFormTimeInForce
15
+ describe SnapTrade::SimpleOrderFormTimeInForce do
16
+ let(:instance) { SnapTrade::SimpleOrderFormTimeInForce.new }
17
+
18
+ describe 'test an instance of SimpleOrderFormTimeInForce' do
19
+ it 'should create an instance of SimpleOrderFormTimeInForce' do
20
+ expect(instance).to be_instance_of(SnapTrade::SimpleOrderFormTimeInForce)
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,23 @@
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::SimpleOrderFormType
15
+ describe SnapTrade::SimpleOrderFormType do
16
+ let(:instance) { SnapTrade::SimpleOrderFormType.new }
17
+
18
+ describe 'test an instance of SimpleOrderFormType' do
19
+ it 'should create an instance of SimpleOrderFormType' do
20
+ expect(instance).to be_instance_of(SnapTrade::SimpleOrderFormType)
21
+ end
22
+ end
23
+ 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.99
4
+ version: 2.0.100
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-07 00:00:00.000000000 Z
11
+ date: 2025-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -125,7 +125,6 @@ files:
125
125
  - lib/snaptrade/models/brokerage_authorization_refresh_confirmation.rb
126
126
  - lib/snaptrade/models/brokerage_authorization_type_read_only.rb
127
127
  - lib/snaptrade/models/brokerage_authorization_type_read_only_brokerage.rb
128
- - lib/snaptrade/models/brokerage_authorization_type_read_only_type.rb
129
128
  - lib/snaptrade/models/brokerage_type.rb
130
129
  - lib/snaptrade/models/child_brokerage_order_ids.rb
131
130
  - lib/snaptrade/models/connection_portal_version.rb
@@ -202,9 +201,11 @@ files:
202
201
  - lib/snaptrade/models/security_type.rb
203
202
  - lib/snaptrade/models/session_event.rb
204
203
  - lib/snaptrade/models/session_event_type.rb
204
+ - lib/snaptrade/models/simple_order_form.rb
205
+ - lib/snaptrade/models/simple_order_form_time_in_force.rb
206
+ - lib/snaptrade/models/simple_order_form_type.rb
205
207
  - lib/snaptrade/models/simple_order_preview.rb
206
208
  - lib/snaptrade/models/simple_order_preview_estimated_fee.rb
207
- - lib/snaptrade/models/simple_order_request_body_time_in_force.rb
208
209
  - lib/snaptrade/models/snap_trade_holdings_account.rb
209
210
  - lib/snaptrade/models/snap_trade_holdings_total_value.rb
210
211
  - lib/snaptrade/models/snap_trade_login_user_request_body.rb
@@ -229,7 +230,6 @@ files:
229
230
  - lib/snaptrade/models/trading_cancel_user_account_order_request.rb
230
231
  - lib/snaptrade/models/trading_instrument.rb
231
232
  - lib/snaptrade/models/trading_instrument_type.rb
232
- - lib/snaptrade/models/trading_place_simple_order_request.rb
233
233
  - lib/snaptrade/models/trading_search_cryptocurrency_pair_instruments200_response.rb
234
234
  - lib/snaptrade/models/transactions_status.rb
235
235
  - lib/snaptrade/models/type.rb
@@ -283,7 +283,6 @@ files:
283
283
  - spec/models/brokerage_authorization_spec.rb
284
284
  - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
285
285
  - spec/models/brokerage_authorization_type_read_only_spec.rb
286
- - spec/models/brokerage_authorization_type_read_only_type_spec.rb
287
286
  - spec/models/brokerage_spec.rb
288
287
  - spec/models/brokerage_type_spec.rb
289
288
  - spec/models/child_brokerage_order_ids_spec.rb
@@ -361,9 +360,11 @@ files:
361
360
  - spec/models/security_type_spec.rb
362
361
  - spec/models/session_event_spec.rb
363
362
  - spec/models/session_event_type_spec.rb
363
+ - spec/models/simple_order_form_spec.rb
364
+ - spec/models/simple_order_form_time_in_force_spec.rb
365
+ - spec/models/simple_order_form_type_spec.rb
364
366
  - spec/models/simple_order_preview_estimated_fee_spec.rb
365
367
  - spec/models/simple_order_preview_spec.rb
366
- - spec/models/simple_order_request_body_time_in_force_spec.rb
367
368
  - spec/models/snap_trade_holdings_account_spec.rb
368
369
  - spec/models/snap_trade_holdings_total_value_spec.rb
369
370
  - spec/models/snap_trade_login_user_request_body_spec.rb
@@ -388,7 +389,6 @@ files:
388
389
  - spec/models/trading_cancel_user_account_order_request_spec.rb
389
390
  - spec/models/trading_instrument_spec.rb
390
391
  - spec/models/trading_instrument_type_spec.rb
391
- - spec/models/trading_place_simple_order_request_spec.rb
392
392
  - spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
393
393
  - spec/models/transactions_status_spec.rb
394
394
  - spec/models/type_spec.rb
@@ -448,7 +448,6 @@ test_files:
448
448
  - spec/models/account_order_record_universal_symbol_spec.rb
449
449
  - spec/models/encrypted_response_encrypted_message_data_spec.rb
450
450
  - spec/models/action_strict_spec.rb
451
- - spec/models/trading_place_simple_order_request_spec.rb
452
451
  - spec/models/status_spec.rb
453
452
  - spec/models/strategy_quotes_spec.rb
454
453
  - spec/models/mleg_action_strict_spec.rb
@@ -456,6 +455,7 @@ test_files:
456
455
  - spec/models/snap_trade_holdings_account_spec.rb
457
456
  - spec/models/universal_activity_spec.rb
458
457
  - spec/models/brokerage_type_spec.rb
458
+ - spec/models/simple_order_form_spec.rb
459
459
  - spec/models/account_order_record_quote_currency_spec.rb
460
460
  - spec/models/child_brokerage_order_ids_spec.rb
461
461
  - spec/models/mleg_trade_form_spec.rb
@@ -493,6 +493,7 @@ test_files:
493
493
  - spec/models/strategy_quotes_greek_spec.rb
494
494
  - spec/models/manual_trade_replace_form_spec.rb
495
495
  - spec/models/trading_cancel_user_account_order_request_spec.rb
496
+ - spec/models/simple_order_form_time_in_force_spec.rb
496
497
  - spec/models/universal_symbol_spec.rb
497
498
  - spec/models/user_i_dand_secret_spec.rb
498
499
  - spec/models/model403_feature_not_enabled_response_spec.rb
@@ -544,7 +545,6 @@ test_files:
544
545
  - spec/models/mleg_leg_spec.rb
545
546
  - spec/models/account_balance_spec.rb
546
547
  - spec/models/partner_data_spec.rb
547
- - spec/models/simple_order_request_body_time_in_force_spec.rb
548
548
  - spec/models/currency_spec.rb
549
549
  - spec/models/account_order_record_option_symbol_spec.rb
550
550
  - spec/models/symbol_exchange_spec.rb
@@ -563,6 +563,7 @@ test_files:
563
563
  - spec/models/trading_instrument_type_spec.rb
564
564
  - spec/models/option_leg_spec.rb
565
565
  - spec/models/pagination_details_spec.rb
566
+ - spec/models/simple_order_form_type_spec.rb
566
567
  - spec/models/login_redirect_uri_spec.rb
567
568
  - spec/models/account_order_record_status_spec.rb
568
569
  - spec/models/manual_trade_symbol_spec.rb
@@ -582,6 +583,5 @@ test_files:
582
583
  - spec/models/figi_instrument_spec.rb
583
584
  - spec/models/simple_order_preview_estimated_fee_spec.rb
584
585
  - spec/models/strategy_order_record_spec.rb
585
- - spec/models/brokerage_authorization_type_read_only_type_spec.rb
586
586
  - spec/models/account_order_record_quote_universal_symbol_spec.rb
587
587
  - spec/spec_helper.rb
@@ -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
@@ -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::SimpleOrderRequestBodyTimeInForce
15
- describe SnapTrade::SimpleOrderRequestBodyTimeInForce do
16
- let(:instance) { SnapTrade::SimpleOrderRequestBodyTimeInForce.new }
17
-
18
- describe 'test an instance of SimpleOrderRequestBodyTimeInForce' do
19
- it 'should create an instance of SimpleOrderRequestBodyTimeInForce' do
20
- expect(instance).to be_instance_of(SnapTrade::SimpleOrderRequestBodyTimeInForce)
21
- end
22
- end
23
- end