snaptrade 3.0.29 → 3.0.31
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 +202 -2
- data/lib/snaptrade/api/account_information_api.rb +6 -2
- data/lib/snaptrade/api/experimental_endpoints_api.rb +406 -0
- data/lib/snaptrade/models/account_position.rb +1 -1
- data/lib/snaptrade/models/account_value_history_response.rb +1 -1
- data/lib/snaptrade/models/all_user_accounts_response.rb +225 -0
- data/lib/snaptrade/models/{account_type.rb → cash_or_margin.rb} +3 -3
- data/lib/snaptrade/models/connection_account.rb +1 -1
- data/lib/snaptrade/models/institution.rb +1 -1
- data/lib/snaptrade/models/investment_account.rb +8 -8
- data/lib/snaptrade/models/position.rb +1 -1
- data/lib/snaptrade/models/release_stage.rb +2 -1
- data/lib/snaptrade/models/simple_trade_form.rb +346 -0
- data/lib/snaptrade/models/simple_trade_form_order_type.rb +39 -0
- data/lib/snaptrade/models/simple_trade_form_price_effect.rb +38 -0
- data/lib/snaptrade/models/simple_trade_form_time_in_force.rb +40 -0
- data/lib/snaptrade/models/simple_trade_form_trading_session.rb +37 -0
- data/lib/snaptrade/models/simple_trade_instrument.rb +255 -0
- data/lib/snaptrade/models/simple_trade_instrument_kind.rb +39 -0
- data/lib/snaptrade/models/simple_trade_leg.rb +246 -0
- data/lib/snaptrade/models/simple_trade_leg_action.rb +41 -0
- data/lib/snaptrade/models/simple_trade_response.rb +222 -0
- data/lib/snaptrade/version.rb +1 -1
- data/lib/snaptrade.rb +12 -1
- data/spec/api/account_information_api_spec.rb +1 -1
- data/spec/api/experimental_endpoints_api_spec.rb +42 -0
- data/spec/models/all_user_accounts_response_spec.rb +29 -0
- data/spec/models/{account_type_spec.rb → cash_or_margin_spec.rb} +6 -6
- data/spec/models/investment_account_spec.rb +1 -1
- data/spec/models/simple_trade_form_order_type_spec.rb +23 -0
- data/spec/models/simple_trade_form_price_effect_spec.rb +23 -0
- data/spec/models/simple_trade_form_spec.rb +83 -0
- data/spec/models/simple_trade_form_time_in_force_spec.rb +23 -0
- data/spec/models/simple_trade_form_trading_session_spec.rb +23 -0
- data/spec/models/simple_trade_instrument_kind_spec.rb +23 -0
- data/spec/models/simple_trade_instrument_spec.rb +35 -0
- data/spec/models/simple_trade_leg_action_spec.rb +23 -0
- data/spec/models/simple_trade_leg_spec.rb +41 -0
- data/spec/models/simple_trade_response_spec.rb +29 -0
- metadata +264 -231
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1effb1f305a79d998a07364a160d695925a60f64daf153a0f1e3b276f568663d
|
|
4
|
+
data.tar.gz: 757327cc71cdbf1ea7f4ccee9075b582b35afc93d07a334d246cee8ff37b054f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55e913bb5fc1d61102562495178f7567bca3f0c93e174bee7381d00041f6d7943476e8637098839e1223e0af08f1f8167df4ee2d235ce5e50045ee4c9895f4e6
|
|
7
|
+
data.tar.gz: 51ca83e7c04bb35df1ee98c746b0ee140f352fe5d90a4cbc2c249a0dacf3006004248e6f8f74916599eae899dd222dea7da6f14f0cd24424e267e6746a04f314
|
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.31)
|
|
67
67
|
[](https://snaptrade.com/)
|
|
68
68
|
|
|
69
69
|
</div>
|
|
@@ -105,10 +105,13 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
105
105
|
* [`snaptrade.connections.sync_brokerage_authorization_transactions`](#snaptradeconnectionssync_brokerage_authorization_transactions)
|
|
106
106
|
* [`snaptrade.experimental_endpoints.add_subscription`](#snaptradeexperimental_endpointsadd_subscription)
|
|
107
107
|
* [`snaptrade.experimental_endpoints.cancel_subscription`](#snaptradeexperimental_endpointscancel_subscription)
|
|
108
|
+
* [`snaptrade.experimental_endpoints.get_account_details`](#snaptradeexperimental_endpointsget_account_details)
|
|
108
109
|
* [`snaptrade.experimental_endpoints.get_user_account_order_detail_v2`](#snaptradeexperimental_endpointsget_user_account_order_detail_v2)
|
|
109
110
|
* [`snaptrade.experimental_endpoints.get_user_account_orders_v2`](#snaptradeexperimental_endpointsget_user_account_orders_v2)
|
|
110
111
|
* [`snaptrade.experimental_endpoints.get_user_account_recent_orders_v2`](#snaptradeexperimental_endpointsget_user_account_recent_orders_v2)
|
|
112
|
+
* [`snaptrade.experimental_endpoints.list_all_user_accounts`](#snaptradeexperimental_endpointslist_all_user_accounts)
|
|
111
113
|
* [`snaptrade.experimental_endpoints.list_subscriptions`](#snaptradeexperimental_endpointslist_subscriptions)
|
|
114
|
+
* [`snaptrade.experimental_endpoints.place_simple_order`](#snaptradeexperimental_endpointsplace_simple_order)
|
|
112
115
|
* [`snaptrade.reference_data.get_partner_info`](#snaptradereference_dataget_partner_info)
|
|
113
116
|
* [`snaptrade.reference_data.get_stock_exchanges`](#snaptradereference_dataget_stock_exchanges)
|
|
114
117
|
* [`snaptrade.reference_data.get_symbols`](#snaptradereference_dataget_symbols)
|
|
@@ -140,7 +143,7 @@ See https://docs.snaptrade.com/docs/ratelimiting.
|
|
|
140
143
|
Add to Gemfile:
|
|
141
144
|
|
|
142
145
|
```ruby
|
|
143
|
-
gem 'snaptrade', '~> 3.0.
|
|
146
|
+
gem 'snaptrade', '~> 3.0.31'
|
|
144
147
|
```
|
|
145
148
|
|
|
146
149
|
## Getting Started<a id="getting-started"></a>
|
|
@@ -274,6 +277,8 @@ one account to another. - `SPLIT` - A stock share split.
|
|
|
274
277
|
|
|
275
278
|
An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
|
|
276
279
|
|
|
280
|
+
The data may contain gaps and is best used for charting account value trends. It should not be relied on as a complete or exact record of historical account values.
|
|
281
|
+
|
|
277
282
|
|
|
278
283
|
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
279
284
|
|
|
@@ -1369,6 +1374,50 @@ reference the account in SnapTrade.
|
|
|
1369
1374
|
---
|
|
1370
1375
|
|
|
1371
1376
|
|
|
1377
|
+
### `snaptrade.experimental_endpoints.get_account_details`<a id="snaptradeexperimental_endpointsget_account_details"></a>
|
|
1378
|
+
|
|
1379
|
+
Experimental and subject to change without notice.
|
|
1380
|
+
|
|
1381
|
+
Returns the specified account for the authenticated user, using the `kind`-discriminated account shape. Use the `kind` discriminator to determine the shape of the account, which can be an investment, deposit, or line of credit account.
|
|
1382
|
+
|
|
1383
|
+
On Pay as you Go / Real-time, this endpoint refreshes the account's opening date and total net value (`net_value`) live from the institution on each call, along with funding date for `investment` accounts.
|
|
1384
|
+
|
|
1385
|
+
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).
|
|
1386
|
+
|
|
1387
|
+
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.
|
|
1388
|
+
|
|
1389
|
+
If the connection has become disabled, it can no longer access the latest data from the institution, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1393
|
+
|
|
1394
|
+
```ruby
|
|
1395
|
+
result = snaptrade.experimental_endpoints.get_account_details(
|
|
1396
|
+
user_id: "snaptrade-user-123",
|
|
1397
|
+
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1398
|
+
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1399
|
+
)
|
|
1400
|
+
p result
|
|
1401
|
+
```
|
|
1402
|
+
|
|
1403
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1404
|
+
|
|
1405
|
+
##### user_id: `String`<a id="user_id-string"></a>
|
|
1406
|
+
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
1407
|
+
##### account_id: `String`<a id="account_id-string"></a>
|
|
1408
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
|
1409
|
+
|
|
1410
|
+
[ConnectionAccount](./lib/snaptrade/models/connection_account.rb)
|
|
1411
|
+
|
|
1412
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1413
|
+
|
|
1414
|
+
`/accounts/{accountId}/details` `GET`
|
|
1415
|
+
|
|
1416
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1417
|
+
|
|
1418
|
+
---
|
|
1419
|
+
|
|
1420
|
+
|
|
1372
1421
|
### `snaptrade.experimental_endpoints.get_user_account_order_detail_v2`<a id="snaptradeexperimental_endpointsget_user_account_order_detail_v2"></a>
|
|
1373
1422
|
|
|
1374
1423
|
Returns the detail of a single order using the brokerage order ID provided as a path parameter.
|
|
@@ -1502,6 +1551,44 @@ false to retrieve non executed orders as well
|
|
|
1502
1551
|
---
|
|
1503
1552
|
|
|
1504
1553
|
|
|
1554
|
+
### `snaptrade.experimental_endpoints.list_all_user_accounts`<a id="snaptradeexperimental_endpointslist_all_user_accounts"></a>
|
|
1555
|
+
|
|
1556
|
+
Experimental and subject to change without notice.
|
|
1557
|
+
|
|
1558
|
+
Returns all accounts across all connections known to SnapTrade for the authenticated user.
|
|
1559
|
+
|
|
1560
|
+
The `results` list can contain multiple account kinds in the same response, including investment, deposit, and line of credit accounts. Use the `kind` discriminator to determine the shape for each account.
|
|
1561
|
+
|
|
1562
|
+
This endpoint returns Daily data regardless of the customer's plan. Daily data is cached and refreshed once a day, which makes this endpoint fast and well-suited to listing accounts across all of a user's connections in a single call. Exact refresh timing may vary by institution. To get real-time data on Pay as you Go / Real-time, use the [list accounts for a connection endpoint](/reference/Connections/Connections_listConnectionAccounts). Customers on Pay as you Go / Daily can force a refresh with the [manual refresh endpoint](/reference/Connections/Connections_refreshBrokerageAuthorization).
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1566
|
+
|
|
1567
|
+
```ruby
|
|
1568
|
+
result = snaptrade.experimental_endpoints.list_all_user_accounts(
|
|
1569
|
+
user_id: "snaptrade-user-123",
|
|
1570
|
+
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1571
|
+
)
|
|
1572
|
+
p result
|
|
1573
|
+
```
|
|
1574
|
+
|
|
1575
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1576
|
+
|
|
1577
|
+
##### user_id: `String`<a id="user_id-string"></a>
|
|
1578
|
+
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
1579
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
|
1580
|
+
|
|
1581
|
+
[AllUserAccountsResponse](./lib/snaptrade/models/all_user_accounts_response.rb)
|
|
1582
|
+
|
|
1583
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1584
|
+
|
|
1585
|
+
`/accounts/all` `GET`
|
|
1586
|
+
|
|
1587
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1588
|
+
|
|
1589
|
+
---
|
|
1590
|
+
|
|
1591
|
+
|
|
1505
1592
|
### `snaptrade.experimental_endpoints.list_subscriptions`<a id="snaptradeexperimental_endpointslist_subscriptions"></a>
|
|
1506
1593
|
|
|
1507
1594
|
Returns active Trade Detection subscriptions for your Client ID. Cancelled subscriptions are not returned.
|
|
@@ -1526,6 +1613,119 @@ p result
|
|
|
1526
1613
|
---
|
|
1527
1614
|
|
|
1528
1615
|
|
|
1616
|
+
### `snaptrade.experimental_endpoints.place_simple_order`<a id="snaptradeexperimental_endpointsplace_simple_order"></a>
|
|
1617
|
+
|
|
1618
|
+
**Beta.** Places a single-leg or multi-leg order using a common request format for equities, equity options, futures, and future options. This endpoint is experimental; breaking changes are possible during the experimental phase.
|
|
1619
|
+
|
|
1620
|
+
Equity and equity-option orders use the existing brokerage trading capabilities. Futures and future options are currently supported only on tastytrade. Order types, time in force, optional fields, and strategy combinations remain subject to brokerage support. See the [brokerage trading support page](https://support.snaptrade.com/brokerages).
|
|
1621
|
+
|
|
1622
|
+
An order may contain equity/option legs or future/future_option legs, but cannot mix those two families. Equity/option strategies must share the same underlying symbol. Each strategy is submitted as one brokerage order; unsupported strategies are never split into independent orders. Tastytrade supports single-leg outright futures and up to four future-option legs, and does not support multi-leg market orders.
|
|
1623
|
+
|
|
1624
|
+
All string choices use lower snake_case and are case-sensitive. Symbols retain their native format: equity tickers, OCC equity-option symbols, or the exact tastytrade BrokerageInstrument ticker for futures and future options, including any spaces.
|
|
1625
|
+
|
|
1626
|
+
A successful response contains only the brokerage order ID. Use the existing order endpoints to retrieve order details.
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
|
1630
|
+
|
|
1631
|
+
```ruby
|
|
1632
|
+
result = snaptrade.experimental_endpoints.place_simple_order(
|
|
1633
|
+
order_type: "stop_limit",
|
|
1634
|
+
time_in_force: "day",
|
|
1635
|
+
legs: [
|
|
1636
|
+
{
|
|
1637
|
+
"instrument" => {
|
|
1638
|
+
"kind" => "future",
|
|
1639
|
+
"symbol" => "/ESZ6",
|
|
1640
|
+
},
|
|
1641
|
+
"action" => "buy",
|
|
1642
|
+
"units" => "1.25",
|
|
1643
|
+
}
|
|
1644
|
+
],
|
|
1645
|
+
account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
|
|
1646
|
+
user_id: "snaptrade-user-123",
|
|
1647
|
+
user_secret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
|
|
1648
|
+
limit_price: "1.25",
|
|
1649
|
+
stop_price: "1.25",
|
|
1650
|
+
price_effect: "debit",
|
|
1651
|
+
client_order_id: "550e8400-e29b-41d4-a716-446655440000",
|
|
1652
|
+
expiry_date: "2026-12-18T20:00:00Z",
|
|
1653
|
+
notional_value: "1.25",
|
|
1654
|
+
trading_session: "regular",
|
|
1655
|
+
)
|
|
1656
|
+
p result
|
|
1657
|
+
```
|
|
1658
|
+
|
|
1659
|
+
#### ⚙️ Parameters<a id="⚙️-parameters"></a>
|
|
1660
|
+
|
|
1661
|
+
##### order_type: [`SimpleTradeFormOrderType`](./lib/snaptrade/models/simple_trade_form_order_type.rb)<a id="order_type-simpletradeformordertypelibsnaptrademodelssimple_trade_form_order_typerb"></a>
|
|
1662
|
+
##### time_in_force: [`SimpleTradeFormTimeInForce`](./lib/snaptrade/models/simple_trade_form_time_in_force.rb)<a id="time_in_force-simpletradeformtimeinforcelibsnaptrademodelssimple_trade_form_time_in_forcerb"></a>
|
|
1663
|
+
Order duration, subject to brokerage and execution-path support. gtd requires
|
|
1664
|
+
expiry_date and a non-market single-leg equity/option order. Existing single-leg
|
|
1665
|
+
option routing does not support ioc. Futures and multi-leg orders do not support
|
|
1666
|
+
gtd through this endpoint.
|
|
1667
|
+
|
|
1668
|
+
##### legs: Array<[`SimpleTradeLeg`](./lib/snaptrade/models/simple_trade_leg.rb)><a id="legs-array"></a>
|
|
1669
|
+
Legs of one brokerage order. Use equity/option legs or future/future_option
|
|
1670
|
+
legs, without mixing the two families. Brokerage strategy and leg-count limits
|
|
1671
|
+
apply.
|
|
1672
|
+
|
|
1673
|
+
##### account_id: `String`<a id="account_id-string"></a>
|
|
1674
|
+
The ID of the account to execute the trade on.
|
|
1675
|
+
|
|
1676
|
+
##### user_id: `String`<a id="user_id-string"></a>
|
|
1677
|
+
##### user_secret: `String`<a id="user_secret-string"></a>
|
|
1678
|
+
##### limit_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="limit_price-floatlibsnaptrademodelsfloatrb"></a>
|
|
1679
|
+
Required for limit and stop_limit orders, except that multi-leg price_effect
|
|
1680
|
+
even implies zero. Must be omitted or null for market and stop orders. For
|
|
1681
|
+
multi-leg orders this is the net strategy price. Negative prices are accepted
|
|
1682
|
+
only for futures-family orders, subject to brokerage support.
|
|
1683
|
+
|
|
1684
|
+
##### stop_price: [`Float`](./lib/snaptrade/models/float.rb)<a id="stop_price-floatlibsnaptrademodelsfloatrb"></a>
|
|
1685
|
+
Required for stop and stop_limit orders. Must be omitted or null for market and
|
|
1686
|
+
limit orders. Must be positive for equity/option orders; futures-family trigger
|
|
1687
|
+
prices are subject to brokerage support.
|
|
1688
|
+
|
|
1689
|
+
##### price_effect: [`SimpleTradeFormPriceEffect`](./lib/snaptrade/models/simple_trade_form_price_effect.rb)<a id="price_effect-simpletradeformpriceeffectlibsnaptrademodelssimple_trade_form_price_effectrb"></a>
|
|
1690
|
+
Only applicable to multi-leg limit and stop_limit orders. Requirements and
|
|
1691
|
+
supported values depend on the brokerage; tastytrade requires credit or debit.
|
|
1692
|
+
even implies a zero limit_price, which may be omitted and must be zero if
|
|
1693
|
+
supplied. Single-leg price effects are derived from the action.
|
|
1694
|
+
|
|
1695
|
+
##### client_order_id: [`String`](./lib/snaptrade/models/string.rb)<a id="client_order_id-stringlibsnaptrademodelsstringrb"></a>
|
|
1696
|
+
Optional canonical UUID, forwarded where the existing execution path supports it
|
|
1697
|
+
and for tastytrade futures orders. Requires the existing client-order-ID
|
|
1698
|
+
enablement; when disabled the value is ignored. Brokerage behavior on duplicates
|
|
1699
|
+
varies; SnapTrade does not enforce uniqueness. Tastytrade uses this as
|
|
1700
|
+
external-identifier for correlation and does not deduplicate submissions.
|
|
1701
|
+
|
|
1702
|
+
##### expiry_date: `Time`<a id="expiry_date-time"></a>
|
|
1703
|
+
ISO 8601 expiry timestamp, required for gtd and invalid with other durations. A
|
|
1704
|
+
missing timezone is treated as UTC. Supported only through existing single-leg
|
|
1705
|
+
Public and Sandbox execution paths.
|
|
1706
|
+
|
|
1707
|
+
##### notional_value: [`Float`](./lib/snaptrade/models/float.rb)<a id="notional_value-floatlibsnaptrademodelsfloatrb"></a>
|
|
1708
|
+
Positive order value, supported only for a single-equity market order on
|
|
1709
|
+
eligible brokerages and partners. Mutually exclusive with leg units. Omit or set
|
|
1710
|
+
units to null when supplied.
|
|
1711
|
+
|
|
1712
|
+
##### trading_session: [`SimpleTradeFormTradingSession`](./lib/snaptrade/models/simple_trade_form_trading_session.rb)<a id="trading_session-simpletradeformtradingsessionlibsnaptrademodelssimple_trade_form_trading_sessionrb"></a>
|
|
1713
|
+
extended uses existing single-leg equity/option brokerage support and requires
|
|
1714
|
+
extended-hours enablement. Futures and multi-leg orders only accept regular.
|
|
1715
|
+
|
|
1716
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
|
1717
|
+
|
|
1718
|
+
[SimpleTradeResponse](./lib/snaptrade/models/simple_trade_response.rb)
|
|
1719
|
+
|
|
1720
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
|
1721
|
+
|
|
1722
|
+
`/accounts/{accountId}/trading/simple` `POST`
|
|
1723
|
+
|
|
1724
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
|
1725
|
+
|
|
1726
|
+
---
|
|
1727
|
+
|
|
1728
|
+
|
|
1529
1729
|
### `snaptrade.reference_data.get_partner_info`<a id="snaptradereference_dataget_partner_info"></a>
|
|
1530
1730
|
|
|
1531
1731
|
Returns configurations for your SnapTrade Client ID, including allowed brokerages and data access.
|
|
@@ -186,6 +186,8 @@ module SnapTrade
|
|
|
186
186
|
# List historical account total value
|
|
187
187
|
#
|
|
188
188
|
# An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
|
|
189
|
+
#
|
|
190
|
+
# The data may contain gaps and is best used for charting account value trends. It should not be relied on as a complete or exact record of historical account values.
|
|
189
191
|
#
|
|
190
192
|
# @param user_id [String]
|
|
191
193
|
# @param user_secret [String]
|
|
@@ -199,6 +201,8 @@ module SnapTrade
|
|
|
199
201
|
# List historical account total value
|
|
200
202
|
#
|
|
201
203
|
# An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
|
|
204
|
+
#
|
|
205
|
+
# The data may contain gaps and is best used for charting account value trends. It should not be relied on as a complete or exact record of historical account values.
|
|
202
206
|
#
|
|
203
207
|
# @param user_id [String]
|
|
204
208
|
# @param user_secret [String]
|
|
@@ -209,7 +213,7 @@ module SnapTrade
|
|
|
209
213
|
end
|
|
210
214
|
|
|
211
215
|
# List historical account total value
|
|
212
|
-
# An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
|
|
216
|
+
# An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons) The data may contain gaps and is best used for charting account value trends. It should not be relied on as a complete or exact record of historical account values.
|
|
213
217
|
# @param user_id [String]
|
|
214
218
|
# @param user_secret [String]
|
|
215
219
|
# @param account_id [String]
|
|
@@ -221,7 +225,7 @@ module SnapTrade
|
|
|
221
225
|
end
|
|
222
226
|
|
|
223
227
|
# List historical account total value
|
|
224
|
-
# An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons)
|
|
228
|
+
# An experimental endpoint that returns estimated historical total account value for the specified account. Total account value is the sum of the market value of all positions and cash in the account at a given time. This endpoint is experimental, disabled by default, and has a maximum lookback of 1 year. Because the data is dynamically generated, we recommend replacing your dataset with each request as opposed to combining data from multiple requests. Enable this feature for free in the [Add-on page of the Customer Dashboard](https://dashboard.snaptrade.com/add-ons) The data may contain gaps and is best used for charting account value trends. It should not be relied on as a complete or exact record of historical account values.
|
|
225
229
|
# @param user_id [String]
|
|
226
230
|
# @param user_secret [String]
|
|
227
231
|
# @param account_id [String]
|