Skip to content

Commit

Permalink
update partition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tburm committed Dec 13, 2024
1 parent d799d51 commit 2fbe013
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rate_changes as (
collateral_type,
exchange_rate,
exchange_rate / LAG(exchange_rate) over (
partition by yield_token_symbol
partition by token_symbol, yield_token_symbol
order by
ts
) - 1 as hourly_exchange_rate_pnl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rate_changes as (
collateral_type,
exchange_rate,
exchange_rate / LAG(exchange_rate) over (
partition by yield_token_symbol
partition by token_symbol, yield_token_symbol
order by
ts
) - 1 as hourly_exchange_rate_pnl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rate_changes as (
collateral_type,
exchange_rate,
exchange_rate / LAG(exchange_rate) over (
partition by yield_token_symbol
partition by token_symbol, yield_token_symbol
order by
ts
) - 1 as hourly_exchange_rate_pnl
Expand Down

0 comments on commit 2fbe013

Please sign in to comment.