Portfolios

Get a DeFi position by wallet selector (deprecated)

Deprecated. Use GET :portfolioSlug/defi-positions/:positionRef with the positionRef returned by the list route. A reference identifies a position unambiguously, while positionKey is unique only within one wallet. This selector form will be removed once every caller has moved to the reference.

get/v1/portfolios/{portfolioSlug}/defi-positions/by-selector

Request

  • Base URL: https://api.tokenbooks.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.tokenbooks.io/v1/portfolios/{portfolioSlug}/defi-positions/by-selector
  • Auth: API key in header x-api-key

Path parameters

portfolioSlugstring required

Workspace-scoped portfolio slug

Query parameters

walletChainIdstring required

Owning wallet chain ID

walletAddressstring required

Owning wallet address

positionKeystring required

Protocol-defined stable logical position key

Response

positionRefstring required

Stable public DeFi position reference

positionKeystring required

Protocol-defined stable logical position key

positionType'LP' | 'STAKE' | 'LEND' | 'BORROW' | 'NATIVE_STAKE' | 'PROTOCOL' | 'VAULT' required

DeFi position type

status'ACTIVE' | 'CLOSED' | 'PARTIAL' required

DeFi position status

openedAtstring date-time required

Position opened timestamp

closedAtstring date-time nullable required

Position closed timestamp, if closed

tokenAddressesstring[] required

Token addresses involved in the position

custodyAddressesstring[] required

Custody addresses involved in the position

Changes

No recorded changes to this operation across all 1 revision of this API.