Skip to content

Add Katana Perps to perpetual.trades#9509

Merged
jeff-dude merged 3 commits intomainfrom
cursor/katana-perpetual-trades-994b
Apr 19, 2026
Merged

Add Katana Perps to perpetual.trades#9509
jeff-dude merged 3 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
@jeff-dude jeff-dude merged commit ba309f0 into main Apr 19, 2026
3 checks passed
@jeff-dude jeff-dude deleted the cursor/katana-perpetual-trades-994b branch April 19, 2026 16:06
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

3 participants