snaptrade 1.17.3 → 1.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -6
- data/docs/AccountInformationApi.md +9 -4
- data/docs/OptionsApi.md +6 -6
- data/docs/OptionsPlaceOptionStrategyRequest.md +3 -3
- data/docs/StrategyOrderRecord.md +2 -2
- data/lib/snaptrade/api/account_information_api.rb +17 -6
- data/lib/snaptrade/api/options_api.rb +8 -8
- data/lib/snaptrade/models/options_place_option_strategy_request.rb +2 -2
- data/lib/snaptrade/models/strategy_order_record.rb +2 -2
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +0 -4
- data/spec/api/account_information_api_spec.rb +2 -1
- metadata +2 -18
- data/docs/OrderStrategyExecuteBodyOrderType.md +0 -15
- data/docs/OrderStrategyExecuteBodyTimeInForce.md +0 -15
- data/docs/StrategyOrderRecordOrderType.md +0 -15
- data/docs/StrategyOrderRecordTimeInForce.md +0 -15
- data/lib/snaptrade/models/order_strategy_execute_body_order_type.rb +0 -40
- data/lib/snaptrade/models/order_strategy_execute_body_time_in_force.rb +0 -38
- data/lib/snaptrade/models/strategy_order_record_order_type.rb +0 -40
- data/lib/snaptrade/models/strategy_order_record_time_in_force.rb +0 -38
- data/spec/models/order_strategy_execute_body_order_type_spec.rb +0 -24
- data/spec/models/order_strategy_execute_body_time_in_force_spec.rb +0 -24
- data/spec/models/strategy_order_record_order_type_spec.rb +0 -24
- data/spec/models/strategy_order_record_time_in_force_spec.rb +0 -24
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: a1819cd355ee52f0df86d45d381e9eb2c4fac4db67e1f387077217b6292a7ce4
         | 
| 4 | 
            +
              data.tar.gz: 6098b1f89a59f9665eefbbc26cb13f697eb84b918ccdd82d49a11a5efd9270fa
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 66cca49a69c1157dfa9f6f0578cb1a6900e2f1e0b28e7918756c10fdfc4ec231d0ce637c31acf1d4e35e4cf40ed57444c95f4534cbee8a06250a9b0f731605ee
         | 
| 7 | 
            +
              data.tar.gz: 77b5bf192f667d6613ecc530a3e06a9422d85a88f14ce728165bd352fc1f456caf3068aa0b5aec772f9d3fe1095b145e881eab0b0564ac7ffd2482b8b9a4488f
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -9,7 +9,7 @@ For more information, please visit [https://snaptrade.com/](https://snaptrade.co | |
| 9 9 | 
             
            Add to Gemfile:
         | 
| 10 10 |  | 
| 11 11 | 
             
            ```ruby
         | 
| 12 | 
            -
            gem 'snaptrade', '~> 1.17. | 
| 12 | 
            +
            gem 'snaptrade', '~> 1.17.5'
         | 
| 13 13 | 
             
            ```
         | 
| 14 14 |  | 
| 15 15 | 
             
            ## Getting Started
         | 
| @@ -46,7 +46,7 @@ Class | Method | HTTP request | Description | |
| 46 46 | 
             
            *SnapTrade::AccountInformationApi* | [**get_all_user_holdings**](docs/AccountInformationApi.md#get_all_user_holdings) | **GET** /holdings | List all accounts for the user, plus balances, positions, and orders for each account.
         | 
| 47 47 | 
             
            *SnapTrade::AccountInformationApi* | [**get_user_account_balance**](docs/AccountInformationApi.md#get_user_account_balance) | **GET** /accounts/{accountId}/balances | List account balances
         | 
| 48 48 | 
             
            *SnapTrade::AccountInformationApi* | [**get_user_account_details**](docs/AccountInformationApi.md#get_user_account_details) | **GET** /accounts/{accountId} | Return details of a specific investment account
         | 
| 49 | 
            -
            *SnapTrade::AccountInformationApi* | [**get_user_account_orders**](docs/AccountInformationApi.md#get_user_account_orders) | **GET** /accounts/{accountId}/orders |  | 
| 49 | 
            +
            *SnapTrade::AccountInformationApi* | [**get_user_account_orders**](docs/AccountInformationApi.md#get_user_account_orders) | **GET** /accounts/{accountId}/orders | List account orders
         | 
| 50 50 | 
             
            *SnapTrade::AccountInformationApi* | [**get_user_account_positions**](docs/AccountInformationApi.md#get_user_account_positions) | **GET** /accounts/{accountId}/positions | List account positions
         | 
| 51 51 | 
             
            *SnapTrade::AccountInformationApi* | [**get_user_holdings**](docs/AccountInformationApi.md#get_user_holdings) | **GET** /accounts/{accountId}/holdings | List balances, positions and orders for the specified account
         | 
| 52 52 | 
             
            *SnapTrade::AccountInformationApi* | [**list_user_accounts**](docs/AccountInformationApi.md#list_user_accounts) | **GET** /accounts | List accounts
         | 
| @@ -161,8 +161,6 @@ Class | Method | HTTP request | Description | |
| 161 161 | 
             
             - [SnapTrade::OptionsPosition](docs/OptionsPosition.md)
         | 
| 162 162 | 
             
             - [SnapTrade::OptionsPositionCurrency](docs/OptionsPositionCurrency.md)
         | 
| 163 163 | 
             
             - [SnapTrade::OptionsSymbol](docs/OptionsSymbol.md)
         | 
| 164 | 
            -
             - [SnapTrade::OrderStrategyExecuteBodyOrderType](docs/OrderStrategyExecuteBodyOrderType.md)
         | 
| 165 | 
            -
             - [SnapTrade::OrderStrategyExecuteBodyTimeInForce](docs/OrderStrategyExecuteBodyTimeInForce.md)
         | 
| 166 164 | 
             
             - [SnapTrade::OrderType](docs/OrderType.md)
         | 
| 167 165 | 
             
             - [SnapTrade::PartnerData](docs/PartnerData.md)
         | 
| 168 166 | 
             
             - [SnapTrade::PastValue](docs/PastValue.md)
         | 
| @@ -191,9 +189,7 @@ Class | Method | HTTP request | Description | |
| 191 189 | 
             
             - [SnapTrade::StrategyOrderPlaceOrdersInner](docs/StrategyOrderPlaceOrdersInner.md)
         | 
| 192 190 | 
             
             - [SnapTrade::StrategyOrderPlaceOrdersInnerLegsInner](docs/StrategyOrderPlaceOrdersInnerLegsInner.md)
         | 
| 193 191 | 
             
             - [SnapTrade::StrategyOrderRecord](docs/StrategyOrderRecord.md)
         | 
| 194 | 
            -
             - [SnapTrade::StrategyOrderRecordOrderType](docs/StrategyOrderRecordOrderType.md)
         | 
| 195 192 | 
             
             - [SnapTrade::StrategyOrderRecordStatus](docs/StrategyOrderRecordStatus.md)
         | 
| 196 | 
            -
             - [SnapTrade::StrategyOrderRecordTimeInForce](docs/StrategyOrderRecordTimeInForce.md)
         | 
| 197 193 | 
             
             - [SnapTrade::StrategyQuotes](docs/StrategyQuotes.md)
         | 
| 198 194 | 
             
             - [SnapTrade::StrategyQuotesGreek](docs/StrategyQuotesGreek.md)
         | 
| 199 195 | 
             
             - [SnapTrade::StrategyType](docs/StrategyType.md)
         | 
| @@ -7,7 +7,7 @@ All URIs are relative to *https://api.snaptrade.com/api/v1* | |
| 7 7 | 
             
            | [**get_all_user_holdings**](AccountInformationApi.md#get_all_user_holdings) | **GET** /holdings | List all accounts for the user, plus balances, positions, and orders for each account. |
         | 
| 8 8 | 
             
            | [**get_user_account_balance**](AccountInformationApi.md#get_user_account_balance) | **GET** /accounts/{accountId}/balances | List account balances |
         | 
| 9 9 | 
             
            | [**get_user_account_details**](AccountInformationApi.md#get_user_account_details) | **GET** /accounts/{accountId} | Return details of a specific investment account |
         | 
| 10 | 
            -
            | [**get_user_account_orders**](AccountInformationApi.md#get_user_account_orders) | **GET** /accounts/{accountId}/orders |  | 
| 10 | 
            +
            | [**get_user_account_orders**](AccountInformationApi.md#get_user_account_orders) | **GET** /accounts/{accountId}/orders | List account orders |
         | 
| 11 11 | 
             
            | [**get_user_account_positions**](AccountInformationApi.md#get_user_account_positions) | **GET** /accounts/{accountId}/positions | List account positions |
         | 
| 12 12 | 
             
            | [**get_user_holdings**](AccountInformationApi.md#get_user_holdings) | **GET** /accounts/{accountId}/holdings | List balances, positions and orders for the specified account |
         | 
| 13 13 | 
             
            | [**list_user_accounts**](AccountInformationApi.md#list_user_accounts) | **GET** /accounts | List accounts |
         | 
| @@ -212,7 +212,7 @@ end | |
| 212 212 |  | 
| 213 213 | 
             
            ## get_user_account_orders
         | 
| 214 214 |  | 
| 215 | 
            -
             | 
| 215 | 
            +
            List account orders
         | 
| 216 216 |  | 
| 217 217 | 
             
            Fetch all recent orders from a user's account.
         | 
| 218 218 |  | 
| @@ -228,14 +228,16 @@ user_id = "John.doe@snaptrade.com" | |
| 228 228 | 
             
            user_secret = "USERSECRET123"
         | 
| 229 229 | 
             
            account_id = "accountId_example"
         | 
| 230 230 | 
             
            state = "all"
         | 
| 231 | 
            +
            days = 30
         | 
| 231 232 |  | 
| 232 233 | 
             
            begin
         | 
| 233 | 
            -
              #  | 
| 234 | 
            +
              # List account orders
         | 
| 234 235 | 
             
              result = SnapTrade::AccountInformation.get_user_account_orders(
         | 
| 235 236 | 
             
                                                                                user_id: user_id,
         | 
| 236 237 | 
             
                                                                                user_secret: user_secret,
         | 
| 237 238 | 
             
                                                                                account_id: account_id,
         | 
| 238 239 | 
             
                                                                                state: state,
         | 
| 240 | 
            +
                                                                                days: days,
         | 
| 239 241 | 
             
                                                                              )
         | 
| 240 242 | 
             
              p result
         | 
| 241 243 | 
             
            rescue SnapTrade::ApiError => e
         | 
| @@ -252,14 +254,16 @@ user_id = "John.doe@snaptrade.com" | |
| 252 254 | 
             
            user_secret = "USERSECRET123"
         | 
| 253 255 | 
             
            account_id = "accountId_example"
         | 
| 254 256 | 
             
            state = "all"
         | 
| 257 | 
            +
            days = 30
         | 
| 255 258 |  | 
| 256 259 | 
             
            begin
         | 
| 257 | 
            -
              #  | 
| 260 | 
            +
              # List account orders
         | 
| 258 261 | 
             
              data, status_code, headers, response = SnapTrade::AccountInformation.get_user_account_orders_with_http_info(
         | 
| 259 262 | 
             
                                                                                                                             user_id: user_id,
         | 
| 260 263 | 
             
                                                                                                                             user_secret: user_secret,
         | 
| 261 264 | 
             
                                                                                                                             account_id: account_id,
         | 
| 262 265 | 
             
                                                                                                                             state: state,
         | 
| 266 | 
            +
                                                                                                                             days: days,
         | 
| 263 267 | 
             
                                                                                                                           )
         | 
| 264 268 | 
             
              p status_code # => 2xx
         | 
| 265 269 | 
             
              p headers # => { ... }
         | 
| @@ -277,6 +281,7 @@ end | |
| 277 281 | 
             
            | **user_secret** | **String** |  |  |
         | 
| 278 282 | 
             
            | **account_id** | **String** | The ID of the account to get orders. |  |
         | 
| 279 283 | 
             
            | **state** | **String** | defaults value is set to \"all\" | [optional] |
         | 
| 284 | 
            +
            | **days** | **Integer** | Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in. | [optional] |
         | 
| 280 285 |  | 
| 281 286 | 
             
            ### Return type
         | 
| 282 287 |  | 
    
        data/docs/OptionsApi.md
    CHANGED
    
    | @@ -318,23 +318,23 @@ SnapTrade.client_id = "YOUR_CLIENT_ID" | |
| 318 318 | 
             
            SnapTrade.consumer_key = "YOUR_CONSUMER_KEY"
         | 
| 319 319 |  | 
| 320 320 | 
             
            order_type = "Limit"
         | 
| 321 | 
            -
            time_in_force = " | 
| 322 | 
            -
            price = 31.33
         | 
| 321 | 
            +
            time_in_force = "Day"
         | 
| 323 322 | 
             
            user_id = "John.doe@snaptrade.com"
         | 
| 324 323 | 
             
            user_secret = "USERSECRET123"
         | 
| 325 324 | 
             
            account_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
         | 
| 326 325 | 
             
            option_strategy_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
         | 
| 326 | 
            +
            price = 31.33
         | 
| 327 327 |  | 
| 328 328 | 
             
            begin
         | 
| 329 329 | 
             
              # Place an option strategy order on the brokerage
         | 
| 330 330 | 
             
              result = SnapTrade::Options.place_option_strategy(
         | 
| 331 331 | 
             
                                                                   order_type: order_type,
         | 
| 332 332 | 
             
                                                                   time_in_force: time_in_force,
         | 
| 333 | 
            -
                                                                   price: price,
         | 
| 334 333 | 
             
                                                                   user_id: user_id,
         | 
| 335 334 | 
             
                                                                   user_secret: user_secret,
         | 
| 336 335 | 
             
                                                                   account_id: account_id,
         | 
| 337 336 | 
             
                                                                   option_strategy_id: option_strategy_id,
         | 
| 337 | 
            +
                                                                   price: price,
         | 
| 338 338 | 
             
                                                                 )
         | 
| 339 339 | 
             
              p result
         | 
| 340 340 | 
             
            rescue SnapTrade::ApiError => e
         | 
| @@ -348,23 +348,23 @@ This returns an Array which contains the response data, status code and headers. | |
| 348 348 |  | 
| 349 349 | 
             
            ```ruby
         | 
| 350 350 | 
             
            order_type = "Limit"
         | 
| 351 | 
            -
            time_in_force = " | 
| 352 | 
            -
            price = 31.33
         | 
| 351 | 
            +
            time_in_force = "Day"
         | 
| 353 352 | 
             
            user_id = "John.doe@snaptrade.com"
         | 
| 354 353 | 
             
            user_secret = "USERSECRET123"
         | 
| 355 354 | 
             
            account_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
         | 
| 356 355 | 
             
            option_strategy_id = "2bcd7cc3-e922-4976-bce1-9858296801c3"
         | 
| 356 | 
            +
            price = 31.33
         | 
| 357 357 |  | 
| 358 358 | 
             
            begin
         | 
| 359 359 | 
             
              # Place an option strategy order on the brokerage
         | 
| 360 360 | 
             
              data, status_code, headers, response = SnapTrade::Options.place_option_strategy_with_http_info(
         | 
| 361 361 | 
             
                                                                                                                order_type: order_type,
         | 
| 362 362 | 
             
                                                                                                                time_in_force: time_in_force,
         | 
| 363 | 
            -
                                                                                                                price: price,
         | 
| 364 363 | 
             
                                                                                                                user_id: user_id,
         | 
| 365 364 | 
             
                                                                                                                user_secret: user_secret,
         | 
| 366 365 | 
             
                                                                                                                account_id: account_id,
         | 
| 367 366 | 
             
                                                                                                                option_strategy_id: option_strategy_id,
         | 
| 367 | 
            +
                                                                                                                price: price,
         | 
| 368 368 | 
             
                                                                                                              )
         | 
| 369 369 | 
             
              p status_code # => 2xx
         | 
| 370 370 | 
             
              p headers # => { ... }
         | 
| @@ -4,9 +4,9 @@ | |
| 4 4 |  | 
| 5 5 | 
             
            | Name | Type | Description | Notes |
         | 
| 6 6 | 
             
            | ---- | ---- | ----------- | ----- |
         | 
| 7 | 
            -
            | **order_type** | [** | 
| 8 | 
            -
            | **time_in_force** | [** | 
| 9 | 
            -
            | **price** | **Float** | Trade Price if limit or stop limit order | | 
| 7 | 
            +
            | **order_type** | [**OrderType**](OrderType.md) |  |  |
         | 
| 8 | 
            +
            | **time_in_force** | [**TimeInForce**](TimeInForce.md) |  |  |
         | 
| 9 | 
            +
            | **price** | **Float** | Trade Price if limit or stop limit order | [optional] |
         | 
| 10 10 |  | 
| 11 11 | 
             
            ## Example
         | 
| 12 12 |  | 
    
        data/docs/StrategyOrderRecord.md
    CHANGED
    
    | @@ -9,8 +9,8 @@ | |
| 9 9 | 
             
            | **filled_quantity** | **Float** |  | [optional] |
         | 
| 10 10 | 
             
            | **open_quantity** | **Float** |  | [optional] |
         | 
| 11 11 | 
             
            | **closed_quantity** | **Float** |  | [optional] |
         | 
| 12 | 
            -
            | **order_type** | [** | 
| 13 | 
            -
            | **time_in_force** | [** | 
| 12 | 
            +
            | **order_type** | [**OrderType**](OrderType.md) |  | [optional] |
         | 
| 13 | 
            +
            | **time_in_force** | [**TimeInForce**](TimeInForce.md) |  | [optional] |
         | 
| 14 14 | 
             
            | **limit_price** | **Float** | Trade Price if limit or stop limit order | [optional] |
         | 
| 15 15 | 
             
            | **execution_price** | **Float** | Trade Price if limit or stop limit order | [optional] |
         | 
| 16 16 | 
             
            | **time_placed** | **String** | Time | [optional] |
         | 
| @@ -306,51 +306,57 @@ module SnapTrade | |
| 306 306 | 
             
                end
         | 
| 307 307 |  | 
| 308 308 |  | 
| 309 | 
            -
                #  | 
| 309 | 
            +
                # List account orders
         | 
| 310 310 | 
             
                # Fetch all recent orders from a user's account.
         | 
| 311 311 | 
             
                # @param user_id [String] 
         | 
| 312 312 | 
             
                # @param user_secret [String] 
         | 
| 313 313 | 
             
                # @param account_id [String] The ID of the account to get orders.
         | 
| 314 314 | 
             
                # @param state [String] defaults value is set to \"all\"
         | 
| 315 | 
            +
                # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in.
         | 
| 315 316 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 316 | 
            -
                def get_user_account_orders(user_id:, user_secret:, account_id:, state: SENTINEL, extra: {})
         | 
| 317 | 
            +
                def get_user_account_orders(user_id:, user_secret:, account_id:, state: SENTINEL, days: SENTINEL, extra: {})
         | 
| 317 318 | 
             
                  extra[:state] = state if state != SENTINEL
         | 
| 319 | 
            +
                  extra[:days] = days if days != SENTINEL
         | 
| 318 320 | 
             
                  data, _status_code, _headers = get_user_account_orders_with_http_info_impl(user_id, user_secret, account_id, extra)
         | 
| 319 321 | 
             
                  data
         | 
| 320 322 | 
             
                end
         | 
| 321 323 |  | 
| 322 | 
            -
                #  | 
| 324 | 
            +
                # List account orders
         | 
| 323 325 | 
             
                # Fetch all recent orders from a user's account.
         | 
| 324 326 | 
             
                # @param user_id [String] 
         | 
| 325 327 | 
             
                # @param user_secret [String] 
         | 
| 326 328 | 
             
                # @param account_id [String] The ID of the account to get orders.
         | 
| 327 329 | 
             
                # @param state [String] defaults value is set to \"all\"
         | 
| 330 | 
            +
                # @param days [Integer] Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in.
         | 
| 328 331 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 329 | 
            -
                def get_user_account_orders_with_http_info(user_id:, user_secret:, account_id:, state: SENTINEL, extra: {})
         | 
| 332 | 
            +
                def get_user_account_orders_with_http_info(user_id:, user_secret:, account_id:, state: SENTINEL, days: SENTINEL, extra: {})
         | 
| 330 333 | 
             
                  extra[:state] = state if state != SENTINEL
         | 
| 334 | 
            +
                  extra[:days] = days if days != SENTINEL
         | 
| 331 335 | 
             
                  get_user_account_orders_with_http_info_impl(user_id, user_secret, account_id, extra)
         | 
| 332 336 | 
             
                end
         | 
| 333 337 |  | 
| 334 | 
            -
                #  | 
| 338 | 
            +
                # List account orders
         | 
| 335 339 | 
             
                # Fetch all recent orders from a user's account.
         | 
| 336 340 | 
             
                # @param user_id [String] 
         | 
| 337 341 | 
             
                # @param user_secret [String] 
         | 
| 338 342 | 
             
                # @param account_id [String] The ID of the account to get orders.
         | 
| 339 343 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 340 344 | 
             
                # @option opts [String] :state defaults value is set to \"all\"
         | 
| 345 | 
            +
                # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in.
         | 
| 341 346 | 
             
                # @return [Array<AccountOrderRecord>]
         | 
| 342 347 | 
             
                def get_user_account_orders_impl(user_id, user_secret, account_id, opts = {})
         | 
| 343 348 | 
             
                  data, _status_code, _headers = get_user_account_orders_with_http_info(user_id, user_secret, account_id, opts)
         | 
| 344 349 | 
             
                  data
         | 
| 345 350 | 
             
                end
         | 
| 346 351 |  | 
| 347 | 
            -
                #  | 
| 352 | 
            +
                # List account orders
         | 
| 348 353 | 
             
                # Fetch all recent orders from a user's account.
         | 
| 349 354 | 
             
                # @param user_id [String] 
         | 
| 350 355 | 
             
                # @param user_secret [String] 
         | 
| 351 356 | 
             
                # @param account_id [String] The ID of the account to get orders.
         | 
| 352 357 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 353 358 | 
             
                # @option opts [String] :state defaults value is set to \"all\"
         | 
| 359 | 
            +
                # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in.
         | 
| 354 360 | 
             
                # @return [Array<(Array<AccountOrderRecord>, Integer, Hash)>] Array<AccountOrderRecord> data, response status code and response headers
         | 
| 355 361 | 
             
                def get_user_account_orders_with_http_info_impl(user_id, user_secret, account_id, opts = {})
         | 
| 356 362 | 
             
                  if @api_client.config.debugging
         | 
| @@ -372,6 +378,10 @@ module SnapTrade | |
| 372 378 | 
             
                  if @api_client.config.client_side_validation && opts[:'state'] && !allowable_values.include?(opts[:'state'])
         | 
| 373 379 | 
             
                    fail ArgumentError, "invalid value for \"state\", must be one of #{allowable_values}"
         | 
| 374 380 | 
             
                  end
         | 
| 381 | 
            +
                  if @api_client.config.client_side_validation && !opts[:'days'].nil? && opts[:'days'] < 1
         | 
| 382 | 
            +
                    fail ArgumentError, 'invalid value for "opts[:"days"]" when calling AccountInformationApi.get_user_account_orders, must be greater than or equal to 1.'
         | 
| 383 | 
            +
                  end
         | 
| 384 | 
            +
             | 
| 375 385 | 
             
                  # resource path
         | 
| 376 386 | 
             
                  local_var_path = '/accounts/{accountId}/orders'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
         | 
| 377 387 |  | 
| @@ -380,6 +390,7 @@ module SnapTrade | |
| 380 390 | 
             
                  query_params[:'userId'] = user_id
         | 
| 381 391 | 
             
                  query_params[:'userSecret'] = user_secret
         | 
| 382 392 | 
             
                  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
         | 
| 393 | 
            +
                  query_params[:'days'] = opts[:'days'] if !opts[:'days'].nil?
         | 
| 383 394 |  | 
| 384 395 | 
             
                  # header parameters
         | 
| 385 396 | 
             
                  header_params = opts[:header_params] || {}
         | 
| @@ -445,16 +445,16 @@ module SnapTrade | |
| 445 445 |  | 
| 446 446 |  | 
| 447 447 | 
             
                # Place an option strategy order on the brokerage
         | 
| 448 | 
            -
                # @param order_type [ | 
| 449 | 
            -
                # @param time_in_force [ | 
| 450 | 
            -
                # @param price [Float] Trade Price if limit or stop limit order
         | 
| 448 | 
            +
                # @param order_type [OrderType] 
         | 
| 449 | 
            +
                # @param time_in_force [TimeInForce] 
         | 
| 451 450 | 
             
                # @param user_id [String] 
         | 
| 452 451 | 
             
                # @param user_secret [String] 
         | 
| 453 452 | 
             
                # @param account_id [String] The ID of the account to execute the strategy in.
         | 
| 454 453 | 
             
                # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
         | 
| 454 | 
            +
                # @param price [Float] Trade Price if limit or stop limit order
         | 
| 455 455 | 
             
                # @param body [OptionsPlaceOptionStrategyRequest] 
         | 
| 456 456 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 457 | 
            -
                def place_option_strategy(order_type:, time_in_force:,  | 
| 457 | 
            +
                def place_option_strategy(order_type:, time_in_force:, user_id:, user_secret:, account_id:, option_strategy_id:, price: SENTINEL, extra: {})
         | 
| 458 458 | 
             
                  _body = {}
         | 
| 459 459 | 
             
                  _body[:order_type] = order_type if order_type != SENTINEL
         | 
| 460 460 | 
             
                  _body[:time_in_force] = time_in_force if time_in_force != SENTINEL
         | 
| @@ -465,16 +465,16 @@ module SnapTrade | |
| 465 465 | 
             
                end
         | 
| 466 466 |  | 
| 467 467 | 
             
                # Place an option strategy order on the brokerage
         | 
| 468 | 
            -
                # @param order_type [ | 
| 469 | 
            -
                # @param time_in_force [ | 
| 470 | 
            -
                # @param price [Float] Trade Price if limit or stop limit order
         | 
| 468 | 
            +
                # @param order_type [OrderType] 
         | 
| 469 | 
            +
                # @param time_in_force [TimeInForce] 
         | 
| 471 470 | 
             
                # @param user_id [String] 
         | 
| 472 471 | 
             
                # @param user_secret [String] 
         | 
| 473 472 | 
             
                # @param account_id [String] The ID of the account to execute the strategy in.
         | 
| 474 473 | 
             
                # @param option_strategy_id [String] Option strategy id obtained from response when creating option strategy object
         | 
| 474 | 
            +
                # @param price [Float] Trade Price if limit or stop limit order
         | 
| 475 475 | 
             
                # @param body [OptionsPlaceOptionStrategyRequest] 
         | 
| 476 476 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 477 | 
            -
                def place_option_strategy_with_http_info(order_type:, time_in_force:,  | 
| 477 | 
            +
                def place_option_strategy_with_http_info(order_type:, time_in_force:, user_id:, user_secret:, account_id:, option_strategy_id:, price: SENTINEL, extra: {})
         | 
| 478 478 | 
             
                  _body = {}
         | 
| 479 479 | 
             
                  _body[:order_type] = order_type if order_type != SENTINEL
         | 
| 480 480 | 
             
                  _body[:time_in_force] = time_in_force if time_in_force != SENTINEL
         | 
| @@ -37,8 +37,8 @@ module SnapTrade | |
| 37 37 | 
             
                # Attribute type mapping.
         | 
| 38 38 | 
             
                def self.openapi_types
         | 
| 39 39 | 
             
                  {
         | 
| 40 | 
            -
                    :'order_type' => :' | 
| 41 | 
            -
                    :'time_in_force' => :' | 
| 40 | 
            +
                    :'order_type' => :'OrderType',
         | 
| 41 | 
            +
                    :'time_in_force' => :'TimeInForce',
         | 
| 42 42 | 
             
                    :'price' => :'Float'
         | 
| 43 43 | 
             
                  }
         | 
| 44 44 | 
             
                end
         | 
| @@ -70,8 +70,8 @@ module SnapTrade | |
| 70 70 | 
             
                    :'filled_quantity' => :'Float',
         | 
| 71 71 | 
             
                    :'open_quantity' => :'Float',
         | 
| 72 72 | 
             
                    :'closed_quantity' => :'Float',
         | 
| 73 | 
            -
                    :'order_type' => :' | 
| 74 | 
            -
                    :'time_in_force' => :' | 
| 73 | 
            +
                    :'order_type' => :'OrderType',
         | 
| 74 | 
            +
                    :'time_in_force' => :'TimeInForce',
         | 
| 75 75 | 
             
                    :'limit_price' => :'Float',
         | 
| 76 76 | 
             
                    :'execution_price' => :'Float',
         | 
| 77 77 | 
             
                    :'time_placed' => :'String',
         | 
    
        data/lib/snaptrade/version.rb
    CHANGED
    
    
    
        data/lib/snaptrade.rb
    CHANGED
    
    | @@ -88,8 +88,6 @@ require 'snaptrade/models/options_place_option_strategy_request' | |
| 88 88 | 
             
            require 'snaptrade/models/options_position'
         | 
| 89 89 | 
             
            require 'snaptrade/models/options_position_currency'
         | 
| 90 90 | 
             
            require 'snaptrade/models/options_symbol'
         | 
| 91 | 
            -
            require 'snaptrade/models/order_strategy_execute_body_order_type'
         | 
| 92 | 
            -
            require 'snaptrade/models/order_strategy_execute_body_time_in_force'
         | 
| 93 91 | 
             
            require 'snaptrade/models/order_type'
         | 
| 94 92 | 
             
            require 'snaptrade/models/partner_data'
         | 
| 95 93 | 
             
            require 'snaptrade/models/past_value'
         | 
| @@ -118,9 +116,7 @@ require 'snaptrade/models/strategy_order_place' | |
| 118 116 | 
             
            require 'snaptrade/models/strategy_order_place_orders_inner'
         | 
| 119 117 | 
             
            require 'snaptrade/models/strategy_order_place_orders_inner_legs_inner'
         | 
| 120 118 | 
             
            require 'snaptrade/models/strategy_order_record'
         | 
| 121 | 
            -
            require 'snaptrade/models/strategy_order_record_order_type'
         | 
| 122 119 | 
             
            require 'snaptrade/models/strategy_order_record_status'
         | 
| 123 | 
            -
            require 'snaptrade/models/strategy_order_record_time_in_force'
         | 
| 124 120 | 
             
            require 'snaptrade/models/strategy_quotes'
         | 
| 125 121 | 
             
            require 'snaptrade/models/strategy_quotes_greek'
         | 
| 126 122 | 
             
            require 'snaptrade/models/strategy_type'
         | 
| @@ -69,13 +69,14 @@ describe 'AccountInformationApi' do | |
| 69 69 | 
             
              end
         | 
| 70 70 |  | 
| 71 71 | 
             
              # unit tests for get_user_account_orders
         | 
| 72 | 
            -
              #  | 
| 72 | 
            +
              # List account orders
         | 
| 73 73 | 
             
              # Fetch all recent orders from a user's account.
         | 
| 74 74 | 
             
              # @param user_id 
         | 
| 75 75 | 
             
              # @param user_secret 
         | 
| 76 76 | 
             
              # @param account_id The ID of the account to get orders.
         | 
| 77 77 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 78 78 | 
             
              # @option opts [String] :state defaults value is set to \"all\"
         | 
| 79 | 
            +
              # @option opts [Integer] :days Number of days in the past to fetch the most recent orders. Defaults to the last 90 days if no value is passed in.
         | 
| 79 80 | 
             
              # @return [Array<AccountOrderRecord>]
         | 
| 80 81 | 
             
              describe 'get_user_account_orders test' do
         | 
| 81 82 | 
             
                it 'should work' do
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: snaptrade
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.17. | 
| 4 | 
            +
              version: 1.17.5
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - SnapTrade
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2023- | 
| 11 | 
            +
            date: 2023-11-08 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: faraday
         | 
| @@ -158,8 +158,6 @@ files: | |
| 158 158 | 
             
            - docs/OptionsPosition.md
         | 
| 159 159 | 
             
            - docs/OptionsPositionCurrency.md
         | 
| 160 160 | 
             
            - docs/OptionsSymbol.md
         | 
| 161 | 
            -
            - docs/OrderStrategyExecuteBodyOrderType.md
         | 
| 162 | 
            -
            - docs/OrderStrategyExecuteBodyTimeInForce.md
         | 
| 163 161 | 
             
            - docs/OrderType.md
         | 
| 164 162 | 
             
            - docs/PartnerData.md
         | 
| 165 163 | 
             
            - docs/PastValue.md
         | 
| @@ -189,9 +187,7 @@ files: | |
| 189 187 | 
             
            - docs/StrategyOrderPlaceOrdersInner.md
         | 
| 190 188 | 
             
            - docs/StrategyOrderPlaceOrdersInnerLegsInner.md
         | 
| 191 189 | 
             
            - docs/StrategyOrderRecord.md
         | 
| 192 | 
            -
            - docs/StrategyOrderRecordOrderType.md
         | 
| 193 190 | 
             
            - docs/StrategyOrderRecordStatus.md
         | 
| 194 | 
            -
            - docs/StrategyOrderRecordTimeInForce.md
         | 
| 195 191 | 
             
            - docs/StrategyQuotes.md
         | 
| 196 192 | 
             
            - docs/StrategyQuotesGreek.md
         | 
| 197 193 | 
             
            - docs/StrategyType.md
         | 
| @@ -306,8 +302,6 @@ files: | |
| 306 302 | 
             
            - lib/snaptrade/models/options_position.rb
         | 
| 307 303 | 
             
            - lib/snaptrade/models/options_position_currency.rb
         | 
| 308 304 | 
             
            - lib/snaptrade/models/options_symbol.rb
         | 
| 309 | 
            -
            - lib/snaptrade/models/order_strategy_execute_body_order_type.rb
         | 
| 310 | 
            -
            - lib/snaptrade/models/order_strategy_execute_body_time_in_force.rb
         | 
| 311 305 | 
             
            - lib/snaptrade/models/order_type.rb
         | 
| 312 306 | 
             
            - lib/snaptrade/models/partner_data.rb
         | 
| 313 307 | 
             
            - lib/snaptrade/models/past_value.rb
         | 
| @@ -336,9 +330,7 @@ files: | |
| 336 330 | 
             
            - lib/snaptrade/models/strategy_order_place_orders_inner.rb
         | 
| 337 331 | 
             
            - lib/snaptrade/models/strategy_order_place_orders_inner_legs_inner.rb
         | 
| 338 332 | 
             
            - lib/snaptrade/models/strategy_order_record.rb
         | 
| 339 | 
            -
            - lib/snaptrade/models/strategy_order_record_order_type.rb
         | 
| 340 333 | 
             
            - lib/snaptrade/models/strategy_order_record_status.rb
         | 
| 341 | 
            -
            - lib/snaptrade/models/strategy_order_record_time_in_force.rb
         | 
| 342 334 | 
             
            - lib/snaptrade/models/strategy_quotes.rb
         | 
| 343 335 | 
             
            - lib/snaptrade/models/strategy_quotes_greek.rb
         | 
| 344 336 | 
             
            - lib/snaptrade/models/strategy_type.rb
         | 
| @@ -450,8 +442,6 @@ files: | |
| 450 442 | 
             
            - spec/models/options_position_currency_spec.rb
         | 
| 451 443 | 
             
            - spec/models/options_position_spec.rb
         | 
| 452 444 | 
             
            - spec/models/options_symbol_spec.rb
         | 
| 453 | 
            -
            - spec/models/order_strategy_execute_body_order_type_spec.rb
         | 
| 454 | 
            -
            - spec/models/order_strategy_execute_body_time_in_force_spec.rb
         | 
| 455 445 | 
             
            - spec/models/order_type_spec.rb
         | 
| 456 446 | 
             
            - spec/models/partner_data_spec.rb
         | 
| 457 447 | 
             
            - spec/models/past_value_spec.rb
         | 
| @@ -479,10 +469,8 @@ files: | |
| 479 469 | 
             
            - spec/models/strategy_order_place_orders_inner_legs_inner_spec.rb
         | 
| 480 470 | 
             
            - spec/models/strategy_order_place_orders_inner_spec.rb
         | 
| 481 471 | 
             
            - spec/models/strategy_order_place_spec.rb
         | 
| 482 | 
            -
            - spec/models/strategy_order_record_order_type_spec.rb
         | 
| 483 472 | 
             
            - spec/models/strategy_order_record_spec.rb
         | 
| 484 473 | 
             
            - spec/models/strategy_order_record_status_spec.rb
         | 
| 485 | 
            -
            - spec/models/strategy_order_record_time_in_force_spec.rb
         | 
| 486 474 | 
             
            - spec/models/strategy_quotes_greek_spec.rb
         | 
| 487 475 | 
             
            - spec/models/strategy_quotes_spec.rb
         | 
| 488 476 | 
             
            - spec/models/strategy_type_spec.rb
         | 
| @@ -572,7 +560,6 @@ test_files: | |
| 572 560 | 
             
            - spec/models/trading_place_oco_order_request_spec.rb
         | 
| 573 561 | 
             
            - spec/models/monthly_dividends_spec.rb
         | 
| 574 562 | 
             
            - spec/models/model_portfolio_security_spec.rb
         | 
| 575 | 
            -
            - spec/models/order_strategy_execute_body_time_in_force_spec.rb
         | 
| 576 563 | 
             
            - spec/models/strategy_order_place_spec.rb
         | 
| 577 564 | 
             
            - spec/models/model_asset_class_target_spec.rb
         | 
| 578 565 | 
             
            - spec/models/option_strategy_spec.rb
         | 
| @@ -647,7 +634,6 @@ test_files: | |
| 647 634 | 
             
            - spec/models/target_asset_spec.rb
         | 
| 648 635 | 
             
            - spec/models/user_i_dand_secret_spec.rb
         | 
| 649 636 | 
             
            - spec/models/strategy_order_place_orders_inner_legs_inner_spec.rb
         | 
| 650 | 
            -
            - spec/models/strategy_order_record_time_in_force_spec.rb
         | 
| 651 637 | 
             
            - spec/models/us_exchange_spec.rb
         | 
| 652 638 | 
             
            - spec/models/trade_spec.rb
         | 
| 653 639 | 
             
            - spec/models/model_portfolio_asset_class_spec.rb
         | 
| @@ -672,10 +658,8 @@ test_files: | |
| 672 658 | 
             
            - spec/models/session_event_type_spec.rb
         | 
| 673 659 | 
             
            - spec/models/transactions_status_spec.rb
         | 
| 674 660 | 
             
            - spec/models/brokerage_authorization_type_read_only_spec.rb
         | 
| 675 | 
            -
            - spec/models/strategy_order_record_order_type_spec.rb
         | 
| 676 661 | 
             
            - spec/models/symbols_quotes_inner_spec.rb
         | 
| 677 662 | 
             
            - spec/models/dividend_at_date_spec.rb
         | 
| 678 | 
            -
            - spec/models/order_strategy_execute_body_order_type_spec.rb
         | 
| 679 663 | 
             
            - spec/models/past_value_spec.rb
         | 
| 680 664 | 
             
            - spec/models/model_portfolio_spec.rb
         | 
| 681 665 | 
             
            - spec/spec_helper.rb
         | 
| @@ -1,15 +0,0 @@ | |
| 1 | 
            -
            # SnapTrade::OrderStrategyExecuteBodyOrderType
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            ## Properties
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            | Name | Type | Description | Notes |
         | 
| 6 | 
            -
            | ---- | ---- | ----------- | ----- |
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            ## Example
         | 
| 9 | 
            -
             | 
| 10 | 
            -
            ```ruby
         | 
| 11 | 
            -
            require 'snaptrade'
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            instance = SnapTrade::OrderStrategyExecuteBodyOrderType.new()
         | 
| 14 | 
            -
            ```
         | 
| 15 | 
            -
             | 
| @@ -1,15 +0,0 @@ | |
| 1 | 
            -
            # SnapTrade::OrderStrategyExecuteBodyTimeInForce
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            ## Properties
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            | Name | Type | Description | Notes |
         | 
| 6 | 
            -
            | ---- | ---- | ----------- | ----- |
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            ## Example
         | 
| 9 | 
            -
             | 
| 10 | 
            -
            ```ruby
         | 
| 11 | 
            -
            require 'snaptrade'
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            instance = SnapTrade::OrderStrategyExecuteBodyTimeInForce.new()
         | 
| 14 | 
            -
            ```
         | 
| 15 | 
            -
             | 
| @@ -1,15 +0,0 @@ | |
| 1 | 
            -
            # SnapTrade::StrategyOrderRecordOrderType
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            ## Properties
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            | Name | Type | Description | Notes |
         | 
| 6 | 
            -
            | ---- | ---- | ----------- | ----- |
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            ## Example
         | 
| 9 | 
            -
             | 
| 10 | 
            -
            ```ruby
         | 
| 11 | 
            -
            require 'snaptrade'
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            instance = SnapTrade::StrategyOrderRecordOrderType.new()
         | 
| 14 | 
            -
            ```
         | 
| 15 | 
            -
             | 
| @@ -1,15 +0,0 @@ | |
| 1 | 
            -
            # SnapTrade::StrategyOrderRecordTimeInForce
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            ## Properties
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            | Name | Type | Description | Notes |
         | 
| 6 | 
            -
            | ---- | ---- | ----------- | ----- |
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            ## Example
         | 
| 9 | 
            -
             | 
| 10 | 
            -
            ```ruby
         | 
| 11 | 
            -
            require 'snaptrade'
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            instance = SnapTrade::StrategyOrderRecordTimeInForce.new()
         | 
| 14 | 
            -
            ```
         | 
| 15 | 
            -
             | 
| @@ -1,40 +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 | 
            -
             | 
| 9 | 
            -
            =end
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            require 'date'
         | 
| 12 | 
            -
            require 'time'
         | 
| 13 | 
            -
             | 
| 14 | 
            -
            module SnapTrade
         | 
| 15 | 
            -
              class OrderStrategyExecuteBodyOrderType
         | 
| 16 | 
            -
                LIMIT = "Limit".freeze
         | 
| 17 | 
            -
                MARKET = "Market".freeze
         | 
| 18 | 
            -
                NET_DEBIT = "NetDebit".freeze
         | 
| 19 | 
            -
                NET_CREDIT = "NetCredit".freeze
         | 
| 20 | 
            -
             | 
| 21 | 
            -
                def self.all_vars
         | 
| 22 | 
            -
                  @all_vars ||= [LIMIT, MARKET, NET_DEBIT, NET_CREDIT].freeze
         | 
| 23 | 
            -
                end
         | 
| 24 | 
            -
             | 
| 25 | 
            -
                # Builds the enum from string
         | 
| 26 | 
            -
                # @param [String] The enum value in the form of the string
         | 
| 27 | 
            -
                # @return [String] The enum value
         | 
| 28 | 
            -
                def self.build_from_hash(value)
         | 
| 29 | 
            -
                  new.build_from_hash(value)
         | 
| 30 | 
            -
                end
         | 
| 31 | 
            -
             | 
| 32 | 
            -
                # Builds the enum from string
         | 
| 33 | 
            -
                # @param [String] The enum value in the form of the string
         | 
| 34 | 
            -
                # @return [String] The enum value
         | 
| 35 | 
            -
                def build_from_hash(value)
         | 
| 36 | 
            -
                  return value if OrderStrategyExecuteBodyOrderType.all_vars.include?(value)
         | 
| 37 | 
            -
                  raise "Invalid ENUM value #{value} for class #OrderStrategyExecuteBodyOrderType"
         | 
| 38 | 
            -
                end
         | 
| 39 | 
            -
              end
         | 
| 40 | 
            -
            end
         | 
| @@ -1,38 +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 | 
            -
             | 
| 9 | 
            -
            =end
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            require 'date'
         | 
| 12 | 
            -
            require 'time'
         | 
| 13 | 
            -
             | 
| 14 | 
            -
            module SnapTrade
         | 
| 15 | 
            -
              class OrderStrategyExecuteBodyTimeInForce
         | 
| 16 | 
            -
                DAY = "DAY".freeze
         | 
| 17 | 
            -
                GTC = "GTC".freeze
         | 
| 18 | 
            -
             | 
| 19 | 
            -
                def self.all_vars
         | 
| 20 | 
            -
                  @all_vars ||= [DAY, GTC].freeze
         | 
| 21 | 
            -
                end
         | 
| 22 | 
            -
             | 
| 23 | 
            -
                # Builds the enum from string
         | 
| 24 | 
            -
                # @param [String] The enum value in the form of the string
         | 
| 25 | 
            -
                # @return [String] The enum value
         | 
| 26 | 
            -
                def self.build_from_hash(value)
         | 
| 27 | 
            -
                  new.build_from_hash(value)
         | 
| 28 | 
            -
                end
         | 
| 29 | 
            -
             | 
| 30 | 
            -
                # Builds the enum from string
         | 
| 31 | 
            -
                # @param [String] The enum value in the form of the string
         | 
| 32 | 
            -
                # @return [String] The enum value
         | 
| 33 | 
            -
                def build_from_hash(value)
         | 
| 34 | 
            -
                  return value if OrderStrategyExecuteBodyTimeInForce.all_vars.include?(value)
         | 
| 35 | 
            -
                  raise "Invalid ENUM value #{value} for class #OrderStrategyExecuteBodyTimeInForce"
         | 
| 36 | 
            -
                end
         | 
| 37 | 
            -
              end
         | 
| 38 | 
            -
            end
         | 
| @@ -1,40 +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 | 
            -
             | 
| 9 | 
            -
            =end
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            require 'date'
         | 
| 12 | 
            -
            require 'time'
         | 
| 13 | 
            -
             | 
| 14 | 
            -
            module SnapTrade
         | 
| 15 | 
            -
              class StrategyOrderRecordOrderType
         | 
| 16 | 
            -
                LIMIT = "Limit".freeze
         | 
| 17 | 
            -
                MARKET = "Market".freeze
         | 
| 18 | 
            -
                NET_DEBIT = "NetDebit".freeze
         | 
| 19 | 
            -
                NET_CREDIT = "NetCredit".freeze
         | 
| 20 | 
            -
             | 
| 21 | 
            -
                def self.all_vars
         | 
| 22 | 
            -
                  @all_vars ||= [LIMIT, MARKET, NET_DEBIT, NET_CREDIT].freeze
         | 
| 23 | 
            -
                end
         | 
| 24 | 
            -
             | 
| 25 | 
            -
                # Builds the enum from string
         | 
| 26 | 
            -
                # @param [String] The enum value in the form of the string
         | 
| 27 | 
            -
                # @return [String] The enum value
         | 
| 28 | 
            -
                def self.build_from_hash(value)
         | 
| 29 | 
            -
                  new.build_from_hash(value)
         | 
| 30 | 
            -
                end
         | 
| 31 | 
            -
             | 
| 32 | 
            -
                # Builds the enum from string
         | 
| 33 | 
            -
                # @param [String] The enum value in the form of the string
         | 
| 34 | 
            -
                # @return [String] The enum value
         | 
| 35 | 
            -
                def build_from_hash(value)
         | 
| 36 | 
            -
                  return value if StrategyOrderRecordOrderType.all_vars.include?(value)
         | 
| 37 | 
            -
                  raise "Invalid ENUM value #{value} for class #StrategyOrderRecordOrderType"
         | 
| 38 | 
            -
                end
         | 
| 39 | 
            -
              end
         | 
| 40 | 
            -
            end
         | 
| @@ -1,38 +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 | 
            -
             | 
| 9 | 
            -
            =end
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            require 'date'
         | 
| 12 | 
            -
            require 'time'
         | 
| 13 | 
            -
             | 
| 14 | 
            -
            module SnapTrade
         | 
| 15 | 
            -
              class StrategyOrderRecordTimeInForce
         | 
| 16 | 
            -
                DAY = "DAY".freeze
         | 
| 17 | 
            -
                GTC = "GTC".freeze
         | 
| 18 | 
            -
             | 
| 19 | 
            -
                def self.all_vars
         | 
| 20 | 
            -
                  @all_vars ||= [DAY, GTC].freeze
         | 
| 21 | 
            -
                end
         | 
| 22 | 
            -
             | 
| 23 | 
            -
                # Builds the enum from string
         | 
| 24 | 
            -
                # @param [String] The enum value in the form of the string
         | 
| 25 | 
            -
                # @return [String] The enum value
         | 
| 26 | 
            -
                def self.build_from_hash(value)
         | 
| 27 | 
            -
                  new.build_from_hash(value)
         | 
| 28 | 
            -
                end
         | 
| 29 | 
            -
             | 
| 30 | 
            -
                # Builds the enum from string
         | 
| 31 | 
            -
                # @param [String] The enum value in the form of the string
         | 
| 32 | 
            -
                # @return [String] The enum value
         | 
| 33 | 
            -
                def build_from_hash(value)
         | 
| 34 | 
            -
                  return value if StrategyOrderRecordTimeInForce.all_vars.include?(value)
         | 
| 35 | 
            -
                  raise "Invalid ENUM value #{value} for class #StrategyOrderRecordTimeInForce"
         | 
| 36 | 
            -
                end
         | 
| 37 | 
            -
              end
         | 
| 38 | 
            -
            end
         | 
| @@ -1,24 +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 | 
            -
             | 
| 9 | 
            -
            =end
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            require 'spec_helper'
         | 
| 12 | 
            -
            require 'json'
         | 
| 13 | 
            -
            require 'date'
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            # Unit tests for SnapTrade::OrderStrategyExecuteBodyOrderType
         | 
| 16 | 
            -
            describe SnapTrade::OrderStrategyExecuteBodyOrderType do
         | 
| 17 | 
            -
              let(:instance) { SnapTrade::OrderStrategyExecuteBodyOrderType.new }
         | 
| 18 | 
            -
             | 
| 19 | 
            -
              describe 'test an instance of OrderStrategyExecuteBodyOrderType' do
         | 
| 20 | 
            -
                it 'should create an instance of OrderStrategyExecuteBodyOrderType' do
         | 
| 21 | 
            -
                  expect(instance).to be_instance_of(SnapTrade::OrderStrategyExecuteBodyOrderType)
         | 
| 22 | 
            -
                end
         | 
| 23 | 
            -
              end
         | 
| 24 | 
            -
            end
         | 
| @@ -1,24 +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 | 
            -
             | 
| 9 | 
            -
            =end
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            require 'spec_helper'
         | 
| 12 | 
            -
            require 'json'
         | 
| 13 | 
            -
            require 'date'
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            # Unit tests for SnapTrade::OrderStrategyExecuteBodyTimeInForce
         | 
| 16 | 
            -
            describe SnapTrade::OrderStrategyExecuteBodyTimeInForce do
         | 
| 17 | 
            -
              let(:instance) { SnapTrade::OrderStrategyExecuteBodyTimeInForce.new }
         | 
| 18 | 
            -
             | 
| 19 | 
            -
              describe 'test an instance of OrderStrategyExecuteBodyTimeInForce' do
         | 
| 20 | 
            -
                it 'should create an instance of OrderStrategyExecuteBodyTimeInForce' do
         | 
| 21 | 
            -
                  expect(instance).to be_instance_of(SnapTrade::OrderStrategyExecuteBodyTimeInForce)
         | 
| 22 | 
            -
                end
         | 
| 23 | 
            -
              end
         | 
| 24 | 
            -
            end
         | 
| @@ -1,24 +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 | 
            -
             | 
| 9 | 
            -
            =end
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            require 'spec_helper'
         | 
| 12 | 
            -
            require 'json'
         | 
| 13 | 
            -
            require 'date'
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            # Unit tests for SnapTrade::StrategyOrderRecordOrderType
         | 
| 16 | 
            -
            describe SnapTrade::StrategyOrderRecordOrderType do
         | 
| 17 | 
            -
              let(:instance) { SnapTrade::StrategyOrderRecordOrderType.new }
         | 
| 18 | 
            -
             | 
| 19 | 
            -
              describe 'test an instance of StrategyOrderRecordOrderType' do
         | 
| 20 | 
            -
                it 'should create an instance of StrategyOrderRecordOrderType' do
         | 
| 21 | 
            -
                  expect(instance).to be_instance_of(SnapTrade::StrategyOrderRecordOrderType)
         | 
| 22 | 
            -
                end
         | 
| 23 | 
            -
              end
         | 
| 24 | 
            -
            end
         | 
| @@ -1,24 +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 | 
            -
             | 
| 9 | 
            -
            =end
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            require 'spec_helper'
         | 
| 12 | 
            -
            require 'json'
         | 
| 13 | 
            -
            require 'date'
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            # Unit tests for SnapTrade::StrategyOrderRecordTimeInForce
         | 
| 16 | 
            -
            describe SnapTrade::StrategyOrderRecordTimeInForce do
         | 
| 17 | 
            -
              let(:instance) { SnapTrade::StrategyOrderRecordTimeInForce.new }
         | 
| 18 | 
            -
             | 
| 19 | 
            -
              describe 'test an instance of StrategyOrderRecordTimeInForce' do
         | 
| 20 | 
            -
                it 'should create an instance of StrategyOrderRecordTimeInForce' do
         | 
| 21 | 
            -
                  expect(instance).to be_instance_of(SnapTrade::StrategyOrderRecordTimeInForce)
         | 
| 22 | 
            -
                end
         | 
| 23 | 
            -
              end
         | 
| 24 | 
            -
            end
         |