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
The goal is to provide historical market size data from the Kwenta subgraph, intended to be consumed by the frontend for populating charts.
You will need to create a new entity HistoricalMarketStats and include the fields:
timestamp: BigInt
marketKey: Bytes
marketAsset: Bytes
period: "Daily" (1 time period for now but let's create the enum anyway)
marketSize: BigInt
Inside the handlePositionModified handler you should fetch the market size of the market being traded and create / update the daily stat. The latest stat can overwrite the existing one if there has already been one logged for that day.
The text was updated successfully, but these errors were encountered:
Subgraph Tech Challenge
The goal is to provide historical market size data from the Kwenta subgraph, intended to be consumed by the frontend for populating charts.
You will need to create a new entity HistoricalMarketStats and include the fields:
Inside the handlePositionModified handler you should fetch the market size of the market being traded and create / update the daily stat. The latest stat can overwrite the existing one if there has already been one logged for that day.
The text was updated successfully, but these errors were encountered: