snaptrade 2.0.97 → 2.0.99

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: 3d85b7c41adfc96433dc0647446ca0a06af335eca4d14ba704f2fa2be66976cb
4
- data.tar.gz: 5e11bf04d7bab5fe89527a37f79cd82be851b6e7edd504cea567ecea9a0544c4
3
+ metadata.gz: c48bd0756faff5c29b1642adbf405f37f66338645c30b1ddfd598271ea449284
4
+ data.tar.gz: 1c33444711aa6be4af2627f32d9678921d11392baa7f5af6c2978bf562d6e362
5
5
  SHA512:
6
- metadata.gz: 6c2885a53d3b1c5126b9f8fb5e351628a656e24692ce4b430376525b9a7ed7be6e8c639682304c3802f39160835a7947b0cc879349e851e8511f9778a9fd7e32
7
- data.tar.gz: 86ab887a30d642e320ac8792b565db91b1e75d5000a923e1937843eb298726dcb936ac62ab329f53d29a75abefc690cff57044aa2df3a9866a6fb1150a392e32
6
+ metadata.gz: 5495bc4bf0b6b179e96de1440fef9fe142c1d54bfab486de895abbd4a95d8cf4c1e444e801733f6cf35e9f8df035db8ac61dea3e57f32f65cd5ce30b147074bb
7
+ data.tar.gz: 0a6ae06dc8e9aeb0bc787d73ff1d1332b3713aab687e3b1ee9e3e21193efaa262a1c6d0ac665501ad6ec2ab1fa038d140b6125a2f685f8dd22e6d72206c6c969
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.97)
4
+ snaptrade (2.0.99)
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.97-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.97)
9
+ [![npm](https://img.shields.io/badge/gem-v2.0.99-blue)](https://rubygems.org/gems/snaptrade/versions/2.0.99)
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.97'
85
+ gem 'snaptrade', '~> 2.0.99'
86
86
  ```
87
87
 
88
88
  ## Getting Started<a id="getting-started"></a>
@@ -2004,13 +2004,13 @@ Places a multi-leg option order. Only supported on certain option trading broker
2004
2004
 
2005
2005
  ```ruby
2006
2006
  result = snaptrade.trading.place_mleg_order(
2007
- type: "MARKET",
2007
+ order_type: "MARKET",
2008
2008
  time_in_force: "Day",
2009
2009
  legs: [
2010
2010
  {
2011
2011
  "instrument" => {
2012
2012
  "symbol" => "PBI 250718C00006000",
2013
- "type" => "OPTION",
2013
+ "instrument_type" => "OPTION",
2014
2014
  },
2015
2015
  "action" => "BUY_TO_OPEN",
2016
2016
  "units" => 1,
@@ -2027,7 +2027,7 @@ p result
2027
2027
 
2028
2028
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
2029
2029
 
2030
- ##### type: [`MlegOrderTypeStrict`](./lib/snaptrade/models/mleg_order_type_strict.rb)<a id="type-mlegordertypestrictlibsnaptrademodelsmleg_order_type_strictrb"></a>
2030
+ ##### order_type: [`MlegOrderTypeStrict`](./lib/snaptrade/models/mleg_order_type_strict.rb)<a id="order_type-mlegordertypestrictlibsnaptrademodelsmleg_order_type_strictrb"></a>
2031
2031
  The type of order to place.
2032
2032
 
2033
2033
  ##### time_in_force: [`TimeInForceStrict`](./lib/snaptrade/models/time_in_force_strict.rb)<a id="time_in_force-timeinforcestrictlibsnaptrademodelstime_in_force_strictrb"></a>
@@ -956,7 +956,7 @@ module SnapTrade
956
956
  #
957
957
  # Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
958
958
  #
959
- # @param type [MlegOrderTypeStrict] The type of order to place.
959
+ # @param order_type [MlegOrderTypeStrict] The type of order to place.
960
960
  # @param time_in_force [TimeInForceStrict] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `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.
961
961
  # @param legs [Array<MlegLeg>]
962
962
  # @param user_id [String]
@@ -964,17 +964,17 @@ module SnapTrade
964
964
  # @param account_id [String]
965
965
  # @param limit_price [Float] The limit price. Required if the order type is LIMIT, STOP_LOSS_LIMIT.
966
966
  # @param stop_price [Float] The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT.
967
- # @param body [TradingPlaceMlegOrderRequest]
967
+ # @param body [MlegTradeForm]
968
968
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
969
- def place_mleg_order(type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, extra: {})
969
+ def place_mleg_order(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, extra: {})
970
970
  _body = {}
971
- _body[:type] = type if type != SENTINEL
971
+ _body[:order_type] = order_type if order_type != SENTINEL
972
972
  _body[:time_in_force] = time_in_force if time_in_force != SENTINEL
973
973
  _body[:limit_price] = limit_price if limit_price != SENTINEL
974
974
  _body[:stop_price] = stop_price if stop_price != SENTINEL
975
975
  _body[:legs] = legs if legs != SENTINEL
976
- trading_place_mleg_order_request = _body
977
- data, _status_code, _headers = place_mleg_order_with_http_info_impl(user_id, user_secret, account_id, trading_place_mleg_order_request, extra)
976
+ mleg_trade_form = _body
977
+ data, _status_code, _headers = place_mleg_order_with_http_info_impl(user_id, user_secret, account_id, mleg_trade_form, extra)
978
978
  data
979
979
  end
980
980
 
@@ -982,7 +982,7 @@ module SnapTrade
982
982
  #
983
983
  # Places a multi-leg option order. Only supported on certain option trading brokerages. https://snaptrade.notion.site/brokerages has information on brokerage trading support
984
984
  #
985
- # @param type [MlegOrderTypeStrict] The type of order to place.
985
+ # @param order_type [MlegOrderTypeStrict] The type of order to place.
986
986
  # @param time_in_force [TimeInForceStrict] The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `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.
987
987
  # @param legs [Array<MlegLeg>]
988
988
  # @param user_id [String]
@@ -990,17 +990,17 @@ module SnapTrade
990
990
  # @param account_id [String]
991
991
  # @param limit_price [Float] The limit price. Required if the order type is LIMIT, STOP_LOSS_LIMIT.
992
992
  # @param stop_price [Float] The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT.
993
- # @param body [TradingPlaceMlegOrderRequest]
993
+ # @param body [MlegTradeForm]
994
994
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
995
- def place_mleg_order_with_http_info(type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, extra: {})
995
+ def place_mleg_order_with_http_info(order_type:, time_in_force:, legs:, user_id:, user_secret:, account_id:, limit_price: SENTINEL, stop_price: SENTINEL, extra: {})
996
996
  _body = {}
997
- _body[:type] = type if type != SENTINEL
997
+ _body[:order_type] = order_type if order_type != SENTINEL
998
998
  _body[:time_in_force] = time_in_force if time_in_force != SENTINEL
999
999
  _body[:limit_price] = limit_price if limit_price != SENTINEL
1000
1000
  _body[:stop_price] = stop_price if stop_price != SENTINEL
1001
1001
  _body[:legs] = legs if legs != SENTINEL
1002
- trading_place_mleg_order_request = _body
1003
- place_mleg_order_with_http_info_impl(user_id, user_secret, account_id, trading_place_mleg_order_request, extra)
1002
+ mleg_trade_form = _body
1003
+ place_mleg_order_with_http_info_impl(user_id, user_secret, account_id, mleg_trade_form, extra)
1004
1004
  end
1005
1005
 
1006
1006
  # Place multi-leg option order
@@ -1008,11 +1008,11 @@ module SnapTrade
1008
1008
  # @param user_id [String]
1009
1009
  # @param user_secret [String]
1010
1010
  # @param account_id [String]
1011
- # @param trading_place_mleg_order_request [TradingPlaceMlegOrderRequest]
1011
+ # @param mleg_trade_form [MlegTradeForm]
1012
1012
  # @param [Hash] opts the optional parameters
1013
1013
  # @return [MlegOrderResponse]
1014
- private def place_mleg_order_impl(user_id, user_secret, account_id, trading_place_mleg_order_request, opts = {})
1015
- data, _status_code, _headers = place_mleg_order_with_http_info(user_id, user_secret, account_id, trading_place_mleg_order_request, opts)
1014
+ private def place_mleg_order_impl(user_id, user_secret, account_id, mleg_trade_form, opts = {})
1015
+ data, _status_code, _headers = place_mleg_order_with_http_info(user_id, user_secret, account_id, mleg_trade_form, opts)
1016
1016
  data
1017
1017
  end
1018
1018
 
@@ -1021,10 +1021,10 @@ module SnapTrade
1021
1021
  # @param user_id [String]
1022
1022
  # @param user_secret [String]
1023
1023
  # @param account_id [String]
1024
- # @param trading_place_mleg_order_request [TradingPlaceMlegOrderRequest]
1024
+ # @param mleg_trade_form [MlegTradeForm]
1025
1025
  # @param [Hash] opts the optional parameters
1026
1026
  # @return [Array<(MlegOrderResponse, Integer, Hash)>] MlegOrderResponse data, response status code and response headers
1027
- private def place_mleg_order_with_http_info_impl(user_id, user_secret, account_id, trading_place_mleg_order_request, opts = {})
1027
+ private def place_mleg_order_with_http_info_impl(user_id, user_secret, account_id, mleg_trade_form, opts = {})
1028
1028
  if @api_client.config.debugging
1029
1029
  @api_client.config.logger.debug 'Calling API: TradingApi.place_mleg_order ...'
1030
1030
  end
@@ -1040,9 +1040,9 @@ module SnapTrade
1040
1040
  if @api_client.config.client_side_validation && account_id.nil?
1041
1041
  fail ArgumentError, "Missing the required parameter 'account_id' when calling TradingApi.place_mleg_order"
1042
1042
  end
1043
- # verify the required parameter 'trading_place_mleg_order_request' is set
1044
- if @api_client.config.client_side_validation && trading_place_mleg_order_request.nil?
1045
- fail ArgumentError, "Missing the required parameter 'trading_place_mleg_order_request' when calling TradingApi.place_mleg_order"
1043
+ # verify the required parameter 'mleg_trade_form' is set
1044
+ if @api_client.config.client_side_validation && mleg_trade_form.nil?
1045
+ fail ArgumentError, "Missing the required parameter 'mleg_trade_form' when calling TradingApi.place_mleg_order"
1046
1046
  end
1047
1047
  # resource path
1048
1048
  local_var_path = '/accounts/{accountId}/trading/options'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
@@ -1066,7 +1066,7 @@ module SnapTrade
1066
1066
  form_params = opts[:form_params] || {}
1067
1067
 
1068
1068
  # http body (model)
1069
- post_body = opts[:debug_body] || @api_client.object_to_http_body(trading_place_mleg_order_request)
1069
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(mleg_trade_form)
1070
1070
 
1071
1071
  # return_type
1072
1072
  return_type = opts[:debug_return_type] || 'MlegOrderResponse'
@@ -11,7 +11,7 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- class MlegTradingInstrumentType
14
+ class MlegInstrumentType
15
15
  OPTION = "OPTION".freeze
16
16
  EQUITY = "EQUITY".freeze
17
17
 
@@ -30,8 +30,8 @@ module SnapTrade
30
30
  # @param [String] The enum value in the form of the string
31
31
  # @return [String] The enum value
32
32
  def build_from_hash(value)
33
- return value if MlegTradingInstrumentType.all_vars.include?(value)
34
- raise "Invalid ENUM value #{value} for class #MlegTradingInstrumentType"
33
+ return value if MlegInstrumentType.all_vars.include?(value)
34
+ raise "Invalid ENUM value #{value} for class #MlegInstrumentType"
35
35
  end
36
36
  end
37
37
  end
@@ -11,9 +11,10 @@ require 'date'
11
11
  require 'time'
12
12
 
13
13
  module SnapTrade
14
- class TradingPlaceMlegOrderRequest
14
+ # Inputs for placing a multi-leg order with the brokerage.
15
+ class MlegTradeForm
15
16
  # The type of order to place.
16
- attr_accessor :type
17
+ attr_accessor :order_type
17
18
 
18
19
  # The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `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.
19
20
  attr_accessor :time_in_force
@@ -29,7 +30,7 @@ module SnapTrade
29
30
  # Attribute mapping from ruby-style variable name to JSON key.
30
31
  def self.attribute_map
31
32
  {
32
- :'type' => :'type',
33
+ :'order_type' => :'order_type',
33
34
  :'time_in_force' => :'time_in_force',
34
35
  :'limit_price' => :'limit_price',
35
36
  :'stop_price' => :'stop_price',
@@ -45,7 +46,7 @@ module SnapTrade
45
46
  # Attribute type mapping.
46
47
  def self.openapi_types
47
48
  {
48
- :'type' => :'MlegOrderTypeStrict',
49
+ :'order_type' => :'MlegOrderTypeStrict',
49
50
  :'time_in_force' => :'TimeInForceStrict',
50
51
  :'limit_price' => :'Float',
51
52
  :'stop_price' => :'Float',
@@ -65,19 +66,19 @@ module SnapTrade
65
66
  # @param [Hash] attributes Model attributes in the form of hash
66
67
  def initialize(attributes = {})
67
68
  if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::TradingPlaceMlegOrderRequest` initialize method"
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::MlegTradeForm` initialize method"
69
70
  end
70
71
 
71
72
  # check to see if the attribute exists and convert string to symbol for hash key
72
73
  attributes = attributes.each_with_object({}) { |(k, v), h|
73
74
  if (!self.class.attribute_map.key?(k.to_sym))
74
- fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::TradingPlaceMlegOrderRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::MlegTradeForm`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
75
76
  end
76
77
  h[k.to_sym] = v
77
78
  }
78
79
 
79
- if attributes.key?(:'type')
80
- self.type = attributes[:'type']
80
+ if attributes.key?(:'order_type')
81
+ self.order_type = attributes[:'order_type']
81
82
  end
82
83
 
83
84
  if attributes.key?(:'time_in_force')
@@ -103,8 +104,8 @@ module SnapTrade
103
104
  # @return Array for valid properties with the reasons
104
105
  def list_invalid_properties
105
106
  invalid_properties = Array.new
106
- if @type.nil?
107
- invalid_properties.push('invalid value for "type", type cannot be nil.')
107
+ if @order_type.nil?
108
+ invalid_properties.push('invalid value for "order_type", order_type cannot be nil.')
108
109
  end
109
110
 
110
111
  if @time_in_force.nil?
@@ -121,7 +122,7 @@ module SnapTrade
121
122
  # Check to see if the all the properties in the model are valid
122
123
  # @return true if the model is valid
123
124
  def valid?
124
- return false if @type.nil?
125
+ return false if @order_type.nil?
125
126
  return false if @time_in_force.nil?
126
127
  return false if @legs.nil?
127
128
  true
@@ -132,7 +133,7 @@ module SnapTrade
132
133
  def ==(o)
133
134
  return true if self.equal?(o)
134
135
  self.class == o.class &&
135
- type == o.type &&
136
+ order_type == o.order_type &&
136
137
  time_in_force == o.time_in_force &&
137
138
  limit_price == o.limit_price &&
138
139
  stop_price == o.stop_price &&
@@ -148,7 +149,7 @@ module SnapTrade
148
149
  # Calculates hash code according to all attributes.
149
150
  # @return [Integer] Hash code
150
151
  def hash
151
- [type, time_in_force, limit_price, stop_price, legs].hash
152
+ [order_type, time_in_force, limit_price, stop_price, legs].hash
152
153
  end
153
154
 
154
155
  # Builds the object from hash
@@ -16,13 +16,13 @@ module SnapTrade
16
16
  attr_accessor :symbol
17
17
 
18
18
  # The instrument's type
19
- attr_accessor :type
19
+ attr_accessor :instrument_type
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
22
22
  def self.attribute_map
23
23
  {
24
24
  :'symbol' => :'symbol',
25
- :'type' => :'type'
25
+ :'instrument_type' => :'instrument_type'
26
26
  }
27
27
  end
28
28
 
@@ -35,7 +35,7 @@ module SnapTrade
35
35
  def self.openapi_types
36
36
  {
37
37
  :'symbol' => :'String',
38
- :'type' => :'MlegTradingInstrumentType'
38
+ :'instrument_type' => :'MlegInstrumentType'
39
39
  }
40
40
  end
41
41
 
@@ -64,8 +64,8 @@ module SnapTrade
64
64
  self.symbol = attributes[:'symbol']
65
65
  end
66
66
 
67
- if attributes.key?(:'type')
68
- self.type = attributes[:'type']
67
+ if attributes.key?(:'instrument_type')
68
+ self.instrument_type = attributes[:'instrument_type']
69
69
  end
70
70
  end
71
71
 
@@ -77,8 +77,8 @@ module SnapTrade
77
77
  invalid_properties.push('invalid value for "symbol", symbol cannot be nil.')
78
78
  end
79
79
 
80
- if @type.nil?
81
- invalid_properties.push('invalid value for "type", type cannot be nil.')
80
+ if @instrument_type.nil?
81
+ invalid_properties.push('invalid value for "instrument_type", instrument_type cannot be nil.')
82
82
  end
83
83
 
84
84
  invalid_properties
@@ -88,7 +88,7 @@ module SnapTrade
88
88
  # @return true if the model is valid
89
89
  def valid?
90
90
  return false if @symbol.nil?
91
- return false if @type.nil?
91
+ return false if @instrument_type.nil?
92
92
  true
93
93
  end
94
94
 
@@ -98,7 +98,7 @@ module SnapTrade
98
98
  return true if self.equal?(o)
99
99
  self.class == o.class &&
100
100
  symbol == o.symbol &&
101
- type == o.type
101
+ instrument_type == o.instrument_type
102
102
  end
103
103
 
104
104
  # @see the `==` method
@@ -110,7 +110,7 @@ module SnapTrade
110
110
  # Calculates hash code according to all attributes.
111
111
  # @return [Integer] Hash code
112
112
  def hash
113
- [symbol, type].hash
113
+ [symbol, instrument_type].hash
114
114
  end
115
115
 
116
116
  # Builds the object from hash
@@ -8,5 +8,5 @@ Contact: api@snaptrade.com
8
8
  =end
9
9
 
10
10
  module SnapTrade
11
- VERSION = '2.0.97'
11
+ VERSION = '2.0.99'
12
12
  end
data/lib/snaptrade.rb CHANGED
@@ -75,11 +75,12 @@ require 'snaptrade/models/manual_trade_impact'
75
75
  require 'snaptrade/models/manual_trade_replace_form'
76
76
  require 'snaptrade/models/manual_trade_symbol'
77
77
  require 'snaptrade/models/mleg_action_strict'
78
+ require 'snaptrade/models/mleg_instrument_type'
78
79
  require 'snaptrade/models/mleg_leg'
79
80
  require 'snaptrade/models/mleg_order_response'
80
81
  require 'snaptrade/models/mleg_order_type_strict'
82
+ require 'snaptrade/models/mleg_trade_form'
81
83
  require 'snaptrade/models/mleg_trading_instrument'
82
- require 'snaptrade/models/mleg_trading_instrument_type'
83
84
  require 'snaptrade/models/model400_failed_request_response'
84
85
  require 'snaptrade/models/model401_failed_request_response'
85
86
  require 'snaptrade/models/model402_brokerage_auth_already_disabled_exception'
@@ -149,7 +150,6 @@ require 'snaptrade/models/timeframe'
149
150
  require 'snaptrade/models/trading_cancel_user_account_order_request'
150
151
  require 'snaptrade/models/trading_instrument'
151
152
  require 'snaptrade/models/trading_instrument_type'
152
- require 'snaptrade/models/trading_place_mleg_order_request'
153
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'
@@ -137,7 +137,7 @@ describe 'TradingApi' do
137
137
  # @param user_id
138
138
  # @param user_secret
139
139
  # @param account_id
140
- # @param trading_place_mleg_order_request
140
+ # @param mleg_trade_form
141
141
  # @param [Hash] opts the optional parameters
142
142
  # @return [MlegOrderResponse]
143
143
  describe 'place_mleg_order test' 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::MlegInstrumentType
15
+ describe SnapTrade::MlegInstrumentType do
16
+ let(:instance) { SnapTrade::MlegInstrumentType.new }
17
+
18
+ describe 'test an instance of MlegInstrumentType' do
19
+ it 'should create an instance of MlegInstrumentType' do
20
+ expect(instance).to be_instance_of(SnapTrade::MlegInstrumentType)
21
+ end
22
+ end
23
+ end
@@ -11,16 +11,16 @@ require 'spec_helper'
11
11
  require 'json'
12
12
  require 'date'
13
13
 
14
- # Unit tests for SnapTrade::TradingPlaceMlegOrderRequest
15
- describe SnapTrade::TradingPlaceMlegOrderRequest do
16
- let(:instance) { SnapTrade::TradingPlaceMlegOrderRequest.new }
14
+ # Unit tests for SnapTrade::MlegTradeForm
15
+ describe SnapTrade::MlegTradeForm do
16
+ let(:instance) { SnapTrade::MlegTradeForm.new }
17
17
 
18
- describe 'test an instance of TradingPlaceMlegOrderRequest' do
19
- it 'should create an instance of TradingPlaceMlegOrderRequest' do
20
- expect(instance).to be_instance_of(SnapTrade::TradingPlaceMlegOrderRequest)
18
+ describe 'test an instance of MlegTradeForm' do
19
+ it 'should create an instance of MlegTradeForm' do
20
+ expect(instance).to be_instance_of(SnapTrade::MlegTradeForm)
21
21
  end
22
22
  end
23
- describe 'test attribute "type"' do
23
+ describe 'test attribute "order_type"' do
24
24
  it 'should work' do
25
25
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
26
  end
@@ -26,7 +26,7 @@ describe SnapTrade::MlegTradingInstrument do
26
26
  end
27
27
  end
28
28
 
29
- describe 'test attribute "type"' do
29
+ describe 'test attribute "instrument_type"' 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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.97
4
+ version: 2.0.99
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
@@ -154,11 +154,12 @@ files:
154
154
  - lib/snaptrade/models/manual_trade_replace_form.rb
155
155
  - lib/snaptrade/models/manual_trade_symbol.rb
156
156
  - lib/snaptrade/models/mleg_action_strict.rb
157
+ - lib/snaptrade/models/mleg_instrument_type.rb
157
158
  - lib/snaptrade/models/mleg_leg.rb
158
159
  - lib/snaptrade/models/mleg_order_response.rb
159
160
  - lib/snaptrade/models/mleg_order_type_strict.rb
161
+ - lib/snaptrade/models/mleg_trade_form.rb
160
162
  - lib/snaptrade/models/mleg_trading_instrument.rb
161
- - lib/snaptrade/models/mleg_trading_instrument_type.rb
162
163
  - lib/snaptrade/models/model400_failed_request_response.rb
163
164
  - lib/snaptrade/models/model401_failed_request_response.rb
164
165
  - lib/snaptrade/models/model402_brokerage_auth_already_disabled_exception.rb
@@ -228,7 +229,6 @@ files:
228
229
  - lib/snaptrade/models/trading_cancel_user_account_order_request.rb
229
230
  - lib/snaptrade/models/trading_instrument.rb
230
231
  - lib/snaptrade/models/trading_instrument_type.rb
231
- - lib/snaptrade/models/trading_place_mleg_order_request.rb
232
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
@@ -313,11 +313,12 @@ files:
313
313
  - spec/models/manual_trade_spec.rb
314
314
  - spec/models/manual_trade_symbol_spec.rb
315
315
  - spec/models/mleg_action_strict_spec.rb
316
+ - spec/models/mleg_instrument_type_spec.rb
316
317
  - spec/models/mleg_leg_spec.rb
317
318
  - spec/models/mleg_order_response_spec.rb
318
319
  - spec/models/mleg_order_type_strict_spec.rb
320
+ - spec/models/mleg_trade_form_spec.rb
319
321
  - spec/models/mleg_trading_instrument_spec.rb
320
- - spec/models/mleg_trading_instrument_type_spec.rb
321
322
  - spec/models/model400_failed_request_response_spec.rb
322
323
  - spec/models/model401_failed_request_response_spec.rb
323
324
  - spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
@@ -387,7 +388,6 @@ files:
387
388
  - spec/models/trading_cancel_user_account_order_request_spec.rb
388
389
  - spec/models/trading_instrument_spec.rb
389
390
  - spec/models/trading_instrument_type_spec.rb
390
- - spec/models/trading_place_mleg_order_request_spec.rb
391
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
@@ -458,6 +458,7 @@ test_files:
458
458
  - spec/models/brokerage_type_spec.rb
459
459
  - spec/models/account_order_record_quote_currency_spec.rb
460
460
  - spec/models/child_brokerage_order_ids_spec.rb
461
+ - spec/models/mleg_trade_form_spec.rb
461
462
  - spec/models/sub_period_return_rate_spec.rb
462
463
  - spec/models/option_strategy_legs_inner_spec.rb
463
464
  - spec/models/account_spec.rb
@@ -508,6 +509,7 @@ test_files:
508
509
  - spec/models/delete_user_response_spec.rb
509
510
  - spec/models/net_contributions_spec.rb
510
511
  - spec/models/transactions_status_spec.rb
512
+ - spec/models/mleg_instrument_type_spec.rb
511
513
  - spec/models/holdings_status_spec.rb
512
514
  - spec/models/underlying_symbol_exchange_spec.rb
513
515
  - spec/models/brokerage_authorization_disabled_confirmation_spec.rb
@@ -533,7 +535,6 @@ test_files:
533
535
  - spec/models/balance_spec.rb
534
536
  - spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
535
537
  - spec/models/account_holdings_spec.rb
536
- - spec/models/mleg_trading_instrument_type_spec.rb
537
538
  - spec/models/options_symbol_spec.rb
538
539
  - spec/models/order_updated_response_spec.rb
539
540
  - spec/models/simple_order_preview_spec.rb
@@ -566,7 +567,6 @@ test_files:
566
567
  - spec/models/account_order_record_status_spec.rb
567
568
  - spec/models/manual_trade_symbol_spec.rb
568
569
  - spec/models/symbol_figi_instrument_spec.rb
569
- - spec/models/trading_place_mleg_order_request_spec.rb
570
570
  - spec/models/account_holdings_account_spec.rb
571
571
  - spec/models/option_brokerage_symbol_spec.rb
572
572
  - spec/models/mleg_trading_instrument_spec.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::MlegTradingInstrumentType
15
- describe SnapTrade::MlegTradingInstrumentType do
16
- let(:instance) { SnapTrade::MlegTradingInstrumentType.new }
17
-
18
- describe 'test an instance of MlegTradingInstrumentType' do
19
- it 'should create an instance of MlegTradingInstrumentType' do
20
- expect(instance).to be_instance_of(SnapTrade::MlegTradingInstrumentType)
21
- end
22
- end
23
- end