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

不同券商返回值 字段名称统一下 #38

Closed
whcobra opened this issue Apr 2, 2016 · 3 comments
Closed

不同券商返回值 字段名称统一下 #38

whcobra opened this issue Apr 2, 2016 · 3 comments

Comments

@whcobra
Copy link

whcobra commented Apr 2, 2016

namemap={'参考市值':'market_value'
,'可用资金':'enable_balance'
,'总资产':'asset_balance'
,'资金余额':'current_balance'
,'币种':'money_type'
,'证券名称':'stock_name'
,'证券代码':'stock_code'
,'股份可用':'enable_amount'
,'当前持仓':'current_amount'
,'参考市价':'last_price'
,'参考盈亏':'income_balance'
,'委托时间':'report_time'
,'状态说明':'entrust_status'
,'委托序号':'entrust_no'
}
类似这样
这样以后不同的券商返回的字段就可以统一了
如果不同的券商,前端调用就比较方便了,

@shidenggui
Copy link
Owner

曾经考虑过,如果不同券商的同个名字有不同的意义就麻烦了

@oldwain
Copy link
Contributor

oldwain commented Apr 21, 2016

原来有人提过这个问题了。
还是应该统一。
至于不同券商的同个名字有不同的意义, 这个在各个接口的实现中调整好就行, easytrader的使用者那里是统一的。

@shidenggui
Copy link
Owner

暂时不考虑这样做

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants