[关闭]
@lenville 2016-08-24T23:40:44.000000Z 字数 4357 阅读 669

继续调试接口遇到几个问题,请Ro总和全哥看有没有希望改


  1. {
  2. "code":0,
  3. "data": {
  4. "data": {
  5. "orderID":"89"
  6. },
  7. "funcID":8000,
  8. "uin":888888
  9. },
  10. "msg":""
  11. }
  12. // 改为
  13. {
  14. "code":0,
  15. "data": {
  16. "orderID":"89"
  17. },
  18. "msg":""
  19. }
  1. 成功返回 "orderID": "0"
  2. // 改为
  3. 成功返回 "success": true
  4. 失败返回 "success": false
  5. // 或
  6. 成功返回 "success": 1
  7. 失败返回 "success": 0
  1. "data": {
  2. "marketPostionGroup": [
  3. {
  4. "marketCode": "hk",
  5. "position": [
  6. {
  7. "avBuyPrice": "103.409",
  8. "curProfit": "4393.13",
  9. "curVol": "2500",
  10. "enableVol": "2500",
  11. "lastPrice": "104.2",
  12. "marketCode": "hk",
  13. "marketValue": "260500",
  14. "preClosePrice": "104.2",
  15. "stockCode": "4228",
  16. "stockName": "HKGB IBOND 1808",
  17. "stockNameGB": "政府债券一八零八"
  18. }
  19. ]
  20. },
  21. {
  22. "marketCode": "us",
  23. "position": [
  24. {
  25. "avBuyPrice": "0",
  26. "curProfit": "0",
  27. "curVol": "999999",
  28. "enableVol": "999999",
  29. "lastPrice": "0",
  30. "marketCode": "us",
  31. "marketValue": "0",
  32. "preClosePrice": "0",
  33. "stockCode": "EBAY",
  34. "stockName": "EBAY",
  35. "stockNameGB": "电子海湾公司"
  36. }
  37. ]
  38. }
  39. ]
  40. },
  41. // 改为
  42. "data": {
  43. "hk": [
  44. {
  45. "avBuyPrice": "103.409",
  46. "curProfit": "4393.13",
  47. "curVol": "2500",
  48. "enableVol": "2500",
  49. "lastPrice": "104.2",
  50. "marketCode": "hk",
  51. "marketValue": "260500",
  52. "preClosePrice": "104.2",
  53. "stockCode": "4228",
  54. "stockName": "HKGB IBOND 1808",
  55. "stockNameGB": "政府债券一八零八"
  56. }
  57. ],
  58. "us": [
  59. {
  60. "avBuyPrice": "0",
  61. "curProfit": "0",
  62. "curVol": "999999",
  63. "enableVol": "999999",
  64. "lastPrice": "0",
  65. "marketCode": "us",
  66. "marketValue": "0",
  67. "preClosePrice": "0",
  68. "stockCode": "EBAY",
  69. "stockName": "EBAY",
  70. "stockNameGB": "电子海湾公司"
  71. }
  72. ]
  73. },

// 改为

"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

  1. "data": {
  2. "marketBalanceGroup": [{
  3. "asset": "161163752.4300",
  4. "enableBalance": "143476513.7200",
  5. "enableBalanceRatio": "89.025",
  6. "marketValue": "-4625116.2900",
  7. "moneyType": "HKD",
  8. "positionRatio": "-2.870",
  9. "todayProfit": "0"
  10. }]
  11. },
  12. // 修改为
  13. "data": {
  14. "hk": {
  15. "asset": "161163752.4300",
  16. "enableBalance": "143476513.7200",
  17. "enableBalanceRatio": "89.025",
  18. "marketValue": "-4625116.2900",
  19. "moneyType": "HKD",
  20. "positionRatio": "-2.870",
  21. "todayProfit": "0"
  22. },
  23. "us": { ... }
  24. },
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注