|
|
@@ -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: "指数基本信息",
|
|
|
@@ -54,18 +54,18 @@ const indexApiList = [
|
|
|
code: 304,
|
|
|
message: "非法签名"
|
|
|
},
|
|
|
- {
|
|
|
- key: "13",
|
|
|
- type: "时间/时间段输入错误",
|
|
|
- code: "305",
|
|
|
- message: "时间/时间段错误"
|
|
|
- },
|
|
|
- {
|
|
|
- key: "14",
|
|
|
- type: "复权码输入错误",
|
|
|
- code: "306",
|
|
|
- message: "复权码错误"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "13",
|
|
|
+ // type: "时间/时间段输入错误",
|
|
|
+ // code: "305",
|
|
|
+ // message: "时间/时间段错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "15",
|
|
|
type: "code未输入,参数为空",
|
|
|
@@ -78,24 +78,24 @@ const indexApiList = [
|
|
|
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: "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: "服务器错误",
|
|
|
@@ -196,18 +196,18 @@ const indexApiList = [
|
|
|
code: 304,
|
|
|
message: "非法签名"
|
|
|
},
|
|
|
- {
|
|
|
- key: "13",
|
|
|
- type: "时间/时间段输入错误",
|
|
|
- code: "305",
|
|
|
- message: "时间/时间段错误"
|
|
|
- },
|
|
|
- {
|
|
|
- key: "14",
|
|
|
- type: "复权码输入错误",
|
|
|
- code: "306",
|
|
|
- message: "复权码错误"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "13",
|
|
|
+ // type: "时间/时间段输入错误",
|
|
|
+ // code: "305",
|
|
|
+ // message: "时间/时间段错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "15",
|
|
|
type: "code未输入,参数为空",
|
|
|
@@ -220,24 +220,24 @@ const indexApiList = [
|
|
|
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: "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: "服务器错误",
|
|
|
@@ -371,12 +371,12 @@ const indexApiList = [
|
|
|
code: "305",
|
|
|
message: "时间/时间段错误"
|
|
|
},
|
|
|
- {
|
|
|
- key: "14",
|
|
|
- type: "复权码输入错误",
|
|
|
- code: "306",
|
|
|
- message: "复权码错误"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "15",
|
|
|
type: "code未输入,参数为空",
|
|
|
@@ -395,18 +395,18 @@ const indexApiList = [
|
|
|
code: "309",
|
|
|
message: "order参数错误"
|
|
|
},
|
|
|
- {
|
|
|
- key: "18",
|
|
|
- type: "traceback_days输入有误",
|
|
|
- code: "310",
|
|
|
- message: "traceback_days参数错误"
|
|
|
- },
|
|
|
- {
|
|
|
- key: "4",
|
|
|
- type: "返回数据为空",
|
|
|
- code: 401,
|
|
|
- message: "指数数据为空"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "18",
|
|
|
+ // type: "traceback_days输入有误",
|
|
|
+ // code: "310",
|
|
|
+ // message: "traceback_days参数错误"
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // key: "4",
|
|
|
+ // type: "返回数据为空",
|
|
|
+ // code: 401,
|
|
|
+ // message: "指数数据为空"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "5",
|
|
|
type: "服务器错误",
|
|
|
@@ -541,12 +541,12 @@ const indexApiList = [
|
|
|
code: "305",
|
|
|
message: "时间/时间段错误"
|
|
|
},
|
|
|
- {
|
|
|
- key: "14",
|
|
|
- type: "复权码输入错误",
|
|
|
- code: "306",
|
|
|
- message: "复权码错误"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "15",
|
|
|
type: "code未输入,参数为空",
|
|
|
@@ -571,12 +571,12 @@ const indexApiList = [
|
|
|
code: "310",
|
|
|
message: "traceback_days参数错误"
|
|
|
},
|
|
|
- {
|
|
|
- key: "4",
|
|
|
- type: "返回数据为空",
|
|
|
- code: 401,
|
|
|
- message: "指数数据为空"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "4",
|
|
|
+ // type: "返回数据为空",
|
|
|
+ // code: 401,
|
|
|
+ // message: "指数数据为空"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "5",
|
|
|
type: "服务器错误",
|
|
|
@@ -683,12 +683,12 @@ const indexApiList = [
|
|
|
code: "305",
|
|
|
message: "时间/时间段错误"
|
|
|
},
|
|
|
- {
|
|
|
- key: "14",
|
|
|
- type: "复权码输入错误",
|
|
|
- code: "306",
|
|
|
- message: "复权码错误"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // key: "14",
|
|
|
+ // type: "复权码输入错误",
|
|
|
+ // code: "306",
|
|
|
+ // message: "复权码错误"
|
|
|
+ // },
|
|
|
{
|
|
|
key: "15",
|
|
|
type: "code未输入,参数为空",
|
|
|
@@ -701,23 +701,29 @@ const indexApiList = [
|
|
|
code: "308",
|
|
|
message: "方法名错误"
|
|
|
},
|
|
|
- {
|
|
|
- key: "17",
|
|
|
- type: "order输入错误",
|
|
|
- code: "309",
|
|
|
- message: "order参数错误"
|
|
|
- },
|
|
|
- {
|
|
|
- key: "18",
|
|
|
- type: "traceback_days输入有误",
|
|
|
- code: "310",
|
|
|
- message: "traceback_days参数错误"
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // 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: "服务器错误"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
@@ -773,59 +779,65 @@ const indexApiList = [
|
|
|
}
|
|
|
],
|
|
|
errorResult: [
|
|
|
- {
|
|
|
- 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: "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: "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: "服务器错误"
|
|
|
}
|
|
|
]
|
|
|
}
|