Portfolio¶
Portfolio Resource¶
composer.resources.portfolio.Portfolio
¶
Resource for portfolio and holdings endpoints.
Source code in composer/resources/portfolio.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 | |
get_account_holdings(account_id, position_type=None)
¶
Get all current positions held in the specified account.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
position_type
|
str | None
|
Optional filter - 'direct', 'symphony', or 'all' |
None
|
Returns¶
List of holdings in the account
Source code in composer/resources/portfolio.py
get_activity_history(account_id, symphony_id, limit, offset, start_date=None, end_date=None)
¶
Get the activity history for a symphony.
Activity types include: edit, invest, withdraw, rebalance, etc.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
symphony_id
|
str
|
The symphony UUID |
required |
limit
|
int
|
Maximum number of results to return |
required |
offset
|
int
|
Offset for pagination |
required |
start_date
|
str | None
|
Optional start date filter (ISO format) |
None
|
end_date
|
str | None
|
Optional end date filter (ISO format) |
None
|
Returns¶
Activity history for the symphony
Source code in composer/resources/portfolio.py
get_deploy_details(account_id, symphony_id, deploy_id)
¶
Get the details about a deploy from the perspective of the symphony.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
symphony_id
|
str
|
The symphony UUID |
required |
deploy_id
|
str
|
The deploy UUID |
required |
Returns¶
Deploy history including parent deploys
Source code in composer/resources/portfolio.py
get_holding_stats(account_id)
¶
Get holding statistics for an account.
Returns the direct and symphony allocations, amounts, and values by holding. Includes current prices, daily change percentages, and notional values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
Detailed holding statistics
Source code in composer/resources/portfolio.py
get_holdings_by_position(position_id)
¶
Get the current holdings of a symphony from position ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
position_id
|
str
|
The position UUID |
required |
Returns¶
Current holdings including cash, shares, etc.
Source code in composer/resources/portfolio.py
get_portfolio_history(account_id)
¶
Get the value of the account portfolio over time.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
Portfolio value history with timestamps and values
Source code in composer/resources/portfolio.py
get_symphony_holdings(account_id, symphony_id)
¶
Get the current holdings of a symphony.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
symphony_id
|
str
|
The symphony UUID |
required |
Returns¶
Current holdings including cash, shares, etc.
Source code in composer/resources/portfolio.py
get_symphony_stats(account_id)
¶
Get aggregate stats per symphony for an account.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
Stats for each symphony in the account
Source code in composer/resources/portfolio.py
get_symphony_stats_meta(account_id)
¶
Get aggregate stats per symphony with metadata for an account.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
Stats with metadata for each symphony in the account
Source code in composer/resources/portfolio.py
get_symphony_value_history(account_id, symphony_id)
¶
Get the value of a symphony position over time.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
symphony_id
|
str
|
The symphony UUID |
required |
Returns¶
Symphony value history including deposit-adjusted series
Source code in composer/resources/portfolio.py
get_total_stats(account_id)
¶
Get aggregate portfolio statistics for an account.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
Total portfolio statistics including value, returns, cash, etc.
Source code in composer/resources/portfolio.py
Accounts Resource¶
composer.resources.accounts.Accounts
¶
Resource for account-related endpoints.
Source code in composer/resources/accounts.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | |
download_document(document_id)
¶
Download a single document.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
document_id
|
str
|
The document ID to download |
required |
Returns¶
URL to download the document (redirect)
Source code in composer/resources/accounts.py
get_activities_trade_history(account_id, asset_class=None, limit=None, offset=None, order_request_id=None)
¶
Get record of historical trades and option events.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
asset_class
|
str | None
|
Filter by asset class (CRYPTO, EQUITIES, OPTIONS) |
None
|
limit
|
int | None
|
Maximum number of results |
None
|
offset
|
int | None
|
Pagination offset |
None
|
order_request_id
|
str | None
|
Filter by order request ID |
None
|
Returns¶
List of trade history items including option events
Source code in composer/resources/accounts.py
get_activities_trades(account_id, asset_class=None, limit=None, offset=None, order_request_id=None)
¶
Get record of historical trades.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
asset_class
|
str | None
|
Filter by asset class (CRYPTO, EQUITIES, OPTIONS) |
None
|
limit
|
int | None
|
Maximum number of results |
None
|
offset
|
int | None
|
Pagination offset |
None
|
order_request_id
|
str | None
|
Filter by order request ID |
None
|
Returns¶
List of historical trades
Source code in composer/resources/accounts.py
get_activities_trades_volume(account_id, start_time, asset_class=None, direct_trading_only=None)
¶
Get trade volume for the account.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
start_time
|
str
|
Start time for the volume calculation (ISO format with timezone, e.g., "2025-12-10T09:00:00-05:00") |
required |
asset_class
|
str | None
|
Filter by asset class (CRYPTO, EQUITIES, OPTIONS) |
None
|
direct_trading_only
|
bool | None
|
Only include direct trading volume |
None
|
Returns¶
Trade volume information
Source code in composer/resources/accounts.py
get_available_types(country=None, state=None, white_label_footprint=None)
¶
Get available account types for a user to create.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
country
|
str | None
|
Country code |
None
|
state
|
str | None
|
State code |
None
|
white_label_footprint
|
bool | None
|
Whether to use white label footprint |
None
|
Returns¶
Map of region to available account types
Source code in composer/resources/accounts.py
get_buying_power(account_id)
¶
Get account buying power by asset class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
List of buying power info for each asset class
Source code in composer/resources/accounts.py
get_holdings(account_id, position_type=None)
¶
Get all current positions held in the specified account.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
position_type
|
str | None
|
Optional filter - 'direct', 'symphony', or 'all' |
None
|
Returns¶
List of holdings in the account
Source code in composer/resources/accounts.py
get_info(account_id)
¶
Get basic account owner information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
Account owner information including identity, contact, and profile
Source code in composer/resources/accounts.py
get_investor_documents(account_id, category, year)
¶
Get investor documents for Apex and Alpaca accounts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
category
|
str
|
Document category (STATEMENT, TAX_FORM, etc.) |
required |
year
|
int
|
Year of documents to retrieve |
required |
Returns¶
List of investor documents
Source code in composer/resources/accounts.py
get_supported_regions()
¶
Get a list of countries and states that support equity/crypto trading.
Returns¶
Supported regions for EQUITIES and CRYPTO trading
Source code in composer/resources/accounts.py
Cash Resource¶
composer.resources.cash.Cash
¶
Resource for cash-related endpoints.
Source code in composer/resources/cash.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | |
get_ach_limits(account_id)
¶
Get limits to ACH transfers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
ACH transfer limits
Source code in composer/resources/cash.py
get_ach_relationships(include_plaid_account_details)
¶
Get all ACH relationships for a user.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
include_plaid_account_details
|
bool
|
Whether to include Plaid account details |
required |
Returns¶
ACH relationships including bank accounts
Source code in composer/resources/cash.py
get_ach_transfers(account_id, year=None)
¶
Get an account's ACH transfers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
year
|
int | None
|
Optional year to filter transfers |
None
|
Returns¶
List of ACH transfers
Source code in composer/resources/cash.py
get_all_recurring_deposits(n=10, status=None)
¶
Get all recurring deposits for a user.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
Number of results to return |
10
|
status
|
str | None
|
Optional status filter (ACTIVE, CANCELED, etc.) |
None
|
Returns¶
List of all recurring deposits across accounts
Source code in composer/resources/cash.py
get_recurring_deposits(account_id, status=None, n=10)
¶
Get all recurring deposits for a broker account.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
status
|
str | None
|
Optional status filter (ACTIVE, CANCELED, etc.) |
None
|
n
|
int
|
Number of results to return |
10
|
Returns¶
List of recurring deposits
Source code in composer/resources/cash.py
get_recurring_deposits_meta(account_id)
¶
Get maximum recurring deposit amount for all frequencies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
Max deposit amounts by frequency
Source code in composer/resources/cash.py
get_recurring_deposits_projection(account_id, amount, frequency)
¶
Project when a retirement account would reach its annual contribution limit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
amount
|
float
|
Deposit amount |
required |
frequency
|
str
|
Deposit frequency (WEEKLY, SEMIMONTHLY, MONTHLY, QUARTERLY) |
required |
Returns¶
Projection of when limit will be hit
Source code in composer/resources/cash.py
get_tax_withholding_federal(account_id)
¶
Get federal tax withholding requirements for Traditional IRA distributions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
account_id
|
str
|
The account UUID |
required |
Returns¶
Tax withholding information
Source code in composer/resources/cash.py
get_transfer_constraints()
¶
Get all transfer constraints for a user's active accounts.
Returns¶
Map of account UUID to transfer constraints
Source code in composer/resources/cash.py
User Resource¶
composer.resources.user.User
¶
Resource for user-related endpoints.
Source code in composer/resources/user.py
get_agreement_status(agreement_id)
¶
Check if a user has accepted a specific agreement.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
agreement_id
|
str
|
The agreement ID to check |
required |
Returns¶
Whether the user has agreed to the agreement