snaptrade 3.0.19 → 3.0.20
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 +45 -47
- data/lib/snaptrade/api/connections_api.rb +119 -0
- data/lib/snaptrade/api/experimental_endpoints_api.rb +0 -123
- 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
- metadata +221 -221
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2728542b882358a83a687f6d8b0a602346785d19bb81c1f20f1a67abc3a87486
|
|
4
|
+
data.tar.gz: 297c3d500284fabe41cf16902981a2ef48c4705a5697262f08beef9396317562
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac58ddfe1863fdaf49b9aa73a28e069e92e7f8b16d1da55f4919d68e65d9110bc6d36fb834656a4bc56c741b3ad738f01732441b614952e55da571c69b6a7367
|
|
7
|
+
data.tar.gz: 8dffc348479e9f98011d5d67d32ba13a7507ff45cea782b36176e72e3e25ed50ba10e4daa48fa30ab34af94a9aafb757ebf8f242ef08d69a7dc562e9bf13c393
|
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.20)
|
|
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.20'
|
|
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.
|
|
@@ -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.
|
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.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: snaptrade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SnapTrade
|
|
@@ -656,259 +656,259 @@ signing_key:
|
|
|
656
656
|
specification_version: 4
|
|
657
657
|
summary: SnapTrade Ruby Gem
|
|
658
658
|
test_files:
|
|
659
|
-
- spec/api/api_status_api_spec.rb
|
|
660
|
-
- spec/api/experimental_endpoints_api_spec.rb
|
|
661
659
|
- spec/api/connections_api_spec.rb
|
|
660
|
+
- spec/api/authentication_api_spec.rb
|
|
661
|
+
- spec/api/experimental_endpoints_api_spec.rb
|
|
662
662
|
- spec/api/trading_api_spec.rb
|
|
663
|
-
- spec/api/
|
|
663
|
+
- spec/api/api_status_api_spec.rb
|
|
664
664
|
- spec/api/account_information_api_spec.rb
|
|
665
|
-
- spec/api/
|
|
665
|
+
- spec/api/reference_data_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/
|
|
674
|
-
- spec/models/
|
|
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
|
|
669
|
+
- spec/models/option_brokerage_symbol_spec.rb
|
|
670
|
+
- spec/models/trade_detection_subscription_spec.rb
|
|
671
|
+
- spec/models/other_instrument_kind_spec.rb
|
|
672
|
+
- spec/models/underlying_symbol_exchange_spec.rb
|
|
673
|
+
- spec/models/us_exchange_spec.rb
|
|
674
|
+
- spec/models/brokerage_authorization_type_read_only_brokerage_spec.rb
|
|
683
675
|
- spec/models/security_type_spec.rb
|
|
684
|
-
- spec/models/
|
|
685
|
-
- spec/models/
|
|
686
|
-
- spec/models/
|
|
687
|
-
- spec/models/
|
|
688
|
-
- spec/models/
|
|
689
|
-
- spec/models/
|
|
690
|
-
- spec/models/
|
|
676
|
+
- spec/models/connection_account_spec.rb
|
|
677
|
+
- spec/models/brokerage_authorization_spec.rb
|
|
678
|
+
- spec/models/auth_type_spec.rb
|
|
679
|
+
- spec/models/account_order_record_quote_currency_spec.rb
|
|
680
|
+
- spec/models/manual_trade_form_spec.rb
|
|
681
|
+
- spec/models/timeframe_spec.rb
|
|
682
|
+
- spec/models/delete_user_response_spec.rb
|
|
683
|
+
- spec/models/institution_spec.rb
|
|
691
684
|
- spec/models/complex_order_leg_spec.rb
|
|
692
|
-
- spec/models/
|
|
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
|
|
685
|
+
- spec/models/encrypted_response_spec.rb
|
|
707
686
|
- spec/models/symbol_spec.rb
|
|
708
|
-
- spec/models/
|
|
709
|
-
- spec/models/
|
|
710
|
-
- spec/models/
|
|
711
|
-
- spec/models/
|
|
712
|
-
- spec/models/
|
|
713
|
-
- spec/models/
|
|
714
|
-
- spec/models/
|
|
715
|
-
- spec/models/
|
|
716
|
-
- spec/models/
|
|
717
|
-
- spec/models/
|
|
718
|
-
- spec/models/
|
|
719
|
-
- spec/models/
|
|
720
|
-
- spec/models/
|
|
687
|
+
- spec/models/account_orders_v2_response_spec.rb
|
|
688
|
+
- spec/models/brokerage_authorization_type_read_only_type_spec.rb
|
|
689
|
+
- spec/models/crypto_order_preview_spec.rb
|
|
690
|
+
- spec/models/action_strict_spec.rb
|
|
691
|
+
- spec/models/account_order_record_trailing_stop_spec.rb
|
|
692
|
+
- spec/models/crypto_instrument_spec.rb
|
|
693
|
+
- spec/models/manual_trade_and_impact_spec.rb
|
|
694
|
+
- spec/models/mleg_action_strict_spec.rb
|
|
695
|
+
- spec/models/future_instrument_kind_spec.rb
|
|
696
|
+
- spec/models/account_universal_activity_spec.rb
|
|
697
|
+
- spec/models/crypto_order_form_time_in_force_spec.rb
|
|
698
|
+
- spec/models/symbols_quotes_inner_spec.rb
|
|
699
|
+
- spec/models/account_value_history_item_spec.rb
|
|
721
700
|
- spec/models/simple_order_form_time_in_force_spec.rb
|
|
722
|
-
- spec/models/
|
|
723
|
-
- spec/models/
|
|
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
|
|
733
|
-
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
|
734
|
-
- spec/models/complex_order_response_type_spec.rb
|
|
735
|
-
- spec/models/underlying_symbol_exchange_spec.rb
|
|
736
|
-
- spec/models/option_quote_spec.rb
|
|
737
|
-
- spec/models/manual_trade_form_complex_spec.rb
|
|
738
|
-
- spec/models/account_order_record_universal_symbol_spec.rb
|
|
739
|
-
- spec/models/timeframe_spec.rb
|
|
740
|
-
- spec/models/underlying_symbol_spec.rb
|
|
741
|
-
- spec/models/mutual_fund_instrument_kind_spec.rb
|
|
701
|
+
- spec/models/symbol_query_spec.rb
|
|
702
|
+
- spec/models/partner_data_spec.rb
|
|
742
703
|
- spec/models/brokerage_type_spec.rb
|
|
743
|
-
- spec/models/
|
|
704
|
+
- spec/models/session_event_spec.rb
|
|
705
|
+
- spec/models/pagination_details_spec.rb
|
|
706
|
+
- spec/models/options_position_currency_spec.rb
|
|
744
707
|
- spec/models/cef_instrument_kind_spec.rb
|
|
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
|
|
763
|
-
- spec/models/manual_trade_form_with_options_spec.rb
|
|
764
|
-
- spec/models/transactions_status_spec.rb
|
|
765
|
-
- spec/models/account_status_spec.rb
|
|
708
|
+
- spec/models/account_balance_total_spec.rb
|
|
766
709
|
- spec/models/model400_failed_request_response_spec.rb
|
|
767
|
-
- spec/models/
|
|
768
|
-
- spec/models/
|
|
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
|
|
710
|
+
- spec/models/manual_trade_spec.rb
|
|
711
|
+
- spec/models/line_of_credit_account_available_credit_spec.rb
|
|
773
712
|
- spec/models/universal_symbol_spec.rb
|
|
774
|
-
- spec/models/
|
|
775
|
-
- spec/models/
|
|
776
|
-
- spec/models/trade_detection_subscription_spec.rb
|
|
713
|
+
- spec/models/model403_feature_not_enabled_response_spec.rb
|
|
714
|
+
- spec/models/type_spec.rb
|
|
777
715
|
- spec/models/account_holdings_spec.rb
|
|
716
|
+
- spec/models/kind_spec.rb
|
|
717
|
+
- spec/models/mleg_leg_spec.rb
|
|
718
|
+
- spec/models/line_of_credit_account_sync_status_spec.rb
|
|
719
|
+
- spec/models/adr_instrument_kind_spec.rb
|
|
720
|
+
- spec/models/option_instrument_kind_spec.rb
|
|
778
721
|
- spec/models/stock_instrument_figi_instrument_spec.rb
|
|
779
|
-
- spec/models/
|
|
722
|
+
- spec/models/account_value_history_response_spec.rb
|
|
723
|
+
- spec/models/encrypted_response_encrypted_message_data_spec.rb
|
|
724
|
+
- spec/models/option_impact_spec.rb
|
|
725
|
+
- spec/models/manual_trade_form_with_options_spec.rb
|
|
726
|
+
- spec/models/account_holdings_account_spec.rb
|
|
727
|
+
- spec/models/brokerage_authorization_data_freshness_mode_spec.rb
|
|
728
|
+
- spec/models/past_value_spec.rb
|
|
729
|
+
- spec/models/investment_account_spec.rb
|
|
730
|
+
- spec/models/option_chain_inner_chain_per_root_inner_chain_per_strike_price_inner_spec.rb
|
|
731
|
+
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
|
732
|
+
- spec/models/model403_failed_request_response_spec.rb
|
|
733
|
+
- spec/models/brokerage_instruments_response_spec.rb
|
|
734
|
+
- spec/models/trade_detection_cancel_subscription_request_spec.rb
|
|
735
|
+
- spec/models/manual_trade_symbol_spec.rb
|
|
780
736
|
- spec/models/mleg_order_type_strict_spec.rb
|
|
781
|
-
- spec/models/
|
|
782
|
-
- spec/models/
|
|
783
|
-
- spec/models/
|
|
784
|
-
- spec/models/
|
|
785
|
-
- spec/models/
|
|
737
|
+
- spec/models/snap_trade_register_user_request_body_spec.rb
|
|
738
|
+
- spec/models/strategy_type_spec.rb
|
|
739
|
+
- spec/models/all_account_positions_response_spec.rb
|
|
740
|
+
- spec/models/order_type_strict_spec.rb
|
|
741
|
+
- spec/models/cash_change_direction_spec.rb
|
|
742
|
+
- spec/models/other_instrument_spec.rb
|
|
743
|
+
- spec/models/crypto_order_form_spec.rb
|
|
744
|
+
- spec/models/complex_order_leg_order_role_spec.rb
|
|
745
|
+
- spec/models/stop_loss_spec.rb
|
|
746
|
+
- spec/models/all_account_positions_response_data_freshness_spec.rb
|
|
747
|
+
- spec/models/crypto_order_form_type_spec.rb
|
|
748
|
+
- spec/models/option_instrument_option_type_spec.rb
|
|
786
749
|
- spec/models/schema_version_spec.rb
|
|
750
|
+
- spec/models/snaptrade_spec.rb
|
|
751
|
+
- spec/models/tax_lot_spec.rb
|
|
752
|
+
- spec/models/account_universal_activity_symbol_spec.rb
|
|
753
|
+
- spec/models/underlying_option_instrument_spec.rb
|
|
754
|
+
- spec/models/transactions_status_spec.rb
|
|
755
|
+
- spec/models/account_simple_spec.rb
|
|
756
|
+
- spec/models/cfd_instrument_kind_spec.rb
|
|
757
|
+
- spec/models/rate_of_return_object_spec.rb
|
|
758
|
+
- spec/models/account_order_record_universal_symbol_spec.rb
|
|
787
759
|
- spec/models/option_quote_greeks_spec.rb
|
|
788
|
-
- spec/models/
|
|
789
|
-
- spec/models/
|
|
790
|
-
- spec/models/
|
|
791
|
-
- spec/models/
|
|
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
|
|
760
|
+
- spec/models/model501_not_implemented_response_spec.rb
|
|
761
|
+
- spec/models/account_order_record_leg_instrument_spec.rb
|
|
762
|
+
- spec/models/underlying_symbol_type_spec.rb
|
|
763
|
+
- spec/models/etf_instrument_kind_spec.rb
|
|
800
764
|
- spec/models/net_dividend_spec.rb
|
|
801
|
-
- spec/models/
|
|
802
|
-
- spec/models/
|
|
803
|
-
- spec/models/
|
|
804
|
-
- spec/models/
|
|
805
|
-
- spec/models/
|
|
765
|
+
- spec/models/account_order_record_option_symbol_spec.rb
|
|
766
|
+
- spec/models/manual_trade_replace_form_spec.rb
|
|
767
|
+
- spec/models/model404_failed_request_response_spec.rb
|
|
768
|
+
- spec/models/future_instrument_spec.rb
|
|
769
|
+
- spec/models/manual_trade_form_notional_value_spec.rb
|
|
770
|
+
- spec/models/trade_detection_add_subscription_request_spec.rb
|
|
771
|
+
- spec/models/take_profit_spec.rb
|
|
772
|
+
- spec/models/model402_brokerage_auth_disabled_response_spec.rb
|
|
773
|
+
- spec/models/mleg_order_response_spec.rb
|
|
774
|
+
- spec/models/deposit_account_net_value_spec.rb
|
|
775
|
+
- spec/models/underlying_cfd_instrument_spec.rb
|
|
776
|
+
- spec/models/brokerage_instrument_spec.rb
|
|
777
|
+
- spec/models/position_spec.rb
|
|
778
|
+
- spec/models/universal_activity_spec.rb
|
|
779
|
+
- spec/models/account_order_record_spec.rb
|
|
780
|
+
- spec/models/option_strategy_legs_inner_spec.rb
|
|
781
|
+
- spec/models/simple_order_form_spec.rb
|
|
782
|
+
- spec/models/option_type_spec.rb
|
|
783
|
+
- spec/models/mleg_trade_form_spec.rb
|
|
784
|
+
- spec/models/option_quote_spec.rb
|
|
785
|
+
- spec/models/login_redirect_uri_spec.rb
|
|
786
|
+
- spec/models/model401_failed_request_response_spec.rb
|
|
787
|
+
- spec/models/account_position_spec.rb
|
|
788
|
+
- spec/models/action_strict_with_options_spec.rb
|
|
789
|
+
- spec/models/account_status_spec.rb
|
|
806
790
|
- spec/models/mleg_price_effect_strict_spec.rb
|
|
807
|
-
- spec/models/
|
|
791
|
+
- spec/models/strategy_order_record_status_spec.rb
|
|
808
792
|
- spec/models/account_information_get_user_account_order_detail_request_spec.rb
|
|
809
|
-
- spec/models/
|
|
810
|
-
- spec/models/
|
|
811
|
-
- spec/models/
|
|
812
|
-
- spec/models/
|
|
813
|
-
- spec/models/
|
|
814
|
-
- spec/models/
|
|
815
|
-
- spec/models/
|
|
816
|
-
- spec/models/
|
|
817
|
-
- spec/models/
|
|
818
|
-
- spec/models/
|
|
819
|
-
- spec/models/
|
|
820
|
-
- spec/models/
|
|
821
|
-
- spec/models/
|
|
822
|
-
- spec/models/
|
|
823
|
-
- spec/models/
|
|
793
|
+
- spec/models/child_brokerage_order_ids_spec.rb
|
|
794
|
+
- spec/models/stock_instrument_spec.rb
|
|
795
|
+
- spec/models/currency_spec.rb
|
|
796
|
+
- spec/models/account_order_record_child_brokerage_order_ids_spec.rb
|
|
797
|
+
- spec/models/exchange_spec.rb
|
|
798
|
+
- spec/models/complex_order_response_type_spec.rb
|
|
799
|
+
- spec/models/price_effect_spec.rb
|
|
800
|
+
- spec/models/symbol_exchange_spec.rb
|
|
801
|
+
- spec/models/options_symbol_option_type_spec.rb
|
|
802
|
+
- spec/models/option_leg_spec.rb
|
|
803
|
+
- spec/models/trading_search_cryptocurrency_pair_instruments200_response_spec.rb
|
|
804
|
+
- spec/models/session_event_type_spec.rb
|
|
805
|
+
- spec/models/instrument_spec.rb
|
|
806
|
+
- spec/models/connection_portal_version_spec.rb
|
|
807
|
+
- spec/models/order_updated_response_spec.rb
|
|
808
|
+
- spec/models/account_universal_activity_currency_spec.rb
|
|
809
|
+
- spec/models/manual_trade_form_bracket_spec.rb
|
|
810
|
+
- spec/models/account_order_record_v2_spec.rb
|
|
811
|
+
- spec/models/cfd_instrument_spec.rb
|
|
812
|
+
- spec/models/complex_order_response_spec.rb
|
|
813
|
+
- spec/models/strategy_quotes_spec.rb
|
|
814
|
+
- spec/models/holdings_status_spec.rb
|
|
824
815
|
- spec/models/monthly_dividends_spec.rb
|
|
825
|
-
- spec/models/account_balance_spec.rb
|
|
826
816
|
- spec/models/options_position_spec.rb
|
|
827
|
-
- spec/models/
|
|
828
|
-
- spec/models/
|
|
829
|
-
- spec/models/
|
|
830
|
-
- spec/models/
|
|
831
|
-
- spec/models/
|
|
832
|
-
- spec/models/
|
|
833
|
-
- spec/models/
|
|
834
|
-
- spec/models/
|
|
835
|
-
- spec/models/underlying_cfd_instrument_spec.rb
|
|
836
|
-
- spec/models/option_chain_inner_chain_per_root_inner_spec.rb
|
|
837
|
-
- spec/models/figi_instrument_spec.rb
|
|
838
|
-
- spec/models/all_account_positions_response_spec.rb
|
|
817
|
+
- spec/models/adr_instrument_spec.rb
|
|
818
|
+
- spec/models/underlying_symbol_spec.rb
|
|
819
|
+
- spec/models/trading_session_spec.rb
|
|
820
|
+
- spec/models/connection_type_spec.rb
|
|
821
|
+
- spec/models/time_in_force_strict_spec.rb
|
|
822
|
+
- spec/models/account_order_record_v2_order_role_spec.rb
|
|
823
|
+
- spec/models/snap_trade_holdings_account_spec.rb
|
|
824
|
+
- spec/models/manual_trade_place_time_in_force_strict_spec.rb
|
|
839
825
|
- spec/models/brokerage_spec.rb
|
|
840
|
-
- spec/models/
|
|
826
|
+
- spec/models/option_chain_inner_spec.rb
|
|
827
|
+
- spec/models/account_order_record_status_spec.rb
|
|
828
|
+
- spec/models/deposit_account_sync_status_spec.rb
|
|
829
|
+
- spec/models/trailing_stop_spec.rb
|
|
830
|
+
- spec/models/options_symbol_spec.rb
|
|
831
|
+
- spec/models/order_role_spec.rb
|
|
832
|
+
- spec/models/option_strategy_spec.rb
|
|
833
|
+
- spec/models/exchange_rate_pairs_spec.rb
|
|
834
|
+
- spec/models/figi_instrument_spec.rb
|
|
835
|
+
- spec/models/model402_brokerage_auth_already_disabled_exception_spec.rb
|
|
841
836
|
- spec/models/etf_instrument_spec.rb
|
|
842
|
-
- spec/models/
|
|
843
|
-
- spec/models/manual_trade_impact_spec.rb
|
|
844
|
-
- spec/models/holdings_status_spec.rb
|
|
845
|
-
- spec/models/price_effect_spec.rb
|
|
846
|
-
- spec/models/strategy_type_spec.rb
|
|
847
|
-
- spec/models/stock_instrument_spec.rb
|
|
848
|
-
- spec/models/delete_user_response_spec.rb
|
|
849
|
-
- spec/models/position_spec.rb
|
|
850
|
-
- spec/models/model500_unexpected_exception_response_spec.rb
|
|
837
|
+
- spec/models/model425_failed_request_response_spec.rb
|
|
851
838
|
- spec/models/strategy_order_record_spec.rb
|
|
852
|
-
- spec/models/
|
|
853
|
-
- spec/models/
|
|
854
|
-
- spec/models/
|
|
839
|
+
- spec/models/line_of_credit_account_minimum_payment_amount_spec.rb
|
|
840
|
+
- spec/models/account_balance_spec.rb
|
|
841
|
+
- spec/models/snap_trade_login_user_request_body_spec.rb
|
|
842
|
+
- spec/models/strategy_quotes_greek_spec.rb
|
|
843
|
+
- spec/models/brokerage_authorization_refresh_confirmation_spec.rb
|
|
844
|
+
- spec/models/crypto_trading_instrument_spec.rb
|
|
845
|
+
- spec/models/account_order_record_leg_spec.rb
|
|
846
|
+
- spec/models/crypto_trading_instrument_type_spec.rb
|
|
847
|
+
- spec/models/manual_trade_form_complex_spec.rb
|
|
848
|
+
- spec/models/account_universal_activity_option_symbol_spec.rb
|
|
849
|
+
- spec/models/status_spec.rb
|
|
850
|
+
- spec/models/brokerage_authorization_type_read_only_spec.rb
|
|
851
|
+
- spec/models/snap_trade_holdings_total_value_spec.rb
|
|
852
|
+
- spec/models/option_instrument_spec.rb
|
|
853
|
+
- spec/models/model500_unexpected_exception_response_spec.rb
|
|
854
|
+
- spec/models/crypto_instrument_kind_spec.rb
|
|
855
|
+
- spec/models/balance_spec.rb
|
|
856
|
+
- spec/models/mleg_trading_instrument_spec.rb
|
|
857
|
+
- spec/models/cryptocurrency_pair_quote_spec.rb
|
|
858
|
+
- spec/models/manual_trade_impact_spec.rb
|
|
859
|
+
- spec/models/deposit_account_kind_spec.rb
|
|
860
|
+
- spec/models/mutual_fund_instrument_kind_spec.rb
|
|
861
|
+
- spec/models/authentication_login_snap_trade_user200_response_spec.rb
|
|
862
|
+
- spec/models/brokerage_authorization_disabled_confirmation_spec.rb
|
|
863
|
+
- spec/models/future_option_instrument_spec.rb
|
|
864
|
+
- spec/models/symbol_currency_spec.rb
|
|
865
|
+
- spec/models/cancel_order_response_spec.rb
|
|
866
|
+
- spec/models/paginated_universal_activity_spec.rb
|
|
867
|
+
- spec/models/performance_custom_spec.rb
|
|
868
|
+
- spec/models/account_order_record_status_v2_spec.rb
|
|
869
|
+
- spec/models/model429_too_many_requests_response_spec.rb
|
|
870
|
+
- spec/models/stock_instrument_kind_spec.rb
|
|
871
|
+
- spec/models/order_updated_response_order_spec.rb
|
|
872
|
+
- spec/models/delete_connection_confirmation_spec.rb
|
|
873
|
+
- spec/models/manual_trade_balance_spec.rb
|
|
874
|
+
- spec/models/model503_brokerage_request_response_spec.rb
|
|
875
|
+
- spec/models/cryptocurrency_pair_spec.rb
|
|
876
|
+
- spec/models/line_of_credit_account_kind_spec.rb
|
|
877
|
+
- spec/models/rate_of_return_response_spec.rb
|
|
878
|
+
- spec/models/account_sync_status_spec.rb
|
|
879
|
+
- spec/models/future_option_instrument_kind_spec.rb
|
|
880
|
+
- spec/models/trading_instrument_type_spec.rb
|
|
881
|
+
- spec/models/net_contributions_spec.rb
|
|
855
882
|
- spec/models/account_order_record_quote_universal_symbol_spec.rb
|
|
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
883
|
- spec/models/account_spec.rb
|
|
860
|
-
- spec/models/symbol_query_spec.rb
|
|
861
|
-
- spec/models/option_instrument_spec.rb
|
|
862
|
-
- spec/models/time_in_force_strict_spec.rb
|
|
863
|
-
- spec/models/past_value_spec.rb
|
|
864
|
-
- spec/models/option_leg_action_spec.rb
|
|
865
|
-
- spec/models/recent_orders_response_spec.rb
|
|
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
|
|
876
|
-
- spec/models/simple_order_form_spec.rb
|
|
877
|
-
- spec/models/account_order_record_v2_spec.rb
|
|
878
|
-
- spec/models/trade_detection_cancel_subscription_request_spec.rb
|
|
879
|
-
- spec/models/connection_account_spec.rb
|
|
880
884
|
- spec/models/trade_detection_cancel_subscription_response_spec.rb
|
|
881
|
-
- spec/models/
|
|
882
|
-
- spec/models/
|
|
883
|
-
- spec/models/
|
|
884
|
-
- spec/models/
|
|
885
|
-
- spec/models/
|
|
885
|
+
- spec/models/mleg_instrument_type_spec.rb
|
|
886
|
+
- spec/models/brokerage_authorization_transactions_sync_confirmation_spec.rb
|
|
887
|
+
- spec/models/position_currency_spec.rb
|
|
888
|
+
- spec/models/dividend_at_date_spec.rb
|
|
889
|
+
- spec/models/option_leg_action_spec.rb
|
|
890
|
+
- spec/models/balance_currency_spec.rb
|
|
886
891
|
- spec/models/validated_trade_body_spec.rb
|
|
887
|
-
- spec/models/
|
|
892
|
+
- spec/models/o_auth_webhook_base_spec.rb
|
|
893
|
+
- spec/models/line_of_credit_account_spec.rb
|
|
894
|
+
- spec/models/simple_order_form_type_spec.rb
|
|
895
|
+
- spec/models/mutual_fund_instrument_spec.rb
|
|
896
|
+
- spec/models/line_of_credit_account_net_value_spec.rb
|
|
897
|
+
- spec/models/user_i_dand_secret_spec.rb
|
|
898
|
+
- spec/models/deposit_account_spec.rb
|
|
899
|
+
- spec/models/recent_orders_response_spec.rb
|
|
900
|
+
- spec/models/manual_trade_form_complex_type_spec.rb
|
|
901
|
+
- spec/models/sub_period_return_rate_spec.rb
|
|
902
|
+
- spec/models/position_symbol_spec.rb
|
|
903
|
+
- spec/models/notional_value_spec.rb
|
|
904
|
+
- spec/models/connection_account_sync_status_spec.rb
|
|
905
|
+
- spec/models/investment_account_net_value_spec.rb
|
|
888
906
|
- 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
|
|
897
|
-
- spec/models/delete_connection_confirmation_spec.rb
|
|
898
|
-
- spec/models/line_of_credit_account_kind_spec.rb
|
|
899
|
-
- spec/models/account_order_record_child_brokerage_order_ids_spec.rb
|
|
900
|
-
- spec/models/currency_spec.rb
|
|
901
907
|
- spec/models/cef_instrument_spec.rb
|
|
902
|
-
- spec/models/
|
|
903
|
-
- spec/models/
|
|
904
|
-
- spec/models/
|
|
905
|
-
- spec/models/crypto_order_preview_spec.rb
|
|
906
|
-
- spec/models/crypto_order_form_spec.rb
|
|
907
|
-
- spec/models/model401_failed_request_response_spec.rb
|
|
908
|
-
- spec/models/complex_order_response_spec.rb
|
|
909
|
-
- spec/models/kind_spec.rb
|
|
910
|
-
- spec/models/universal_activity_spec.rb
|
|
911
|
-
- spec/regression/request_signing_spec.rb
|
|
908
|
+
- spec/models/trading_instrument_spec.rb
|
|
909
|
+
- spec/models/account_universal_activity_currency_universal_symbol_spec.rb
|
|
910
|
+
- spec/models/crypto_order_preview_estimated_fee_spec.rb
|
|
912
911
|
- spec/regression/all_account_positions_spec.rb
|
|
912
|
+
- spec/regression/request_signing_spec.rb
|
|
913
913
|
- spec/regression/fixtures/all_account_positions.json
|
|
914
914
|
- spec/spec_helper.rb
|