Models
Every object the Syncrone API returns.
Amounts and rates are numbers: USD unless the field says token units, returns in percent unless the field says ratio. Timestamps are ISO-8601, in UTC. Nested objects link to their own section. Endpoint pages are under the API overview.
Responses#
What each endpoint returns, and the body of a failed request.
SnapshotResponse
GET /portfolio/{orgId}/snapshot.
| Field | Type | Description |
|---|---|---|
| daterequired | string | The day read, |
| walletsrequired | SnapshotAccount[] | One entry per account. |
| returnsMethodrequired | stringmd | classic | The return method used: |
PerformanceResponse
GET /portfolio/{orgId}/performance.
| Field | Type | Description |
|---|---|---|
| start_daterequired | string | Start of the period: 00:00 UTC on |
| end_daterequired | string | End of the period: 00:00 UTC on |
| organizationsrequired | PerformanceOrganization[] | Your organization: one entry. |
| errors_foundrequired | object | Data checks that failed in this response, by code. Empty when every position reconciles. The positions concerned carry |
| returnsMethodrequired | stringmd | classic | The return method used: |
Error
Body of a failed request. A key the gateway doesn't know gets {"message":"Forbidden"} instead.
| Field | Type | Description |
|---|---|---|
| errorrequired | string | Error type, e.g. |
| message | string | What went wrong. |
| details | object | On 400: the problem with each parameter. |
Snapshot objects#
The snapshot lists each account's positions, holdings and assets. A position is an exposure to a protocol. A holding is a token the account holds directly. An asset is a token inside a position, already counted in its value.
SnapshotAccount
One account of the organization on the day read.
| Field | Type | Description |
|---|---|---|
| wallet_addressrequired | string | Account address. |
| wallet_namerequirednullable | string | Name given to the account in the Syncrone app. |
| positionsrequired | SnapshotPosition[] | Protocol positions of the account. |
| holdingsrequired | SnapshotHolding[] | Tokens held directly, outside any protocol. |
| assetsrequired | SnapshotAsset[] | Tokens inside the positions, linked by |
SnapshotPosition
A position in a protocol: a vault, a loan, a pool, a stake.
| Field | Type | Description |
|---|---|---|
| position_idrequired | string | Stable id of the position. |
| wallet_addressrequired | string | Account holding the position. |
| chain_idrequired | integer | Chain id, e.g. |
| protocol_namerequired | string | Protocol, e.g. |
| protocol_display_namerequired | string | Protocol name for display. |
| protocol_versionrequirednullable | string | Protocol version. |
| position_typerequired | stringFarming | Lending | Liquidity Pool | Staked | Yield | merkl_reward | Kind of position. |
| display_namerequirednullable | string | Name given in the Syncrone app. |
| start_timestamprequired | string | When the position opened. |
| end_timestamprequirednullable | string | When it closed. |
| tagsrequired | string[] | Tags set in the Syncrone app. |
| snapshot_atrequired | string | Day of the row, 00:00 UTC: the day read. With |
| nav_usdrequired | number | Value of the position, in USD. 0 for a closed position. |
| invested_capital_usdrequired | number | Capital put in, net of withdrawals. |
| value_collateral_usdrequirednullable | number | Collateral value, for a loan. |
| value_debt_usdrequirednullable | number | Debt value, for a loan. |
| realized_pnl_usdrequired | number | PnL realized since inception. |
| unrealized_pnl_usdrequired | number | PnL still held. |
| pnl_usdrequired | number | Total PnL since inception. |
| reward_pnl_usdrequired | number | Rewards earned since inception. |
| roirequirednullable | number | Return since inception, in percent ( |
| aprrequirednullable | number | Annualized simple return, in percent. |
| apyrequirednullable | number | Annualized compounded return, in percent. |
| twrrequirednullable | number | Time-weighted return since inception, as a ratio ( |
SnapshotHolding
A token held directly by an account, outside any protocol.
| Field | Type | Description |
|---|---|---|
| holding_idrequired | string | Stable id of the holding. |
| wallet_addressrequired | string | Account holding the token. |
| chain_idrequired | integer | Chain id. |
| token_symbolrequired | string | Token symbol. |
| display_namerequirednullable | string | Name given in the Syncrone app. |
| snapshot_atrequirednullable | string | Time of the snapshot read. |
| nav_usdrequired | number | Value held, in USD. |
| invested_capital_usdrequired | number | Capital put in, net of withdrawals. |
| realized_pnl_usdrequired | number | PnL realized since inception. |
| unrealized_pnl_usdrequired | number | PnL still held. |
| roirequirednullable | number | Return since inception, in percent. |
| aprrequirednullable | number | Annualized simple return, in percent. |
| apyrequirednullable | number | Annualized compounded return, in percent. |
SnapshotAsset
A token inside a position. Already counted in the position's nav_usd.
| Field | Type | Description |
|---|---|---|
| asset_idrequired | string | Stable id of the asset. |
| position_idrequired | string | Position the token belongs to. |
| chain_idrequired | integer | Chain id. |
| asset_typerequired | stringborrow | claimable_deposit_request | claimable_withdraw_request | collateral | deposit | farming | liquidity | merkl_reward | native_rewards | pending_deposit | pending_withdraw | reward | rewards | rewards_borrow | rewards_collateral | stake | supply | withdraw_process | withdraw_requests | yield | Role of the token in the position. |
| representation_typerequired | stringdefault | underlying |
|
| is_leafrequired | boolean |
|
| namerequired | string | Token name. |
| tokenrequired | Token | The token. |
| snapshot_atrequired | string | Time of the snapshot read. |
| nav_usdrequired | number | Value of the token in the position, in USD. Debt counts against the position. |
| price_per_token_usdrequirednullable | number | Token price, in USD. |
| balance_realized_pnlrequired | number | Realized PnL, in token units. |
| balance_unrealized_pnlrequired | number | Unrealized PnL, in token units. |
| balance_realized_pnl_usdrequired | number | Realized PnL, in USD. |
| balance_unrealized_pnl_usdrequired | number | Unrealized PnL, in USD. |
Token
A token contract.
| Field | Type | Description |
|---|---|---|
| addressrequired | string | Contract address. |
| symbolrequired | string | Symbol. |
| decimalsrequired | integer | Decimals. |
Performance tree#
Performance returns your organization, then its accounts, the protocols in each, their positions and the tokens in each position. Each account also lists its holdings.
PerformanceOrganization
Top of the performance tree.
| Field | Type | Description |
|---|---|---|
| org_namerequired | string | Organization name. |
| org_idrequired | string | Organization id. |
| number_of_walletsrequired | integer | Number of accounts. |
| metricsrequired | Metrics | The organization's figures over the period. |
| walletsrequired | PerformanceAccount[] | One entry per account. |
PerformanceAccount
An account, its protocols and its holdings.
| Field | Type | Description |
|---|---|---|
| wallet_addressrequired | string | Account address. |
| wallet_namerequirednullable | string | Name given in the Syncrone app. |
| metricsrequired | Metrics | The account's figures over the period. |
| protocolsrequired | PerformanceProtocol[] | Protocols the account was in during the period. |
| holdingsrequired | PerformanceHolding[] | Tokens held directly. |
| holdings_summaryrequired | HoldingsSummary | Totals over the holdings. |
PerformanceProtocol
A protocol within an account.
| Field | Type | Description |
|---|---|---|
| protocol_namerequired | string | Protocol. |
| metricsrequired | Metrics | The protocol's figures over the period. |
| positionsrequired | PerformancePosition[] | Positions in this protocol. |
PerformancePosition
A position over the period.
| Field | Type | Description |
|---|---|---|
| position_idrequired | string | Stable id of the position, as in the snapshot. |
| idrequired | string | Readable id: chain, protocol, market and account. |
| internalKeyrequired | string | Same as |
| wallet_addressrequired | string | Account holding the position. |
| protocol_namerequired | string | Protocol. |
| position_typerequired | string | Kind of position. |
| position_namerequired | string | Display name. |
| chain_idrequired | integer | Chain id. |
| start_timestamprequired | string | When the position opened. |
| end_timestamprequirednullable | string | When it closed. |
| positionTagrequired | object |
|
| metricsrequired | Metrics | The position's figures over the period. |
| assetsrequired | PerformanceAsset[] | Tokens inside the position. |
| warnings | object[] | Data checks that failed for this position: |
PerformanceAsset
A token inside a position, over the period.
| Field | Type | Description |
|---|---|---|
| idrequired | string | Readable id. |
| internalKeyrequired | string | Stable id. |
| namerequired | string | Token name. |
| tokenrequired | Token | The token. |
| metricsrequired | AssetMetrics | The token's figures over the period. |
| initialrequired | TokenValues | Balance and price at the start of the period. |
| finalrequired | TokenValues | Balance and price at the end of the period. |
| flowsrequired | TokenFlows | Tokens in and out over the period. |
| tx_hashesrequired | string[] | Transactions that moved the token during the period. |
| childrenrequirednullable | PerformanceAsset[] | Tokens it wraps. |
| start_timestamprequired | string | When the token entered the position. |
| end_timestamprequirednullable | string | When it left. |
PerformanceHolding
A token held directly, over the period.
| Field | Type | Description |
|---|---|---|
| holding_idrequired | string | Stable id of the holding, as in the snapshot. |
| idrequired | string | Readable id: chain, token and account. |
| internalKeyrequired | string | Same as |
| wallet_addressrequired | string | Account holding the token. |
| chain_idrequired | integer | Chain id. |
| namerequired | string | Token name. |
| tokenrequired | Token | The token. |
| initialrequired | TokenValues | Balance and price at the start of the period. |
| finalrequired | TokenValues | Balance and price at the end of the period. |
| flowsrequired | TokenFlows | Tokens in and out over the period. |
| tx_hashesrequired | string[] | Transactions that moved the token during the period. |
| is_closedrequired | boolean |
|
| end_timestamprequirednullable | string | When it was emptied. |
| metricsrequired | Metrics | The holding's figures over the period. |
HoldingsSummary
Totals over an account's holdings, in USD.
| Field | Type | Description |
|---|---|---|
| total_initial_usdrequired | number | Value at the start of the period. |
| total_final_usdrequired | number | Value at the end of the period. |
| total_value_change_usdrequired | number | Change in value. |
| total_pnl_usdrequired | number | PnL. |
| total_realized_pnl_usdrequired | number | Realized PnL. |
| total_unrealized_pnl_usdrequired | number | Unrealized PnL. |
| total_inflow_usdrequired | number | Deposits. |
| total_outflow_usdrequired | number | Withdrawals. |
| total_net_flow_usdrequired | number | Deposits minus withdrawals. |
| countrequired | integer | Number of holdings. |
TokenValues
A token balance at one point in time.
| Field | Type | Description |
|---|---|---|
| balancerequired | number | Balance, in token units. |
| price_usdrequired | number | Price, in USD. |
| balance_usdrequired | number |
|
TokenFlows
Tokens in and out over the period.
TokenFlow
One direction of flows.
| Field | Type | Description |
|---|---|---|
| token_unitsrequired | number | Amount, in token units. |
| value_usdrequired | number | Value, in USD. |
| price_usdrequired | number | Price used, in USD. |
Metrics#
The figures every level of the performance tree carries. Tokens inside a position carry AssetMetrics, with balances and prices.
Metrics
The figures every level of the performance tree carries, in USD unless noted.
| Field | Type | Description |
|---|---|---|
| pnl_usdrequired | number | PnL over the period, in USD. |
| realized_pnl_usdrequired | number | Part of |
| unrealized_pnl_usdrequired | number | Part of |
| strategy_pnlrequired | number | Change in token quantity over the period, valued at the end-of-period price. |
| market_pnlrequired | number | The rest of |
| yield_pnl_usdrequired | number | Tokens gained or lost over the period, each day at that day's price. |
| price_effect_pnl_usdrequired | number | The rest of |
| rewards_pnl_usdrequired | number | Rewards earned over the period. |
| itd_pnl_usdrequired | number | PnL from inception to the end of the period. |
| itd_realized_pnl_usdrequired | number | Realized part of |
| itd_unrealized_pnl_usdrequired | number | Unrealized part of |
| itd_strategy_pnl_usdrequired | number |
|
| itd_market_pnl_usdrequired | number |
|
| itd_yield_pnl_usdrequired | number |
|
| itd_price_effect_pnl_usdrequired | number |
|
| itd_rewards_pnl_usdrequired | number | Rewards earned from inception. |
| initial_value_usdrequired | number | Value at the start of the period. |
| final_value_usdrequired | number | Value at the end of the period. |
| value_change_usdrequired | number |
|
| inflow_usdrequired | number | Deposits over the period. |
| outflow_usdrequired | number | Withdrawals over the period. |
| net_flow_usdrequired | number |
|
| nav_usdrequired | number | Value at the end of the period (NAV). |
| roi_pctrequirednullable | number | Return over the period, in percent ( |
| time_weighted_return_pctrequirednullable | number | Time-weighted return over the period, in percent. |
| apr_pctrequirednullable | number | Annualized simple return, in percent. |
| apy_pctrequirednullable | number | Annualized compounded return, in percent. |
| cost_basis_usd | number | Cost basis. Positions and holdings only. |
| initial_balance | number | Token balance at the start of the period. Holdings only. |
| final_balance | number | Token balance at the end of the period. Holdings only. |
| initial_price | number | Token price at the start of the period, in USD. Holdings only. |
| final_price | number | Token price at the end of the period, in USD. Holdings only. |
AssetMetrics
The figures of a token inside a position, in USD unless noted.
| Field | Type | Description |
|---|---|---|
| pnl_usdrequired | number | PnL over the period, in USD. |
| realized_pnl_usdrequired | number | Part of |
| unrealized_pnl_usdrequired | number | Part of |
| strategy_pnlrequired | number | Change in token quantity over the period, valued at the end-of-period price. |
| market_pnlrequired | number | The rest of |
| yield_pnl_usdrequired | number | Tokens gained or lost over the period, each day at that day's price. |
| price_effect_pnl_usdrequired | number | The rest of |
| itd_pnl_usdrequired | number | PnL from inception to the end of the period. |
| itd_realized_pnl_usdrequired | number | Realized part of |
| itd_unrealized_pnl_usdrequired | number | Unrealized part of |
| itd_strategy_pnl_usdrequired | number |
|
| itd_market_pnl_usdrequired | number |
|
| itd_yield_pnl_usdrequired | number |
|
| itd_price_effect_pnl_usdrequired | number |
|
| initial_value_usdrequired | number | Value at the start of the period. |
| final_value_usdrequired | number | Value at the end of the period. |
| value_change_usdrequired | number |
|
| inflow_usdrequired | number | Deposits over the period. |
| outflow_usdrequired | number | Withdrawals over the period. |
| net_flow_usdrequired | number |
|
| roi_pctrequirednullable | number | Return over the period, in percent ( |
| time_weighted_return_pctrequirednullable | number | Time-weighted return over the period, in percent. |
| apr_pctrequirednullable | number | Annualized simple return, in percent. |
| apy_pctrequirednullable | number | Annualized compounded return, in percent. |
| cost_basis_usdrequired | number | Cost basis of the token. |
| initial_balancerequired | number | Balance at the start of the period, in token units. |
| final_balancerequired | number | Balance at the end of the period, in token units. |
| current_balancerequired | number | Balance at the end of the period, in token units. |
| initial_pricerequired | number | Price at the start of the period, in USD. |
| final_pricerequired | number | Price at the end of the period, in USD. |
| price_usdrequired | number | Price at the end of the period, in USD. |
| value_usdrequirednullable | number | Value at the end of the period, in USD, when priced separately. |
| realized_balance_pnlrequired | number | Realized PnL over the period, in token units. |
| unrealized_balance_pnlrequired | number | Unrealized PnL over the period, in token units. |
| initial_balance_realized_pnlrequired | number | Realized PnL in token units, as of the start of the period. |
| final_balance_realized_pnlrequired | number | Realized PnL in token units, as of the end of the period. |
| initial_balance_unrealized_pnlrequired | number | Unrealized PnL in token units, as of the start of the period. |
| final_balance_unrealized_pnlrequired | number | Unrealized PnL in token units, as of the end of the period. |
| initial_balance_pnl_usdrequired | number | PnL in USD, as of the start of the period. |
| final_balance_pnl_usdrequired | number | PnL in USD, as of the end of the period. |
| strategy_price_usdrequired | number | Price used to value |