Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Conversation

@Adamantios
Copy link
Collaborator

Fixes the analysis of the trades.py script.

Previously, the script was increasing the calculated redeemed earnings:

] += earnings

only when the market was not invalid:

elif outcome_index == current_answer:

However, the calculated earnings were increased in both cases:

statistics_table[MarketAttribute.EARNINGS][market_status] += earnings

Therefore, this was a mistake in the calculation. The code now also accounts for the redeemed invalid markets.

ℹ️ As an additional note, the script appears to be missing separate rows for the invalid markets, which would enhance clarity.

Copy link
Collaborator

@dagacha dagacha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - tested

@Adamantios Adamantios merged commit f3f3374 into develop Jun 20, 2024
@Adamantios Adamantios deleted the fix/redeemed-invalid branch June 20, 2024 15:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants