Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformers - Add Account Activity models & tests #131

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

marcus-snx
Copy link
Collaborator

Core:

  • add model that tracks account activity by actions (Delegate, Withdraw, Claim)
  • add model that calculates the number of 'active' stakers per day

Perps:

  • add model that tracks accounts that have orders which are settled

@marcus-snx marcus-snx requested a review from Tburm October 14, 2024 19:50
Comment on lines 6 to 9
select
block_timestamp,
account_id
from {{ ref('perp_order_settled_arbitrum_mainnet') }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really see why we need this, instead of just pointing at some other table like trades in order to get unique accounts within certain timestamps.

Can't we just add a CTE to the other perps_stats daily tables that counts the uniques?

@Tburm Tburm merged commit 8d6df01 into main Oct 15, 2024
2 checks passed
@Tburm Tburm deleted the feat/add-acc-activity-models branch October 15, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants