Skip to content

Add Katana Perps to perpetual.trades#9509

Open
thecaptncrunch wants to merge 2 commits intomainfrom
cursor/katana-perpetual-trades-994b
Open

Add Katana Perps to perpetual.trades#9509
thecaptncrunch wants to merge 2 commits intomainfrom
cursor/katana-perpetual-trades-994b

Conversation

@thecaptncrunch
Copy link
Copy Markdown
Collaborator

@thecaptncrunch thecaptncrunch commented Mar 31, 2026

Thank you for contributing to Spellbook 🪄

Please open the PR in draft and mark as ready when you want to request a review.

Description:

  • add katanaperps_katana source registration for exchange_v1_evt_tradeexecuted
  • add new incremental model katanaperps_katana_perpetual_trades under hourly perpetual sector
  • map each TradeExecuted event into two per-side rows (long for buyer, short for seller) to align with perpetual.trades row semantics
  • normalize quote-denominated fields from pips to USD (quoteQuantity, maker/taker fees)
  • join Katana transactions for tx_from / tx_to
  • wire the new model into perpetual_trades.sql union list
  • update perpetual_schema.yml metadata/tags to include Katana

Validation:

  • dbt deps --project-dir dbt_subprojects/hourly_spellbook --profiles-dir dbt_subprojects/hourly_spellbook
  • dbt compile --project-dir dbt_subprojects/hourly_spellbook --profiles-dir dbt_subprojects/hourly_spellbook -s katanaperps_katana_perpetual_trades perpetual_trades

quick links for more information:

Slack Thread

Open in Web Open in Cursor 

Co-authored-by: thecaptncrunch <thecaptncrunch@users.noreply.github.com>
@github-actions github-actions bot added WIP work in progress dbt: hourly covers the hourly dbt subproject labels Mar 31, 2026
@thecaptncrunch thecaptncrunch marked this pull request as ready for review March 31, 2026 20:15
@github-actions github-actions bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dbt: hourly covers the hourly dbt subproject ready-for-review this PR development is complete, please review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants