Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5976471e-e701-47e8-b53a-270998bf9390
694e1c2e-aad4-4e08-962c-a6c5990458bc
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ Returns a list of all positions in the specified account.

The `results` list can contain multiple instrument types in the same response, including stocks, ADRs, ETFs, mutual funds, closed-end funds, crypto, futures, and option positions. Use the `instrument.kind` discriminator to determine the schema for each position's `instrument`.

Stock positions may also include `cash_equivalent`, and may include `tax_lots` when tax lot data is enabled for the account.
`mutualfund` positions may also include `cash_equivalent`. `stock` positions may include `tax_lots` when tax lot data is enabled for the account.

If the connection has become disabled, it can no longer access the latest data from the brokerage, 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.

Expand Down Expand Up @@ -676,8 +676,10 @@ Optional comma separated list of rate-of-return timeframes to return. Supported


### `snaptrade.accountInformation.getUserHoldings`<a id="snaptradeaccountinformationgetuserholdings"></a>
![Deprecated](https://img.shields.io/badge/deprecated-yellow)

Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__
**Deprecated.** Use the finer-grained account data endpoints instead: [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getAllAccountPositions), and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders).
Returns a list of balances, positions, and recent orders for the specified account.

Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:
- If you do, this endpoint returns real-time data.
Expand Down
21 changes: 13 additions & 8 deletions lib/Api/AccountInformationApi.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/Model/AccountPosition.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ public function getCashEquivalent()
/**
* Sets cash_equivalent
*
* @param bool|null $cash_equivalent Present for stock positions that are also counted in cash balance or buying power.
* @param bool|null $cash_equivalent Present for mutual fund positions that are also counted in cash balance or buying power.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FutureInstrument.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function getKind()
/**
* Sets kind
*
* @param string $kind kind
* @param string $kind Type of security instrument.
*
* @return self
*/
Expand Down
Loading