Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to change acceptable steam min volume #22

Merged
merged 5 commits into from
Oct 31, 2023
Merged

Add ability to change acceptable steam min volume #22

merged 5 commits into from
Oct 31, 2023

Conversation

volodymyrzuyev
Copy link
Contributor

I believe that this a useful feature since there are a lot of useless items that no one is going to buy

@hldh214 hldh214 self-assigned this Aug 26, 2023
@hldh214 hldh214 self-requested a review August 26, 2023 08:43
@volodymyrzuyev
Copy link
Contributor Author

I'm sorry if I'm doing something wrong. I'm new to git

@stale
Copy link

stale bot commented Oct 28, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 28, 2023
@hldh214 hldh214 removed the wontfix This will not be worked on label Oct 30, 2023
Signed-off-by: hldh214 <hldh214@gmail.com>
@@ -6,7 +6,7 @@
from buff2steam.provider.steam import Steam


async def main_loop(buff, steam):
async def main_loop(buff, steam,min_volume):
Copy link
Owner

Choose a reason for hiding this comment

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

Some spacing will be better


current_ratio = buff_min_price / (price_overview_data['price'] / (1 + steam.fee_rate))
buff_min_price_human = float(buff_min_price / 100)

orders_data = None
if volume > 0:
Copy link
Owner

Choose a reason for hiding this comment

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

I believe this line is unnecessary since we have already checked using min_volume


current_ratio = buff_min_price / (price_overview_data['price'] / (1 + steam.fee_rate))
buff_min_price_human = float(buff_min_price / 100)

orders_data = None
if volume > 0:
if current_ratio < min_ration_for_buyorder:
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not a native speaker but I just be curious about why we're choosing word ration instead of ratio?

@hldh214 hldh214 merged commit e4ec165 into hldh214:master Oct 31, 2023
1 of 2 checks passed
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.

2 participants