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

汇率设置#23

Open
EndlessSky512 wants to merge 6 commits into
puppylpg:masterfrom
EndlessSky512:master
Open

汇率设置#23
EndlessSky512 wants to merge 6 commits into
puppylpg:masterfrom
EndlessSky512:master

Conversation

@EndlessSky512
Copy link
Copy Markdown

增加了汇率的设置

Copy link
Copy Markdown
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,把变动写上吧

Comment thread config/config.ini Outdated
@EndlessSky512
Copy link
Copy Markdown
Author

已完成修改

Copy link
Copy Markdown
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.

已完成修改

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

Comment thread src/data/item.py
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
Copy Markdown
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
Copy Markdown

汇率功能还不能用吗

@ccinv
Copy link
Copy Markdown
Collaborator

ccinv commented Dec 14, 2020

汇率功能还不能用吗

比我想的麻烦 @RaymondMcGuire

@RaymondMcGuire
Copy link
Copy Markdown

汇率功能还不能用吗

比我想的麻烦 @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