You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our asset inventory is a precompiled list that receives updates at regular intervals. When identifying assets related to a specific asset, we dynamically query the Zerion API. However, due to rising API usage costs, we are considering aligning our Zerion API requests with the update schedule of our asset list. This means we would only query the Zerion API during the asset list compilation process, eliminating the need for real-time API calls during application use.
References and additional details
src/state/apis/zerion/zerionApi.ts
Asset list is generated as normal
Using the asset list and zerion api, create an index from assetId (derived from zerion fungible ID) to relatedAssetId: AssetId[]. Be sure to dedupe requests by looking up the asset id in the index before firing a request - this should reduce requests by a factor of ~6.
Then for each asset in the asset list, convert the zerion fungible ID to a CAIP AssetId, and attach this to the asset as relatedAssetKey
Now you'll be able to pull the related asset index into the app via the AssetService and perform lookups instead of fetching from zerion.
Acceptance Criteria
No requests to zerion are made during app run-time.
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response
The text was updated successfully, but these errors were encountered:
Overview
Our asset inventory is a precompiled list that receives updates at regular intervals. When identifying assets related to a specific asset, we dynamically query the Zerion API. However, due to rising API usage costs, we are considering aligning our Zerion API requests with the update schedule of our asset list. This means we would only query the Zerion API during the asset list compilation process, eliminating the need for real-time API calls during application use.
References and additional details
src/state/apis/zerion/zerionApi.ts
assetId
(derived from zerion fungible ID) torelatedAssetId: AssetId[]
. Be sure to dedupe requests by looking up the asset id in the index before firing a request - this should reduce requests by a factor of ~6.relatedAssetKey
AssetService
and perform lookups instead of fetching from zerion.Acceptance Criteria
No requests to zerion are made during app run-time.
Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response
The text was updated successfully, but these errors were encountered: