delvtech / agent0

Analysis & simulation repo for Delv
https://agent0.readthedocs.io/en/latest/
Apache License 2.0
52 stars 21 forks source link

Updates to FullHyperdriveEnv in traiderdaive to fix stale references #1532

Closed wshainin closed 4 months ago

wshainin commented 4 months ago

Updates keys to reflect new schema changes. Updates observation step to handle an empty bot wallet on first iteration. Makes explicit which columns from pool_info to use in observation space. Changes reward calculation to change in pnl from t-1 -> t (for now). Remove method that filters for rl bot's wallet from all positions in favor of DB query.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.28%. Comparing base (93b2e86) to head (92c193a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1532 +/- ## ========================================== + Coverage 81.07% 81.28% +0.21% ========================================== Files 98 98 Lines 7037 7037 ========================================== + Hits 5705 5720 +15 + Misses 1332 1317 -15 ``` | [Flag](https://app.codecov.io/gh/delvtech/agent0/pull/1532/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=delvtech) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/delvtech/agent0/pull/1532/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=delvtech) | `81.28% <ø> (+0.21%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=delvtech#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.