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.

FieldTypeDescription
daterequiredstring

The day read, YYYY-MM-DD.

walletsrequiredSnapshotAccount[]

One entry per account.

returnsMethodrequiredstringmd | classic

The return method used: md (Modified Dietz) or classic (the segment method).

PerformanceResponse

GET /portfolio/{orgId}/performance.

FieldTypeDescription
start_daterequiredstring

Start of the period: 00:00 UTC on from.

end_daterequiredstring

End of the period: 00:00 UTC on to.

organizationsrequiredPerformanceOrganization[]

Your organization: one entry.

errors_foundrequiredobject

Data checks that failed in this response, by code. Empty when every position reconciles. The positions concerned carry warnings.

returnsMethodrequiredstringmd | classic

The return method used: md (Modified Dietz) or classic (the segment method).

Error

Body of a failed request. A key the gateway doesn't know gets {"message":"Forbidden"} instead.

FieldTypeDescription
errorrequiredstring

Error type, e.g. Unauthorized, Forbidden, Invalid query.

messagestring

What went wrong.

detailsobject

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.

FieldTypeDescription
wallet_addressrequiredstring

Account address.

wallet_namerequirednullablestring

Name given to the account in the Syncrone app.

positionsrequiredSnapshotPosition[]

Protocol positions of the account.

holdingsrequiredSnapshotHolding[]

Tokens held directly, outside any protocol.

assetsrequiredSnapshotAsset[]

Tokens inside the positions, linked by position_id.

SnapshotPosition

A position in a protocol: a vault, a loan, a pool, a stake.

FieldTypeDescription
position_idrequiredstring

Stable id of the position.

wallet_addressrequiredstring

Account holding the position.

chain_idrequiredinteger

Chain id, e.g. 1 for Ethereum.

protocol_namerequiredstring

Protocol, e.g. morpho.

protocol_display_namerequiredstring

Protocol name for display.

protocol_versionrequirednullablestring

Protocol version.

position_typerequiredstringFarming | Lending | Liquidity Pool | Staked | Yield | merkl_reward

Kind of position.

display_namerequirednullablestring

Name given in the Syncrone app.

start_timestamprequiredstring

When the position opened.

end_timestamprequirednullablestring

When it closed. null while open.

tagsrequiredstring[]

Tags set in the Syncrone app.

snapshot_atrequiredstring

Day of the row, 00:00 UTC: the day read. With includeClosed=true, a closed position's last day.

nav_usdrequirednumber

Value of the position, in USD. 0 for a closed position.

invested_capital_usdrequirednumber

Capital put in, net of withdrawals.

value_collateral_usdrequirednullablenumber

Collateral value, for a loan.

value_debt_usdrequirednullablenumber

Debt value, for a loan.

realized_pnl_usdrequirednumber

PnL realized since inception.

unrealized_pnl_usdrequirednumber

PnL still held.

pnl_usdrequirednumber

Total PnL since inception.

reward_pnl_usdrequirednumber

Rewards earned since inception.

roirequirednullablenumber

Return since inception, in percent (4.5 is 4.5%).

aprrequirednullablenumber

Annualized simple return, in percent.

apyrequirednullablenumber

Annualized compounded return, in percent.

twrrequirednullablenumber

Time-weighted return since inception, as a ratio (0.045 is 4.5%).

SnapshotHolding

A token held directly by an account, outside any protocol.

FieldTypeDescription
holding_idrequiredstring

Stable id of the holding.

wallet_addressrequiredstring

Account holding the token.

chain_idrequiredinteger

Chain id.

token_symbolrequiredstring

Token symbol.

display_namerequirednullablestring

Name given in the Syncrone app.

snapshot_atrequirednullablestring

Time of the snapshot read.

nav_usdrequirednumber

Value held, in USD.

invested_capital_usdrequirednumber

Capital put in, net of withdrawals.

realized_pnl_usdrequirednumber

PnL realized since inception.

unrealized_pnl_usdrequirednumber

PnL still held.

roirequirednullablenumber

Return since inception, in percent.

aprrequirednullablenumber

Annualized simple return, in percent.

apyrequirednullablenumber

Annualized compounded return, in percent.

SnapshotAsset

A token inside a position. Already counted in the position's nav_usd.

FieldTypeDescription
asset_idrequiredstring

Stable id of the asset.

position_idrequiredstring

Position the token belongs to.

chain_idrequiredinteger

Chain id.

asset_typerequiredstringborrow | 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_typerequiredstringdefault | underlying

default for the token the position holds, underlying for what it wraps.

is_leafrequiredboolean

true when the token wraps nothing further.

namerequiredstring

Token name.

tokenrequiredToken

The token.

snapshot_atrequiredstring

Time of the snapshot read.

nav_usdrequirednumber

Value of the token in the position, in USD. Debt counts against the position.

price_per_token_usdrequirednullablenumber

Token price, in USD.

balance_realized_pnlrequirednumber

Realized PnL, in token units.

balance_unrealized_pnlrequirednumber

Unrealized PnL, in token units.

balance_realized_pnl_usdrequirednumber

Realized PnL, in USD.

balance_unrealized_pnl_usdrequirednumber

Unrealized PnL, in USD.

Token

A token contract.

FieldTypeDescription
addressrequiredstring

Contract address.

symbolrequiredstring

Symbol.

decimalsrequiredinteger

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.

FieldTypeDescription
org_namerequiredstring

Organization name.

org_idrequiredstring

Organization id.

number_of_walletsrequiredinteger

Number of accounts.

metricsrequiredMetrics

The organization's figures over the period.

walletsrequiredPerformanceAccount[]

One entry per account.

PerformanceAccount

An account, its protocols and its holdings.

FieldTypeDescription
wallet_addressrequiredstring

Account address.

wallet_namerequirednullablestring

Name given in the Syncrone app.

metricsrequiredMetrics

The account's figures over the period.

protocolsrequiredPerformanceProtocol[]

Protocols the account was in during the period.

holdingsrequiredPerformanceHolding[]

Tokens held directly.

holdings_summaryrequiredHoldingsSummary

Totals over the holdings.

PerformanceProtocol

A protocol within an account.

FieldTypeDescription
protocol_namerequiredstring

Protocol.

metricsrequiredMetrics

The protocol's figures over the period.

positionsrequiredPerformancePosition[]

Positions in this protocol.

PerformancePosition

A position over the period.

FieldTypeDescription
position_idrequiredstring

Stable id of the position, as in the snapshot.

idrequiredstring

Readable id: chain, protocol, market and account.

internalKeyrequiredstring

Same as position_id.

wallet_addressrequiredstring

Account holding the position.

protocol_namerequiredstring

Protocol.

position_typerequiredstring

Kind of position.

position_namerequiredstring

Display name.

chain_idrequiredinteger

Chain id.

start_timestamprequiredstring

When the position opened.

end_timestamprequirednullablestring

When it closed. null while open.

positionTagrequiredobject

{ name }: the label shown in the Syncrone app.

metricsrequiredMetrics

The position's figures over the period.

assetsrequiredPerformanceAsset[]

Tokens inside the position.

warningsobject[]

Data checks that failed for this position: code, severity (error means don't act on its NAV), message, nav_usd, expected_nav_usd, difference_usd. Present only when there are some.

PerformanceAsset

A token inside a position, over the period.

FieldTypeDescription
idrequiredstring

Readable id.

internalKeyrequiredstring

Stable id.

namerequiredstring

Token name.

tokenrequiredToken

The token.

metricsrequiredAssetMetrics

The token's figures over the period.

initialrequiredTokenValues

Balance and price at the start of the period.

finalrequiredTokenValues

Balance and price at the end of the period.

flowsrequiredTokenFlows

Tokens in and out over the period.

tx_hashesrequiredstring[]

Transactions that moved the token during the period.

childrenrequirednullablePerformanceAsset[]

Tokens it wraps. null when none.

start_timestamprequiredstring

When the token entered the position.

end_timestamprequirednullablestring

When it left. null while held.

PerformanceHolding

A token held directly, over the period.

FieldTypeDescription
holding_idrequiredstring

Stable id of the holding, as in the snapshot.

idrequiredstring

Readable id: chain, token and account.

internalKeyrequiredstring

Same as holding_id.

wallet_addressrequiredstring

Account holding the token.

chain_idrequiredinteger

Chain id.

namerequiredstring

Token name.

tokenrequiredToken

The token.

initialrequiredTokenValues

Balance and price at the start of the period.

finalrequiredTokenValues

Balance and price at the end of the period.

flowsrequiredTokenFlows

Tokens in and out over the period.

tx_hashesrequiredstring[]

Transactions that moved the token during the period.

is_closedrequiredboolean

true once the account no longer holds it.

end_timestamprequirednullablestring

When it was emptied. null while held.

metricsrequiredMetrics

The holding's figures over the period.

HoldingsSummary

Totals over an account's holdings, in USD.

FieldTypeDescription
total_initial_usdrequirednumber

Value at the start of the period.

total_final_usdrequirednumber

Value at the end of the period.

total_value_change_usdrequirednumber

Change in value.

total_pnl_usdrequirednumber

PnL.

total_realized_pnl_usdrequirednumber

Realized PnL.

total_unrealized_pnl_usdrequirednumber

Unrealized PnL.

total_inflow_usdrequirednumber

Deposits.

total_outflow_usdrequirednumber

Withdrawals.

total_net_flow_usdrequirednumber

Deposits minus withdrawals.

countrequiredinteger

Number of holdings.

TokenValues

A token balance at one point in time.

FieldTypeDescription
balancerequirednumber

Balance, in token units.

price_usdrequirednumber

Price, in USD.

balance_usdrequirednumber

balance × price_usd.

TokenFlows

Tokens in and out over the period.

FieldTypeDescription
inrequiredTokenFlow

Tokens in.

outrequiredTokenFlow

Tokens out.

TokenFlow

One direction of flows.

FieldTypeDescription
token_unitsrequirednumber

Amount, in token units.

value_usdrequirednumber

Value, in USD.

price_usdrequirednumber

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.

FieldTypeDescription
pnl_usdrequirednumber

PnL over the period, in USD.

realized_pnl_usdrequirednumber

Part of pnl_usd realized by exits and claims.

unrealized_pnl_usdrequirednumber

Part of pnl_usd still held.

strategy_pnlrequirednumber

Change in token quantity over the period, valued at the end-of-period price.

market_pnlrequirednumber

The rest of pnl_usd: pnl_usd − strategy_pnl.

yield_pnl_usdrequirednumber

Tokens gained or lost over the period, each day at that day's price.

price_effect_pnl_usdrequirednumber

The rest of pnl_usd, mostly price moves: pnl_usd − yield_pnl_usd.

rewards_pnl_usdrequirednumber

Rewards earned over the period.

itd_pnl_usdrequirednumber

PnL from inception to the end of the period.

itd_realized_pnl_usdrequirednumber

Realized part of itd_pnl_usd.

itd_unrealized_pnl_usdrequirednumber

Unrealized part of itd_pnl_usd.

itd_strategy_pnl_usdrequirednumber

strategy_pnl from inception.

itd_market_pnl_usdrequirednumber

market_pnl from inception.

itd_yield_pnl_usdrequirednumber

yield_pnl_usd from inception.

itd_price_effect_pnl_usdrequirednumber

price_effect_pnl_usd from inception.

itd_rewards_pnl_usdrequirednumber

Rewards earned from inception.

initial_value_usdrequirednumber

Value at the start of the period.

final_value_usdrequirednumber

Value at the end of the period.

value_change_usdrequirednumber

final_value_usd − initial_value_usd.

inflow_usdrequirednumber

Deposits over the period.

outflow_usdrequirednumber

Withdrawals over the period.

net_flow_usdrequirednumber

inflow_usd − outflow_usd.

nav_usdrequirednumber

Value at the end of the period (NAV).

roi_pctrequirednullablenumber

Return over the period, in percent (-2.5 is −2.5%). Method: returnsMethod.

time_weighted_return_pctrequirednullablenumber

Time-weighted return over the period, in percent.

apr_pctrequirednullablenumber

Annualized simple return, in percent.

apy_pctrequirednullablenumber

Annualized compounded return, in percent.

cost_basis_usdnumber

Cost basis. Positions and holdings only.

initial_balancenumber

Token balance at the start of the period. Holdings only.

final_balancenumber

Token balance at the end of the period. Holdings only.

initial_pricenumber

Token price at the start of the period, in USD. Holdings only.

final_pricenumber

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.

FieldTypeDescription
pnl_usdrequirednumber

PnL over the period, in USD.

realized_pnl_usdrequirednumber

Part of pnl_usd realized by exits and claims.

unrealized_pnl_usdrequirednumber

Part of pnl_usd still held.

strategy_pnlrequirednumber

Change in token quantity over the period, valued at the end-of-period price.

market_pnlrequirednumber

The rest of pnl_usd: pnl_usd − strategy_pnl.

yield_pnl_usdrequirednumber

Tokens gained or lost over the period, each day at that day's price.

price_effect_pnl_usdrequirednumber

The rest of pnl_usd, mostly price moves: pnl_usd − yield_pnl_usd.

itd_pnl_usdrequirednumber

PnL from inception to the end of the period.

itd_realized_pnl_usdrequirednumber

Realized part of itd_pnl_usd.

itd_unrealized_pnl_usdrequirednumber

Unrealized part of itd_pnl_usd.

itd_strategy_pnl_usdrequirednumber

strategy_pnl from inception.

itd_market_pnl_usdrequirednumber

market_pnl from inception.

itd_yield_pnl_usdrequirednumber

yield_pnl_usd from inception.

itd_price_effect_pnl_usdrequirednumber

price_effect_pnl_usd from inception.

initial_value_usdrequirednumber

Value at the start of the period.

final_value_usdrequirednumber

Value at the end of the period.

value_change_usdrequirednumber

final_value_usd − initial_value_usd.

inflow_usdrequirednumber

Deposits over the period.

outflow_usdrequirednumber

Withdrawals over the period.

net_flow_usdrequirednumber

inflow_usd − outflow_usd.

roi_pctrequirednullablenumber

Return over the period, in percent (-2.5 is −2.5%). Method: returnsMethod.

time_weighted_return_pctrequirednullablenumber

Time-weighted return over the period, in percent.

apr_pctrequirednullablenumber

Annualized simple return, in percent.

apy_pctrequirednullablenumber

Annualized compounded return, in percent.

cost_basis_usdrequirednumber

Cost basis of the token.

initial_balancerequirednumber

Balance at the start of the period, in token units.

final_balancerequirednumber

Balance at the end of the period, in token units.

current_balancerequirednumber

Balance at the end of the period, in token units.

initial_pricerequirednumber

Price at the start of the period, in USD.

final_pricerequirednumber

Price at the end of the period, in USD.

price_usdrequirednumber

Price at the end of the period, in USD.

value_usdrequirednullablenumber

Value at the end of the period, in USD, when priced separately.

realized_balance_pnlrequirednumber

Realized PnL over the period, in token units.

unrealized_balance_pnlrequirednumber

Unrealized PnL over the period, in token units.

initial_balance_realized_pnlrequirednumber

Realized PnL in token units, as of the start of the period.

final_balance_realized_pnlrequirednumber

Realized PnL in token units, as of the end of the period.

initial_balance_unrealized_pnlrequirednumber

Unrealized PnL in token units, as of the start of the period.

final_balance_unrealized_pnlrequirednumber

Unrealized PnL in token units, as of the end of the period.

initial_balance_pnl_usdrequirednumber

PnL in USD, as of the start of the period.

final_balance_pnl_usdrequirednumber

PnL in USD, as of the end of the period.

strategy_price_usdrequirednumber

Price used to value strategy_pnl: the end-of-period price.