snaptrade 2.0.30 → 2.0.32
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 +31 -29
- data/README.md +5 -7
- data/lib/snaptrade/api/account_information_api.rb +16 -16
- data/lib/snaptrade/models/account_balance.rb +1 -1
- data/lib/snaptrade/models/account_balance_total.rb +2 -0
- data/lib/snaptrade/models/account_holdings_account.rb +5 -1
- data/lib/snaptrade/models/account_order_record.rb +4 -2
- data/lib/snaptrade/models/amount.rb +2 -0
- data/lib/snaptrade/models/balance.rb +3 -1
- data/lib/snaptrade/models/currency.rb +4 -1
- data/lib/snaptrade/models/exchange.rb +9 -1
- data/lib/snaptrade/models/figi_instrument.rb +3 -1
- data/lib/snaptrade/models/option_brokerage_symbol.rb +3 -1
- data/lib/snaptrade/models/options_position.rb +4 -3
- data/lib/snaptrade/models/options_position_currency.rb +4 -0
- data/lib/snaptrade/models/options_symbol.rb +12 -24
- data/lib/snaptrade/models/position.rb +6 -4
- data/lib/snaptrade/models/position_symbol.rb +6 -1
- data/lib/snaptrade/models/security_type.rb +5 -1
- data/lib/snaptrade/models/snap_trade_holdings_account_account_id.rb +11 -3
- data/lib/snaptrade/models/snap_trade_holdings_total_value.rb +3 -1
- data/lib/snaptrade/models/symbol_figi_instrument.rb +2 -0
- data/lib/snaptrade/models/underlying_symbol.rb +20 -5
- data/lib/snaptrade/models/{model_portfolio.rb → underlying_symbol_exchange.rb} +73 -12
- data/lib/snaptrade/models/{brokerage_symbol.rb → underlying_symbol_type.rb} +28 -38
- data/lib/snaptrade/models/universal_symbol.rb +9 -3
- data/lib/snaptrade/models/{model_asset_class.rb → universal_symbol_currency.rb} +24 -4
- data/lib/snaptrade/models/{portfolio_group.rb → universal_symbol_exchange.rb} +78 -7
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +4 -37
- data/spec/api/account_information_api_spec.rb +3 -3
- data/spec/models/options_symbol_spec.rb +0 -12
- data/spec/models/{brokerage_symbol_option_symbol_spec.rb → underlying_symbol_exchange_spec.rb} +14 -14
- data/spec/models/underlying_symbol_spec.rb +6 -0
- data/spec/models/{trade_impact_spec.rb → underlying_symbol_type_spec.rb} +10 -16
- data/spec/models/{model_portfolio_spec.rb → universal_symbol_currency_spec.rb} +8 -8
- data/spec/models/{trade_spec.rb → universal_symbol_exchange_spec.rb} +13 -13
- metadata +113 -212
- data/lib/snaptrade/models/brokerage_authorization_type.rb +0 -216
- data/lib/snaptrade/models/brokerage_authorization_type_type.rb +0 -37
- data/lib/snaptrade/models/brokerage_symbol_option_symbol.rb +0 -325
- data/lib/snaptrade/models/brokerage_symbol_symbol.rb +0 -339
- data/lib/snaptrade/models/calculated_trade.rb +0 -228
- data/lib/snaptrade/models/excluded_asset.rb +0 -217
- data/lib/snaptrade/models/jwt.rb +0 -217
- data/lib/snaptrade/models/model_asset_class_details.rb +0 -227
- data/lib/snaptrade/models/model_asset_class_target.rb +0 -216
- data/lib/snaptrade/models/model_portfolio_asset_class.rb +0 -249
- data/lib/snaptrade/models/model_portfolio_details.rb +0 -238
- data/lib/snaptrade/models/model_portfolio_security.rb +0 -249
- data/lib/snaptrade/models/model_type.rb +0 -38
- data/lib/snaptrade/models/options_holdings.rb +0 -267
- data/lib/snaptrade/models/portfolio_group_info.rb +0 -325
- data/lib/snaptrade/models/portfolio_group_position.rb +0 -237
- data/lib/snaptrade/models/portfolio_group_settings.rb +0 -276
- data/lib/snaptrade/models/redirect_tokenand_pin.rb +0 -226
- data/lib/snaptrade/models/snap_trade_api_disclaimer_accept_status.rb +0 -226
- data/lib/snaptrade/models/state.rb +0 -40
- data/lib/snaptrade/models/strategy_impact.rb +0 -309
- data/lib/snaptrade/models/strategy_impact_legs_inner.rb +0 -270
- data/lib/snaptrade/models/strategy_order_place.rb +0 -228
- data/lib/snaptrade/models/strategy_order_place_orders_inner.rb +0 -596
- data/lib/snaptrade/models/strategy_order_place_orders_inner_legs_inner.rb +0 -270
- data/lib/snaptrade/models/target_asset.rb +0 -289
- data/lib/snaptrade/models/trade.rb +0 -280
- data/lib/snaptrade/models/trade_action.rb +0 -37
- data/lib/snaptrade/models/trade_execution_status.rb +0 -297
- data/lib/snaptrade/models/trade_execution_status_action.rb +0 -37
- data/lib/snaptrade/models/trade_impact.rb +0 -256
- data/lib/snaptrade/models/user_error_log.rb +0 -262
- data/lib/snaptrade/models/user_settings.rb +0 -298
- data/spec/models/brokerage_authorization_type_spec.rb +0 -29
- data/spec/models/brokerage_authorization_type_type_spec.rb +0 -23
- data/spec/models/brokerage_symbol_spec.rb +0 -59
- data/spec/models/brokerage_symbol_symbol_spec.rb +0 -83
- data/spec/models/calculated_trade_spec.rb +0 -35
- data/spec/models/excluded_asset_spec.rb +0 -29
- data/spec/models/jwt_spec.rb +0 -29
- data/spec/models/model_asset_class_details_spec.rb +0 -35
- data/spec/models/model_asset_class_spec.rb +0 -35
- data/spec/models/model_asset_class_target_spec.rb +0 -29
- data/spec/models/model_portfolio_asset_class_spec.rb +0 -35
- data/spec/models/model_portfolio_details_spec.rb +0 -41
- data/spec/models/model_portfolio_security_spec.rb +0 -35
- data/spec/models/model_type_spec.rb +0 -23
- data/spec/models/options_holdings_spec.rb +0 -59
- data/spec/models/portfolio_group_info_spec.rb +0 -89
- data/spec/models/portfolio_group_position_spec.rb +0 -41
- data/spec/models/portfolio_group_settings_spec.rb +0 -53
- data/spec/models/portfolio_group_spec.rb +0 -35
- data/spec/models/redirect_tokenand_pin_spec.rb +0 -35
- data/spec/models/snap_trade_api_disclaimer_accept_status_spec.rb +0 -35
- data/spec/models/state_spec.rb +0 -23
- data/spec/models/strategy_impact_legs_inner_spec.rb +0 -65
- data/spec/models/strategy_impact_spec.rb +0 -89
- data/spec/models/strategy_order_place_orders_inner_legs_inner_spec.rb +0 -65
- data/spec/models/strategy_order_place_orders_inner_spec.rb +0 -281
- data/spec/models/strategy_order_place_spec.rb +0 -35
- data/spec/models/target_asset_spec.rb +0 -59
- data/spec/models/trade_action_spec.rb +0 -23
- data/spec/models/trade_execution_status_action_spec.rb +0 -23
- data/spec/models/trade_execution_status_spec.rb +0 -77
- data/spec/models/user_error_log_spec.rb +0 -59
- data/spec/models/user_settings_spec.rb +0 -83
|
@@ -11,16 +11,43 @@ require 'date'
|
|
|
11
11
|
require 'time'
|
|
12
12
|
|
|
13
13
|
module SnapTrade
|
|
14
|
-
|
|
14
|
+
# The exchange on which the security is listed and traded.
|
|
15
|
+
class UniversalSymbolExchange
|
|
16
|
+
# Unique ID for the exchange in SnapTrade.
|
|
15
17
|
attr_accessor :id
|
|
16
18
|
|
|
19
|
+
# A short name for the exchange. For standardized exchange code, please us the `mic_code` field.
|
|
20
|
+
attr_accessor :code
|
|
21
|
+
|
|
22
|
+
# The [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) (MIC) for the exchange.
|
|
23
|
+
attr_accessor :mic_code
|
|
24
|
+
|
|
25
|
+
# The full name of the exchange.
|
|
17
26
|
attr_accessor :name
|
|
18
27
|
|
|
28
|
+
# The timezone for the trading hours (`start_time` and `close_time`) of the exchange.
|
|
29
|
+
attr_accessor :timezone
|
|
30
|
+
|
|
31
|
+
# The time when the exchange opens for trading.
|
|
32
|
+
attr_accessor :start_time
|
|
33
|
+
|
|
34
|
+
# The time when the exchange closes for trading.
|
|
35
|
+
attr_accessor :close_time
|
|
36
|
+
|
|
37
|
+
# The suffix to be appended to the symbol when trading on this exchange. For example, the suffix for the Toronto Stock Exchange is `.TO`. See `UniversalSymbol->symbol` and `UniversalSymbol->raw_symbol` for more detail.
|
|
38
|
+
attr_accessor :suffix
|
|
39
|
+
|
|
19
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
41
|
def self.attribute_map
|
|
21
42
|
{
|
|
22
43
|
:'id' => :'id',
|
|
23
|
-
:'
|
|
44
|
+
:'code' => :'code',
|
|
45
|
+
:'mic_code' => :'mic_code',
|
|
46
|
+
:'name' => :'name',
|
|
47
|
+
:'timezone' => :'timezone',
|
|
48
|
+
:'start_time' => :'start_time',
|
|
49
|
+
:'close_time' => :'close_time',
|
|
50
|
+
:'suffix' => :'suffix'
|
|
24
51
|
}
|
|
25
52
|
end
|
|
26
53
|
|
|
@@ -33,27 +60,41 @@ module SnapTrade
|
|
|
33
60
|
def self.openapi_types
|
|
34
61
|
{
|
|
35
62
|
:'id' => :'String',
|
|
36
|
-
:'
|
|
63
|
+
:'code' => :'String',
|
|
64
|
+
:'mic_code' => :'String',
|
|
65
|
+
:'name' => :'String',
|
|
66
|
+
:'timezone' => :'String',
|
|
67
|
+
:'start_time' => :'String',
|
|
68
|
+
:'close_time' => :'String',
|
|
69
|
+
:'suffix' => :'String'
|
|
37
70
|
}
|
|
38
71
|
end
|
|
39
72
|
|
|
40
73
|
# List of attributes with nullable: true
|
|
41
74
|
def self.openapi_nullable
|
|
42
75
|
Set.new([
|
|
76
|
+
:'suffix'
|
|
43
77
|
])
|
|
44
78
|
end
|
|
45
79
|
|
|
80
|
+
# List of class defined in allOf (OpenAPI v3)
|
|
81
|
+
def self.openapi_all_of
|
|
82
|
+
[
|
|
83
|
+
:'Exchange'
|
|
84
|
+
]
|
|
85
|
+
end
|
|
86
|
+
|
|
46
87
|
# Initializes the object
|
|
47
88
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
89
|
def initialize(attributes = {})
|
|
49
90
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::
|
|
91
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SnapTrade::UniversalSymbolExchange` initialize method"
|
|
51
92
|
end
|
|
52
93
|
|
|
53
94
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
95
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
96
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::
|
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SnapTrade::UniversalSymbolExchange`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
98
|
end
|
|
58
99
|
h[k.to_sym] = v
|
|
59
100
|
}
|
|
@@ -62,9 +103,33 @@ module SnapTrade
|
|
|
62
103
|
self.id = attributes[:'id']
|
|
63
104
|
end
|
|
64
105
|
|
|
106
|
+
if attributes.key?(:'code')
|
|
107
|
+
self.code = attributes[:'code']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'mic_code')
|
|
111
|
+
self.mic_code = attributes[:'mic_code']
|
|
112
|
+
end
|
|
113
|
+
|
|
65
114
|
if attributes.key?(:'name')
|
|
66
115
|
self.name = attributes[:'name']
|
|
67
116
|
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'timezone')
|
|
119
|
+
self.timezone = attributes[:'timezone']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'start_time')
|
|
123
|
+
self.start_time = attributes[:'start_time']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'close_time')
|
|
127
|
+
self.close_time = attributes[:'close_time']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'suffix')
|
|
131
|
+
self.suffix = attributes[:'suffix']
|
|
132
|
+
end
|
|
68
133
|
end
|
|
69
134
|
|
|
70
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -86,7 +151,13 @@ module SnapTrade
|
|
|
86
151
|
return true if self.equal?(o)
|
|
87
152
|
self.class == o.class &&
|
|
88
153
|
id == o.id &&
|
|
89
|
-
|
|
154
|
+
code == o.code &&
|
|
155
|
+
mic_code == o.mic_code &&
|
|
156
|
+
name == o.name &&
|
|
157
|
+
timezone == o.timezone &&
|
|
158
|
+
start_time == o.start_time &&
|
|
159
|
+
close_time == o.close_time &&
|
|
160
|
+
suffix == o.suffix
|
|
90
161
|
end
|
|
91
162
|
|
|
92
163
|
# @see the `==` method
|
|
@@ -98,7 +169,7 @@ module SnapTrade
|
|
|
98
169
|
# Calculates hash code according to all attributes.
|
|
99
170
|
# @return [Integer] Hash code
|
|
100
171
|
def hash
|
|
101
|
-
[id, name].hash
|
|
172
|
+
[id, code, mic_code, name, timezone, start_time, close_time, suffix].hash
|
|
102
173
|
end
|
|
103
174
|
|
|
104
175
|
# Builds the object from hash
|
data/lib/snaptrade/version.rb
CHANGED
data/lib/snaptrade.rb
CHANGED
|
@@ -34,16 +34,10 @@ require 'snaptrade/models/brokerage'
|
|
|
34
34
|
require 'snaptrade/models/brokerage_authorization'
|
|
35
35
|
require 'snaptrade/models/brokerage_authorization_disabled_confirmation'
|
|
36
36
|
require 'snaptrade/models/brokerage_authorization_refresh_confirmation'
|
|
37
|
-
require 'snaptrade/models/brokerage_authorization_type'
|
|
38
37
|
require 'snaptrade/models/brokerage_authorization_type_read_only'
|
|
39
38
|
require 'snaptrade/models/brokerage_authorization_type_read_only_brokerage'
|
|
40
39
|
require 'snaptrade/models/brokerage_authorization_type_read_only_type'
|
|
41
|
-
require 'snaptrade/models/brokerage_authorization_type_type'
|
|
42
|
-
require 'snaptrade/models/brokerage_symbol'
|
|
43
|
-
require 'snaptrade/models/brokerage_symbol_option_symbol'
|
|
44
|
-
require 'snaptrade/models/brokerage_symbol_symbol'
|
|
45
40
|
require 'snaptrade/models/brokerage_type'
|
|
46
|
-
require 'snaptrade/models/calculated_trade'
|
|
47
41
|
require 'snaptrade/models/cash_restriction'
|
|
48
42
|
require 'snaptrade/models/connection_portal_version'
|
|
49
43
|
require 'snaptrade/models/connection_type'
|
|
@@ -55,10 +49,8 @@ require 'snaptrade/models/encrypted_response'
|
|
|
55
49
|
require 'snaptrade/models/encrypted_response_encrypted_message_data'
|
|
56
50
|
require 'snaptrade/models/exchange'
|
|
57
51
|
require 'snaptrade/models/exchange_rate_pairs'
|
|
58
|
-
require 'snaptrade/models/excluded_asset'
|
|
59
52
|
require 'snaptrade/models/figi_instrument'
|
|
60
53
|
require 'snaptrade/models/holdings_status'
|
|
61
|
-
require 'snaptrade/models/jwt'
|
|
62
54
|
require 'snaptrade/models/login_redirect_uri'
|
|
63
55
|
require 'snaptrade/models/manual_trade'
|
|
64
56
|
require 'snaptrade/models/manual_trade_and_impact'
|
|
@@ -74,14 +66,6 @@ require 'snaptrade/models/model403_failed_request_response'
|
|
|
74
66
|
require 'snaptrade/models/model403_feature_not_enabled_response'
|
|
75
67
|
require 'snaptrade/models/model404_failed_request_response'
|
|
76
68
|
require 'snaptrade/models/model500_unexpected_exception_response'
|
|
77
|
-
require 'snaptrade/models/model_asset_class'
|
|
78
|
-
require 'snaptrade/models/model_asset_class_details'
|
|
79
|
-
require 'snaptrade/models/model_asset_class_target'
|
|
80
|
-
require 'snaptrade/models/model_portfolio'
|
|
81
|
-
require 'snaptrade/models/model_portfolio_asset_class'
|
|
82
|
-
require 'snaptrade/models/model_portfolio_details'
|
|
83
|
-
require 'snaptrade/models/model_portfolio_security'
|
|
84
|
-
require 'snaptrade/models/model_type'
|
|
85
69
|
require 'snaptrade/models/monthly_dividends'
|
|
86
70
|
require 'snaptrade/models/net_contributions'
|
|
87
71
|
require 'snaptrade/models/net_dividend'
|
|
@@ -96,7 +80,6 @@ require 'snaptrade/models/option_strategy'
|
|
|
96
80
|
require 'snaptrade/models/option_strategy_legs_inner'
|
|
97
81
|
require 'snaptrade/models/option_type'
|
|
98
82
|
require 'snaptrade/models/options_get_option_strategy_request'
|
|
99
|
-
require 'snaptrade/models/options_holdings'
|
|
100
83
|
require 'snaptrade/models/options_place_option_strategy_request'
|
|
101
84
|
require 'snaptrade/models/options_position'
|
|
102
85
|
require 'snaptrade/models/options_position_currency'
|
|
@@ -105,30 +88,18 @@ require 'snaptrade/models/order_type_strict'
|
|
|
105
88
|
require 'snaptrade/models/partner_data'
|
|
106
89
|
require 'snaptrade/models/past_value'
|
|
107
90
|
require 'snaptrade/models/performance_custom'
|
|
108
|
-
require 'snaptrade/models/portfolio_group'
|
|
109
|
-
require 'snaptrade/models/portfolio_group_info'
|
|
110
|
-
require 'snaptrade/models/portfolio_group_position'
|
|
111
|
-
require 'snaptrade/models/portfolio_group_settings'
|
|
112
91
|
require 'snaptrade/models/position'
|
|
113
92
|
require 'snaptrade/models/position_symbol'
|
|
114
|
-
require 'snaptrade/models/redirect_tokenand_pin'
|
|
115
93
|
require 'snaptrade/models/security_type'
|
|
116
94
|
require 'snaptrade/models/session_event'
|
|
117
95
|
require 'snaptrade/models/session_event_type'
|
|
118
|
-
require 'snaptrade/models/snap_trade_api_disclaimer_accept_status'
|
|
119
96
|
require 'snaptrade/models/snap_trade_holdings_account'
|
|
120
97
|
require 'snaptrade/models/snap_trade_holdings_account_account_id'
|
|
121
98
|
require 'snaptrade/models/snap_trade_holdings_account_account_id_balance'
|
|
122
99
|
require 'snaptrade/models/snap_trade_holdings_total_value'
|
|
123
100
|
require 'snaptrade/models/snap_trade_login_user_request_body'
|
|
124
101
|
require 'snaptrade/models/snap_trade_register_user_request_body'
|
|
125
|
-
require 'snaptrade/models/state'
|
|
126
102
|
require 'snaptrade/models/status'
|
|
127
|
-
require 'snaptrade/models/strategy_impact'
|
|
128
|
-
require 'snaptrade/models/strategy_impact_legs_inner'
|
|
129
|
-
require 'snaptrade/models/strategy_order_place'
|
|
130
|
-
require 'snaptrade/models/strategy_order_place_orders_inner'
|
|
131
|
-
require 'snaptrade/models/strategy_order_place_orders_inner_legs_inner'
|
|
132
103
|
require 'snaptrade/models/strategy_order_record'
|
|
133
104
|
require 'snaptrade/models/strategy_order_record_status'
|
|
134
105
|
require 'snaptrade/models/strategy_quotes'
|
|
@@ -139,23 +110,19 @@ require 'snaptrade/models/symbol'
|
|
|
139
110
|
require 'snaptrade/models/symbol_figi_instrument'
|
|
140
111
|
require 'snaptrade/models/symbol_query'
|
|
141
112
|
require 'snaptrade/models/symbols_quotes_inner'
|
|
142
|
-
require 'snaptrade/models/target_asset'
|
|
143
113
|
require 'snaptrade/models/time_in_force_strict'
|
|
144
|
-
require 'snaptrade/models/trade'
|
|
145
|
-
require 'snaptrade/models/trade_action'
|
|
146
|
-
require 'snaptrade/models/trade_execution_status'
|
|
147
|
-
require 'snaptrade/models/trade_execution_status_action'
|
|
148
|
-
require 'snaptrade/models/trade_impact'
|
|
149
114
|
require 'snaptrade/models/trading_cancel_user_account_order_request'
|
|
150
115
|
require 'snaptrade/models/transactions_status'
|
|
151
116
|
require 'snaptrade/models/type'
|
|
152
117
|
require 'snaptrade/models/us_exchange'
|
|
153
118
|
require 'snaptrade/models/underlying_symbol'
|
|
119
|
+
require 'snaptrade/models/underlying_symbol_exchange'
|
|
120
|
+
require 'snaptrade/models/underlying_symbol_type'
|
|
154
121
|
require 'snaptrade/models/universal_activity'
|
|
155
122
|
require 'snaptrade/models/universal_symbol'
|
|
156
|
-
require 'snaptrade/models/
|
|
123
|
+
require 'snaptrade/models/universal_symbol_currency'
|
|
124
|
+
require 'snaptrade/models/universal_symbol_exchange'
|
|
157
125
|
require 'snaptrade/models/user_i_dand_secret'
|
|
158
|
-
require 'snaptrade/models/user_settings'
|
|
159
126
|
require 'snaptrade/models/validated_trade_body'
|
|
160
127
|
|
|
161
128
|
# APIs
|
|
@@ -100,9 +100,9 @@ describe 'AccountInformationApi' do
|
|
|
100
100
|
end
|
|
101
101
|
|
|
102
102
|
# unit tests for get_user_holdings
|
|
103
|
-
# List
|
|
104
|
-
# Lists balances, positions and orders for the specified account
|
|
105
|
-
# @param account_id
|
|
103
|
+
# List account holdings
|
|
104
|
+
# Lists balances, positions, option positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__ The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for \"Cache Expiry Time\" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.
|
|
105
|
+
# @param account_id
|
|
106
106
|
# @param user_id
|
|
107
107
|
# @param user_secret
|
|
108
108
|
# @param [Hash] opts the optional parameters
|
|
@@ -62,16 +62,4 @@ describe SnapTrade::OptionsSymbol do
|
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
describe 'test attribute "local_id"' do
|
|
66
|
-
it 'should work' do
|
|
67
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
describe 'test attribute "exchange_id"' do
|
|
72
|
-
it 'should work' do
|
|
73
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
|
|
77
65
|
end
|
data/spec/models/{brokerage_symbol_option_symbol_spec.rb → underlying_symbol_exchange_spec.rb}
RENAMED
|
@@ -11,13 +11,13 @@ require 'spec_helper'
|
|
|
11
11
|
require 'json'
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
# Unit tests for SnapTrade::
|
|
15
|
-
describe SnapTrade::
|
|
16
|
-
let(:instance) { SnapTrade::
|
|
14
|
+
# Unit tests for SnapTrade::UnderlyingSymbolExchange
|
|
15
|
+
describe SnapTrade::UnderlyingSymbolExchange do
|
|
16
|
+
let(:instance) { SnapTrade::UnderlyingSymbolExchange.new }
|
|
17
17
|
|
|
18
|
-
describe 'test an instance of
|
|
19
|
-
it 'should create an instance of
|
|
20
|
-
expect(instance).to be_instance_of(SnapTrade::
|
|
18
|
+
describe 'test an instance of UnderlyingSymbolExchange' do
|
|
19
|
+
it 'should create an instance of UnderlyingSymbolExchange' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::UnderlyingSymbolExchange)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
describe 'test attribute "id"' do
|
|
@@ -26,49 +26,49 @@ describe SnapTrade::BrokerageSymbolOptionSymbol do
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
describe 'test attribute "
|
|
29
|
+
describe 'test attribute "code"' do
|
|
30
30
|
it 'should work' do
|
|
31
31
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "mic_code"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "name"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "timezone"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "start_time"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
describe 'test attribute "
|
|
59
|
+
describe 'test attribute "close_time"' do
|
|
60
60
|
it 'should work' do
|
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
describe 'test attribute "
|
|
65
|
+
describe 'test attribute "suffix"' do
|
|
66
66
|
it 'should work' do
|
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
describe 'test attribute "
|
|
71
|
+
describe 'test attribute "allows_cryptocurrency_symbols"' do
|
|
72
72
|
it 'should work' do
|
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
74
|
end
|
|
@@ -32,6 +32,12 @@ describe SnapTrade::UnderlyingSymbol do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
describe 'test attribute "raw_symbol"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
35
41
|
describe 'test attribute "description"' do
|
|
36
42
|
it 'should work' do
|
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -11,40 +11,34 @@ require 'spec_helper'
|
|
|
11
11
|
require 'json'
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
# Unit tests for SnapTrade::
|
|
15
|
-
describe SnapTrade::
|
|
16
|
-
let(:instance) { SnapTrade::
|
|
14
|
+
# Unit tests for SnapTrade::UnderlyingSymbolType
|
|
15
|
+
describe SnapTrade::UnderlyingSymbolType do
|
|
16
|
+
let(:instance) { SnapTrade::UnderlyingSymbolType.new }
|
|
17
17
|
|
|
18
|
-
describe 'test an instance of
|
|
19
|
-
it 'should create an instance of
|
|
20
|
-
expect(instance).to be_instance_of(SnapTrade::
|
|
18
|
+
describe 'test an instance of UnderlyingSymbolType' do
|
|
19
|
+
it 'should create an instance of UnderlyingSymbolType' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::UnderlyingSymbolType)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
|
-
describe 'test attribute "
|
|
23
|
+
describe 'test attribute "id"' do
|
|
24
24
|
it 'should work' do
|
|
25
25
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
describe 'test attribute "
|
|
29
|
+
describe 'test attribute "code"' do
|
|
30
30
|
it 'should work' do
|
|
31
31
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "description"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
42
|
-
it 'should work' do
|
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
describe 'test attribute "forex_fees"' do
|
|
41
|
+
describe 'test attribute "is_supported"' do
|
|
48
42
|
it 'should work' do
|
|
49
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
44
|
end
|
|
@@ -11,13 +11,13 @@ require 'spec_helper'
|
|
|
11
11
|
require 'json'
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
# Unit tests for SnapTrade::
|
|
15
|
-
describe SnapTrade::
|
|
16
|
-
let(:instance) { SnapTrade::
|
|
14
|
+
# Unit tests for SnapTrade::UniversalSymbolCurrency
|
|
15
|
+
describe SnapTrade::UniversalSymbolCurrency do
|
|
16
|
+
let(:instance) { SnapTrade::UniversalSymbolCurrency.new }
|
|
17
17
|
|
|
18
|
-
describe 'test an instance of
|
|
19
|
-
it 'should create an instance of
|
|
20
|
-
expect(instance).to be_instance_of(SnapTrade::
|
|
18
|
+
describe 'test an instance of UniversalSymbolCurrency' do
|
|
19
|
+
it 'should create an instance of UniversalSymbolCurrency' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::UniversalSymbolCurrency)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
describe 'test attribute "id"' do
|
|
@@ -26,13 +26,13 @@ describe SnapTrade::ModelPortfolio do
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
describe 'test attribute "
|
|
29
|
+
describe 'test attribute "code"' do
|
|
30
30
|
it 'should work' do
|
|
31
31
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "name"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
@@ -11,13 +11,13 @@ require 'spec_helper'
|
|
|
11
11
|
require 'json'
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
|
-
# Unit tests for SnapTrade::
|
|
15
|
-
describe SnapTrade::
|
|
16
|
-
let(:instance) { SnapTrade::
|
|
14
|
+
# Unit tests for SnapTrade::UniversalSymbolExchange
|
|
15
|
+
describe SnapTrade::UniversalSymbolExchange do
|
|
16
|
+
let(:instance) { SnapTrade::UniversalSymbolExchange.new }
|
|
17
17
|
|
|
18
|
-
describe 'test an instance of
|
|
19
|
-
it 'should create an instance of
|
|
20
|
-
expect(instance).to be_instance_of(SnapTrade::
|
|
18
|
+
describe 'test an instance of UniversalSymbolExchange' do
|
|
19
|
+
it 'should create an instance of UniversalSymbolExchange' do
|
|
20
|
+
expect(instance).to be_instance_of(SnapTrade::UniversalSymbolExchange)
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
describe 'test attribute "id"' do
|
|
@@ -26,43 +26,43 @@ describe SnapTrade::Trade do
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
describe 'test attribute "
|
|
29
|
+
describe 'test attribute "code"' do
|
|
30
30
|
it 'should work' do
|
|
31
31
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "mic_code"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "name"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "timezone"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "start_time"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
describe 'test attribute "
|
|
59
|
+
describe 'test attribute "close_time"' do
|
|
60
60
|
it 'should work' do
|
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
describe 'test attribute "
|
|
65
|
+
describe 'test attribute "suffix"' do
|
|
66
66
|
it 'should work' do
|
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
68
|
end
|