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

一个小疑问 #11

Closed
remiliacn opened this issue Aug 23, 2022 · 4 comments
Closed

一个小疑问 #11

remiliacn opened this issue Aug 23, 2022 · 4 comments

Comments

@remiliacn
Copy link
Contributor

这边在看您的代码的时候看到这部分,所以想问一个问题

item['optimal_buy_price'] = optimal_buy_price_raw / 1.15
item['safe_buy_price'] = safe_buy_price_raw / 1.15
item['optimal_sell_price'] = optimal_sell_price_raw / 1.15

这部分代码是用来计算用户会收到多少钱的么?

@EricZhu-42
Copy link
Owner

是的,steam market 会收15%的交易手续费,测试后发现应该用 除以1.15 来计算实际到手的金额。

@remiliacn
Copy link
Contributor Author

我这边移植了一下steam市场计算fee的方法,要不要PR一下hhh

@EricZhu-42
Copy link
Owner

可以的,是有更准确的计算方式吗?我没有研究过这边的细节;如果有改进的话欢迎 PR ~

@remiliacn
Copy link
Contributor Author

remiliacn commented Aug 23, 2022

这个是这样的,在饰品价格较低的情况下(特别是低于10)可能直接 / 1.15会返回一个实际上更少的输入

一个例子是

买家收款 卖家支付 目前算法收款
1.19 1.37 1.19
1.19 1.36 1.18
1.19 1.35 1.17
1.18 1.34 1.17

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

No branches or pull requests

2 participants