@lenville
2016-08-24T15:40:44.000000Z
字数 4357
阅读 747
取消funcID互传机制 funcIDuin,直接返回数据
{"code":0,"data": {"data": {"orderID":"89"},"funcID":8000,"uin":888888},"msg":""}// 改为{"code":0,"data": {"orderID":"89"},"msg":""}
成功返回 "orderID": "0"// 改为成功返回 "success": true失败返回 "success": false// 或成功返回 "success": 1失败返回 "success": 0
"data": {"marketPostionGroup": [{"marketCode": "hk","position": [{"avBuyPrice": "103.409","curProfit": "4393.13","curVol": "2500","enableVol": "2500","lastPrice": "104.2","marketCode": "hk","marketValue": "260500","preClosePrice": "104.2","stockCode": "4228","stockName": "HKGB IBOND 1808","stockNameGB": "政府债券一八零八"}]},{"marketCode": "us","position": [{"avBuyPrice": "0","curProfit": "0","curVol": "999999","enableVol": "999999","lastPrice": "0","marketCode": "us","marketValue": "0","preClosePrice": "0","stockCode": "EBAY","stockName": "EBAY","stockNameGB": "电子海湾公司"}]}]},// 改为"data": {"hk": [{"avBuyPrice": "103.409","curProfit": "4393.13","curVol": "2500","enableVol": "2500","lastPrice": "104.2","marketCode": "hk","marketValue": "260500","preClosePrice": "104.2","stockCode": "4228","stockName": "HKGB IBOND 1808","stockNameGB": "政府债券一八零八"}],"us": [{"avBuyPrice": "0","curProfit": "0","curVol": "999999","enableVol": "999999","lastPrice": "0","marketCode": "us","marketValue": "0","preClosePrice": "0","stockCode": "EBAY","stockName": "EBAY","stockNameGB": "电子海湾公司"}]},
// 改为
"data": {
"hk": {
"totalValue": "10000",
"totalProfit": "199.99".
"totalProfitRatio":"9.99",
"enableBalance":"4567.88",
"totalCapital":"566666",
"position": [
{
"avBuyPrice": "103.409",
"curProfit": "4393.13",
"curProfitRatio": "3.23",
"curVol": "2500",
"enableVol": "2500",
"lastPrice": "104.2",
"marketValue": "260500",
"preClosePrice": "104.2",
"stockCode": "4228",
"stockName": "HKGB IBOND 1808",
"stockNameGB": "政府债券一八零八"
}
]
},
"us": {
"totalValue": "10000",
"totalProfit": "199.99".
"totalProfitRatio": "9.99",
"enableBalance": "4567.88",
"totalCapital": "566666",
"position": [
{
"avBuyPrice": "0",
"curProfit": "0",
"curProfitRatio": "3.23",
"curVol": "999999",
"enableVol": "999999",
"lastPrice": "0",
"marketValue": "0",
"preClosePrice": "0",
"stockCode": "EBAY",
"stockName": "EBAY",
"stockNameGB": "电子海湾公司"
}
]
}
},
```
- 查询资金信息接口,请求修改
- 见 http://10.9.16.10:8090/pages/viewpage.action?pageId=19824686
"data": {"marketBalanceGroup": [{"asset": "161163752.4300","enableBalance": "143476513.7200","enableBalanceRatio": "89.025","marketValue": "-4625116.2900","moneyType": "HKD","positionRatio": "-2.870","todayProfit": "0"}]},// 修改为"data": {"hk": {"asset": "161163752.4300","enableBalance": "143476513.7200","enableBalanceRatio": "89.025","marketValue": "-4625116.2900","moneyType": "HKD","positionRatio": "-2.870","todayProfit": "0"},"us": { ... }},
[当日/历史] [委托/成交/资金流水/委托明细]接口,感觉像是直接从恒生取出来的,前端遍历一遍也无妨,如果可以分市场取,建议按照上述范式分类修改