snaptrade 2.0.16 → 2.0.18
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 +31 -23
- data/lib/snaptrade/api/account_information_api.rb +4 -4
- data/lib/snaptrade/api/connections_api.rb +32 -8
- data/lib/snaptrade/api/options_api.rb +50 -20
- data/lib/snaptrade/api/reference_data_api.rb +80 -28
- data/lib/snaptrade/api/trading_api.rb +24 -4
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/account_information_api_spec.rb +1 -1
- data/spec/api/connections_api_spec.rb +6 -2
- data/spec/api/options_api_spec.rb +10 -5
- data/spec/api/reference_data_api_spec.rb +15 -7
- data/spec/api/trading_api_spec.rb +4 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: a363cc77c3f0d1064c2e6f173c15b0526b4a9e5a68bea6e38ef869c6377fd9ad
         | 
| 4 | 
            +
              data.tar.gz: d2f7de1e5805be1d96d2f47d0263889abb5165576a0230d06704e9e223053afd
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 1711b6758368a02f9c7b247f9321aac58a7cfc0a1566da2cce4696b36887b352c63e341132395ef1f49e50432917a8ffa40eef197e4804441de448156c1fb6a0
         | 
| 7 | 
            +
              data.tar.gz: d14162342db37f27e21f320f2ef837208895f274105642f13d13baf17ee2f9c87258515611a5e2d338452ae91a43e8c8a2cab18d00cb16e51f35063888abcdf2
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        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 | 
            -
            [](https://rubygems.org/gems/snaptrade/versions/2.0.18)
         | 
| 10 10 | 
             
            [](https://snaptrade.com/)
         | 
| 11 11 |  | 
| 12 12 | 
             
            </div>
         | 
| @@ -69,7 +69,7 @@ Connect brokerage accounts to your app for live positions and trading | |
| 69 69 | 
             
            Add to Gemfile:
         | 
| 70 70 |  | 
| 71 71 | 
             
            ```ruby
         | 
| 72 | 
            -
            gem 'snaptrade', '~> 2.0. | 
| 72 | 
            +
            gem 'snaptrade', '~> 2.0.18'
         | 
| 73 73 | 
             
            ```
         | 
| 74 74 |  | 
| 75 75 | 
             
            ## Getting Started<a id="getting-started"></a>
         | 
| @@ -264,7 +264,7 @@ Number of days in the past to fetch the most recent orders. Defaults to the last | |
| 264 264 |  | 
| 265 265 | 
             
            ### `snaptrade.account_information.get_user_account_positions`<a id="snaptradeaccount_informationget_user_account_positions"></a>
         | 
| 266 266 |  | 
| 267 | 
            -
            Returns a list of positions in the  | 
| 267 | 
            +
            Returns a list of positions in the specified account.
         | 
| 268 268 |  | 
| 269 269 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 270 270 |  | 
| @@ -641,7 +641,7 @@ SnapTrade user. | |
| 641 641 |  | 
| 642 642 | 
             
            ### `snaptrade.connections.detail_brokerage_authorization`<a id="snaptradeconnectionsdetail_brokerage_authorization"></a>
         | 
| 643 643 |  | 
| 644 | 
            -
             | 
| 644 | 
            +
            Returns a single brokerage authorization object for the specified ID.
         | 
| 645 645 |  | 
| 646 646 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 647 647 |  | 
| @@ -676,7 +676,7 @@ The ID of a brokerage authorization object. | |
| 676 676 |  | 
| 677 677 | 
             
            ### `snaptrade.connections.list_brokerage_authorizations`<a id="snaptradeconnectionslist_brokerage_authorizations"></a>
         | 
| 678 678 |  | 
| 679 | 
            -
             | 
| 679 | 
            +
            Returns a list of Brokerage Authorization objects for the user
         | 
| 680 680 |  | 
| 681 681 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 682 682 |  | 
| @@ -707,7 +707,7 @@ p result | |
| 707 707 |  | 
| 708 708 | 
             
            ### `snaptrade.connections.remove_brokerage_authorization`<a id="snaptradeconnectionsremove_brokerage_authorization"></a>
         | 
| 709 709 |  | 
| 710 | 
            -
             | 
| 710 | 
            +
            Deletes a specified brokerage authorization given by the ID.
         | 
| 711 711 |  | 
| 712 712 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 713 713 |  | 
| @@ -737,7 +737,7 @@ The ID of the Authorization to delete. | |
| 737 737 |  | 
| 738 738 | 
             
            ### `snaptrade.connections.session_events`<a id="snaptradeconnectionssession_events"></a>
         | 
| 739 739 |  | 
| 740 | 
            -
             | 
| 740 | 
            +
            Returns a list of session events associated with a user.
         | 
| 741 741 |  | 
| 742 742 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 743 743 |  | 
| @@ -776,7 +776,8 @@ specific users | |
| 776 776 |  | 
| 777 777 | 
             
            ### `snaptrade.options.get_option_strategy`<a id="snaptradeoptionsget_option_strategy"></a>
         | 
| 778 778 |  | 
| 779 | 
            -
            Creates an option strategy object that will be used to place an option strategy order
         | 
| 779 | 
            +
            Creates an option strategy object that will be used to place an option strategy order.
         | 
| 780 | 
            +
             | 
| 780 781 |  | 
| 781 782 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 782 783 |  | 
| @@ -823,7 +824,7 @@ The ID of the account to create the option strategy object in. | |
| 823 824 |  | 
| 824 825 | 
             
            ### `snaptrade.options.get_options_chain`<a id="snaptradeoptionsget_options_chain"></a>
         | 
| 825 826 |  | 
| 826 | 
            -
             | 
| 827 | 
            +
            Returns the option chain for the specified symbol in the specified account.
         | 
| 827 828 |  | 
| 828 829 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 829 830 |  | 
| @@ -862,7 +863,8 @@ Universal symbol ID if symbol | |
| 862 863 |  | 
| 863 864 | 
             
            ### `snaptrade.options.get_options_strategy_quote`<a id="snaptradeoptionsget_options_strategy_quote"></a>
         | 
| 864 865 |  | 
| 865 | 
            -
             | 
| 866 | 
            +
            Returns a Strategy Quotes object which has latest market data of the specified option strategy.
         | 
| 867 | 
            +
             | 
| 866 868 |  | 
| 867 869 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 868 870 |  | 
| @@ -901,7 +903,8 @@ Option strategy id obtained from response when creating option strategy object | |
| 901 903 |  | 
| 902 904 | 
             
            ### `snaptrade.options.list_option_holdings`<a id="snaptradeoptionslist_option_holdings"></a>
         | 
| 903 905 |  | 
| 904 | 
            -
             | 
| 906 | 
            +
            Returns a list of Options Positions.
         | 
| 907 | 
            +
             | 
| 905 908 |  | 
| 906 909 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 907 910 |  | 
| @@ -936,7 +939,7 @@ The ID of the account to fetch options holdings for. | |
| 936 939 |  | 
| 937 940 | 
             
            ### `snaptrade.options.place_option_strategy`<a id="snaptradeoptionsplace_option_strategy"></a>
         | 
| 938 941 |  | 
| 939 | 
            -
             | 
| 942 | 
            +
            Places the option strategy order and returns the order record received from the brokerage.
         | 
| 940 943 |  | 
| 941 944 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 942 945 |  | 
| @@ -988,7 +991,7 @@ Trade Price if limit or stop limit order | |
| 988 991 |  | 
| 989 992 | 
             
            ### `snaptrade.reference_data.get_currency_exchange_rate_pair`<a id="snaptradereference_dataget_currency_exchange_rate_pair"></a>
         | 
| 990 993 |  | 
| 991 | 
            -
             | 
| 994 | 
            +
            Returns an Exchange Rate Pair object for the specified Currency Pair.
         | 
| 992 995 |  | 
| 993 996 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 994 997 |  | 
| @@ -1067,7 +1070,7 @@ p result | |
| 1067 1070 |  | 
| 1068 1071 | 
             
            ### `snaptrade.reference_data.get_stock_exchanges`<a id="snaptradereference_dataget_stock_exchanges"></a>
         | 
| 1069 1072 |  | 
| 1070 | 
            -
             | 
| 1073 | 
            +
            Returns a list of all supported Exchanges.
         | 
| 1071 1074 |  | 
| 1072 1075 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1073 1076 |  | 
| @@ -1091,7 +1094,10 @@ p result | |
| 1091 1094 |  | 
| 1092 1095 | 
             
            ### `snaptrade.reference_data.get_symbols`<a id="snaptradereference_dataget_symbols"></a>
         | 
| 1093 1096 |  | 
| 1094 | 
            -
             | 
| 1097 | 
            +
            Returns a list of Universal Symbol objects that match a defined string.
         | 
| 1098 | 
            +
             | 
| 1099 | 
            +
            Matches on ticker or name.
         | 
| 1100 | 
            +
             | 
| 1095 1101 |  | 
| 1096 1102 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1097 1103 |  | 
| @@ -1120,7 +1126,7 @@ p result | |
| 1120 1126 |  | 
| 1121 1127 | 
             
            ### `snaptrade.reference_data.get_symbols_by_ticker`<a id="snaptradereference_dataget_symbols_by_ticker"></a>
         | 
| 1122 1128 |  | 
| 1123 | 
            -
             | 
| 1129 | 
            +
            Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
         | 
| 1124 1130 |  | 
| 1125 1131 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1126 1132 |  | 
| @@ -1151,7 +1157,7 @@ The ticker or universal_symbol_id of the UniversalSymbol to get. | |
| 1151 1157 |  | 
| 1152 1158 | 
             
            ### `snaptrade.reference_data.list_all_brokerage_authorization_type`<a id="snaptradereference_datalist_all_brokerage_authorization_type"></a>
         | 
| 1153 1159 |  | 
| 1154 | 
            -
             | 
| 1160 | 
            +
            Returns a list of all defined Brokerage authorization Type objects.
         | 
| 1155 1161 |  | 
| 1156 1162 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1157 1163 |  | 
| @@ -1182,7 +1188,7 @@ Comma separated value of brokerage slugs | |
| 1182 1188 |  | 
| 1183 1189 | 
             
            ### `snaptrade.reference_data.list_all_brokerages`<a id="snaptradereference_datalist_all_brokerages"></a>
         | 
| 1184 1190 |  | 
| 1185 | 
            -
             | 
| 1191 | 
            +
            Returns a list of all defined Brokerage objects.
         | 
| 1186 1192 |  | 
| 1187 1193 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1188 1194 |  | 
| @@ -1206,7 +1212,7 @@ p result | |
| 1206 1212 |  | 
| 1207 1213 | 
             
            ### `snaptrade.reference_data.list_all_currencies`<a id="snaptradereference_datalist_all_currencies"></a>
         | 
| 1208 1214 |  | 
| 1209 | 
            -
             | 
| 1215 | 
            +
            Returns a list of all defined Currency objects.
         | 
| 1210 1216 |  | 
| 1211 1217 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1212 1218 |  | 
| @@ -1230,7 +1236,7 @@ p result | |
| 1230 1236 |  | 
| 1231 1237 | 
             
            ### `snaptrade.reference_data.list_all_currencies_rates`<a id="snaptradereference_datalist_all_currencies_rates"></a>
         | 
| 1232 1238 |  | 
| 1233 | 
            -
             | 
| 1239 | 
            +
            Returns a list of all Exchange Rate Pairs for all supported Currencies.
         | 
| 1234 1240 |  | 
| 1235 1241 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1236 1242 |  | 
| @@ -1333,7 +1339,7 @@ The ID of the account to cancel the order in. | |
| 1333 1339 |  | 
| 1334 1340 | 
             
            ### `snaptrade.trading.get_order_impact`<a id="snaptradetradingget_order_impact"></a>
         | 
| 1335 1341 |  | 
| 1336 | 
            -
             | 
| 1342 | 
            +
            Return the trade object and it's impact on the account for the specified order.
         | 
| 1337 1343 |  | 
| 1338 1344 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1339 1345 |  | 
| @@ -1436,7 +1442,7 @@ Should be set to True if providing tickers. | |
| 1436 1442 |  | 
| 1437 1443 | 
             
            ### `snaptrade.trading.place_force_order`<a id="snaptradetradingplace_force_order"></a>
         | 
| 1438 1444 |  | 
| 1439 | 
            -
             | 
| 1445 | 
            +
            Places a specified trade in the specified account.
         | 
| 1440 1446 |  | 
| 1441 1447 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1442 1448 |  | 
| @@ -1496,7 +1502,9 @@ Canceled | |
| 1496 1502 |  | 
| 1497 1503 | 
             
            ### `snaptrade.trading.place_order`<a id="snaptradetradingplace_order"></a>
         | 
| 1498 1504 |  | 
| 1499 | 
            -
             | 
| 1505 | 
            +
            Places the specified trade object. This places the order in the account and
         | 
| 1506 | 
            +
            returns the status of the order from the brokerage.
         | 
| 1507 | 
            +
             | 
| 1500 1508 |  | 
| 1501 1509 | 
             
            #### 🛠️ Usage<a id="🛠️-usage"></a>
         | 
| 1502 1510 |  | 
| @@ -456,7 +456,7 @@ module SnapTrade | |
| 456 456 |  | 
| 457 457 | 
             
                # List account positions
         | 
| 458 458 | 
             
                #
         | 
| 459 | 
            -
                # Returns a list of positions in the  | 
| 459 | 
            +
                # Returns a list of positions in the specified account.
         | 
| 460 460 | 
             
                #
         | 
| 461 461 | 
             
                # @param user_id [String] 
         | 
| 462 462 | 
             
                # @param user_secret [String] 
         | 
| @@ -469,7 +469,7 @@ module SnapTrade | |
| 469 469 |  | 
| 470 470 | 
             
                # List account positions
         | 
| 471 471 | 
             
                #
         | 
| 472 | 
            -
                # Returns a list of positions in the  | 
| 472 | 
            +
                # Returns a list of positions in the specified account.
         | 
| 473 473 | 
             
                #
         | 
| 474 474 | 
             
                # @param user_id [String] 
         | 
| 475 475 | 
             
                # @param user_secret [String] 
         | 
| @@ -480,7 +480,7 @@ module SnapTrade | |
| 480 480 | 
             
                end
         | 
| 481 481 |  | 
| 482 482 | 
             
                # List account positions
         | 
| 483 | 
            -
                # Returns a list of positions in the  | 
| 483 | 
            +
                # Returns a list of positions in the specified account.
         | 
| 484 484 | 
             
                # @param user_id [String] 
         | 
| 485 485 | 
             
                # @param user_secret [String] 
         | 
| 486 486 | 
             
                # @param account_id [String] The ID of the account to get positions.
         | 
| @@ -492,7 +492,7 @@ module SnapTrade | |
| 492 492 | 
             
                end
         | 
| 493 493 |  | 
| 494 494 | 
             
                # List account positions
         | 
| 495 | 
            -
                # Returns a list of positions in the  | 
| 495 | 
            +
                # Returns a list of positions in the specified account.
         | 
| 496 496 | 
             
                # @param user_id [String] 
         | 
| 497 497 | 
             
                # @param user_secret [String] 
         | 
| 498 498 | 
             
                # @param account_id [String] The ID of the account to get positions.
         | 
| @@ -19,6 +19,8 @@ module SnapTrade | |
| 19 19 |  | 
| 20 20 | 
             
                # Get brokerage authorization details
         | 
| 21 21 | 
             
                #
         | 
| 22 | 
            +
                # Returns a single brokerage authorization object for the specified ID.
         | 
| 23 | 
            +
                #
         | 
| 22 24 | 
             
                # @param authorization_id [String] The ID of a brokerage authorization object.
         | 
| 23 25 | 
             
                # @param user_id [String] 
         | 
| 24 26 | 
             
                # @param user_secret [String] 
         | 
| @@ -30,6 +32,8 @@ module SnapTrade | |
| 30 32 |  | 
| 31 33 | 
             
                # Get brokerage authorization details
         | 
| 32 34 | 
             
                #
         | 
| 35 | 
            +
                # Returns a single brokerage authorization object for the specified ID.
         | 
| 36 | 
            +
                #
         | 
| 33 37 | 
             
                # @param authorization_id [String] The ID of a brokerage authorization object.
         | 
| 34 38 | 
             
                # @param user_id [String] 
         | 
| 35 39 | 
             
                # @param user_secret [String] 
         | 
| @@ -39,6 +43,7 @@ module SnapTrade | |
| 39 43 | 
             
                end
         | 
| 40 44 |  | 
| 41 45 | 
             
                # Get brokerage authorization details
         | 
| 46 | 
            +
                # Returns a single brokerage authorization object for the specified ID.
         | 
| 42 47 | 
             
                # @param authorization_id [String] The ID of a brokerage authorization object.
         | 
| 43 48 | 
             
                # @param user_id [String] 
         | 
| 44 49 | 
             
                # @param user_secret [String] 
         | 
| @@ -50,6 +55,7 @@ module SnapTrade | |
| 50 55 | 
             
                end
         | 
| 51 56 |  | 
| 52 57 | 
             
                # Get brokerage authorization details
         | 
| 58 | 
            +
                # Returns a single brokerage authorization object for the specified ID.
         | 
| 53 59 | 
             
                # @param authorization_id [String] The ID of a brokerage authorization object.
         | 
| 54 60 | 
             
                # @param user_id [String] 
         | 
| 55 61 | 
             
                # @param user_secret [String] 
         | 
| @@ -114,7 +120,9 @@ module SnapTrade | |
| 114 120 | 
             
                end
         | 
| 115 121 |  | 
| 116 122 |  | 
| 117 | 
            -
                # List all brokerage authorizations for the  | 
| 123 | 
            +
                # List all brokerage authorizations for the User
         | 
| 124 | 
            +
                #
         | 
| 125 | 
            +
                # Returns a list of Brokerage Authorization objects for the user
         | 
| 118 126 | 
             
                #
         | 
| 119 127 | 
             
                # @param user_id [String] 
         | 
| 120 128 | 
             
                # @param user_secret [String] 
         | 
| @@ -124,7 +132,9 @@ module SnapTrade | |
| 124 132 | 
             
                  data
         | 
| 125 133 | 
             
                end
         | 
| 126 134 |  | 
| 127 | 
            -
                # List all brokerage authorizations for the  | 
| 135 | 
            +
                # List all brokerage authorizations for the User
         | 
| 136 | 
            +
                #
         | 
| 137 | 
            +
                # Returns a list of Brokerage Authorization objects for the user
         | 
| 128 138 | 
             
                #
         | 
| 129 139 | 
             
                # @param user_id [String] 
         | 
| 130 140 | 
             
                # @param user_secret [String] 
         | 
| @@ -133,7 +143,8 @@ module SnapTrade | |
| 133 143 | 
             
                  list_brokerage_authorizations_with_http_info_impl(user_id, user_secret, extra)
         | 
| 134 144 | 
             
                end
         | 
| 135 145 |  | 
| 136 | 
            -
                # List all brokerage authorizations for the  | 
| 146 | 
            +
                # List all brokerage authorizations for the User
         | 
| 147 | 
            +
                # Returns a list of Brokerage Authorization objects for the user
         | 
| 137 148 | 
             
                # @param user_id [String] 
         | 
| 138 149 | 
             
                # @param user_secret [String] 
         | 
| 139 150 | 
             
                # @param [Hash] opts the optional parameters
         | 
| @@ -143,7 +154,8 @@ module SnapTrade | |
| 143 154 | 
             
                  data
         | 
| 144 155 | 
             
                end
         | 
| 145 156 |  | 
| 146 | 
            -
                # List all brokerage authorizations for the  | 
| 157 | 
            +
                # List all brokerage authorizations for the User
         | 
| 158 | 
            +
                # Returns a list of Brokerage Authorization objects for the user
         | 
| 147 159 | 
             
                # @param user_id [String] 
         | 
| 148 160 | 
             
                # @param user_secret [String] 
         | 
| 149 161 | 
             
                # @param [Hash] opts the optional parameters
         | 
| @@ -205,6 +217,8 @@ module SnapTrade | |
| 205 217 |  | 
| 206 218 | 
             
                # Delete brokerage authorization
         | 
| 207 219 | 
             
                #
         | 
| 220 | 
            +
                # Deletes a specified brokerage authorization given by the ID.
         | 
| 221 | 
            +
                #
         | 
| 208 222 | 
             
                # @param authorization_id [String] The ID of the Authorization to delete.
         | 
| 209 223 | 
             
                # @param user_id [String] 
         | 
| 210 224 | 
             
                # @param user_secret [String] 
         | 
| @@ -216,6 +230,8 @@ module SnapTrade | |
| 216 230 |  | 
| 217 231 | 
             
                # Delete brokerage authorization
         | 
| 218 232 | 
             
                #
         | 
| 233 | 
            +
                # Deletes a specified brokerage authorization given by the ID.
         | 
| 234 | 
            +
                #
         | 
| 219 235 | 
             
                # @param authorization_id [String] The ID of the Authorization to delete.
         | 
| 220 236 | 
             
                # @param user_id [String] 
         | 
| 221 237 | 
             
                # @param user_secret [String] 
         | 
| @@ -225,6 +241,7 @@ module SnapTrade | |
| 225 241 | 
             
                end
         | 
| 226 242 |  | 
| 227 243 | 
             
                # Delete brokerage authorization
         | 
| 244 | 
            +
                # Deletes a specified brokerage authorization given by the ID.
         | 
| 228 245 | 
             
                # @param authorization_id [String] The ID of the Authorization to delete.
         | 
| 229 246 | 
             
                # @param user_id [String] 
         | 
| 230 247 | 
             
                # @param user_secret [String] 
         | 
| @@ -236,6 +253,7 @@ module SnapTrade | |
| 236 253 | 
             
                end
         | 
| 237 254 |  | 
| 238 255 | 
             
                # Delete brokerage authorization
         | 
| 256 | 
            +
                # Deletes a specified brokerage authorization given by the ID.
         | 
| 239 257 | 
             
                # @param authorization_id [String] The ID of the Authorization to delete.
         | 
| 240 258 | 
             
                # @param user_id [String] 
         | 
| 241 259 | 
             
                # @param user_secret [String] 
         | 
| @@ -298,7 +316,9 @@ module SnapTrade | |
| 298 316 | 
             
                end
         | 
| 299 317 |  | 
| 300 318 |  | 
| 301 | 
            -
                #  | 
| 319 | 
            +
                # Get all session events for a user
         | 
| 320 | 
            +
                #
         | 
| 321 | 
            +
                # Returns a list of session events associated with a user.
         | 
| 302 322 | 
             
                #
         | 
| 303 323 | 
             
                # @param partner_client_id [String] 
         | 
| 304 324 | 
             
                # @param user_id [String] Optional comma seperated list of user IDs used to filter the request on specific users
         | 
| @@ -311,7 +331,9 @@ module SnapTrade | |
| 311 331 | 
             
                  data
         | 
| 312 332 | 
             
                end
         | 
| 313 333 |  | 
| 314 | 
            -
                #  | 
| 334 | 
            +
                # Get all session events for a user
         | 
| 335 | 
            +
                #
         | 
| 336 | 
            +
                # Returns a list of session events associated with a user.
         | 
| 315 337 | 
             
                #
         | 
| 316 338 | 
             
                # @param partner_client_id [String] 
         | 
| 317 339 | 
             
                # @param user_id [String] Optional comma seperated list of user IDs used to filter the request on specific users
         | 
| @@ -323,7 +345,8 @@ module SnapTrade | |
| 323 345 | 
             
                  session_events_with_http_info_impl(partner_client_id, extra)
         | 
| 324 346 | 
             
                end
         | 
| 325 347 |  | 
| 326 | 
            -
                #  | 
| 348 | 
            +
                # Get all session events for a user
         | 
| 349 | 
            +
                # Returns a list of session events associated with a user.
         | 
| 327 350 | 
             
                # @param partner_client_id [String] 
         | 
| 328 351 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 329 352 | 
             
                # @option opts [String] :user_id Optional comma seperated list of user IDs used to filter the request on specific users
         | 
| @@ -334,7 +357,8 @@ module SnapTrade | |
| 334 357 | 
             
                  data
         | 
| 335 358 | 
             
                end
         | 
| 336 359 |  | 
| 337 | 
            -
                #  | 
| 360 | 
            +
                # Get all session events for a user
         | 
| 361 | 
            +
                # Returns a list of session events associated with a user.
         | 
| 338 362 | 
             
                # @param partner_client_id [String] 
         | 
| 339 363 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 340 364 | 
             
                # @option opts [String] :user_id Optional comma seperated list of user IDs used to filter the request on specific users
         | 
| @@ -17,7 +17,9 @@ module SnapTrade | |
| 17 17 | 
             
                  @api_client = api_client
         | 
| 18 18 | 
             
                end
         | 
| 19 19 |  | 
| 20 | 
            -
                #  | 
| 20 | 
            +
                # Create options strategy
         | 
| 21 | 
            +
                #
         | 
| 22 | 
            +
                # Creates an option strategy object that will be used to place an option strategy order.
         | 
| 21 23 | 
             
                #
         | 
| 22 24 | 
             
                # @param underlying_symbol_id [String] 
         | 
| 23 25 | 
             
                # @param legs [Array<OptionLeg>] 
         | 
| @@ -37,7 +39,9 @@ module SnapTrade | |
| 37 39 | 
             
                  data
         | 
| 38 40 | 
             
                end
         | 
| 39 41 |  | 
| 40 | 
            -
                #  | 
| 42 | 
            +
                # Create options strategy
         | 
| 43 | 
            +
                #
         | 
| 44 | 
            +
                # Creates an option strategy object that will be used to place an option strategy order.
         | 
| 41 45 | 
             
                #
         | 
| 42 46 | 
             
                # @param underlying_symbol_id [String] 
         | 
| 43 47 | 
             
                # @param legs [Array<OptionLeg>] 
         | 
| @@ -56,7 +60,8 @@ module SnapTrade | |
| 56 60 | 
             
                  get_option_strategy_with_http_info_impl(user_id, user_secret, account_id, options_get_option_strategy_request, extra)
         | 
| 57 61 | 
             
                end
         | 
| 58 62 |  | 
| 59 | 
            -
                #  | 
| 63 | 
            +
                # Create options strategy
         | 
| 64 | 
            +
                # Creates an option strategy object that will be used to place an option strategy order. 
         | 
| 60 65 | 
             
                # @param user_id [String] 
         | 
| 61 66 | 
             
                # @param user_secret [String] 
         | 
| 62 67 | 
             
                # @param account_id [String] The ID of the account to create the option strategy object in.
         | 
| @@ -68,7 +73,8 @@ module SnapTrade | |
| 68 73 | 
             
                  data
         | 
| 69 74 | 
             
                end
         | 
| 70 75 |  | 
| 71 | 
            -
                #  | 
| 76 | 
            +
                # Create options strategy
         | 
| 77 | 
            +
                # Creates an option strategy object that will be used to place an option strategy order. 
         | 
| 72 78 | 
             
                # @param user_id [String] 
         | 
| 73 79 | 
             
                # @param user_secret [String] 
         | 
| 74 80 | 
             
                # @param account_id [String] The ID of the account to create the option strategy object in.
         | 
| @@ -143,7 +149,9 @@ module SnapTrade | |
| 143 149 | 
             
                end
         | 
| 144 150 |  | 
| 145 151 |  | 
| 146 | 
            -
                # Get the options chain
         | 
| 152 | 
            +
                # Get the options chain for a symbol
         | 
| 153 | 
            +
                #
         | 
| 154 | 
            +
                # Returns the option chain for the specified symbol in the specified account.
         | 
| 147 155 | 
             
                #
         | 
| 148 156 | 
             
                # @param user_id [String] 
         | 
| 149 157 | 
             
                # @param user_secret [String] 
         | 
| @@ -155,7 +163,9 @@ module SnapTrade | |
| 155 163 | 
             
                  data
         | 
| 156 164 | 
             
                end
         | 
| 157 165 |  | 
| 158 | 
            -
                # Get the options chain
         | 
| 166 | 
            +
                # Get the options chain for a symbol
         | 
| 167 | 
            +
                #
         | 
| 168 | 
            +
                # Returns the option chain for the specified symbol in the specified account.
         | 
| 159 169 | 
             
                #
         | 
| 160 170 | 
             
                # @param user_id [String] 
         | 
| 161 171 | 
             
                # @param user_secret [String] 
         | 
| @@ -166,7 +176,8 @@ module SnapTrade | |
| 166 176 | 
             
                  get_options_chain_with_http_info_impl(user_id, user_secret, account_id, symbol, extra)
         | 
| 167 177 | 
             
                end
         | 
| 168 178 |  | 
| 169 | 
            -
                # Get the options chain
         | 
| 179 | 
            +
                # Get the options chain for a symbol
         | 
| 180 | 
            +
                # Returns the option chain for the specified symbol in the specified account.
         | 
| 170 181 | 
             
                # @param user_id [String] 
         | 
| 171 182 | 
             
                # @param user_secret [String] 
         | 
| 172 183 | 
             
                # @param account_id [String] The ID of the account to get the options chain from.
         | 
| @@ -178,7 +189,8 @@ module SnapTrade | |
| 178 189 | 
             
                  data
         | 
| 179 190 | 
             
                end
         | 
| 180 191 |  | 
| 181 | 
            -
                # Get the options chain
         | 
| 192 | 
            +
                # Get the options chain for a symbol
         | 
| 193 | 
            +
                # Returns the option chain for the specified symbol in the specified account.
         | 
| 182 194 | 
             
                # @param user_id [String] 
         | 
| 183 195 | 
             
                # @param user_secret [String] 
         | 
| 184 196 | 
             
                # @param account_id [String] The ID of the account to get the options chain from.
         | 
| @@ -249,7 +261,9 @@ module SnapTrade | |
| 249 261 | 
             
                end
         | 
| 250 262 |  | 
| 251 263 |  | 
| 252 | 
            -
                # Get  | 
| 264 | 
            +
                # Get options strategy quotes
         | 
| 265 | 
            +
                #
         | 
| 266 | 
            +
                # Returns a Strategy Quotes object which has latest market data of the specified option strategy.
         | 
| 253 267 | 
             
                #
         | 
| 254 268 | 
             
                # @param user_id [String] 
         | 
| 255 269 | 
             
                # @param user_secret [String] 
         | 
| @@ -261,7 +275,9 @@ module SnapTrade | |
| 261 275 | 
             
                  data
         | 
| 262 276 | 
             
                end
         | 
| 263 277 |  | 
| 264 | 
            -
                # Get  | 
| 278 | 
            +
                # Get options strategy quotes
         | 
| 279 | 
            +
                #
         | 
| 280 | 
            +
                # Returns a Strategy Quotes object which has latest market data of the specified option strategy.
         | 
| 265 281 | 
             
                #
         | 
| 266 282 | 
             
                # @param user_id [String] 
         | 
| 267 283 | 
             
                # @param user_secret [String] 
         | 
| @@ -272,7 +288,8 @@ module SnapTrade | |
| 272 288 | 
             
                  get_options_strategy_quote_with_http_info_impl(user_id, user_secret, account_id, option_strategy_id, extra)
         | 
| 273 289 | 
             
                end
         | 
| 274 290 |  | 
| 275 | 
            -
                # Get  | 
| 291 | 
            +
                # Get options strategy quotes
         | 
| 292 | 
            +
                # Returns a Strategy Quotes object which has latest market data of the specified option strategy. 
         | 
| 276 293 | 
             
                # @param user_id [String] 
         | 
| 277 294 | 
             
                # @param user_secret [String] 
         | 
| 278 295 | 
             
                # @param account_id [String] The ID of the account the strategy will be placed in.
         | 
| @@ -284,7 +301,8 @@ module SnapTrade | |
| 284 301 | 
             
                  data
         | 
| 285 302 | 
             
                end
         | 
| 286 303 |  | 
| 287 | 
            -
                # Get  | 
| 304 | 
            +
                # Get options strategy quotes
         | 
| 305 | 
            +
                # Returns a Strategy Quotes object which has latest market data of the specified option strategy. 
         | 
| 288 306 | 
             
                # @param user_id [String] 
         | 
| 289 307 | 
             
                # @param user_secret [String] 
         | 
| 290 308 | 
             
                # @param account_id [String] The ID of the account the strategy will be placed in.
         | 
| @@ -354,7 +372,9 @@ module SnapTrade | |
| 354 372 | 
             
                end
         | 
| 355 373 |  | 
| 356 374 |  | 
| 357 | 
            -
                # Get  | 
| 375 | 
            +
                # Get account option holdings
         | 
| 376 | 
            +
                #
         | 
| 377 | 
            +
                # Returns a list of Options Positions.
         | 
| 358 378 | 
             
                #
         | 
| 359 379 | 
             
                # @param user_id [String] 
         | 
| 360 380 | 
             
                # @param user_secret [String] 
         | 
| @@ -365,7 +385,9 @@ module SnapTrade | |
| 365 385 | 
             
                  data
         | 
| 366 386 | 
             
                end
         | 
| 367 387 |  | 
| 368 | 
            -
                # Get  | 
| 388 | 
            +
                # Get account option holdings
         | 
| 389 | 
            +
                #
         | 
| 390 | 
            +
                # Returns a list of Options Positions.
         | 
| 369 391 | 
             
                #
         | 
| 370 392 | 
             
                # @param user_id [String] 
         | 
| 371 393 | 
             
                # @param user_secret [String] 
         | 
| @@ -375,7 +397,8 @@ module SnapTrade | |
| 375 397 | 
             
                  list_option_holdings_with_http_info_impl(user_id, user_secret, account_id, extra)
         | 
| 376 398 | 
             
                end
         | 
| 377 399 |  | 
| 378 | 
            -
                # Get  | 
| 400 | 
            +
                # Get account option holdings
         | 
| 401 | 
            +
                # Returns a list of Options Positions. 
         | 
| 379 402 | 
             
                # @param user_id [String] 
         | 
| 380 403 | 
             
                # @param user_secret [String] 
         | 
| 381 404 | 
             
                # @param account_id [String] The ID of the account to fetch options holdings for.
         | 
| @@ -386,7 +409,8 @@ module SnapTrade | |
| 386 409 | 
             
                  data
         | 
| 387 410 | 
             
                end
         | 
| 388 411 |  | 
| 389 | 
            -
                # Get  | 
| 412 | 
            +
                # Get account option holdings
         | 
| 413 | 
            +
                # Returns a list of Options Positions. 
         | 
| 390 414 | 
             
                # @param user_id [String] 
         | 
| 391 415 | 
             
                # @param user_secret [String] 
         | 
| 392 416 | 
             
                # @param account_id [String] The ID of the account to fetch options holdings for.
         | 
| @@ -451,7 +475,9 @@ module SnapTrade | |
| 451 475 | 
             
                end
         | 
| 452 476 |  | 
| 453 477 |  | 
| 454 | 
            -
                # Place an option strategy order | 
| 478 | 
            +
                # Place an option strategy order
         | 
| 479 | 
            +
                #
         | 
| 480 | 
            +
                # Places the option strategy order and returns the order record received from the brokerage.
         | 
| 455 481 | 
             
                #
         | 
| 456 482 | 
             
                # @param order_type [OrderType] Order Type
         | 
| 457 483 | 
             
                # @param time_in_force [TimeInForceStrict] Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled 
         | 
| @@ -472,7 +498,9 @@ module SnapTrade | |
| 472 498 | 
             
                  data
         | 
| 473 499 | 
             
                end
         | 
| 474 500 |  | 
| 475 | 
            -
                # Place an option strategy order | 
| 501 | 
            +
                # Place an option strategy order
         | 
| 502 | 
            +
                #
         | 
| 503 | 
            +
                # Places the option strategy order and returns the order record received from the brokerage.
         | 
| 476 504 | 
             
                #
         | 
| 477 505 | 
             
                # @param order_type [OrderType] Order Type
         | 
| 478 506 | 
             
                # @param time_in_force [TimeInForceStrict] Trade time in force examples: * FOK - Fill Or Kill * Day - Day * GTC - Good Til Canceled 
         | 
| @@ -492,7 +520,8 @@ module SnapTrade | |
| 492 520 | 
             
                  place_option_strategy_with_http_info_impl(user_id, user_secret, account_id, option_strategy_id, options_place_option_strategy_request, extra)
         | 
| 493 521 | 
             
                end
         | 
| 494 522 |  | 
| 495 | 
            -
                # Place an option strategy order | 
| 523 | 
            +
                # Place an option strategy order
         | 
| 524 | 
            +
                # Places the option strategy order and returns the order record received from the brokerage.
         | 
| 496 525 | 
             
                # @param user_id [String] 
         | 
| 497 526 | 
             
                # @param user_secret [String] 
         | 
| 498 527 | 
             
                # @param account_id [String] The ID of the account to execute the strategy in.
         | 
| @@ -505,7 +534,8 @@ module SnapTrade | |
| 505 534 | 
             
                  data
         | 
| 506 535 | 
             
                end
         | 
| 507 536 |  | 
| 508 | 
            -
                # Place an option strategy order | 
| 537 | 
            +
                # Place an option strategy order
         | 
| 538 | 
            +
                # Places the option strategy order and returns the order record received from the brokerage.
         | 
| 509 539 | 
             
                # @param user_id [String] 
         | 
| 510 540 | 
             
                # @param user_secret [String] 
         | 
| 511 541 | 
             
                # @param account_id [String] The ID of the account to execute the strategy in.
         | 
| @@ -17,7 +17,9 @@ module SnapTrade | |
| 17 17 | 
             
                  @api_client = api_client
         | 
| 18 18 | 
             
                end
         | 
| 19 19 |  | 
| 20 | 
            -
                #  | 
| 20 | 
            +
                # Get exchange rate of a currency pair
         | 
| 21 | 
            +
                #
         | 
| 22 | 
            +
                # Returns an Exchange Rate Pair object for the specified Currency Pair.
         | 
| 21 23 | 
             
                #
         | 
| 22 24 | 
             
                # @param currency_pair [String] A currency pair based on currency code for example, {CAD-USD}
         | 
| 23 25 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| @@ -26,7 +28,9 @@ module SnapTrade | |
| 26 28 | 
             
                  data
         | 
| 27 29 | 
             
                end
         | 
| 28 30 |  | 
| 29 | 
            -
                #  | 
| 31 | 
            +
                # Get exchange rate of a currency pair
         | 
| 32 | 
            +
                #
         | 
| 33 | 
            +
                # Returns an Exchange Rate Pair object for the specified Currency Pair.
         | 
| 30 34 | 
             
                #
         | 
| 31 35 | 
             
                # @param currency_pair [String] A currency pair based on currency code for example, {CAD-USD}
         | 
| 32 36 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| @@ -34,7 +38,8 @@ module SnapTrade | |
| 34 38 | 
             
                  get_currency_exchange_rate_pair_with_http_info_impl(currency_pair, extra)
         | 
| 35 39 | 
             
                end
         | 
| 36 40 |  | 
| 37 | 
            -
                #  | 
| 41 | 
            +
                # Get exchange rate of a currency pair
         | 
| 42 | 
            +
                # Returns an Exchange Rate Pair object for the specified Currency Pair.
         | 
| 38 43 | 
             
                # @param currency_pair [String] A currency pair based on currency code for example, {CAD-USD}
         | 
| 39 44 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 40 45 | 
             
                # @return [ExchangeRatePairs]
         | 
| @@ -43,7 +48,8 @@ module SnapTrade | |
| 43 48 | 
             
                  data
         | 
| 44 49 | 
             
                end
         | 
| 45 50 |  | 
| 46 | 
            -
                #  | 
| 51 | 
            +
                # Get exchange rate of a currency pair
         | 
| 52 | 
            +
                # Returns an Exchange Rate Pair object for the specified Currency Pair.
         | 
| 47 53 | 
             
                # @param currency_pair [String] A currency pair based on currency code for example, {CAD-USD}
         | 
| 48 54 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 49 55 | 
             
                # @return [Array<(ExchangeRatePairs, Integer, Hash)>] ExchangeRatePairs data, response status code and response headers
         | 
| @@ -250,7 +256,9 @@ module SnapTrade | |
| 250 256 | 
             
                end
         | 
| 251 257 |  | 
| 252 258 |  | 
| 253 | 
            -
                #  | 
| 259 | 
            +
                # Get exchanges
         | 
| 260 | 
            +
                #
         | 
| 261 | 
            +
                # Returns a list of all supported Exchanges.
         | 
| 254 262 | 
             
                #
         | 
| 255 263 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 256 264 | 
             
                def get_stock_exchanges(extra: {})
         | 
| @@ -258,14 +266,17 @@ module SnapTrade | |
| 258 266 | 
             
                  data
         | 
| 259 267 | 
             
                end
         | 
| 260 268 |  | 
| 261 | 
            -
                #  | 
| 269 | 
            +
                # Get exchanges
         | 
| 270 | 
            +
                #
         | 
| 271 | 
            +
                # Returns a list of all supported Exchanges.
         | 
| 262 272 | 
             
                #
         | 
| 263 273 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 264 274 | 
             
                def get_stock_exchanges_with_http_info(extra: {})
         | 
| 265 275 | 
             
                  get_stock_exchanges_with_http_info_impl(extra)
         | 
| 266 276 | 
             
                end
         | 
| 267 277 |  | 
| 268 | 
            -
                #  | 
| 278 | 
            +
                # Get exchanges
         | 
| 279 | 
            +
                # Returns a list of all supported Exchanges.
         | 
| 269 280 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 270 281 | 
             
                # @return [Array<Exchange>]
         | 
| 271 282 | 
             
                private def get_stock_exchanges_impl(opts = {})
         | 
| @@ -273,7 +284,8 @@ module SnapTrade | |
| 273 284 | 
             
                  data
         | 
| 274 285 | 
             
                end
         | 
| 275 286 |  | 
| 276 | 
            -
                #  | 
| 287 | 
            +
                # Get exchanges
         | 
| 288 | 
            +
                # Returns a list of all supported Exchanges.
         | 
| 277 289 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 278 290 | 
             
                # @return [Array<(Array<Exchange>, Integer, Hash)>] Array<Exchange> data, response status code and response headers
         | 
| 279 291 | 
             
                private def get_stock_exchanges_with_http_info_impl(opts = {})
         | 
| @@ -323,6 +335,10 @@ module SnapTrade | |
| 323 335 |  | 
| 324 336 | 
             
                # Search for symbols
         | 
| 325 337 | 
             
                #
         | 
| 338 | 
            +
                # Returns a list of Universal Symbol objects that match a defined string.
         | 
| 339 | 
            +
                # 
         | 
| 340 | 
            +
                # Matches on ticker or name.
         | 
| 341 | 
            +
                #
         | 
| 326 342 | 
             
                # @param substring [String] 
         | 
| 327 343 | 
             
                # @param body [SymbolQuery] 
         | 
| 328 344 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| @@ -336,6 +352,10 @@ module SnapTrade | |
| 336 352 |  | 
| 337 353 | 
             
                # Search for symbols
         | 
| 338 354 | 
             
                #
         | 
| 355 | 
            +
                # Returns a list of Universal Symbol objects that match a defined string.
         | 
| 356 | 
            +
                # 
         | 
| 357 | 
            +
                # Matches on ticker or name.
         | 
| 358 | 
            +
                #
         | 
| 339 359 | 
             
                # @param substring [String] 
         | 
| 340 360 | 
             
                # @param body [SymbolQuery] 
         | 
| 341 361 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| @@ -347,6 +367,7 @@ module SnapTrade | |
| 347 367 | 
             
                end
         | 
| 348 368 |  | 
| 349 369 | 
             
                # Search for symbols
         | 
| 370 | 
            +
                # Returns a list of Universal Symbol objects that match a defined string.  Matches on ticker or name. 
         | 
| 350 371 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 351 372 | 
             
                # @option opts [SymbolQuery] :symbol_query 
         | 
| 352 373 | 
             
                # @return [Array<UniversalSymbol>]
         | 
| @@ -356,6 +377,7 @@ module SnapTrade | |
| 356 377 | 
             
                end
         | 
| 357 378 |  | 
| 358 379 | 
             
                # Search for symbols
         | 
| 380 | 
            +
                # Returns a list of Universal Symbol objects that match a defined string.  Matches on ticker or name. 
         | 
| 359 381 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 360 382 | 
             
                # @option opts [SymbolQuery] :symbol_query 
         | 
| 361 383 | 
             
                # @return [Array<(Array<UniversalSymbol>, Integer, Hash)>] Array<UniversalSymbol> data, response status code and response headers
         | 
| @@ -409,7 +431,9 @@ module SnapTrade | |
| 409 431 | 
             
                end
         | 
| 410 432 |  | 
| 411 433 |  | 
| 412 | 
            -
                # Get details of a symbol | 
| 434 | 
            +
                # Get details of a symbol
         | 
| 435 | 
            +
                #
         | 
| 436 | 
            +
                # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
         | 
| 413 437 | 
             
                #
         | 
| 414 438 | 
             
                # @param query [String] The ticker or universal_symbol_id of the UniversalSymbol to get.
         | 
| 415 439 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| @@ -418,7 +442,9 @@ module SnapTrade | |
| 418 442 | 
             
                  data
         | 
| 419 443 | 
             
                end
         | 
| 420 444 |  | 
| 421 | 
            -
                # Get details of a symbol | 
| 445 | 
            +
                # Get details of a symbol
         | 
| 446 | 
            +
                #
         | 
| 447 | 
            +
                # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
         | 
| 422 448 | 
             
                #
         | 
| 423 449 | 
             
                # @param query [String] The ticker or universal_symbol_id of the UniversalSymbol to get.
         | 
| 424 450 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| @@ -426,7 +452,8 @@ module SnapTrade | |
| 426 452 | 
             
                  get_symbols_by_ticker_with_http_info_impl(query, extra)
         | 
| 427 453 | 
             
                end
         | 
| 428 454 |  | 
| 429 | 
            -
                # Get details of a symbol | 
| 455 | 
            +
                # Get details of a symbol
         | 
| 456 | 
            +
                # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
         | 
| 430 457 | 
             
                # @param query [String] The ticker or universal_symbol_id of the UniversalSymbol to get.
         | 
| 431 458 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 432 459 | 
             
                # @return [UniversalSymbol]
         | 
| @@ -435,7 +462,8 @@ module SnapTrade | |
| 435 462 | 
             
                  data
         | 
| 436 463 | 
             
                end
         | 
| 437 464 |  | 
| 438 | 
            -
                # Get details of a symbol | 
| 465 | 
            +
                # Get details of a symbol
         | 
| 466 | 
            +
                # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
         | 
| 439 467 | 
             
                # @param query [String] The ticker or universal_symbol_id of the UniversalSymbol to get.
         | 
| 440 468 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 441 469 | 
             
                # @return [Array<(UniversalSymbol, Integer, Hash)>] UniversalSymbol data, response status code and response headers
         | 
| @@ -488,7 +516,9 @@ module SnapTrade | |
| 488 516 | 
             
                end
         | 
| 489 517 |  | 
| 490 518 |  | 
| 491 | 
            -
                #  | 
| 519 | 
            +
                # Get all brokerage authorization types
         | 
| 520 | 
            +
                #
         | 
| 521 | 
            +
                # Returns a list of all defined Brokerage authorization Type objects.
         | 
| 492 522 | 
             
                #
         | 
| 493 523 | 
             
                # @param brokerage [String] Comma separated value of brokerage slugs
         | 
| 494 524 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| @@ -498,7 +528,9 @@ module SnapTrade | |
| 498 528 | 
             
                  data
         | 
| 499 529 | 
             
                end
         | 
| 500 530 |  | 
| 501 | 
            -
                #  | 
| 531 | 
            +
                # Get all brokerage authorization types
         | 
| 532 | 
            +
                #
         | 
| 533 | 
            +
                # Returns a list of all defined Brokerage authorization Type objects.
         | 
| 502 534 | 
             
                #
         | 
| 503 535 | 
             
                # @param brokerage [String] Comma separated value of brokerage slugs
         | 
| 504 536 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| @@ -507,7 +539,8 @@ module SnapTrade | |
| 507 539 | 
             
                  list_all_brokerage_authorization_type_with_http_info_impl(extra)
         | 
| 508 540 | 
             
                end
         | 
| 509 541 |  | 
| 510 | 
            -
                #  | 
| 542 | 
            +
                # Get all brokerage authorization types
         | 
| 543 | 
            +
                # Returns a list of all defined Brokerage authorization Type objects.
         | 
| 511 544 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 512 545 | 
             
                # @option opts [String] :brokerage Comma separated value of brokerage slugs
         | 
| 513 546 | 
             
                # @return [Array<BrokerageAuthorizationTypeReadOnly>]
         | 
| @@ -516,7 +549,8 @@ module SnapTrade | |
| 516 549 | 
             
                  data
         | 
| 517 550 | 
             
                end
         | 
| 518 551 |  | 
| 519 | 
            -
                #  | 
| 552 | 
            +
                # Get all brokerage authorization types
         | 
| 553 | 
            +
                # Returns a list of all defined Brokerage authorization Type objects.
         | 
| 520 554 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 521 555 | 
             
                # @option opts [String] :brokerage Comma separated value of brokerage slugs
         | 
| 522 556 | 
             
                # @return [Array<(Array<BrokerageAuthorizationTypeReadOnly>, Integer, Hash)>] Array<BrokerageAuthorizationTypeReadOnly> data, response status code and response headers
         | 
| @@ -566,7 +600,9 @@ module SnapTrade | |
| 566 600 | 
             
                end
         | 
| 567 601 |  | 
| 568 602 |  | 
| 569 | 
            -
                #  | 
| 603 | 
            +
                # Get brokerages
         | 
| 604 | 
            +
                #
         | 
| 605 | 
            +
                # Returns a list of all defined Brokerage objects.
         | 
| 570 606 | 
             
                #
         | 
| 571 607 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 572 608 | 
             
                def list_all_brokerages(extra: {})
         | 
| @@ -574,14 +610,17 @@ module SnapTrade | |
| 574 610 | 
             
                  data
         | 
| 575 611 | 
             
                end
         | 
| 576 612 |  | 
| 577 | 
            -
                #  | 
| 613 | 
            +
                # Get brokerages
         | 
| 614 | 
            +
                #
         | 
| 615 | 
            +
                # Returns a list of all defined Brokerage objects.
         | 
| 578 616 | 
             
                #
         | 
| 579 617 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 580 618 | 
             
                def list_all_brokerages_with_http_info(extra: {})
         | 
| 581 619 | 
             
                  list_all_brokerages_with_http_info_impl(extra)
         | 
| 582 620 | 
             
                end
         | 
| 583 621 |  | 
| 584 | 
            -
                #  | 
| 622 | 
            +
                # Get brokerages
         | 
| 623 | 
            +
                # Returns a list of all defined Brokerage objects.
         | 
| 585 624 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 586 625 | 
             
                # @return [Array<Brokerage>]
         | 
| 587 626 | 
             
                private def list_all_brokerages_impl(opts = {})
         | 
| @@ -589,7 +628,8 @@ module SnapTrade | |
| 589 628 | 
             
                  data
         | 
| 590 629 | 
             
                end
         | 
| 591 630 |  | 
| 592 | 
            -
                #  | 
| 631 | 
            +
                # Get brokerages
         | 
| 632 | 
            +
                # Returns a list of all defined Brokerage objects.
         | 
| 593 633 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 594 634 | 
             
                # @return [Array<(Array<Brokerage>, Integer, Hash)>] Array<Brokerage> data, response status code and response headers
         | 
| 595 635 | 
             
                private def list_all_brokerages_with_http_info_impl(opts = {})
         | 
| @@ -637,7 +677,9 @@ module SnapTrade | |
| 637 677 | 
             
                end
         | 
| 638 678 |  | 
| 639 679 |  | 
| 640 | 
            -
                #  | 
| 680 | 
            +
                # Get currencies
         | 
| 681 | 
            +
                #
         | 
| 682 | 
            +
                # Returns a list of all defined Currency objects.
         | 
| 641 683 | 
             
                #
         | 
| 642 684 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 643 685 | 
             
                def list_all_currencies(extra: {})
         | 
| @@ -645,14 +687,17 @@ module SnapTrade | |
| 645 687 | 
             
                  data
         | 
| 646 688 | 
             
                end
         | 
| 647 689 |  | 
| 648 | 
            -
                #  | 
| 690 | 
            +
                # Get currencies
         | 
| 691 | 
            +
                #
         | 
| 692 | 
            +
                # Returns a list of all defined Currency objects.
         | 
| 649 693 | 
             
                #
         | 
| 650 694 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 651 695 | 
             
                def list_all_currencies_with_http_info(extra: {})
         | 
| 652 696 | 
             
                  list_all_currencies_with_http_info_impl(extra)
         | 
| 653 697 | 
             
                end
         | 
| 654 698 |  | 
| 655 | 
            -
                #  | 
| 699 | 
            +
                # Get currencies
         | 
| 700 | 
            +
                # Returns a list of all defined Currency objects.
         | 
| 656 701 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 657 702 | 
             
                # @return [Array<Currency>]
         | 
| 658 703 | 
             
                private def list_all_currencies_impl(opts = {})
         | 
| @@ -660,7 +705,8 @@ module SnapTrade | |
| 660 705 | 
             
                  data
         | 
| 661 706 | 
             
                end
         | 
| 662 707 |  | 
| 663 | 
            -
                #  | 
| 708 | 
            +
                # Get currencies
         | 
| 709 | 
            +
                # Returns a list of all defined Currency objects.
         | 
| 664 710 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 665 711 | 
             
                # @return [Array<(Array<Currency>, Integer, Hash)>] Array<Currency> data, response status code and response headers
         | 
| 666 712 | 
             
                private def list_all_currencies_with_http_info_impl(opts = {})
         | 
| @@ -708,7 +754,9 @@ module SnapTrade | |
| 708 754 | 
             
                end
         | 
| 709 755 |  | 
| 710 756 |  | 
| 711 | 
            -
                #  | 
| 757 | 
            +
                # Get currency exchange rates
         | 
| 758 | 
            +
                #
         | 
| 759 | 
            +
                # Returns a list of all Exchange Rate Pairs for all supported Currencies.
         | 
| 712 760 | 
             
                #
         | 
| 713 761 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 714 762 | 
             
                def list_all_currencies_rates(extra: {})
         | 
| @@ -716,14 +764,17 @@ module SnapTrade | |
| 716 764 | 
             
                  data
         | 
| 717 765 | 
             
                end
         | 
| 718 766 |  | 
| 719 | 
            -
                #  | 
| 767 | 
            +
                # Get currency exchange rates
         | 
| 768 | 
            +
                #
         | 
| 769 | 
            +
                # Returns a list of all Exchange Rate Pairs for all supported Currencies.
         | 
| 720 770 | 
             
                #
         | 
| 721 771 | 
             
                # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
         | 
| 722 772 | 
             
                def list_all_currencies_rates_with_http_info(extra: {})
         | 
| 723 773 | 
             
                  list_all_currencies_rates_with_http_info_impl(extra)
         | 
| 724 774 | 
             
                end
         | 
| 725 775 |  | 
| 726 | 
            -
                #  | 
| 776 | 
            +
                # Get currency exchange rates
         | 
| 777 | 
            +
                # Returns a list of all Exchange Rate Pairs for all supported Currencies.
         | 
| 727 778 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 728 779 | 
             
                # @return [Array<ExchangeRatePairs>]
         | 
| 729 780 | 
             
                private def list_all_currencies_rates_impl(opts = {})
         | 
| @@ -731,7 +782,8 @@ module SnapTrade | |
| 731 782 | 
             
                  data
         | 
| 732 783 | 
             
                end
         | 
| 733 784 |  | 
| 734 | 
            -
                #  | 
| 785 | 
            +
                # Get currency exchange rates
         | 
| 786 | 
            +
                # Returns a list of all Exchange Rate Pairs for all supported Currencies.
         | 
| 735 787 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 736 788 | 
             
                # @return [Array<(Array<ExchangeRatePairs>, Integer, Hash)>] Array<ExchangeRatePairs> data, response status code and response headers
         | 
| 737 789 | 
             
                private def list_all_currencies_rates_with_http_info_impl(opts = {})
         | 
| @@ -143,7 +143,9 @@ module SnapTrade | |
| 143 143 | 
             
                end
         | 
| 144 144 |  | 
| 145 145 |  | 
| 146 | 
            -
                # Check impact of  | 
| 146 | 
            +
                # Check the impact of a trade on an account
         | 
| 147 | 
            +
                #
         | 
| 148 | 
            +
                # Return the trade object and it's impact on the account for the specified order.
         | 
| 147 149 | 
             
                #
         | 
| 148 150 | 
             
                # @param user_id [String] 
         | 
| 149 151 | 
             
                # @param user_secret [String] 
         | 
| @@ -174,7 +176,9 @@ module SnapTrade | |
| 174 176 | 
             
                  data
         | 
| 175 177 | 
             
                end
         | 
| 176 178 |  | 
| 177 | 
            -
                # Check impact of  | 
| 179 | 
            +
                # Check the impact of a trade on an account
         | 
| 180 | 
            +
                #
         | 
| 181 | 
            +
                # Return the trade object and it's impact on the account for the specified order.
         | 
| 178 182 | 
             
                #
         | 
| 179 183 | 
             
                # @param user_id [String] 
         | 
| 180 184 | 
             
                # @param user_secret [String] 
         | 
| @@ -204,7 +208,8 @@ module SnapTrade | |
| 204 208 | 
             
                  get_order_impact_with_http_info_impl(user_id, user_secret, manual_trade_form, extra)
         | 
| 205 209 | 
             
                end
         | 
| 206 210 |  | 
| 207 | 
            -
                # Check impact of  | 
| 211 | 
            +
                # Check the impact of a trade on an account
         | 
| 212 | 
            +
                # Return the trade object and it's impact on the account for the specified order.
         | 
| 208 213 | 
             
                # @param user_id [String] 
         | 
| 209 214 | 
             
                # @param user_secret [String] 
         | 
| 210 215 | 
             
                # @param manual_trade_form [ManualTradeForm] 
         | 
| @@ -215,7 +220,8 @@ module SnapTrade | |
| 215 220 | 
             
                  data
         | 
| 216 221 | 
             
                end
         | 
| 217 222 |  | 
| 218 | 
            -
                # Check impact of  | 
| 223 | 
            +
                # Check the impact of a trade on an account
         | 
| 224 | 
            +
                # Return the trade object and it's impact on the account for the specified order.
         | 
| 219 225 | 
             
                # @param user_id [String] 
         | 
| 220 226 | 
             
                # @param user_secret [String] 
         | 
| 221 227 | 
             
                # @param manual_trade_form [ManualTradeForm] 
         | 
| @@ -406,6 +412,8 @@ module SnapTrade | |
| 406 412 |  | 
| 407 413 | 
             
                # Place a trade with NO validation.
         | 
| 408 414 | 
             
                #
         | 
| 415 | 
            +
                # Places a specified trade in the specified account.
         | 
| 416 | 
            +
                #
         | 
| 409 417 | 
             
                # @param user_id [String] 
         | 
| 410 418 | 
             
                # @param user_secret [String] 
         | 
| 411 419 | 
             
                # @param account_id [String] 
         | 
| @@ -437,6 +445,8 @@ module SnapTrade | |
| 437 445 |  | 
| 438 446 | 
             
                # Place a trade with NO validation.
         | 
| 439 447 | 
             
                #
         | 
| 448 | 
            +
                # Places a specified trade in the specified account.
         | 
| 449 | 
            +
                #
         | 
| 440 450 | 
             
                # @param user_id [String] 
         | 
| 441 451 | 
             
                # @param user_secret [String] 
         | 
| 442 452 | 
             
                # @param account_id [String] 
         | 
| @@ -466,6 +476,7 @@ module SnapTrade | |
| 466 476 | 
             
                end
         | 
| 467 477 |  | 
| 468 478 | 
             
                # Place a trade with NO validation.
         | 
| 479 | 
            +
                # Places a specified trade in the specified account.
         | 
| 469 480 | 
             
                # @param user_id [String] 
         | 
| 470 481 | 
             
                # @param user_secret [String] 
         | 
| 471 482 | 
             
                # @param manual_trade_form [ManualTradeForm] 
         | 
| @@ -477,6 +488,7 @@ module SnapTrade | |
| 477 488 | 
             
                end
         | 
| 478 489 |  | 
| 479 490 | 
             
                # Place a trade with NO validation.
         | 
| 491 | 
            +
                # Places a specified trade in the specified account.
         | 
| 480 492 | 
             
                # @param user_id [String] 
         | 
| 481 493 | 
             
                # @param user_secret [String] 
         | 
| 482 494 | 
             
                # @param manual_trade_form [ManualTradeForm] 
         | 
| @@ -548,6 +560,9 @@ module SnapTrade | |
| 548 560 |  | 
| 549 561 | 
             
                # Place order
         | 
| 550 562 | 
             
                #
         | 
| 563 | 
            +
                # Places the specified trade object. This places the order in the account and
         | 
| 564 | 
            +
                # returns the status of the order from the brokerage.
         | 
| 565 | 
            +
                #
         | 
| 551 566 | 
             
                # @param trade_id [String] The ID of trade object obtained from trade/impact endpoint
         | 
| 552 567 | 
             
                # @param user_id [String] 
         | 
| 553 568 | 
             
                # @param user_secret [String] 
         | 
| @@ -564,6 +579,9 @@ module SnapTrade | |
| 564 579 |  | 
| 565 580 | 
             
                # Place order
         | 
| 566 581 | 
             
                #
         | 
| 582 | 
            +
                # Places the specified trade object. This places the order in the account and
         | 
| 583 | 
            +
                # returns the status of the order from the brokerage.
         | 
| 584 | 
            +
                #
         | 
| 567 585 | 
             
                # @param trade_id [String] The ID of trade object obtained from trade/impact endpoint
         | 
| 568 586 | 
             
                # @param user_id [String] 
         | 
| 569 587 | 
             
                # @param user_secret [String] 
         | 
| @@ -578,6 +596,7 @@ module SnapTrade | |
| 578 596 | 
             
                end
         | 
| 579 597 |  | 
| 580 598 | 
             
                # Place order
         | 
| 599 | 
            +
                # Places the specified trade object. This places the order in the account and returns the status of the order from the brokerage. 
         | 
| 581 600 | 
             
                # @param trade_id [String] The ID of trade object obtained from trade/impact endpoint
         | 
| 582 601 | 
             
                # @param user_id [String] 
         | 
| 583 602 | 
             
                # @param user_secret [String] 
         | 
| @@ -590,6 +609,7 @@ module SnapTrade | |
| 590 609 | 
             
                end
         | 
| 591 610 |  | 
| 592 611 | 
             
                # Place order
         | 
| 612 | 
            +
                # Places the specified trade object. This places the order in the account and returns the status of the order from the brokerage. 
         | 
| 593 613 | 
             
                # @param trade_id [String] The ID of trade object obtained from trade/impact endpoint
         | 
| 594 614 | 
             
                # @param user_id [String] 
         | 
| 595 615 | 
             
                # @param user_secret [String] 
         | 
    
        data/lib/snaptrade/version.rb
    CHANGED
    
    
| @@ -87,7 +87,7 @@ describe 'AccountInformationApi' do | |
| 87 87 |  | 
| 88 88 | 
             
              # unit tests for get_user_account_positions
         | 
| 89 89 | 
             
              # List account positions
         | 
| 90 | 
            -
              # Returns a list of positions in the  | 
| 90 | 
            +
              # Returns a list of positions in the specified account.
         | 
| 91 91 | 
             
              # @param user_id 
         | 
| 92 92 | 
             
              # @param user_secret 
         | 
| 93 93 | 
             
              # @param account_id The ID of the account to get positions.
         | 
| @@ -29,6 +29,7 @@ describe 'ConnectionsApi' do | |
| 29 29 |  | 
| 30 30 | 
             
              # unit tests for detail_brokerage_authorization
         | 
| 31 31 | 
             
              # Get brokerage authorization details
         | 
| 32 | 
            +
              # Returns a single brokerage authorization object for the specified ID.
         | 
| 32 33 | 
             
              # @param authorization_id The ID of a brokerage authorization object.
         | 
| 33 34 | 
             
              # @param user_id 
         | 
| 34 35 | 
             
              # @param user_secret 
         | 
| @@ -41,7 +42,8 @@ describe 'ConnectionsApi' do | |
| 41 42 | 
             
              end
         | 
| 42 43 |  | 
| 43 44 | 
             
              # unit tests for list_brokerage_authorizations
         | 
| 44 | 
            -
              # List all brokerage authorizations for the  | 
| 45 | 
            +
              # List all brokerage authorizations for the User
         | 
| 46 | 
            +
              # Returns a list of Brokerage Authorization objects for the user
         | 
| 45 47 | 
             
              # @param user_id 
         | 
| 46 48 | 
             
              # @param user_secret 
         | 
| 47 49 | 
             
              # @param [Hash] opts the optional parameters
         | 
| @@ -54,6 +56,7 @@ describe 'ConnectionsApi' do | |
| 54 56 |  | 
| 55 57 | 
             
              # unit tests for remove_brokerage_authorization
         | 
| 56 58 | 
             
              # Delete brokerage authorization
         | 
| 59 | 
            +
              # Deletes a specified brokerage authorization given by the ID.
         | 
| 57 60 | 
             
              # @param authorization_id The ID of the Authorization to delete.
         | 
| 58 61 | 
             
              # @param user_id 
         | 
| 59 62 | 
             
              # @param user_secret 
         | 
| @@ -66,7 +69,8 @@ describe 'ConnectionsApi' do | |
| 66 69 | 
             
              end
         | 
| 67 70 |  | 
| 68 71 | 
             
              # unit tests for session_events
         | 
| 69 | 
            -
              #  | 
| 72 | 
            +
              # Get all session events for a user
         | 
| 73 | 
            +
              # Returns a list of session events associated with a user.
         | 
| 70 74 | 
             
              # @param partner_client_id 
         | 
| 71 75 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 72 76 | 
             
              # @option opts [String] :user_id Optional comma seperated list of user IDs used to filter the request on specific users
         | 
| @@ -28,7 +28,8 @@ describe 'OptionsApi' do | |
| 28 28 | 
             
              end
         | 
| 29 29 |  | 
| 30 30 | 
             
              # unit tests for get_option_strategy
         | 
| 31 | 
            -
              #  | 
| 31 | 
            +
              # Create options strategy
         | 
| 32 | 
            +
              # Creates an option strategy object that will be used to place an option strategy order. 
         | 
| 32 33 | 
             
              # @param user_id 
         | 
| 33 34 | 
             
              # @param user_secret 
         | 
| 34 35 | 
             
              # @param account_id The ID of the account to create the option strategy object in.
         | 
| @@ -42,7 +43,8 @@ describe 'OptionsApi' do | |
| 42 43 | 
             
              end
         | 
| 43 44 |  | 
| 44 45 | 
             
              # unit tests for get_options_chain
         | 
| 45 | 
            -
              # Get the options chain
         | 
| 46 | 
            +
              # Get the options chain for a symbol
         | 
| 47 | 
            +
              # Returns the option chain for the specified symbol in the specified account.
         | 
| 46 48 | 
             
              # @param user_id 
         | 
| 47 49 | 
             
              # @param user_secret 
         | 
| 48 50 | 
             
              # @param account_id The ID of the account to get the options chain from.
         | 
| @@ -56,7 +58,8 @@ describe 'OptionsApi' do | |
| 56 58 | 
             
              end
         | 
| 57 59 |  | 
| 58 60 | 
             
              # unit tests for get_options_strategy_quote
         | 
| 59 | 
            -
              # Get  | 
| 61 | 
            +
              # Get options strategy quotes
         | 
| 62 | 
            +
              # Returns a Strategy Quotes object which has latest market data of the specified option strategy. 
         | 
| 60 63 | 
             
              # @param user_id 
         | 
| 61 64 | 
             
              # @param user_secret 
         | 
| 62 65 | 
             
              # @param account_id The ID of the account the strategy will be placed in.
         | 
| @@ -70,7 +73,8 @@ describe 'OptionsApi' do | |
| 70 73 | 
             
              end
         | 
| 71 74 |  | 
| 72 75 | 
             
              # unit tests for list_option_holdings
         | 
| 73 | 
            -
              # Get  | 
| 76 | 
            +
              # Get account option holdings
         | 
| 77 | 
            +
              # Returns a list of Options Positions. 
         | 
| 74 78 | 
             
              # @param user_id 
         | 
| 75 79 | 
             
              # @param user_secret 
         | 
| 76 80 | 
             
              # @param account_id The ID of the account to fetch options holdings for.
         | 
| @@ -83,7 +87,8 @@ describe 'OptionsApi' do | |
| 83 87 | 
             
              end
         | 
| 84 88 |  | 
| 85 89 | 
             
              # unit tests for place_option_strategy
         | 
| 86 | 
            -
              # Place an option strategy order | 
| 90 | 
            +
              # Place an option strategy order
         | 
| 91 | 
            +
              # Places the option strategy order and returns the order record received from the brokerage.
         | 
| 87 92 | 
             
              # @param user_id 
         | 
| 88 93 | 
             
              # @param user_secret 
         | 
| 89 94 | 
             
              # @param account_id The ID of the account to execute the strategy in.
         | 
| @@ -28,7 +28,8 @@ describe 'ReferenceDataApi' do | |
| 28 28 | 
             
              end
         | 
| 29 29 |  | 
| 30 30 | 
             
              # unit tests for get_currency_exchange_rate_pair
         | 
| 31 | 
            -
              #  | 
| 31 | 
            +
              # Get exchange rate of a currency pair
         | 
| 32 | 
            +
              # Returns an Exchange Rate Pair object for the specified Currency Pair.
         | 
| 32 33 | 
             
              # @param currency_pair A currency pair based on currency code for example, {CAD-USD}
         | 
| 33 34 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 34 35 | 
             
              # @return [ExchangeRatePairs]
         | 
| @@ -61,7 +62,8 @@ describe 'ReferenceDataApi' do | |
| 61 62 | 
             
              end
         | 
| 62 63 |  | 
| 63 64 | 
             
              # unit tests for get_stock_exchanges
         | 
| 64 | 
            -
              #  | 
| 65 | 
            +
              # Get exchanges
         | 
| 66 | 
            +
              # Returns a list of all supported Exchanges.
         | 
| 65 67 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 66 68 | 
             
              # @return [Array<Exchange>]
         | 
| 67 69 | 
             
              describe 'get_stock_exchanges test' do
         | 
| @@ -72,6 +74,7 @@ describe 'ReferenceDataApi' do | |
| 72 74 |  | 
| 73 75 | 
             
              # unit tests for get_symbols
         | 
| 74 76 | 
             
              # Search for symbols
         | 
| 77 | 
            +
              # Returns a list of Universal Symbol objects that match a defined string.  Matches on ticker or name. 
         | 
| 75 78 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 76 79 | 
             
              # @option opts [SymbolQuery] :symbol_query 
         | 
| 77 80 | 
             
              # @return [Array<UniversalSymbol>]
         | 
| @@ -82,7 +85,8 @@ describe 'ReferenceDataApi' do | |
| 82 85 | 
             
              end
         | 
| 83 86 |  | 
| 84 87 | 
             
              # unit tests for get_symbols_by_ticker
         | 
| 85 | 
            -
              # Get details of a symbol | 
| 88 | 
            +
              # Get details of a symbol
         | 
| 89 | 
            +
              # Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
         | 
| 86 90 | 
             
              # @param query The ticker or universal_symbol_id of the UniversalSymbol to get.
         | 
| 87 91 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 88 92 | 
             
              # @return [UniversalSymbol]
         | 
| @@ -93,7 +97,8 @@ describe 'ReferenceDataApi' do | |
| 93 97 | 
             
              end
         | 
| 94 98 |  | 
| 95 99 | 
             
              # unit tests for list_all_brokerage_authorization_type
         | 
| 96 | 
            -
              #  | 
| 100 | 
            +
              # Get all brokerage authorization types
         | 
| 101 | 
            +
              # Returns a list of all defined Brokerage authorization Type objects.
         | 
| 97 102 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 98 103 | 
             
              # @option opts [String] :brokerage Comma separated value of brokerage slugs
         | 
| 99 104 | 
             
              # @return [Array<BrokerageAuthorizationTypeReadOnly>]
         | 
| @@ -104,7 +109,8 @@ describe 'ReferenceDataApi' do | |
| 104 109 | 
             
              end
         | 
| 105 110 |  | 
| 106 111 | 
             
              # unit tests for list_all_brokerages
         | 
| 107 | 
            -
              #  | 
| 112 | 
            +
              # Get brokerages
         | 
| 113 | 
            +
              # Returns a list of all defined Brokerage objects.
         | 
| 108 114 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 109 115 | 
             
              # @return [Array<Brokerage>]
         | 
| 110 116 | 
             
              describe 'list_all_brokerages test' do
         | 
| @@ -114,7 +120,8 @@ describe 'ReferenceDataApi' do | |
| 114 120 | 
             
              end
         | 
| 115 121 |  | 
| 116 122 | 
             
              # unit tests for list_all_currencies
         | 
| 117 | 
            -
              #  | 
| 123 | 
            +
              # Get currencies
         | 
| 124 | 
            +
              # Returns a list of all defined Currency objects.
         | 
| 118 125 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 119 126 | 
             
              # @return [Array<Currency>]
         | 
| 120 127 | 
             
              describe 'list_all_currencies test' do
         | 
| @@ -124,7 +131,8 @@ describe 'ReferenceDataApi' do | |
| 124 131 | 
             
              end
         | 
| 125 132 |  | 
| 126 133 | 
             
              # unit tests for list_all_currencies_rates
         | 
| 127 | 
            -
              #  | 
| 134 | 
            +
              # Get currency exchange rates
         | 
| 135 | 
            +
              # Returns a list of all Exchange Rate Pairs for all supported Currencies.
         | 
| 128 136 | 
             
              # @param [Hash] opts the optional parameters
         | 
| 129 137 | 
             
              # @return [Array<ExchangeRatePairs>]
         | 
| 130 138 | 
             
              describe 'list_all_currencies_rates test' do
         | 
| @@ -43,7 +43,8 @@ describe 'TradingApi' do | |
| 43 43 | 
             
              end
         | 
| 44 44 |  | 
| 45 45 | 
             
              # unit tests for get_order_impact
         | 
| 46 | 
            -
              # Check impact of  | 
| 46 | 
            +
              # Check the impact of a trade on an account
         | 
| 47 | 
            +
              # Return the trade object and it's impact on the account for the specified order.
         | 
| 47 48 | 
             
              # @param user_id 
         | 
| 48 49 | 
             
              # @param user_secret 
         | 
| 49 50 | 
             
              # @param manual_trade_form 
         | 
| @@ -73,6 +74,7 @@ describe 'TradingApi' do | |
| 73 74 |  | 
| 74 75 | 
             
              # unit tests for place_force_order
         | 
| 75 76 | 
             
              # Place a trade with NO validation.
         | 
| 77 | 
            +
              # Places a specified trade in the specified account.
         | 
| 76 78 | 
             
              # @param user_id 
         | 
| 77 79 | 
             
              # @param user_secret 
         | 
| 78 80 | 
             
              # @param manual_trade_form 
         | 
| @@ -86,6 +88,7 @@ describe 'TradingApi' do | |
| 86 88 |  | 
| 87 89 | 
             
              # unit tests for place_order
         | 
| 88 90 | 
             
              # Place order
         | 
| 91 | 
            +
              # Places the specified trade object. This places the order in the account and returns the status of the order from the brokerage. 
         | 
| 89 92 | 
             
              # @param trade_id The ID of trade object obtained from trade/impact endpoint
         | 
| 90 93 | 
             
              # @param user_id 
         | 
| 91 94 | 
             
              # @param user_secret 
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: snaptrade
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.0. | 
| 4 | 
            +
              version: 2.0.18
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - SnapTrade
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2024-05- | 
| 11 | 
            +
            date: 2024-05-10 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: faraday
         |