Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

汇率设置 #23

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

汇率设置 #23

wants to merge 6 commits into from

Conversation

EndlessSky512
Copy link

增加了汇率的设置

Copy link
Owner

@puppylpg puppylpg left a comment

Choose a reason for hiding this comment

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

修改一下changlog,把变动写上吧

config/config.ini Outdated Show resolved Hide resolved
@EndlessSky512
Copy link
Author

已完成修改

Copy link
Owner

@puppylpg puppylpg left a comment

Choose a reason for hiding this comment

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

已完成修改

关于汇率位置的代码再改一下吧,感觉乘的位置不是很合适,后期也不好维护

@@ -31,7 +31,7 @@ def set_history_prices(self, prices, days):
self.history_sold = len(prices)
self.history_days = days
self.average_sold_price = self.centered_average(prices)
self.average_sold_price_after_tax = self.average_sold_price * (1 - STEAM_SELL_TAX)
self.average_sold_price_after_tax = (self.average_sold_price * (1 - STEAM_SELL_TAX)) * EXCHANGE_RATE
Copy link
Owner

Choose a reason for hiding this comment

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

这个货币汇率转化,是不是直接在获取完price后就转换比较好?这样的话从源头价格就已经转换了。在这里转化的话,仅仅average_sold_price_after_tax是新货币,其他价格比如price或者average_sold_price还是原始货币,使用的时候容易出偏差。

@puppylpg puppylpg added the enhancement New feature or request label Oct 19, 2020
@RaymondMcGuire
Copy link

汇率功能还不能用吗

@ccinv
Copy link
Collaborator

ccinv commented Dec 14, 2020

汇率功能还不能用吗

比我想的麻烦 @RaymondMcGuire

@RaymondMcGuire
Copy link

汇率功能还不能用吗

比我想的麻烦 @RaymondMcGuire

收到

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants