snaptrade 3.0.19 → 3.0.21
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/README.md +46 -48
- data/lib/snaptrade/api/connections_api.rb +119 -0
- data/lib/snaptrade/api/experimental_endpoints_api.rb +0 -123
- data/lib/snaptrade/api/reference_data_api.rb +4 -4
- data/lib/snaptrade/models/account_order_record_quote_universal_symbol.rb +1 -1
- data/lib/snaptrade/models/account_order_record_universal_symbol.rb +1 -1
- data/lib/snaptrade/models/account_universal_activity_currency_universal_symbol.rb +1 -1
- data/lib/snaptrade/models/account_universal_activity_symbol.rb +1 -1
- data/lib/snaptrade/models/symbol.rb +1 -1
- data/lib/snaptrade/models/universal_symbol.rb +1 -1
- data/lib/snaptrade/version.rb +1 -1
- data/spec/api/connections_api_spec.rb +14 -0
- data/spec/api/experimental_endpoints_api_spec.rb +0 -14
- data/spec/api/reference_data_api_spec.rb +1 -1
- metadata +220 -220
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 936cdb3999900c28fb41c81c9c4c9d16e4bb490e2ac530616aca9f80e3cf4147
|
|
4
|
+
data.tar.gz: d9f11553550a3229eb0d2deded2718000bbf1a145ea828920ce414ebc4e4d7c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66c0bc306aa3131e29c1c14d25c94afd8d04558f230525c1c557bad06a4f834c2643139ac773fed4e0e3af9b3d123e99d215379d17202b775aa1b3b7edd64fb6
|
|
7
|
+
data.tar.gz: 211caf483706c12c938c6ba348c572b0b9ccdf9d16537007ba8dd86a23dbb018658b4446580a9396871134096a58f37485d428ae49ec05810c42d77c983889ea
|
data/README.md
CHANGED
|
@@ -63,7 +63,7 @@ backoff with jitter rather than from the headers.
|
|
|
63
63
|
See https://docs.snaptrade.com/docs/ratelimiting.
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
[](https://rubygems.org/gems/snaptrade/versions/3.0.21)
|
|
67
67
|
[](https://snaptrade.com/)
|
|
68
68
|
|
|
69
69
|
</div>
|
|
@@ -99,6 +99,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
99
99
|
* [`snaptrade.connections.disable_brokerage_authorization`](#snaptradeconnectionsdisable_brokerage_authorization)
|
|
100
100
|
* [`snaptrade.connections.list_brokerage_authorization_accounts`](#snaptradeconnectionslist_brokerage_authorization_accounts)
|
|
101
101
|
* [`snaptrade.connections.list_brokerage_authorizations`](#snaptradeconnectionslist_brokerage_authorizations)
|
|
102
|
+
* [`snaptrade.connections.list_connection_accounts`](#snaptradeconnectionslist_connection_accounts)
|
|
102
103
|
* [`snaptrade.connections.refresh_brokerage_authorization`](#snaptradeconnectionsrefresh_brokerage_authorization)
|
|
103
104
|
* [`snaptrade.connections.return_rates`](#snaptradeconnectionsreturn_rates)
|
|
104
105
|
* [`snaptrade.connections.sync_brokerage_authorization_transactions`](#snaptradeconnectionssync_brokerage_authorization_transactions)
|
|
@@ -107,7 +108,6 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
107
108
|
* [`snaptrade.experimental_endpoints.get_user_account_order_detail_v2`](#snaptradeexperimental_endpointsget_user_account_order_detail_v2)
|
|
108
109
|
* [`snaptrade.experimental_endpoints.get_user_account_orders_v2`](#snaptradeexperimental_endpointsget_user_account_orders_v2)
|
|
109
110
|
* [`snaptrade.experimental_endpoints.get_user_account_recent_orders_v2`](#snaptradeexperimental_endpointsget_user_account_recent_orders_v2)
|
|
110
|
-
* [`snaptrade.experimental_endpoints.list_connection_accounts`](#snaptradeexperimental_endpointslist_connection_accounts)
|
|
111
111
|
* [`snaptrade.experimental_endpoints.list_subscriptions`](#snaptradeexperimental_endpointslist_subscriptions)
|
|
112
112
|
* [`snaptrade.reference_data.get_partner_info`](#snaptradereference_dataget_partner_info)
|
|
113
113
|
* [`snaptrade.reference_data.get_stock_exchanges`](#snaptradereference_dataget_stock_exchanges)
|
|
@@ -139,7 +139,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
139
139
|
Add to Gemfile:
|
|
140
140
|
|
|
141
141
|
```ruby
|
|
142
|
-
gem 'snaptrade', '~> 3.0.
|
|
142
|
+
gem 'snaptrade', '~> 3.0.21'
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -1137,6 +1137,48 @@ p result
|
|
|
1137
1137
|
---
|
|
1138
1138
|
|
|
1139
1139
|
|
|
1140
|
+
### `snaptrade.connections.list_connection_accounts`<a id="snaptradeconnectionslist_connection_accounts"></a>
|
|
1141
|
+
|
|
1142
|
+
Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape.
|
|
1143
|
+
|
|
1144
|
+
Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema.
|
|
1145
|
+
|
|
1146
|
+
On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
|
|
1147
|
+
|
|
1148
|
+
On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1149
|
+
|
|
1150
|
+
Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1154
|
+
|
|
1155
|
+
```ruby
|
|
1156
|
+
result = snaptrade.connections.list_connection_accounts(
|
|
1157
|
+
connection_id: "87b24961-b51e-4db8-9226-f198f6518a89",
|
|
1158
|
+
user_id: "snaptrade-user-123",
|
|
1159
|
+
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1160
|
+
)
|
|
1161
|
+
p result
|
|
1162
|
+
```
|
|
1163
|
+
|
|
1164
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1165
|
+
|
|
1166
|
+
##### connection_id: `String`<a id="connection_id-string"></a>
|
|
1167
|
+
##### user_id: `String`<a id="user_id-string"></a>
|
|
1168
|
+
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
1169
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
|
1170
|
+
|
|
1171
|
+
[ConnectionAccount](./lib/snaptrade/models/connection_account.rb)
|
|
1172
|
+
|
|
1173
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1174
|
+
|
|
1175
|
+
`/connections/{connectionId}/accounts` `GET`
|
|
1176
|
+
|
|
1177
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1178
|
+
|
|
1179
|
+
---
|
|
1180
|
+
|
|
1181
|
+
|
|
1140
1182
|
### `snaptrade.connections.refresh_brokerage_authorization`<a id="snaptradeconnectionsrefresh_brokerage_authorization"></a>
|
|
1141
1183
|
|
|
1142
1184
|
Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
|
|
@@ -1459,50 +1501,6 @@ false to retrieve non executed orders as well
|
|
|
1459
1501
|
---
|
|
1460
1502
|
|
|
1461
1503
|
|
|
1462
|
-
### `snaptrade.experimental_endpoints.list_connection_accounts`<a id="snaptradeexperimental_endpointslist_connection_accounts"></a>
|
|
1463
|
-
|
|
1464
|
-
Experimental and subject to change without notice.
|
|
1465
|
-
|
|
1466
|
-
Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape.
|
|
1467
|
-
|
|
1468
|
-
Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema.
|
|
1469
|
-
|
|
1470
|
-
On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
|
|
1471
|
-
|
|
1472
|
-
On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1473
|
-
|
|
1474
|
-
Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1478
|
-
|
|
1479
|
-
```ruby
|
|
1480
|
-
result = snaptrade.experimental_endpoints.list_connection_accounts(
|
|
1481
|
-
connection_id: "87b24961-b51e-4db8-9226-f198f6518a89",
|
|
1482
|
-
user_id: "snaptrade-user-123",
|
|
1483
|
-
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1484
|
-
)
|
|
1485
|
-
p result
|
|
1486
|
-
```
|
|
1487
|
-
|
|
1488
|
-
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1489
|
-
|
|
1490
|
-
##### connection_id: `String`<a id="connection_id-string"></a>
|
|
1491
|
-
##### user_id: `String`<a id="user_id-string"></a>
|
|
1492
|
-
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
1493
|
-
#### 🔄 Return<a id="🔄-return"></a>
|
|
1494
|
-
|
|
1495
|
-
[ConnectionAccount](./lib/snaptrade/models/connection_account.rb)
|
|
1496
|
-
|
|
1497
|
-
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1498
|
-
|
|
1499
|
-
`/connections/{connectionId}/accounts` `GET`
|
|
1500
|
-
|
|
1501
|
-
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1502
|
-
|
|
1503
|
-
---
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
1504
|
### `snaptrade.experimental_endpoints.list_subscriptions`<a id="snaptradeexperimental_endpointslist_subscriptions"></a>
|
|
1507
1505
|
|
|
1508
1506
|
Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
@@ -1609,7 +1607,7 @@ The search query for symbols.
|
|
|
1609
1607
|
|
|
1610
1608
|
### `snaptrade.reference_data.get_symbols_by_ticker`<a id="snaptradereference_dataget_symbols_by_ticker"></a>
|
|
1611
1609
|
|
|
1612
|
-
Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on "Yahoo Finance Market Coverage and Data Delays"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
1610
|
+
Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on "Yahoo Finance Market Coverage and Data Delays"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form: use `HBND.U.TO` (not Yahoo's `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
1613
1611
|
|
|
1614
1612
|
|
|
1615
1613
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
@@ -550,6 +550,125 @@ module SnapTrade
|
|
|
550
550
|
end
|
|
551
551
|
|
|
552
552
|
|
|
553
|
+
# List accounts for a connection (discriminated union)
|
|
554
|
+
#
|
|
555
|
+
# Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape.
|
|
556
|
+
#
|
|
557
|
+
# Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema.
|
|
558
|
+
#
|
|
559
|
+
# On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
|
|
560
|
+
#
|
|
561
|
+
# On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
562
|
+
#
|
|
563
|
+
# Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
564
|
+
#
|
|
565
|
+
# @param connection_id [String]
|
|
566
|
+
# @param user_id [String]
|
|
567
|
+
# @param user_secret [String]
|
|
568
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
569
|
+
def list_connection_accounts(connection_id:, user_id:, user_secret:, extra: {})
|
|
570
|
+
data, _status_code, _headers = list_connection_accounts_with_http_info_impl(connection_id, user_id, user_secret, extra)
|
|
571
|
+
data
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
# List accounts for a connection (discriminated union)
|
|
575
|
+
#
|
|
576
|
+
# Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape.
|
|
577
|
+
#
|
|
578
|
+
# Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema.
|
|
579
|
+
#
|
|
580
|
+
# On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
|
|
581
|
+
#
|
|
582
|
+
# On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
583
|
+
#
|
|
584
|
+
# Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
585
|
+
#
|
|
586
|
+
# @param connection_id [String]
|
|
587
|
+
# @param user_id [String]
|
|
588
|
+
# @param user_secret [String]
|
|
589
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
590
|
+
def list_connection_accounts_with_http_info(connection_id:, user_id:, user_secret:, extra: {})
|
|
591
|
+
list_connection_accounts_with_http_info_impl(connection_id, user_id, user_secret, extra)
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# List accounts for a connection (discriminated union)
|
|
595
|
+
# Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
596
|
+
# @param connection_id [String]
|
|
597
|
+
# @param user_id [String]
|
|
598
|
+
# @param user_secret [String]
|
|
599
|
+
# @param [Hash] opts the optional parameters
|
|
600
|
+
# @return [Array<ConnectionAccount>]
|
|
601
|
+
private def list_connection_accounts_impl(connection_id, user_id, user_secret, opts = {})
|
|
602
|
+
data, _status_code, _headers = list_connection_accounts_with_http_info(connection_id, user_id, user_secret, opts)
|
|
603
|
+
data
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
# List accounts for a connection (discriminated union)
|
|
607
|
+
# Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
608
|
+
# @param connection_id [String]
|
|
609
|
+
# @param user_id [String]
|
|
610
|
+
# @param user_secret [String]
|
|
611
|
+
# @param [Hash] opts the optional parameters
|
|
612
|
+
# @return [Array<(Array<ConnectionAccount>, Integer, Hash)>] Array<ConnectionAccount> data, response status code and response headers
|
|
613
|
+
private def list_connection_accounts_with_http_info_impl(connection_id, user_id, user_secret, opts = {})
|
|
614
|
+
if @api_client.config.debugging
|
|
615
|
+
@api_client.config.logger.debug 'Calling API: ConnectionsApi.list_connection_accounts ...'
|
|
616
|
+
end
|
|
617
|
+
# verify the required parameter 'connection_id' is set
|
|
618
|
+
if @api_client.config.client_side_validation && connection_id.nil?
|
|
619
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ConnectionsApi.list_connection_accounts"
|
|
620
|
+
end
|
|
621
|
+
# verify the required parameter 'user_id' is set
|
|
622
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
623
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling ConnectionsApi.list_connection_accounts"
|
|
624
|
+
end
|
|
625
|
+
# verify the required parameter 'user_secret' is set
|
|
626
|
+
if @api_client.config.client_side_validation && user_secret.nil?
|
|
627
|
+
fail ArgumentError, "Missing the required parameter 'user_secret' when calling ConnectionsApi.list_connection_accounts"
|
|
628
|
+
end
|
|
629
|
+
# resource path
|
|
630
|
+
local_var_path = '/connections/{connectionId}/accounts'.sub('{' + 'connectionId' + '}', CGI.escape(connection_id.to_s))
|
|
631
|
+
|
|
632
|
+
# query parameters
|
|
633
|
+
query_params = opts[:query_params] || {}
|
|
634
|
+
query_params[:'userId'] = user_id
|
|
635
|
+
query_params[:'userSecret'] = user_secret
|
|
636
|
+
|
|
637
|
+
# header parameters
|
|
638
|
+
header_params = opts[:header_params] || {}
|
|
639
|
+
# HTTP header 'Accept' (if needed)
|
|
640
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
641
|
+
|
|
642
|
+
# form parameters
|
|
643
|
+
form_params = opts[:form_params] || {}
|
|
644
|
+
|
|
645
|
+
# http body (model)
|
|
646
|
+
post_body = opts[:debug_body]
|
|
647
|
+
|
|
648
|
+
# return_type
|
|
649
|
+
return_type = opts[:debug_return_type] || 'Array<ConnectionAccount>'
|
|
650
|
+
|
|
651
|
+
# auth_names
|
|
652
|
+
auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
|
|
653
|
+
|
|
654
|
+
new_options = opts.merge(
|
|
655
|
+
:operation => :"ConnectionsApi.list_connection_accounts",
|
|
656
|
+
:header_params => header_params,
|
|
657
|
+
:query_params => query_params,
|
|
658
|
+
:form_params => form_params,
|
|
659
|
+
:body => post_body,
|
|
660
|
+
:auth_names => auth_names,
|
|
661
|
+
:return_type => return_type
|
|
662
|
+
)
|
|
663
|
+
|
|
664
|
+
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
|
665
|
+
if @api_client.config.debugging
|
|
666
|
+
@api_client.config.logger.debug "API called: ConnectionsApi#list_connection_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
667
|
+
end
|
|
668
|
+
return data, status_code, headers, response
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
|
|
553
672
|
# Refresh holdings for a connection
|
|
554
673
|
#
|
|
555
674
|
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
|
|
@@ -619,129 +619,6 @@ module SnapTrade
|
|
|
619
619
|
end
|
|
620
620
|
|
|
621
621
|
|
|
622
|
-
# List accounts for a connection (discriminated union)
|
|
623
|
-
#
|
|
624
|
-
# Experimental and subject to change without notice.
|
|
625
|
-
#
|
|
626
|
-
# Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape.
|
|
627
|
-
#
|
|
628
|
-
# Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema.
|
|
629
|
-
#
|
|
630
|
-
# On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
|
|
631
|
-
#
|
|
632
|
-
# On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
633
|
-
#
|
|
634
|
-
# Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
635
|
-
#
|
|
636
|
-
# @param connection_id [String]
|
|
637
|
-
# @param user_id [String]
|
|
638
|
-
# @param user_secret [String]
|
|
639
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
640
|
-
def list_connection_accounts(connection_id:, user_id:, user_secret:, extra: {})
|
|
641
|
-
data, _status_code, _headers = list_connection_accounts_with_http_info_impl(connection_id, user_id, user_secret, extra)
|
|
642
|
-
data
|
|
643
|
-
end
|
|
644
|
-
|
|
645
|
-
# List accounts for a connection (discriminated union)
|
|
646
|
-
#
|
|
647
|
-
# Experimental and subject to change without notice.
|
|
648
|
-
#
|
|
649
|
-
# Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape.
|
|
650
|
-
#
|
|
651
|
-
# Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema.
|
|
652
|
-
#
|
|
653
|
-
# On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
|
|
654
|
-
#
|
|
655
|
-
# On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
656
|
-
#
|
|
657
|
-
# Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
658
|
-
#
|
|
659
|
-
# @param connection_id [String]
|
|
660
|
-
# @param user_id [String]
|
|
661
|
-
# @param user_secret [String]
|
|
662
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
663
|
-
def list_connection_accounts_with_http_info(connection_id:, user_id:, user_secret:, extra: {})
|
|
664
|
-
list_connection_accounts_with_http_info_impl(connection_id, user_id, user_secret, extra)
|
|
665
|
-
end
|
|
666
|
-
|
|
667
|
-
# List accounts for a connection (discriminated union)
|
|
668
|
-
# Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
669
|
-
# @param connection_id [String]
|
|
670
|
-
# @param user_id [String]
|
|
671
|
-
# @param user_secret [String]
|
|
672
|
-
# @param [Hash] opts the optional parameters
|
|
673
|
-
# @return [Array<ConnectionAccount>]
|
|
674
|
-
private def list_connection_accounts_impl(connection_id, user_id, user_secret, opts = {})
|
|
675
|
-
data, _status_code, _headers = list_connection_accounts_with_http_info(connection_id, user_id, user_secret, opts)
|
|
676
|
-
data
|
|
677
|
-
end
|
|
678
|
-
|
|
679
|
-
# List accounts for a connection (discriminated union)
|
|
680
|
-
# Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
681
|
-
# @param connection_id [String]
|
|
682
|
-
# @param user_id [String]
|
|
683
|
-
# @param user_secret [String]
|
|
684
|
-
# @param [Hash] opts the optional parameters
|
|
685
|
-
# @return [Array<(Array<ConnectionAccount>, Integer, Hash)>] Array<ConnectionAccount> data, response status code and response headers
|
|
686
|
-
private def list_connection_accounts_with_http_info_impl(connection_id, user_id, user_secret, opts = {})
|
|
687
|
-
if @api_client.config.debugging
|
|
688
|
-
@api_client.config.logger.debug 'Calling API: ExperimentalEndpointsApi.list_connection_accounts ...'
|
|
689
|
-
end
|
|
690
|
-
# verify the required parameter 'connection_id' is set
|
|
691
|
-
if @api_client.config.client_side_validation && connection_id.nil?
|
|
692
|
-
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ExperimentalEndpointsApi.list_connection_accounts"
|
|
693
|
-
end
|
|
694
|
-
# verify the required parameter 'user_id' is set
|
|
695
|
-
if @api_client.config.client_side_validation && user_id.nil?
|
|
696
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling ExperimentalEndpointsApi.list_connection_accounts"
|
|
697
|
-
end
|
|
698
|
-
# verify the required parameter 'user_secret' is set
|
|
699
|
-
if @api_client.config.client_side_validation && user_secret.nil?
|
|
700
|
-
fail ArgumentError, "Missing the required parameter 'user_secret' when calling ExperimentalEndpointsApi.list_connection_accounts"
|
|
701
|
-
end
|
|
702
|
-
# resource path
|
|
703
|
-
local_var_path = '/connections/{connectionId}/accounts'.sub('{' + 'connectionId' + '}', CGI.escape(connection_id.to_s))
|
|
704
|
-
|
|
705
|
-
# query parameters
|
|
706
|
-
query_params = opts[:query_params] || {}
|
|
707
|
-
query_params[:'userId'] = user_id
|
|
708
|
-
query_params[:'userSecret'] = user_secret
|
|
709
|
-
|
|
710
|
-
# header parameters
|
|
711
|
-
header_params = opts[:header_params] || {}
|
|
712
|
-
# HTTP header 'Accept' (if needed)
|
|
713
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
714
|
-
|
|
715
|
-
# form parameters
|
|
716
|
-
form_params = opts[:form_params] || {}
|
|
717
|
-
|
|
718
|
-
# http body (model)
|
|
719
|
-
post_body = opts[:debug_body]
|
|
720
|
-
|
|
721
|
-
# return_type
|
|
722
|
-
return_type = opts[:debug_return_type] || 'Array<ConnectionAccount>'
|
|
723
|
-
|
|
724
|
-
# auth_names
|
|
725
|
-
auth_names = opts[:debug_auth_names] || ['PartnerClientId', 'PartnerSignature', 'PartnerTimestamp']
|
|
726
|
-
|
|
727
|
-
new_options = opts.merge(
|
|
728
|
-
:operation => :"ExperimentalEndpointsApi.list_connection_accounts",
|
|
729
|
-
:header_params => header_params,
|
|
730
|
-
:query_params => query_params,
|
|
731
|
-
:form_params => form_params,
|
|
732
|
-
:body => post_body,
|
|
733
|
-
:auth_names => auth_names,
|
|
734
|
-
:return_type => return_type
|
|
735
|
-
)
|
|
736
|
-
|
|
737
|
-
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
|
738
|
-
if @api_client.config.debugging
|
|
739
|
-
@api_client.config.logger.debug "API called: ExperimentalEndpointsApi#list_connection_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
740
|
-
end
|
|
741
|
-
return data, status_code, headers, response
|
|
742
|
-
end
|
|
743
|
-
|
|
744
|
-
|
|
745
622
|
# List active Trade Detection subscriptions
|
|
746
623
|
#
|
|
747
624
|
# Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
@@ -267,7 +267,7 @@ module SnapTrade
|
|
|
267
267
|
|
|
268
268
|
# Get symbol detail
|
|
269
269
|
#
|
|
270
|
-
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on "Yahoo Finance Market Coverage and Data Delays"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
270
|
+
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on "Yahoo Finance Market Coverage and Data Delays"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form: use `HBND.U.TO` (not Yahoo's `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
271
271
|
#
|
|
272
272
|
# @param query [String] The ticker or Universal Symbol ID to look up the symbol with.
|
|
273
273
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
@@ -278,7 +278,7 @@ module SnapTrade
|
|
|
278
278
|
|
|
279
279
|
# Get symbol detail
|
|
280
280
|
#
|
|
281
|
-
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on "Yahoo Finance Market Coverage and Data Delays"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
281
|
+
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on "Yahoo Finance Market Coverage and Data Delays"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form: use `HBND.U.TO` (not Yahoo's `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
282
282
|
#
|
|
283
283
|
# @param query [String] The ticker or Universal Symbol ID to look up the symbol with.
|
|
284
284
|
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
|
@@ -287,7 +287,7 @@ module SnapTrade
|
|
|
287
287
|
end
|
|
288
288
|
|
|
289
289
|
# Get symbol detail
|
|
290
|
-
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
290
|
+
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form: use `HBND.U.TO` (not Yahoo's `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
291
291
|
# @param query [String] The ticker or Universal Symbol ID to look up the symbol with.
|
|
292
292
|
# @param [Hash] opts the optional parameters
|
|
293
293
|
# @return [UniversalSymbol]
|
|
@@ -297,7 +297,7 @@ module SnapTrade
|
|
|
297
297
|
end
|
|
298
298
|
|
|
299
299
|
# Get symbol detail
|
|
300
|
-
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
300
|
+
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form: use `HBND.U.TO` (not Yahoo's `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
301
301
|
# @param query [String] The ticker or Universal Symbol ID to look up the symbol with.
|
|
302
302
|
# @param [Hash] opts the optional parameters
|
|
303
303
|
# @return [Array<(UniversalSymbol, Integer, Hash)>] UniversalSymbol data, response status code and response headers
|
|
@@ -16,7 +16,7 @@ module SnapTrade
|
|
|
16
16
|
# Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
|
|
19
|
+
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form, for example `HBND.U.TO`, `FTN.PR.A.TO`, and `ECF.PRA`.
|
|
20
20
|
attr_accessor :symbol
|
|
21
21
|
|
|
22
22
|
# The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
@@ -16,7 +16,7 @@ module SnapTrade
|
|
|
16
16
|
# Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
|
|
19
|
+
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form, for example `HBND.U.TO`, `FTN.PR.A.TO`, and `ECF.PRA`.
|
|
20
20
|
attr_accessor :symbol
|
|
21
21
|
|
|
22
22
|
# The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
@@ -16,7 +16,7 @@ module SnapTrade
|
|
|
16
16
|
# Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
|
|
19
|
+
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form, for example `HBND.U.TO`, `FTN.PR.A.TO`, and `ECF.PRA`.
|
|
20
20
|
attr_accessor :symbol
|
|
21
21
|
|
|
22
22
|
# The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
@@ -16,7 +16,7 @@ module SnapTrade
|
|
|
16
16
|
# Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
|
|
19
|
+
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form, for example `HBND.U.TO`, `FTN.PR.A.TO`, and `ECF.PRA`.
|
|
20
20
|
attr_accessor :symbol
|
|
21
21
|
|
|
22
22
|
# The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
@@ -16,7 +16,7 @@ module SnapTrade
|
|
|
16
16
|
# Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
|
|
19
|
+
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form, for example `HBND.U.TO`, `FTN.PR.A.TO`, and `ECF.PRA`.
|
|
20
20
|
attr_accessor :symbol
|
|
21
21
|
|
|
22
22
|
# The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
|
@@ -16,7 +16,7 @@ module SnapTrade
|
|
|
16
16
|
# Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
|
|
19
|
+
# The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form, for example `HBND.U.TO`, `FTN.PR.A.TO`, and `ECF.PRA`.
|
|
20
20
|
attr_accessor :symbol
|
|
21
21
|
|
|
22
22
|
# The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
|
data/lib/snaptrade/version.rb
CHANGED
|
@@ -96,6 +96,20 @@ describe 'ConnectionsApi' do
|
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
+
# unit tests for list_connection_accounts
|
|
100
|
+
# List accounts for a connection (discriminated union)
|
|
101
|
+
# Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
102
|
+
# @param connection_id
|
|
103
|
+
# @param user_id
|
|
104
|
+
# @param user_secret
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @return [Array<ConnectionAccount>]
|
|
107
|
+
describe 'list_connection_accounts test' do
|
|
108
|
+
it 'should work' do
|
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
99
113
|
# unit tests for refresh_brokerage_authorization
|
|
100
114
|
# Refresh holdings for a connection
|
|
101
115
|
# Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)** **Please note this endpoint is disabled for Real-time plans (Personal and Pay as you go) unless SnapTrade uses delayed data for the connection. Real-time connections do not benefit from this feature since data is refreshed when calls are made. Refer to `data_freshness_mode.snaptrade` on a connection to determine this.**
|
|
@@ -99,20 +99,6 @@ describe 'ExperimentalEndpointsApi' do
|
|
|
99
99
|
end
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
# unit tests for list_connection_accounts
|
|
103
|
-
# List accounts for a connection (discriminated union)
|
|
104
|
-
# Experimental and subject to change without notice. Returns the accounts that belong to the specified connection for the authenticated user, using the `kind`-discriminated account shape. Each item in the response carries a `kind` field (`investment`, `deposit`, and `line_of_credit` are implemented) that determines which additional fields are present -- see the `ConnectionAccount` schema. On Pay as you Go / Real-time, this endpoint refreshes each account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts. On Pay as you Go / Daily, this endpoint returns Daily data. Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. To force a refresh, use the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization). Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see whether your plan includes real-time data.
|
|
105
|
-
# @param connection_id
|
|
106
|
-
# @param user_id
|
|
107
|
-
# @param user_secret
|
|
108
|
-
# @param [Hash] opts the optional parameters
|
|
109
|
-
# @return [Array<ConnectionAccount>]
|
|
110
|
-
describe 'list_connection_accounts test' do
|
|
111
|
-
it 'should work' do
|
|
112
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
|
|
116
102
|
# unit tests for list_subscriptions
|
|
117
103
|
# List active Trade Detection subscriptions
|
|
118
104
|
# Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
@@ -63,7 +63,7 @@ describe 'ReferenceDataApi' do
|
|
|
63
63
|
|
|
64
64
|
# unit tests for get_symbols_by_ticker
|
|
65
65
|
# Get symbol detail
|
|
66
|
-
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
|
|
66
|
+
# Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Share classes and preferred series use SnapTrade's canonical dotted form: use `HBND.U.TO` (not Yahoo's `HBND-U.TO`), `FTN.PR.A.TO` (not `FTN-PA.TO`), and `ECF.PRA` (not `ECF-P-A`). Please use the ticker with the proper suffix and canonical share-class notation for the best results.
|
|
67
67
|
# @param query The ticker or Universal Symbol ID to look up the symbol with.
|
|
68
68
|
# @param [Hash] opts the optional parameters
|
|
69
69
|
# @return [UniversalSymbol]
|
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: 3.0.
|
|
4
|
+
version: 3.0.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -656,259 +656,259 @@ signing_key:
|
|
|
656
656
|
specification_version: 4
|
|
657
657
|
summary: SnapTrade Ruby Gem
|
|
658
658
|
test_files:
|
|
659
|
-
- spec/api/
|
|
659
|
+
- spec/api/trading_api_spec.rb
|
|
660
|
+
- spec/api/account_information_api_spec.rb
|
|
660
661
|
- spec/api/experimental_endpoints_api_spec.rb
|
|
662
|
+
- spec/api/api_status_api_spec.rb
|
|
661
663
|
- spec/api/connections_api_spec.rb
|
|
662
|
-
- spec/api/trading_api_spec.rb
|
|
663
664
|
- spec/api/reference_data_api_spec.rb
|
|
664
|
-
- spec/api/account_information_api_spec.rb
|
|
665
665
|
- spec/api/authentication_api_spec.rb
|
|
666
666
|
- spec/api_client_spec.rb
|
|
667
667
|
- spec/configuration_spec.rb
|
|
668
668
|
- spec/getting_started_spec.rb
|
|
669
|
-
- spec/models/
|
|
670
|
-
- spec/models/
|
|
671
|
-
- spec/models/
|
|
672
|
-
- spec/models/
|
|
673
|
-
- spec/models/manual_trade_replace_form_spec.rb
|
|
674
|
-
- spec/models/manual_trade_and_impact_spec.rb
|
|
675
|
-
- spec/models/exchange_rate_pairs_spec.rb
|
|
676
|
-
- spec/models/underlying_symbol_type_spec.rb
|
|
677
|
-
- spec/models/user_i_dand_secret_spec.rb
|
|
678
|
-
- spec/models/connection_account_sync_status_spec.rb
|
|
679
|
-
- spec/models/complex_order_leg_order_role_spec.rb
|
|
680
|
-
- spec/models/options_symbol_option_type_spec.rb
|
|
681
|
-
- spec/models/strategy_quotes_spec.rb
|
|
682
|
-
- spec/models/institution_spec.rb
|
|
683
|
-
- spec/models/security_type_spec.rb
|
|
684
|
-
- spec/models/connection_portal_version_spec.rb
|
|
685
|
-
- spec/models/line_of_credit_account_available_credit_spec.rb
|
|
686
|
-
- spec/models/crypto_trading_instrument_type_spec.rb
|
|
687
|
-
- spec/models/option_chain_inner_spec.rb
|
|
688
|
-
- spec/models/brokerage_authorization_type_read_only_type_spec.rb
|
|
689
|
-
- spec/models/symbol_exchange_spec.rb
|
|
690
|
-
- spec/models/snap_trade_login_user_request_body_spec.rb
|
|
691
|
-
- spec/models/complex_order_leg_spec.rb
|
|
692
|
-
- spec/models/deposit_account_kind_spec.rb
|
|
693
|
-
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
|
694
|
-
- spec/models/balance_spec.rb
|
|
695
|
-
- spec/models/snap_trade_register_user_request_body_spec.rb
|
|
696
|
-
- spec/models/manual_trade_place_time_in_force_strict_spec.rb
|
|
697
|
-
- spec/models/options_symbol_spec.rb
|
|
698
|
-
- spec/models/manual_trade_form_complex_type_spec.rb
|
|
699
|
-
- spec/models/take_profit_spec.rb
|
|
700
|
-
- spec/models/option_strategy_legs_inner_spec.rb
|
|
701
|
-
- spec/models/option_instrument_kind_spec.rb
|
|
702
|
-
- spec/models/adr_instrument_kind_spec.rb
|
|
703
|
-
- spec/models/account_order_record_status_v2_spec.rb
|
|
704
|
-
- spec/models/position_symbol_spec.rb
|
|
705
|
-
- spec/models/trailing_stop_spec.rb
|
|
706
|
-
- spec/models/option_leg_spec.rb
|
|
707
|
-
- spec/models/symbol_spec.rb
|
|
708
|
-
- spec/models/login_redirect_uri_spec.rb
|
|
709
|
-
- spec/models/net_contributions_spec.rb
|
|
710
|
-
- spec/models/etf_instrument_kind_spec.rb
|
|
711
|
-
- spec/models/adr_instrument_spec.rb
|
|
712
|
-
- spec/models/brokerage_instrument_spec.rb
|
|
669
|
+
- spec/models/underlying_option_instrument_spec.rb
|
|
670
|
+
- spec/models/kind_spec.rb
|
|
671
|
+
- spec/models/rate_of_return_response_spec.rb
|
|
672
|
+
- spec/models/manual_trade_spec.rb
|
|
713
673
|
- spec/models/option_brokerage_symbol_spec.rb
|
|
714
|
-
- spec/models/
|
|
715
|
-
- spec/models/
|
|
674
|
+
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
|
675
|
+
- spec/models/underlying_cfd_instrument_spec.rb
|
|
676
|
+
- spec/models/line_of_credit_account_sync_status_spec.rb
|
|
716
677
|
- spec/models/deposit_account_sync_status_spec.rb
|
|
678
|
+
- spec/models/account_order_record_v2_order_role_spec.rb
|
|
679
|
+
- spec/models/timeframe_spec.rb
|
|
680
|
+
- spec/models/mleg_order_type_strict_spec.rb
|
|
681
|
+
- spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
|
|
682
|
+
- spec/models/trade_detection_cancel_subscription_response_spec.rb
|
|
683
|
+
- spec/models/strategy_quotes_greek_spec.rb
|
|
684
|
+
- spec/models/cryptocurrency_pair_quote_spec.rb
|
|
685
|
+
- spec/models/model425_failed_request_response_spec.rb
|
|
686
|
+
- spec/models/rate_of_return_object_spec.rb
|
|
687
|
+
- spec/models/adr_instrument_spec.rb
|
|
688
|
+
- spec/models/line_of_credit_account_kind_spec.rb
|
|
689
|
+
- spec/models/cef_instrument_spec.rb
|
|
690
|
+
- spec/models/model404_failed_request_response_spec.rb
|
|
691
|
+
- spec/models/snap_trade_login_user_request_body_spec.rb
|
|
692
|
+
- spec/models/investment_account_spec.rb
|
|
693
|
+
- spec/models/take_profit_spec.rb
|
|
694
|
+
- spec/models/account_status_spec.rb
|
|
717
695
|
- spec/models/snap_trade_holdings_total_value_spec.rb
|
|
718
|
-
- spec/models/
|
|
719
|
-
- spec/models/model501_not_implemented_response_spec.rb
|
|
720
|
-
- spec/models/future_instrument_spec.rb
|
|
721
|
-
- spec/models/simple_order_form_time_in_force_spec.rb
|
|
722
|
-
- spec/models/mleg_instrument_type_spec.rb
|
|
723
|
-
- spec/models/manual_trade_form_spec.rb
|
|
724
|
-
- spec/models/symbol_currency_spec.rb
|
|
725
|
-
- spec/models/crypto_order_form_type_spec.rb
|
|
726
|
-
- spec/models/strategy_order_record_status_spec.rb
|
|
727
|
-
- spec/models/deposit_account_net_value_spec.rb
|
|
728
|
-
- spec/models/manual_trade_balance_spec.rb
|
|
729
|
-
- spec/models/session_event_spec.rb
|
|
730
|
-
- spec/models/order_updated_response_order_spec.rb
|
|
731
|
-
- spec/models/balance_currency_spec.rb
|
|
732
|
-
- spec/models/model403_feature_not_enabled_response_spec.rb
|
|
696
|
+
- spec/models/stop_loss_spec.rb
|
|
733
697
|
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
|
734
|
-
- spec/models/
|
|
735
|
-
- spec/models/
|
|
736
|
-
- spec/models/
|
|
698
|
+
- spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
|
|
699
|
+
- spec/models/strategy_quotes_spec.rb
|
|
700
|
+
- spec/models/mutual_fund_instrument_kind_spec.rb
|
|
737
701
|
- spec/models/manual_trade_form_complex_spec.rb
|
|
738
|
-
- spec/models/
|
|
739
|
-
- spec/models/timeframe_spec.rb
|
|
702
|
+
- spec/models/option_instrument_option_type_spec.rb
|
|
740
703
|
- spec/models/underlying_symbol_spec.rb
|
|
741
|
-
- spec/models/
|
|
742
|
-
- spec/models/
|
|
743
|
-
- spec/models/
|
|
744
|
-
- spec/models/
|
|
745
|
-
- spec/models/
|
|
746
|
-
- spec/models/account_order_record_spec.rb
|
|
747
|
-
- spec/models/manual_trade_form_notional_value_spec.rb
|
|
748
|
-
- spec/models/account_order_record_option_symbol_spec.rb
|
|
749
|
-
- spec/models/mleg_trading_instrument_spec.rb
|
|
750
|
-
- spec/models/trading_instrument_type_spec.rb
|
|
751
|
-
- spec/models/paginated_universal_activity_spec.rb
|
|
752
|
-
- spec/models/line_of_credit_account_net_value_spec.rb
|
|
753
|
-
- spec/models/other_instrument_kind_spec.rb
|
|
754
|
-
- spec/models/tax_lot_spec.rb
|
|
755
|
-
- spec/models/mleg_order_response_spec.rb
|
|
756
|
-
- spec/models/account_sync_status_spec.rb
|
|
757
|
-
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
|
758
|
-
- spec/models/auth_type_spec.rb
|
|
759
|
-
- spec/models/status_spec.rb
|
|
760
|
-
- spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
|
|
761
|
-
- spec/models/stock_instrument_kind_spec.rb
|
|
762
|
-
- spec/models/action_strict_with_options_spec.rb
|
|
704
|
+
- spec/models/cash_change_direction_spec.rb
|
|
705
|
+
- spec/models/option_instrument_spec.rb
|
|
706
|
+
- spec/models/model403_feature_not_enabled_response_spec.rb
|
|
707
|
+
- spec/models/complex_order_response_spec.rb
|
|
708
|
+
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
|
763
709
|
- spec/models/manual_trade_form_with_options_spec.rb
|
|
764
|
-
- spec/models/
|
|
765
|
-
- spec/models/
|
|
766
|
-
- spec/models/model400_failed_request_response_spec.rb
|
|
767
|
-
- spec/models/crypto_instrument_spec.rb
|
|
710
|
+
- spec/models/symbol_spec.rb
|
|
711
|
+
- spec/models/brokerage_instrument_spec.rb
|
|
768
712
|
- spec/models/brokerage_authorization_data_freshness_mode_spec.rb
|
|
769
|
-
- spec/models/account_order_record_status_spec.rb
|
|
770
|
-
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
|
771
|
-
- spec/models/model503_brokerage_request_response_spec.rb
|
|
772
|
-
- spec/models/mleg_action_strict_spec.rb
|
|
773
|
-
- spec/models/universal_symbol_spec.rb
|
|
774
|
-
- spec/models/account_order_record_quote_currency_spec.rb
|
|
775
|
-
- spec/models/stop_loss_spec.rb
|
|
776
|
-
- spec/models/trade_detection_subscription_spec.rb
|
|
777
|
-
- spec/models/account_holdings_spec.rb
|
|
778
|
-
- spec/models/stock_instrument_figi_instrument_spec.rb
|
|
779
|
-
- spec/models/rate_of_return_response_spec.rb
|
|
780
|
-
- spec/models/mleg_order_type_strict_spec.rb
|
|
781
|
-
- spec/models/o_auth_webhook_base_spec.rb
|
|
782
|
-
- spec/models/brokerage_authorization_spec.rb
|
|
783
|
-
- spec/models/performance_custom_spec.rb
|
|
784
|
-
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
|
785
|
-
- spec/models/dividend_at_date_spec.rb
|
|
786
|
-
- spec/models/schema_version_spec.rb
|
|
787
713
|
- spec/models/option_quote_greeks_spec.rb
|
|
788
|
-
- spec/models/
|
|
789
|
-
- spec/models/model429_too_many_requests_response_spec.rb
|
|
790
|
-
- spec/models/trading_session_spec.rb
|
|
791
|
-
- spec/models/account_value_history_response_spec.rb
|
|
792
|
-
- spec/models/account_universal_activity_spec.rb
|
|
793
|
-
- spec/models/account_orders_v2_response_spec.rb
|
|
794
|
-
- spec/models/option_instrument_option_type_spec.rb
|
|
795
|
-
- spec/models/crypto_order_form_time_in_force_spec.rb
|
|
796
|
-
- spec/models/sub_period_return_rate_spec.rb
|
|
797
|
-
- spec/models/option_strategy_spec.rb
|
|
798
|
-
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
|
799
|
-
- spec/models/account_holdings_account_spec.rb
|
|
800
|
-
- spec/models/net_dividend_spec.rb
|
|
801
|
-
- spec/models/option_impact_spec.rb
|
|
802
|
-
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
|
803
|
-
- spec/models/crypto_trading_instrument_spec.rb
|
|
804
|
-
- spec/models/cfd_instrument_kind_spec.rb
|
|
805
|
-
- spec/models/account_order_record_leg_spec.rb
|
|
806
|
-
- spec/models/mleg_price_effect_strict_spec.rb
|
|
807
|
-
- spec/models/position_currency_spec.rb
|
|
808
|
-
- spec/models/account_information_get_user_account_order_detail_request_spec.rb
|
|
809
|
-
- spec/models/pagination_details_spec.rb
|
|
810
|
-
- spec/models/brokerage_instruments_response_spec.rb
|
|
811
|
-
- spec/models/account_value_history_item_spec.rb
|
|
812
|
-
- spec/models/crypto_instrument_kind_spec.rb
|
|
813
|
-
- spec/models/account_universal_activity_currency_universal_symbol_spec.rb
|
|
714
|
+
- spec/models/manual_trade_form_spec.rb
|
|
814
715
|
- spec/models/partner_data_spec.rb
|
|
815
|
-
- spec/models/
|
|
816
|
-
- spec/models/future_option_instrument_kind_spec.rb
|
|
817
|
-
- spec/models/account_universal_activity_option_symbol_spec.rb
|
|
818
|
-
- spec/models/connection_type_spec.rb
|
|
819
|
-
- spec/models/symbols_quotes_inner_spec.rb
|
|
820
|
-
- spec/models/model425_failed_request_response_spec.rb
|
|
821
|
-
- spec/models/investment_account_net_value_spec.rb
|
|
822
|
-
- spec/models/order_role_spec.rb
|
|
716
|
+
- spec/models/stock_instrument_spec.rb
|
|
823
717
|
- spec/models/mutual_fund_instrument_spec.rb
|
|
824
|
-
- spec/models/
|
|
825
|
-
- spec/models/
|
|
718
|
+
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
|
719
|
+
- spec/models/performance_custom_spec.rb
|
|
720
|
+
- spec/models/past_value_spec.rb
|
|
721
|
+
- spec/models/user_i_dand_secret_spec.rb
|
|
722
|
+
- spec/models/exchange_rate_pairs_spec.rb
|
|
723
|
+
- spec/models/account_simple_spec.rb
|
|
724
|
+
- spec/models/account_order_record_spec.rb
|
|
725
|
+
- spec/models/order_updated_response_spec.rb
|
|
726
|
+
- spec/models/mleg_trade_form_spec.rb
|
|
727
|
+
- spec/models/crypto_order_preview_spec.rb
|
|
826
728
|
- spec/models/options_position_spec.rb
|
|
827
|
-
- spec/models/
|
|
828
|
-
- spec/models/
|
|
829
|
-
- spec/models/
|
|
729
|
+
- spec/models/simple_order_form_type_spec.rb
|
|
730
|
+
- spec/models/option_quote_spec.rb
|
|
731
|
+
- spec/models/monthly_dividends_spec.rb
|
|
732
|
+
- spec/models/model503_brokerage_request_response_spec.rb
|
|
830
733
|
- spec/models/option_type_spec.rb
|
|
734
|
+
- spec/models/encrypted_response_spec.rb
|
|
735
|
+
- spec/models/deposit_account_kind_spec.rb
|
|
736
|
+
- spec/models/account_order_record_leg_instrument_spec.rb
|
|
737
|
+
- spec/models/strategy_type_spec.rb
|
|
738
|
+
- spec/models/manual_trade_form_bracket_spec.rb
|
|
739
|
+
- spec/models/option_impact_spec.rb
|
|
740
|
+
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
|
741
|
+
- spec/models/us_exchange_spec.rb
|
|
742
|
+
- spec/models/holdings_status_spec.rb
|
|
743
|
+
- spec/models/account_universal_activity_currency_universal_symbol_spec.rb
|
|
744
|
+
- spec/models/other_instrument_kind_spec.rb
|
|
745
|
+
- spec/models/crypto_order_form_time_in_force_spec.rb
|
|
746
|
+
- spec/models/option_chain_inner_spec.rb
|
|
747
|
+
- spec/models/strategy_order_record_status_spec.rb
|
|
748
|
+
- spec/models/manual_trade_form_notional_value_spec.rb
|
|
749
|
+
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
|
750
|
+
- spec/models/account_universal_activity_symbol_spec.rb
|
|
751
|
+
- spec/models/manual_trade_and_impact_spec.rb
|
|
752
|
+
- spec/models/account_balance_spec.rb
|
|
753
|
+
- spec/models/account_universal_activity_option_symbol_spec.rb
|
|
754
|
+
- spec/models/cryptocurrency_pair_spec.rb
|
|
755
|
+
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
|
756
|
+
- spec/models/account_order_record_quote_universal_symbol_spec.rb
|
|
757
|
+
- spec/models/type_spec.rb
|
|
758
|
+
- spec/models/snaptrade_spec.rb
|
|
759
|
+
- spec/models/account_information_get_user_account_order_detail_request_spec.rb
|
|
760
|
+
- spec/models/notional_value_spec.rb
|
|
761
|
+
- spec/models/position_spec.rb
|
|
762
|
+
- spec/models/option_strategy_spec.rb
|
|
831
763
|
- spec/models/action_strict_spec.rb
|
|
832
|
-
- spec/models/
|
|
833
|
-
- spec/models/
|
|
834
|
-
- spec/models/
|
|
835
|
-
- spec/models/
|
|
764
|
+
- spec/models/connection_portal_version_spec.rb
|
|
765
|
+
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
|
766
|
+
- spec/models/account_order_record_leg_spec.rb
|
|
767
|
+
- spec/models/position_currency_spec.rb
|
|
768
|
+
- spec/models/net_contributions_spec.rb
|
|
836
769
|
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
|
837
|
-
- spec/models/
|
|
838
|
-
- spec/models/
|
|
839
|
-
- spec/models/brokerage_spec.rb
|
|
770
|
+
- spec/models/institution_spec.rb
|
|
771
|
+
- spec/models/future_option_instrument_spec.rb
|
|
840
772
|
- spec/models/deposit_account_spec.rb
|
|
841
|
-
- spec/models/
|
|
842
|
-
- spec/models/
|
|
843
|
-
- spec/models/
|
|
844
|
-
- spec/models/
|
|
845
|
-
- spec/models/
|
|
846
|
-
- spec/models/
|
|
847
|
-
- spec/models/
|
|
773
|
+
- spec/models/account_order_record_v2_spec.rb
|
|
774
|
+
- spec/models/account_holdings_account_spec.rb
|
|
775
|
+
- spec/models/simple_order_form_time_in_force_spec.rb
|
|
776
|
+
- spec/models/complex_order_leg_order_role_spec.rb
|
|
777
|
+
- spec/models/mleg_trading_instrument_spec.rb
|
|
778
|
+
- spec/models/mleg_leg_spec.rb
|
|
779
|
+
- spec/models/validated_trade_body_spec.rb
|
|
848
780
|
- spec/models/delete_user_response_spec.rb
|
|
849
|
-
- spec/models/
|
|
850
|
-
- spec/models/
|
|
851
|
-
- spec/models/
|
|
852
|
-
- spec/models/
|
|
781
|
+
- spec/models/option_leg_action_spec.rb
|
|
782
|
+
- spec/models/crypto_trading_instrument_spec.rb
|
|
783
|
+
- spec/models/recent_orders_response_spec.rb
|
|
784
|
+
- spec/models/tax_lot_spec.rb
|
|
785
|
+
- spec/models/balance_currency_spec.rb
|
|
853
786
|
- spec/models/order_type_strict_spec.rb
|
|
854
|
-
- spec/models/
|
|
855
|
-
- spec/models/
|
|
856
|
-
- spec/models/notional_value_spec.rb
|
|
857
|
-
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
|
858
|
-
- spec/models/type_spec.rb
|
|
859
|
-
- spec/models/account_spec.rb
|
|
787
|
+
- spec/models/underlying_symbol_exchange_spec.rb
|
|
788
|
+
- spec/models/brokerage_instruments_response_spec.rb
|
|
860
789
|
- spec/models/symbol_query_spec.rb
|
|
861
|
-
- spec/models/
|
|
790
|
+
- spec/models/account_order_record_status_spec.rb
|
|
791
|
+
- spec/models/line_of_credit_account_available_credit_spec.rb
|
|
792
|
+
- spec/models/manual_trade_replace_form_spec.rb
|
|
793
|
+
- spec/models/crypto_order_form_type_spec.rb
|
|
794
|
+
- spec/models/manual_trade_place_time_in_force_strict_spec.rb
|
|
795
|
+
- spec/models/cef_instrument_kind_spec.rb
|
|
796
|
+
- spec/models/model403_failed_request_response_spec.rb
|
|
797
|
+
- spec/models/model501_not_implemented_response_spec.rb
|
|
798
|
+
- spec/models/session_event_type_spec.rb
|
|
799
|
+
- spec/models/investment_account_net_value_spec.rb
|
|
800
|
+
- spec/models/trade_detection_add_subscription_request_spec.rb
|
|
801
|
+
- spec/models/other_instrument_spec.rb
|
|
802
|
+
- spec/models/mleg_order_response_spec.rb
|
|
803
|
+
- spec/models/balance_spec.rb
|
|
804
|
+
- spec/models/manual_trade_balance_spec.rb
|
|
805
|
+
- spec/models/account_universal_activity_currency_spec.rb
|
|
862
806
|
- spec/models/time_in_force_strict_spec.rb
|
|
863
|
-
- spec/models/
|
|
864
|
-
- spec/models/
|
|
865
|
-
- spec/models/
|
|
866
|
-
- spec/models/options_position_currency_spec.rb
|
|
867
|
-
- spec/models/mleg_trade_form_spec.rb
|
|
868
|
-
- spec/models/order_updated_response_spec.rb
|
|
869
|
-
- spec/models/account_simple_spec.rb
|
|
870
|
-
- spec/models/line_of_credit_account_sync_status_spec.rb
|
|
871
|
-
- spec/models/cfd_instrument_spec.rb
|
|
872
|
-
- spec/models/us_exchange_spec.rb
|
|
873
|
-
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
|
874
|
-
- spec/models/account_order_record_v2_order_role_spec.rb
|
|
875
|
-
- spec/models/rate_of_return_object_spec.rb
|
|
807
|
+
- spec/models/mleg_instrument_type_spec.rb
|
|
808
|
+
- spec/models/deposit_account_net_value_spec.rb
|
|
809
|
+
- spec/models/session_event_spec.rb
|
|
876
810
|
- spec/models/simple_order_form_spec.rb
|
|
877
|
-
- spec/models/
|
|
878
|
-
- spec/models/
|
|
811
|
+
- spec/models/security_type_spec.rb
|
|
812
|
+
- spec/models/crypto_order_preview_estimated_fee_spec.rb
|
|
813
|
+
- spec/models/trading_session_spec.rb
|
|
814
|
+
- spec/models/all_account_positions_response_data_freshness_spec.rb
|
|
815
|
+
- spec/models/trade_detection_subscription_spec.rb
|
|
816
|
+
- spec/models/account_sync_status_spec.rb
|
|
817
|
+
- spec/models/etf_instrument_spec.rb
|
|
879
818
|
- spec/models/connection_account_spec.rb
|
|
880
|
-
- spec/models/
|
|
881
|
-
- spec/models/
|
|
882
|
-
- spec/models/
|
|
883
|
-
- spec/models/investment_account_spec.rb
|
|
884
|
-
- spec/models/other_instrument_spec.rb
|
|
885
|
-
- spec/models/account_order_record_leg_instrument_spec.rb
|
|
886
|
-
- spec/models/validated_trade_body_spec.rb
|
|
887
|
-
- spec/models/account_balance_total_spec.rb
|
|
888
|
-
- spec/models/account_category_spec.rb
|
|
889
|
-
- spec/models/mleg_leg_spec.rb
|
|
890
|
-
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
|
891
|
-
- spec/models/manual_trade_symbol_spec.rb
|
|
892
|
-
- spec/models/manual_trade_spec.rb
|
|
893
|
-
- spec/models/account_order_record_trailing_stop_spec.rb
|
|
894
|
-
- spec/models/session_event_type_spec.rb
|
|
895
|
-
- spec/models/cancel_order_response_spec.rb
|
|
896
|
-
- spec/models/child_brokerage_order_ids_spec.rb
|
|
819
|
+
- spec/models/manual_trade_impact_spec.rb
|
|
820
|
+
- spec/models/line_of_credit_account_net_value_spec.rb
|
|
821
|
+
- spec/models/strategy_order_record_spec.rb
|
|
897
822
|
- spec/models/delete_connection_confirmation_spec.rb
|
|
898
|
-
- spec/models/
|
|
823
|
+
- spec/models/crypto_instrument_spec.rb
|
|
824
|
+
- spec/models/account_value_history_item_spec.rb
|
|
825
|
+
- spec/models/login_redirect_uri_spec.rb
|
|
826
|
+
- spec/models/account_universal_activity_spec.rb
|
|
827
|
+
- spec/models/symbols_quotes_inner_spec.rb
|
|
828
|
+
- spec/models/account_order_record_trailing_stop_spec.rb
|
|
829
|
+
- spec/models/cfd_instrument_spec.rb
|
|
830
|
+
- spec/models/option_strategy_legs_inner_spec.rb
|
|
831
|
+
- spec/models/paginated_universal_activity_spec.rb
|
|
832
|
+
- spec/models/connection_account_sync_status_spec.rb
|
|
833
|
+
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
|
834
|
+
- spec/models/complex_order_response_type_spec.rb
|
|
899
835
|
- spec/models/account_order_record_child_brokerage_order_ids_spec.rb
|
|
836
|
+
- spec/models/account_order_record_quote_currency_spec.rb
|
|
837
|
+
- spec/models/net_dividend_spec.rb
|
|
838
|
+
- spec/models/etf_instrument_kind_spec.rb
|
|
839
|
+
- spec/models/account_holdings_spec.rb
|
|
840
|
+
- spec/models/price_effect_spec.rb
|
|
841
|
+
- spec/models/all_account_positions_response_spec.rb
|
|
842
|
+
- spec/models/account_position_spec.rb
|
|
843
|
+
- spec/models/symbol_currency_spec.rb
|
|
844
|
+
- spec/models/future_instrument_kind_spec.rb
|
|
845
|
+
- spec/models/account_order_record_option_symbol_spec.rb
|
|
846
|
+
- spec/models/o_auth_webhook_base_spec.rb
|
|
847
|
+
- spec/models/child_brokerage_order_ids_spec.rb
|
|
848
|
+
- spec/models/model401_failed_request_response_spec.rb
|
|
849
|
+
- spec/models/instrument_spec.rb
|
|
850
|
+
- spec/models/line_of_credit_account_spec.rb
|
|
851
|
+
- spec/models/trading_instrument_spec.rb
|
|
852
|
+
- spec/models/action_strict_with_options_spec.rb
|
|
853
|
+
- spec/models/sub_period_return_rate_spec.rb
|
|
854
|
+
- spec/models/account_value_history_response_spec.rb
|
|
855
|
+
- spec/models/account_category_spec.rb
|
|
856
|
+
- spec/models/cancel_order_response_spec.rb
|
|
857
|
+
- spec/models/figi_instrument_spec.rb
|
|
858
|
+
- spec/models/dividend_at_date_spec.rb
|
|
859
|
+
- spec/models/account_spec.rb
|
|
860
|
+
- spec/models/cfd_instrument_kind_spec.rb
|
|
861
|
+
- spec/models/model429_too_many_requests_response_spec.rb
|
|
862
|
+
- spec/models/order_role_spec.rb
|
|
863
|
+
- spec/models/auth_type_spec.rb
|
|
864
|
+
- spec/models/trade_detection_cancel_subscription_request_spec.rb
|
|
900
865
|
- spec/models/currency_spec.rb
|
|
901
|
-
- spec/models/
|
|
866
|
+
- spec/models/order_updated_response_order_spec.rb
|
|
867
|
+
- spec/models/exchange_spec.rb
|
|
868
|
+
- spec/models/account_order_record_status_v2_spec.rb
|
|
869
|
+
- spec/models/future_instrument_spec.rb
|
|
870
|
+
- spec/models/symbol_exchange_spec.rb
|
|
871
|
+
- spec/models/underlying_symbol_type_spec.rb
|
|
872
|
+
- spec/models/option_leg_spec.rb
|
|
873
|
+
- spec/models/pagination_details_spec.rb
|
|
874
|
+
- spec/models/brokerage_spec.rb
|
|
875
|
+
- spec/models/manual_trade_form_complex_type_spec.rb
|
|
876
|
+
- spec/models/options_symbol_option_type_spec.rb
|
|
877
|
+
- spec/models/future_option_instrument_kind_spec.rb
|
|
878
|
+
- spec/models/model400_failed_request_response_spec.rb
|
|
879
|
+
- spec/models/stock_instrument_kind_spec.rb
|
|
880
|
+
- spec/models/position_symbol_spec.rb
|
|
881
|
+
- spec/models/mleg_price_effect_strict_spec.rb
|
|
882
|
+
- spec/models/connection_type_spec.rb
|
|
883
|
+
- spec/models/model500_unexpected_exception_response_spec.rb
|
|
884
|
+
- spec/models/manual_trade_symbol_spec.rb
|
|
885
|
+
- spec/models/account_orders_v2_response_spec.rb
|
|
886
|
+
- spec/models/status_spec.rb
|
|
887
|
+
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
|
888
|
+
- spec/models/account_balance_total_spec.rb
|
|
889
|
+
- spec/models/crypto_instrument_kind_spec.rb
|
|
890
|
+
- spec/models/brokerage_authorization_spec.rb
|
|
891
|
+
- spec/models/account_order_record_universal_symbol_spec.rb
|
|
892
|
+
- spec/models/option_instrument_kind_spec.rb
|
|
902
893
|
- spec/models/snap_trade_holdings_account_spec.rb
|
|
903
|
-
- spec/models/
|
|
904
|
-
- spec/models/
|
|
905
|
-
- spec/models/
|
|
894
|
+
- spec/models/options_position_currency_spec.rb
|
|
895
|
+
- spec/models/snap_trade_register_user_request_body_spec.rb
|
|
896
|
+
- spec/models/stock_instrument_figi_instrument_spec.rb
|
|
897
|
+
- spec/models/schema_version_spec.rb
|
|
898
|
+
- spec/models/adr_instrument_kind_spec.rb
|
|
899
|
+
- spec/models/brokerage_authorization_type_read_only_type_spec.rb
|
|
900
|
+
- spec/models/trailing_stop_spec.rb
|
|
901
|
+
- spec/models/mleg_action_strict_spec.rb
|
|
906
902
|
- spec/models/crypto_order_form_spec.rb
|
|
907
|
-
- spec/models/
|
|
908
|
-
- spec/models/
|
|
909
|
-
- spec/models/
|
|
903
|
+
- spec/models/trading_instrument_type_spec.rb
|
|
904
|
+
- spec/models/brokerage_type_spec.rb
|
|
905
|
+
- spec/models/complex_order_leg_spec.rb
|
|
910
906
|
- spec/models/universal_activity_spec.rb
|
|
907
|
+
- spec/models/universal_symbol_spec.rb
|
|
908
|
+
- spec/models/transactions_status_spec.rb
|
|
909
|
+
- spec/models/options_symbol_spec.rb
|
|
910
|
+
- spec/models/crypto_trading_instrument_type_spec.rb
|
|
911
|
+
- spec/regression/fixtures/all_account_positions.json
|
|
911
912
|
- spec/regression/request_signing_spec.rb
|
|
912
913
|
- spec/regression/all_account_positions_spec.rb
|
|
913
|
-
- spec/regression/fixtures/all_account_positions.json
|
|
914
914
|
- spec/spec_helper.rb
|