hodgerpodger / staketaxcsv

python repo to create blockchain CSVs
MIT License
252 stars 119 forks source link

[Bug] Jupiter Limit Orders are still marked as "unknown" after support was added #337

Closed giles-t closed 8 months ago

giles-t commented 8 months ago

Jupiter Limit Order were added in #328 but are still being marked as unknown

I tried to dig in a little and it seems they are being labeled properly in handle_jupiter_limit.py but not grouped correctly as trades.

hodgerpodger commented 8 months ago

I spot checked 2 random accounts with limit orders, and it seemed to be okay. So I probably need more info to identify where the problem occurs. Some ideas:

giles-t commented 8 months ago

I've found a random account with only limit orders: https://stake.tax/?jobId=90c7f0f4466b49eda0f8143a66244df4

It appears that only one is marked correctly.

hodgerpodger commented 8 months ago

Thanks for tracking that info down @giles-t .

Added a fix for additionally handle partially filled limit orders (jupiter limit txs).

Fixed and deployed with https://github.com/hodgerpodger/staketaxcsv/commit/7b4e3668afccdf6a387d0ccd3ad93027bc8c87b8