|
|
@@ -1,5 +1,5 @@
|
|
|
-const _url = "http://bn-data.xazhima.com/api/v1.0/demo/";
|
|
|
-const _sdk = "http://bn-data.xazhima.com/sdk/";
|
|
|
+const _url = "http://data.boniulianghua.com/api/v1.0/demo/";
|
|
|
+const _sdk = "http://data.boniulianghua.com/sdk/";
|
|
|
const indexApiList = [
|
|
|
{
|
|
|
name: "指数基本信息",
|
|
|
@@ -44,9 +44,9 @@ const indexApiList = [
|
|
|
errorResult: [
|
|
|
{
|
|
|
key: "1",
|
|
|
- type: "股票代码错误",
|
|
|
+ type: "指数代码错误",
|
|
|
code: 301,
|
|
|
- message: "股票代码不存在/错误"
|
|
|
+ message: "指数代码不存在/错误"
|
|
|
},
|
|
|
{
|
|
|
key: "3",
|
|
|
@@ -54,12 +54,48 @@ const indexApiList = [
|
|
|
code: 304,
|
|
|
message: "非法签名"
|
|
|
},
|
|
|
- {
|
|
|
- key: "4",
|
|
|
- type: "返回数据为空",
|
|
|
- code: 401,
|
|
|
- message: "股票数据为空"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "13",
|
|
|
+ // type: "时间/时间段输入错误",
|
|
|
+ // code: "305",
|
|
|
+ // message: "时间/时间段错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ key: "15",
|
|
|
+ type: "code未输入,参数为空",
|
|
|
+ code: "307",
|
|
|
+ message: "code参数不能为空"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "16",
|
|
|
+ type: "方法名输入错误",
|
|
|
+ code: "308",
|
|
|
+ message: "方法名错误"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // key: "17",
|
|
|
+ // type: "order输入错误",
|
|
|
+ // code: "309",
|
|
|
+ // message: "order参数错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "18",
|
|
|
+ // type: "traceback_days输入有误",
|
|
|
+ // code: "310",
|
|
|
+ // message: "traceback_days参数错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "4",
|
|
|
+ // type: "返回数据为空",
|
|
|
+ // code: 401,
|
|
|
+ // message: "指数数据为空"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "5",
|
|
|
type: "服务器错误",
|
|
|
@@ -150,9 +186,9 @@ const indexApiList = [
|
|
|
errorResult: [
|
|
|
{
|
|
|
key: "1",
|
|
|
- type: "股票代码错误",
|
|
|
+ type: "指数代码错误",
|
|
|
code: 301,
|
|
|
- message: "股票代码不存在/错误"
|
|
|
+ message: "指数代码不存在/错误"
|
|
|
},
|
|
|
{
|
|
|
key: "3",
|
|
|
@@ -160,12 +196,48 @@ const indexApiList = [
|
|
|
code: 304,
|
|
|
message: "非法签名"
|
|
|
},
|
|
|
- {
|
|
|
- key: "4",
|
|
|
- type: "返回数据为空",
|
|
|
- code: 401,
|
|
|
- message: "股票数据为空"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "13",
|
|
|
+ // type: "时间/时间段输入错误",
|
|
|
+ // code: "305",
|
|
|
+ // message: "时间/时间段错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ key: "15",
|
|
|
+ type: "code未输入,参数为空",
|
|
|
+ code: "307",
|
|
|
+ message: "code参数不能为空"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "16",
|
|
|
+ type: "方法名输入错误",
|
|
|
+ code: "308",
|
|
|
+ message: "方法名错误"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // key: "17",
|
|
|
+ // type: "order输入错误",
|
|
|
+ // code: "309",
|
|
|
+ // message: "order参数错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "18",
|
|
|
+ // type: "traceback_days输入有误",
|
|
|
+ // code: "310",
|
|
|
+ // message: "traceback_days参数错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "4",
|
|
|
+ // type: "返回数据为空",
|
|
|
+ // code: 401,
|
|
|
+ // message: "指数数据为空"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "5",
|
|
|
type: "服务器错误",
|
|
|
@@ -283,9 +355,9 @@ const indexApiList = [
|
|
|
errorResult: [
|
|
|
{
|
|
|
key: "1",
|
|
|
- type: "股票代码错误",
|
|
|
+ type: "指数代码错误",
|
|
|
code: 301,
|
|
|
- message: "股票代码不存在/错误"
|
|
|
+ message: "指数代码不存在/错误"
|
|
|
},
|
|
|
{
|
|
|
key: "3",
|
|
|
@@ -294,11 +366,47 @@ const indexApiList = [
|
|
|
message: "非法签名"
|
|
|
},
|
|
|
{
|
|
|
- key: "4",
|
|
|
- type: "返回数据为空",
|
|
|
- code: 401,
|
|
|
- message: "股票数据为空"
|
|
|
- },
|
|
|
+ key: "13",
|
|
|
+ type: "时间/时间段输入错误",
|
|
|
+ code: "305",
|
|
|
+ message: "时间/时间段错误"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ key: "15",
|
|
|
+ type: "code未输入,参数为空",
|
|
|
+ code: "307",
|
|
|
+ message: "code参数不能为空"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "16",
|
|
|
+ type: "方法名输入错误",
|
|
|
+ code: "308",
|
|
|
+ message: "方法名错误"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "17",
|
|
|
+ type: "order输入错误",
|
|
|
+ code: "309",
|
|
|
+ message: "order参数错误"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // key: "18",
|
|
|
+ // type: "traceback_days输入有误",
|
|
|
+ // code: "310",
|
|
|
+ // message: "traceback_days参数错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "4",
|
|
|
+ // type: "返回数据为空",
|
|
|
+ // code: 401,
|
|
|
+ // message: "指数数据为空"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "5",
|
|
|
type: "服务器错误",
|
|
|
@@ -417,9 +525,9 @@ const indexApiList = [
|
|
|
errorResult: [
|
|
|
{
|
|
|
key: "1",
|
|
|
- type: "股票代码错误",
|
|
|
+ type: "指数代码错误",
|
|
|
code: 301,
|
|
|
- message: "股票代码不存在/错误"
|
|
|
+ message: "指数代码不存在/错误"
|
|
|
},
|
|
|
{
|
|
|
key: "3",
|
|
|
@@ -428,11 +536,47 @@ const indexApiList = [
|
|
|
message: "非法签名"
|
|
|
},
|
|
|
{
|
|
|
- key: "4",
|
|
|
- type: "返回数据为空",
|
|
|
- code: 401,
|
|
|
- message: "股票数据为空"
|
|
|
+ key: "13",
|
|
|
+ type: "时间/时间段输入错误",
|
|
|
+ code: "305",
|
|
|
+ message: "时间/时间段错误"
|
|
|
},
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ key: "15",
|
|
|
+ type: "code未输入,参数为空",
|
|
|
+ code: "307",
|
|
|
+ message: "code参数不能为空"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "16",
|
|
|
+ type: "方法名输入错误",
|
|
|
+ code: "308",
|
|
|
+ message: "方法名错误"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "17",
|
|
|
+ type: "order输入错误",
|
|
|
+ code: "309",
|
|
|
+ message: "order参数错误"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "18",
|
|
|
+ type: "traceback_days输入有误",
|
|
|
+ code: "310",
|
|
|
+ message: "traceback_days参数错误"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // key: "4",
|
|
|
+ // type: "返回数据为空",
|
|
|
+ // code: 401,
|
|
|
+ // message: "指数数据为空"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "5",
|
|
|
type: "服务器错误",
|
|
|
@@ -534,10 +678,52 @@ const indexApiList = [
|
|
|
message: "指数数据为空"
|
|
|
},
|
|
|
{
|
|
|
+ key: "13",
|
|
|
+ type: "时间/时间段输入错误",
|
|
|
+ code: "305",
|
|
|
+ message: "时间/时间段错误"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ key: "15",
|
|
|
+ type: "code未输入,参数为空",
|
|
|
+ code: "307",
|
|
|
+ message: "code参数不能为空"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "16",
|
|
|
+ type: "方法名输入错误",
|
|
|
+ code: "308",
|
|
|
+ message: "方法名错误"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // key: "17",
|
|
|
+ // type: "order输入错误",
|
|
|
+ // code: "309",
|
|
|
+ // message: "order参数错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "18",
|
|
|
+ // type: "traceback_days输入有误",
|
|
|
+ // code: "310",
|
|
|
+ // message: "traceback_days参数错误"
|
|
|
+ // },
|
|
|
+ {
|
|
|
key: "3",
|
|
|
type: "签名错误",
|
|
|
code: 401,
|
|
|
message: "非法签名"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "5",
|
|
|
+ type: "服务器错误",
|
|
|
+ code: 501,
|
|
|
+ message: "服务器错误"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
@@ -593,23 +779,65 @@ const indexApiList = [
|
|
|
}
|
|
|
],
|
|
|
errorResult: [
|
|
|
- {
|
|
|
- key: "1",
|
|
|
- type: "交易板块错误",
|
|
|
- code: 302,
|
|
|
- message: "交易板块不存在/错误"
|
|
|
- },
|
|
|
- {
|
|
|
- key: "2",
|
|
|
- type: "所属市场错误",
|
|
|
- code: 303,
|
|
|
- message: "所属市场不存在/错误"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "1",
|
|
|
+ // type: "交易板块错误",
|
|
|
+ // code: 302,
|
|
|
+ // message: "交易板块不存在/错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "2",
|
|
|
+ // type: "所属市场错误",
|
|
|
+ // code: 303,
|
|
|
+ // message: "所属市场不存在/错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "13",
|
|
|
+ // type: "时间/时间段输入错误",
|
|
|
+ // code: "305",
|
|
|
+ // message: "时间/时间段错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "15",
|
|
|
+ // type: "code未输入,参数为空",
|
|
|
+ // code: "307",
|
|
|
+ // message: "code参数不能为空"
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ key: "16",
|
|
|
+ type: "方法名输入错误",
|
|
|
+ code: "308",
|
|
|
+ message: "方法名错误"
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // key: "17",
|
|
|
+ // type: "order输入错误",
|
|
|
+ // code: "309",
|
|
|
+ // message: "order参数错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "18",
|
|
|
+ // type: "traceback_days输入有误",
|
|
|
+ // code: "310",
|
|
|
+ // message: "traceback_days参数错误"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "3",
|
|
|
type: "签名错误",
|
|
|
code: 401,
|
|
|
message: "非法签名"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "5",
|
|
|
+ type: "服务器错误",
|
|
|
+ code: 501,
|
|
|
+ message: "服务器错误"
|
|
|
}
|
|
|
]
|
|
|
}
|