Skip to content

Adding helper function to get all wallet info history#671

Merged
slundqui merged 4 commits intodelvtech:mainfrom
slundqui:get_wallet_info_history
Jul 14, 2023
Merged

Adding helper function to get all wallet info history#671
slundqui merged 4 commits intodelvtech:mainfrom
slundqui:get_wallet_info_history

Conversation

@slundqui
Copy link
Copy Markdown

@slundqui slundqui commented Jul 14, 2023

Helper function changes from a long wallet table to a pivoted table where index is block number, columns contains the token type, timestamp, and the sharePrice of the block.

                     BASE  LONG-1720828800          LP  SHORT-1720828800           timestamp  sharePrice
blockNumber                                                                                             
26           49256.647102       775.993865    0.000000          0.000000 2023-07-13 19:29:47    1.002446
27           49256.647102       775.993865    0.000000          0.000000 2023-07-13 19:29:48    1.002446
28           49256.647102       775.993865    0.000000          0.000000 2023-07-13 19:29:49    1.002446
29           49256.647102       775.993865    0.000000          0.000000 2023-07-13 19:29:50    1.002447
30           49256.647102       775.993865    0.000000          0.000000 2023-07-13 19:29:51    1.002447
...                   ...              ...         ...               ...                 ...         ...
545          40617.518873      8394.881810  745.273911       5080.333768 2023-07-13 19:38:26    1.003985
546          40617.518873      8394.881810  745.273911       5080.333768 2023-07-13 19:38:27    1.003985
547          40617.518873      8394.881810  745.273911       5080.333768 2023-07-13 19:38:28    1.003985
548          40617.518873      8394.881810  745.273911       5080.333768 2023-07-13 19:38:29    1.003986
549          40617.518873      8394.881810  745.273911       5080.333768 2023-07-13 19:38:30    1.004001

[524 rows x 6 columns]

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
elf-simulations ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2023 4:15am

Comment thread elfpy/data/postgres.py
Comment thread elfpy/data/postgres.py Outdated
@github-actions
Copy link
Copy Markdown

Remaining rate limit: 4986 🚀

@github-actions
Copy link
Copy Markdown

Remaining rate limit: 4980 🚀

@slundqui slundqui force-pushed the get_wallet_info_history branch from 6d07a14 to 7b04e32 Compare July 14, 2023 02:36
@slundqui slundqui marked this pull request as draft July 14, 2023 02:37
@github-actions
Copy link
Copy Markdown

Remaining rate limit: 4977 🚀

@github-actions
Copy link
Copy Markdown

Remaining rate limit: 4979 🚀

@slundqui slundqui marked this pull request as ready for review July 14, 2023 04:15
@github-actions
Copy link
Copy Markdown

Remaining rate limit: 4990 🚀

@slundqui slundqui merged commit bfdade2 into delvtech:main Jul 14, 2023
@slundqui slundqui deleted the get_wallet_info_history branch July 14, 2023 04:20
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.

3 participants