公共接口
正式域名:https://open.1234567.com.cn +接口请求路径
获取自选状态
基本信息
Path: /Mp2cService/getFavorFundStatus
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Fcodes | text | 是 | 基金代码 多个逗号分开 | |
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
OpenId | text | 是 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果提示信息 | ||
datas | object | 非必须 | 数据集 | ||
├─ 000001 | boolean | 非必须 | 对应基金 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": {
"000001": true
}
}
2
3
4
5
6
7
获取金价走势
基本信息
Path: /Mp2cService/getGoldPrice
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
FundCode | text | 是 | 定制产品编号 | |
ValueType | text | 是 | 0:金价 1:收益率 默认两个都有 | |
Range | text | 是 | 时间范围(y-月,3y-三月,6y-六月,n-年,2n-2年,3n-3年,5n-5年,jn-今年,ln-历年,AT实时) | |
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 | ||
datas | object | 非必须 | 数据集 | ||
├─ method | number | 非必须 | 业务类型0查金价、1查收益率 | ||
├─ chartData | object [] | 非必须 | 数据集展开 | item 类型: object | |
├─ date | string | 必须 | 时间 | ||
├─ targetPrice | string | 必须 | 目标产品金价 | ||
├─ goldPrice | string | 必须 | AU9999金价 | ||
├─ targetProfit | string | 必须 | 目标产品收益率 | ||
├─ goldProfit | string | 必须 | AU9999收益率 |
操作自选基金
基本信息
Path: /Mp2cService/operateFavorFund
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Operation | text | 是 | 操作类型 (d-删除,a-添加) | |
Fcodes | text | 是 | 基金代码 多个以逗号分开0000001,000003 | |
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序编号 | |
OpenId | text | 是 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 | ||
datas | object | 非必须 | |||
├─ operation | string | 非必须 | 操作类型 | ||
├─ openId | string | 非必须 | 用户编号 | ||
├─ fundCollection | object [] | 非必须 | 自选基金列表 | item 类型: object | |
├─ date | string | 非必须 | 操作时间 | ||
├─ fundCode | string | 非必须 | 操作基金code | ||
├─ fundName | string | 非必须 | 操作基金名称 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": {
"operation": "a",
"openId": "91682853878aa96c",
"fundCollection": [
{
"date": "2020-04-23",
"fundCode": "000001",
"fundName": "华夏成长混合"
},
{
"date": "2019-12-24",
"fundCode": "166009",
"fundName": "中欧新动力混合(LOF)A"
},
{
"date": "2019-12-24",
"fundCode": "161606",
"fundName": "融通行业景气混合"
},
{
"date": "2019-12-24",
"fundCode": "519674",
"fundName": "银河创新成长混合"
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
获取话题详情
基本信息
Path: /Mp2cService/getFundTopic
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
TopicId | text | 是 | 话题id |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object [] | 非必须 | 数据集 | item 类型: object | |
├─ topicId | number | 非必须 | 话题id | ||
├─ name | string | 非必须 | 话题名称 | ||
├─ introduction | string | 非必须 | 话题介绍 | ||
├─ voteOption | object [] | 非必须 | 投票项 | item 类型: object | |
├─ voteId | number | 必须 | 选项id | ||
├─ voteOption | string | 必须 | 选项内容 | ||
├─ percent | number | 必须 | 占比 | ||
├─ count | number | 必须 | 投票人数 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": {
"topicId": 1683,
"name": "无话可说",
"introduction": "【相关报道】 阿里回应“下星期寻求香港上市审批”:不予置评 36氪获悉,有报道称,阿里巴巴将于下星期寻求香港上市审批,集资额为100亿至150亿美元。对此,阿里方面回应称:不予置评。(来源:36氪) 阿里三季度收入1190亿大增40% 入股蚂蚁金服获692亿收益 北京时间11月1日晚间,阿里巴巴(BABA.NYSE)公布了2020财年第二财季(即对应今年三季度)报告。这是马云退休后,阿里巴巴发布的首个季报。 受入股蚂蚁金服带来的一次性股权收益影响,该财季内,阿里巴巴集团营业收入同比大幅增长40%至1190.17亿元(人民币,下同),实现净利润327.5亿元、同比增长40%。",
"voteOption": [
{
"voteId": 0,
"voteOption": "2222",
"percent": 80,
"count": 8
},
{
"voteId": 1,
"voteOption": "2323223322332",
"percent": 20,
"count": 2
},
{
"voteId": 100,
"voteOption": "其他",
"percent": 0,
"count": 0
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
获取组合行情
基本信息
Path: /Mp2cService/getMarketInterval
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
CombinNo | text | 是 | 组合id |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object [] | 非必须 | 数据集 | item 类型: object | |
├─ intervalList | object [] | 非必须 | 阶段收益 | item 类型: object | |
├─intervalName | string | 必须 | 阶段名 | ||
├─intervalRate | number | 必须 | 收益率 已乘以100 | ||
├─intervalShow | string | 必须 | 展示 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": {
"intervalList": [
{
"intervalName": "成立以来年化",
"intervalRate": 53.12,
"intervalShow": "成立以来年化 53.12%"
},
{
"intervalName": "近6月",
"intervalRate": 36.81,
"intervalShow": "近6月 36.81%"
},
{
"intervalName": "近3月",
"intervalRate": 27.16,
"intervalShow": "近3月 27.16%"
},
{
"intervalName": "近1月",
"intervalRate": 1.87,
"intervalShow": "近1月 1.87%"
},
{
"intervalName": "近1周",
"intervalRate": -5.1,
"intervalShow": "近1周 -5.10%"
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
获取基金行情信息
基本信息
Path: /Mp2cService/getFundBaseInfo
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
FundCode | text | 是 | 基金代码 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object [] | 非必须 | 数据集 | item 类型: object | |
├─fundIncomeOneWeek | string | 非必须 | 收益率(近一周) | ||
├─fundIncomeOneMonth | string | 非必须 | 收益率(近一月) | ||
├─fundIncomeThreeMonth | string | 非必须 | 收益率(近三月) | ||
├─fundIncomeSixMonth | string | 非必须 | 收益率(近六月) | ||
├─fundIncomeOneYear | string | 非必须 | 收益率(近一年) | ||
├─fundIncomeTwoYear | string | 非必须 | 收益率(近两年) | ||
├─fundIncomeThreeYear | string | 非必须 | 收益率(近三年) | ||
├─fundIncomeFiveYear | string | 非必须 | 收益率(近五年) | ||
├─fundIncomeRecentYear | string | 非必须 | 收益率(今年来) | ||
├─fundIncomeFounded | string | 非必须 | 收益率(成立来) | ||
├─profitOneMonth | string | 非必须 | 盈利概率(近一月) | ||
├─profitThreeMonth | string | 非必须 | 盈利概率(近三月) | ||
├─profitSixMonth | string | 非必须 | 盈利概率(近六月) | ||
├─profitOneYear | string | 非必须 | 盈利概率(近一年) | ||
├─maxFundRetrace | string | 非必须 | 近1年最大回撤 | ||
├─saleNum | string | 非必须 | 近1月销售笔数 | ||
├─accumulatedNet | string | 非必须 | 累计净值(7日年化) | ||
├─unitNet | string | 非必须 | 单位净值(万份收益) | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": {
"fundIncomeOneWeek": "-0.3792",
"fundIncomeOneMonth": "-0.3792",
"fundIncomeThreeMonth": "-0.3792",
"fundIncomeSixMonth": "-0.3792",
"fundIncomeOneYear": "-0.3792",
"fundIncomeTwoYear": "-0.3792",
"fundIncomeThreeYear": "-0.3792",
"fundIncomeFiveYear": "-0.3792",
"fundIncomeRecentYear": "-0.3792",
"fundIncomeFounded": "-0.3792",
"profitOneMonth": "66.8",
"profitThreeMonth": "66.8",
"profitSixMonth": "66.8",
"profitOneYear": "66.8",
"maxFundRetrace": "-15.11",
"saleNum": "543.0",
"accumulatedNet": "1.49",
"unitNet": "1.146",
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
获取基金信息
基本信息
Path: /Mp2cService/getFundInfo
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
OpenId | text | 是 | 三方用户编号 | |
FundCodes | text | 是 | 000001,000003 | 基金编码 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object [] | 非必须 | 数据集 | item 类型: object | |
├─fundCode | string | 非必须 | 基金编码 | ||
├─fundName | string | 非必须 | 基金名称 | ||
├─netAssets | decimal | 非必须 | 单位净值 | ||
├─dailyIncrease | decimal | 非必须 | 日涨跌幅 | ||
├─annualizedRate | decimal | 非必须 | 七日年化 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": [
{
"fundCode": "000001",
"fundName": "华夏成长混合",
"netAssets": 1.032,
"dailyIncrease": 0.1,
"annualizedRate": 3.593
},
{
"fundCode": "000003",
"fundName": "中海可转债债券A",
"netAssets": 0.877,
"dailyIncrease": -2.99,
"annualizedRate": 1.087
}
]
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
获取定投信息
基本信息
Path: /Mp2cService/getrationPlanList
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
OpenId | text | 是 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object | 非必须 | 数据集 | item 类型: object | |
dataSource | object [] | 非必须 | 数据集 | item 类型: object | |
├─fundCode | string | 非必须 | 基金编码 | ||
├─applyAmount | decimal | 非必须 | 申请金额 | ||
├─beginDate | string | 非必须 | 启用日期 | ||
├─takeProfitDate | string | 非必须 | 达标日期 | ||
├─payResult | string | 非必须 | 支付结果 | 0 受理成功支付成功, 1 受理成功支付失败, 2 受理失败 | |
├─planName | string | 非必须 | 计划名称 | ||
├─planState | int | 非必须 | 计划状态 | ||
├─planType | string | 非必须 | 计划类型 | 0普通定投,1智慧定投,2组合定投 | |
├─succesSTerms | int | 非必须 | 已经成功执行的期数 | ||
├─totalSuccessAmount | decimal | 非必须 | 累计定投金额 | ||
├─inputParamJson | object | 非必须 | 附加参数 | ||
─├─takeProfitTimes | int | 非必须 | 达标次数 >0说明达标 | ||
├─totalprofitValue | decimal | 非必须 | 累计收益 | ||
├─totalprofitValueZero | decimal | 非必须 | 累计止盈收益 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": {
"dataSource": [
{
"fundCode": "110011",
"applyAmount": 1224,
"beginDate": "2021-04-30",
"takeProfitDate": "",
"payResult": "",
"planName": "",
"planState": 0,
"planType": "1",
"succesSTerms": 0,
"totalSuccessAmount": 0,
"inputParamJson": {
"takeProfitTimes": 0
}
},
{
"fundCode": "110011",
"applyAmount": 124,
"beginDate": "2021-04-30",
"takeProfitDate": "",
"payResult": "",
"planName": "",
"planState": 0,
"planType": "1",
"succesSTerms": 0,
"totalSuccessAmount": 0,
"inputParamJson": {
"takeProfitTimes": 0
}
}
],
"totalprofitValue": 0,
"totalprofitValueZero": 0
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
获取普通定投信息
基本信息
Path: /Mp2cService/getgeneralrationPlanList
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
OpenId | text | 是 | 三方用户编号 | |
refer | text | 是 | 来源 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object [] | 非必须 | 数据集 | item 类型: object | |
├─fundCode | string | 非必须 | 基金编码 | ||
├─applyAmount | decimal | 非必须 | 定投金额 | ||
├─nextWorkDate | string | 非必须 | 扣款时间 | ||
├─planName | string | 非必须 | 定投名称 | ||
├─planState | number | 非必须 | 状态 | ||
├─planType | number | 非必须 | 定投类型 | ||
├─succesSTerms | number | 非必须 | 定投期数 | ||
├─totalSuccessAmount | decimal | 非必须 | 累计金额 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": [
{
"fundCode": "001001",
"applyAmount": 100,
"nextWorkDate": "2021-06-30",
"planName": "",
"planState": 1,
"planType": "0",
"succesSTerms": 0,
"totalSuccessAmount": 0
},
{
"fundCode": "481010",
"applyAmount": 521.31,
"nextWorkDate": "2021-06-09",
"planName": "",
"planState": 0,
"planType": "0",
"succesSTerms": 0,
"totalSuccessAmount": 0
},
{
"fundCode": "481010",
"applyAmount": 521.31,
"nextWorkDate": "2021-06-09",
"planName": "",
"planState": 0,
"planType": "0",
"succesSTerms": 0,
"totalSuccessAmount": 0
}
]
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
获取全部板块行情
基本信息
Path: /Mp2cService/getAllIndustryData
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
DateType | text | 是 | 1 近1日,2 近3日,3 近5日,4 近3月,5 近1年 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object [] | 非必须 | 数据集 | item 类型: object | |
├─BOARD_CODE | string | 非必须 | 板块编码 | ||
├─BOARD_NAME | string | 非必须 | 板块名称 | ||
├─ADD_MARKET_CAP | decimal | 非必须 | 增持市值 | ||
├─CHANGE_RATE | decimal | 非必须 | 对应指数涨跌幅 | ||
├─TRADE_DATE | string | 非必须 | 交易日期 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": [
{
"BOARD_CODE": "011006",
"BOARD_NAME": "电子",
"ADD_MARKET_CAP": 3239273362.7918,
"CHANGE_RATE": 4.9515,
"TRADE_DATE": "2020-07-06 00:00:00"
},
{
"BOARD_CODE": "011005",
"BOARD_NAME": "有色金属",
"ADD_MARKET_CAP": 1367624449.5869,
"CHANGE_RATE": 6.0678,
"TRADE_DATE": "2020-07-06 00:00:00"
},
{
"BOARD_CODE": "011003",
"BOARD_NAME": "化工",
"ADD_MARKET_CAP": 1339450597.7239,
"CHANGE_RATE": 3.9499,
"TRADE_DATE": "2020-07-06 00:00:00"
},
{
"BOARD_CODE": "011008",
"BOARD_NAME": "家用电器",
"ADD_MARKET_CAP": 1232319980.9408,
"CHANGE_RATE": 3.7034,
"TRADE_DATE": "2020-07-06 00:00:00"
},
{
"BOARD_CODE": "011028",
"BOARD_NAME": "通信",
"ADD_MARKET_CAP": 867512727.47324,
"CHANGE_RATE": 4.625,
"TRADE_DATE": "2020-07-06 00:00:00"
},
{
"BOARD_CODE": "011004",
"BOARD_NAME": "钢铁",
"ADD_MARKET_CAP": 740722047.7151,
"CHANGE_RATE": 5.2531,
"TRADE_DATE": "2020-07-06 00:00:00"
},
。。。。。。
]
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
获取前三板块行情
基本信息
Path: /Mp2cService/getTopIndustryData
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
DateType | text | 是 | 1 近1日,2 近3日,3 近5日,4 近3月,5 近1年 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object [] | 非必须 | 数据集 | item 类型: object | |
├─BOARD_CODE | string | 非必须 | 板块编码 | ||
├─BOARD_NAME | string | 非必须 | 板块名称 | ||
├─ADD_MARKET_CAP | decimal | 非必须 | 增持市值 | ||
├─CHANGE_RATE | decimal | 非必须 | 对应指数涨跌幅 | ||
├─TRADE_DATE | string | 非必须 | 交易日期 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": [
{
"BOARD_CODE": "011006",
"BOARD_NAME": "电子",
"ADD_MARKET_CAP": 3239273362.7918,
"CHANGE_RATE": 4.9515,
"TRADE_DATE": "2020-07-06 00:00:00"
},
{
"BOARD_CODE": "011005",
"BOARD_NAME": "有色金属",
"ADD_MARKET_CAP": 1367624449.5869,
"CHANGE_RATE": 6.0678,
"TRADE_DATE": "2020-07-06 00:00:00"
},
{
"BOARD_CODE": "011003",
"BOARD_NAME": "化工",
"ADD_MARKET_CAP": 1339450597.7239,
"CHANGE_RATE": 3.9499,
"TRADE_DATE": "2020-07-06 00:00:00"
}
]
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
获取指数区间行情
基本信息
Path: /Mp2cService/getIndexMarketDataDuring
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
codes | text | 是 | 指数编号 多个以逗号分隔 | |
begin | text | 是 | 开始日期 格式yyyy-MM-dd | |
end | text | 是 | 结束日期 格式yyyy-MM-dd |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object[] | 非必须 | 数据集 | item 类型: object | |
├─indexCode | string | 非必须 | 指数 | ||
├─indexName | string | 非必须 | 指数名 | ||
├─pDate | string | 非必须 | 指数时间 | ||
├─pb | string | 非必须 | 市净率 | ||
├─pe | string | 非必须 | 市盈率 | ||
├─gxljt | string | 非必须 | 股息率 | ||
├─chgrt | string | 非必须 | 日涨幅 | ||
├─percentPrice | string | 非必须 | 收盘价 | ||
├─pettm | string | 非必须 | 动态市盈率 | ||
├─tradeAmount | string | 非必须 | 交易金额 | ||
├─pettm100 | string | 非必须 | pe排名 | ||
├─pb100 | string | 非必须 | pb排名 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": [
{
"indexCode": "AU9999",
"indexName": "黄金9999",
"pDate": "2005-07-04 00:00:00",
"pb": null,
"pe": null,
"gxljt": null,
"chgrt": "-1.2741",
"percentPrice": "113.9100",
"pettm": null,
"tradeAmount": null,
"pettm100": null,
"pb100": null
},
{
"indexCode": "MSC235",
"indexName": "美国REIT",
"pDate": "2005-07-04 00:00:00",
"pb": null,
"pe": null,
"gxljt": null,
"chgrt": "0",
"percentPrice": "824.9733",
"pettm": null,
"tradeAmount": null,
"pettm100": null,
"pb100": null
}
]
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
订阅财富号
基本信息
Path: /Mp2cService/subscribeCFH
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
CFHId | text | 是 | 财富号id | |
OpenId | text | 是 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | string | 非必须 | 数据集 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": ""
}
2
3
4
5
6
取消订阅财富号
基本信息
Path: /Mp2cService/unsubscribeCFH
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
CFHId | text | 是 | 财富号id | |
OpenId | text | 是 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | string | 非必须 | 数据集 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": ""
}
2
3
4
5
6
是否订阅财富号
基本信息
Path: /Mp2cService/issubscribeCFH
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
CFHIds | text | 是 | 财富号id,‘,’分隔 | |
OpenId | text | 是 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object | 非必须 | 数据集 | Dictionary | |
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": {
"123421": false,
"249258": false
}
}
2
3
4
5
6
7
8
9
投顾基础信息
基本信息
Path: /Mp2cService/getIAInfo
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
tgCode | text | 是 | 投顾id,多个的话 逗号,分隔 | |
OpenId | text | 否 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object[] | 非必须 | 数据集 | ||
SYL_D | string | 非必须 | 日涨幅 | ||
ANNSYL_LN | string | 非必须 | 成立以来年化收益率 | ||
SYL_SN | string | 非必须 | 组合收益率 | ||
STARTTIME | string | 非必须 | 销售起始时间 | ||
ENDTIME | string | 非必须 | 销售截止时间 | ||
TGNAME | string | 非必须 | 策略名 | ||
TGCODE | string | 非必须 | 策略ID | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": [
{
"TGCODEOLD": "SF1014",
"SYL_D": "0.08",
"ANNSYL_LN": "14.19",
"SYL_SN": 3.87,
"STARTTIME": "1562169600000",
"ENDTIME": "1562170600000",
"TARGETANNYIELD": "",
"TGNAME": "指数轮动组合",
"TGCODE": "SF1014"
}
]
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
投顾提醒订阅
基本信息
Path: /Mp2cService/setfundremind
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
tgCode | text | 是 | 投顾id | |
OpenId | text | 否 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | string | 非必须 | 数据集 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": ""
}
2
3
4
5
6
投顾提醒取消
基本信息
Path: /Mp2cService/cancelfundremind
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
tgCode | text | 是 | 投顾id | |
OpenId | text | 否 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | string | 非必须 | 数据集 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": ""
}
2
3
4
5
6
投顾提醒查询
基本信息
Path: /Mp2cService/queryfundremind
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 秘钥 | |
AppId | text | 是 | 小程序id | |
tgCode | text | 是 | 投顾id | |
OpenId | text | 否 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | string | 非必须 | 数据集 | ||
- setvalue | string | 非必须 | 已订阅 | ||
- tgCode | string | 非必须 | 投顾code | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": {
"setvalue": "TRUE",
"tgCode": "HSABN0P"
}
}
2
3
4
5
6
7
8
9
用户持仓信息
基本信息
Path: /Mp2cService/getFundPosition
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/x-www-form-urlencoded | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Token | text | 是 | 凭据 | |
AppId | text | 是 | 小程序id | |
FundCode | text | 是 | 基金编号 | |
OpenId | text | 是 | 三方用户编号 |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
datas | object[] | 非必须 | 数据集 | ||
IdentityNo | string | 非必须 | 身份证编号 | ||
CustName | string | 非必须 | 用户姓名 | ||
Ishold | bool | 非必须 | 是否持仓 | ||
resultCode | number | 非必须 | 结果标志位 | ||
resultMessage | string | 非必须 | 结果信息 |
{
"resultCode": 1,
"resultMessage": "成功",
"datas": [
{
"IdentityNo": "+D5ef7GxhhhC3e1kJ6sHfg==",
"CustName": "+D5ef7GxhhhC3e1kJ6sHfg==",
"Ishold": true
}
]
}
2
3
4
5
6
7
8
9
10
11
12
← 开放跳转链接