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 @@
91597193-8d71-4b24-b49e-33d571495054
b9830204-50ac-4fda-9249-94da42326a7c
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ The ID of the account to get positions.

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

The data returned here is cached. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. **If you need real-time data, please use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint**.



#### 🛠️ Usage<a id="🛠️-usage"></a>
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AccountHoldingsAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* AccountHoldingsAccount Class Doc Comment
*
* @category Class
* @description A wrapper object containing holdings information for a single account
* @description A wrapper object containing holdings information for a single account.
* @package SnapTrade
* @implements \ArrayAccess<string, mixed>
*/
Expand Down
8 changes: 5 additions & 3 deletions lib/Model/AccountOrderRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* AccountOrderRecord Class Doc Comment
*
* @category Class
* @description Record of order in brokerageaccount
* @description Describes a single recent order in an account.
* @package SnapTrade
* @implements \ArrayAccess<string, mixed>
*/
Expand Down Expand Up @@ -422,7 +422,7 @@ public function getBrokerageOrderId()
/**
* Sets brokerage_order_id
*
* @param string|null $brokerage_order_id Order id returned by brokerage
* @param string|null $brokerage_order_id Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
*
* @return self
*/
Expand Down Expand Up @@ -471,6 +471,7 @@ public function setStatus($status)
* Gets symbol
*
* @return string|null
* @deprecated
*/
public function getSymbol()
{
Expand All @@ -480,9 +481,10 @@ public function getSymbol()
/**
* Sets symbol
*
* @param string|null $symbol symbol
* @param string|null $symbol A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
*
* @return self
* @deprecated
*/
public function setSymbol($symbol)
{
Expand Down
1 change: 1 addition & 0 deletions lib/Model/AccountOrderRecordStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* AccountOrderRecordStatus Class Doc Comment
*
* @category Class
* @description Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
* @package SnapTrade
*/
class AccountOrderRecordStatus
Expand Down
Loading