-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
I'm sorry if I'm doing something wrong. I'm new to git |
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. |
Signed-off-by: hldh214 <[email protected]>
buff2steam/__main__.py
Outdated
@@ -6,7 +6,7 @@ | |||
from buff2steam.provider.steam import Steam | |||
|
|||
|
|||
async def main_loop(buff, steam): | |||
async def main_loop(buff, steam,min_volume): |
There was a problem hiding this comment.
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
buff2steam/__main__.py
Outdated
|
||
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: |
There was a problem hiding this comment.
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
buff2steam/__main__.py
Outdated
|
||
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: |
There was a problem hiding this comment.
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?
I believe that this a useful feature since there are a lot of useless items that no one is going to buy