代码拉取完成,页面将自动刷新
{
"id": "06b67547-466b-4731-97cc-9ebf36fa4010",
"name": "match",
"description": "",
"auth": null,
"events": null,
"variables": [],
"order": [
"4214e279-f769-4f6e-a6f8-20fd9c3296ed",
"2f984a3a-05da-425a-af40-db03a4fc7452",
"10657bbc-984f-45f3-83b6-f7ab87fea174",
"aa28a8b3-097b-4c6f-b2db-f925b3d7a5db"
],
"folders_order": [],
"protocolProfileBehavior": {},
"folders": [],
"requests": [
{
"id": "10657bbc-984f-45f3-83b6-f7ab87fea174",
"name": "清空redis db",
"url": "{{match}}?params={\"type\":\"empty\",\"data\":0}",
"description": "",
"data": [],
"dataOptions": null,
"dataMode": "urlencoded",
"headerData": [
{
"key": "sign",
"value": "{{sign}}",
"description": "",
"type": "text",
"enabled": true
},
{
"key": "timestamp",
"value": "{{$timestamp}}",
"description": "",
"type": "text",
"enabled": true
}
],
"method": "GET",
"pathVariableData": [],
"queryParams": [
{
"key": "params",
"value": "{\"type\":\"empty\",\"data\":0}",
"equals": true,
"description": "",
"enabled": true
}
],
"auth": null,
"events": [
{
"listen": "prerequest",
"script": {
"id": "e2dbfc61-7056-4cee-9bee-0ad47652000b",
"exec": [
"// var params = request.data;",
"// //body中参数放入数组",
"// var list = [params.name,params.age];",
"// console.log(\"list ---->\" + list);",
"// list.sort();",
"// console.log(\"list ---->\" + list);",
"// //字段重新组装拼接",
"// var tmp='';",
"// for(var i=0;i<list.length;i++){",
"// tmp += list[i];",
"// }",
"// console.log(\"tmp ---->\" + tmp);",
"// var signHmacSHA1=CryptoJS.SHA1(tmp).toString(CryptoJS.enc.Hex).toUpperCase();",
"// postman.setGlobalVariable(\"sign\", signHmacSHA1);",
"",
"timestamp=Math.round(new Date().getTime() / 1000).toString();",
"",
"",
"var tmp = timestamp + '123+#'",
"",
"console.log(\"str ---->\" + tmp);",
"",
"var sign = CryptoJS.SHA1(tmp).toString().toUpperCase();",
"console.log(\"sign ---->\" + sign);",
"",
"postman.setGlobalVariable(\"sign\", sign);",
"",
"",
""
],
"type": "text/javascript"
}
}
],
"folder": null,
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"headers": "sign: {{sign}}\ntimestamp: {{$timestamp}}\n",
"pathVariables": {}
},
{
"id": "2f984a3a-05da-425a-af40-db03a4fc7452",
"name": "盘口",
"url": "{{match}}?params={\"type\":\"handicap\",\"data\":{\"market\":\"BTC/USDT\",\"slice\":\"50\"}}",
"description": "",
"data": [],
"dataOptions": null,
"dataMode": "urlencoded",
"headerData": [
{
"key": "sign",
"value": "{{sign}}",
"description": "",
"type": "text",
"enabled": true
},
{
"key": "timestamp",
"value": "{{$timestamp}}",
"description": "",
"type": "text",
"enabled": true
}
],
"method": "GET",
"pathVariableData": [],
"queryParams": [
{
"key": "params",
"value": "{\"type\":\"handicap\",\"data\":{\"market\":\"BTC/USDT\",\"slice\":\"50\"}}",
"equals": true,
"description": "",
"enabled": true
}
],
"auth": null,
"events": [
{
"listen": "prerequest",
"script": {
"id": "e2dbfc61-7056-4cee-9bee-0ad47652000b",
"exec": [
"// var params = request.data;",
"// //body中参数放入数组",
"// var list = [params.name,params.age];",
"// console.log(\"list ---->\" + list);",
"// list.sort();",
"// console.log(\"list ---->\" + list);",
"// //字段重新组装拼接",
"// var tmp='';",
"// for(var i=0;i<list.length;i++){",
"// tmp += list[i];",
"// }",
"// console.log(\"tmp ---->\" + tmp);",
"// var signHmacSHA1=CryptoJS.SHA1(tmp).toString(CryptoJS.enc.Hex).toUpperCase();",
"// postman.setGlobalVariable(\"sign\", signHmacSHA1);",
"",
"timestamp=Math.round(new Date().getTime() / 1000).toString();",
"",
"",
"var tmp = timestamp + '123+#'",
"",
"console.log(\"str ---->\" + tmp);",
"",
"var sign = CryptoJS.SHA1(tmp).toString().toUpperCase();",
"console.log(\"sign ---->\" + sign);",
"",
"postman.setGlobalVariable(\"sign\", sign);",
"",
"",
""
],
"type": "text/javascript"
}
}
],
"folder": null,
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"headers": "sign: {{sign}}\ntimestamp: {{$timestamp}}\n",
"pathVariables": {}
},
{
"id": "4214e279-f769-4f6e-a6f8-20fd9c3296ed",
"name": "下单",
"url": "{{match}}?params={\"type\":\"order\",\"data\":{\"type\":\"limit\",\"side\":\"ask\",\"quantity\":5,\"price\":0.01,\"market\":\"BTC\\/USDT\",\"user_id\":1,\"order_id\":100001}}",
"description": "",
"data": [],
"dataOptions": null,
"dataMode": "urlencoded",
"headerData": [
{
"key": "sign",
"value": "{{sign}}",
"description": "",
"type": "text",
"enabled": true
},
{
"key": "timestamp",
"value": "{{$timestamp}}",
"description": "",
"type": "text",
"enabled": true
}
],
"method": "GET",
"pathVariableData": [],
"queryParams": [
{
"key": "params",
"value": "{\"type\":\"order\",\"data\":{\"type\":\"limit\",\"side\":\"ask\",\"quantity\":5,\"price\":0.01,\"market\":\"BTC\\/USDT\",\"user_id\":1,\"order_id\":100001}}",
"equals": true,
"description": "",
"enabled": true
}
],
"auth": null,
"events": [
{
"listen": "prerequest",
"script": {
"id": "e2dbfc61-7056-4cee-9bee-0ad47652000b",
"exec": [
"// var params = request.data;",
"// //body中参数放入数组",
"// var list = [params.name,params.age];",
"// console.log(\"list ---->\" + list);",
"// list.sort();",
"// console.log(\"list ---->\" + list);",
"// //字段重新组装拼接",
"// var tmp='';",
"// for(var i=0;i<list.length;i++){",
"// tmp += list[i];",
"// }",
"// console.log(\"tmp ---->\" + tmp);",
"// var signHmacSHA1=CryptoJS.SHA1(tmp).toString(CryptoJS.enc.Hex).toUpperCase();",
"// postman.setGlobalVariable(\"sign\", signHmacSHA1);",
"",
"timestamp=Math.round(new Date().getTime() / 1000).toString();",
"",
"",
"var tmp = timestamp + '123+#'",
"",
"console.log(\"str ---->\" + tmp);",
"",
"var sign = CryptoJS.SHA1(tmp).toString().toUpperCase();",
"console.log(\"sign ---->\" + sign);",
"",
"postman.setGlobalVariable(\"sign\", sign);",
"",
"",
""
],
"type": "text/javascript"
}
}
],
"folder": null,
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"headers": "sign: {{sign}}\ntimestamp: {{$timestamp}}\n",
"pathVariables": {}
},
{
"id": "aa28a8b3-097b-4c6f-b2db-f925b3d7a5db",
"name": "取消订单",
"url": "{{match}}?params={\"type\":\"cancel\",\"data\":{\"side\":\"ask\",\"market\":\"BTC\\/USDT\",\"order_id\":100410846}}",
"description": "",
"data": [],
"dataOptions": null,
"dataMode": "urlencoded",
"headerData": [
{
"key": "sign",
"value": "{{sign}}",
"description": "",
"type": "text",
"enabled": true
},
{
"key": "timestamp",
"value": "{{$timestamp}}",
"description": "",
"type": "text",
"enabled": true
}
],
"method": "GET",
"pathVariableData": [],
"queryParams": [
{
"key": "params",
"value": "{\"type\":\"cancel\",\"data\":{\"side\":\"ask\",\"market\":\"BTC\\/USDT\",\"order_id\":100410846}}",
"equals": true,
"description": "",
"enabled": true
}
],
"auth": null,
"events": [
{
"listen": "prerequest",
"script": {
"id": "e2dbfc61-7056-4cee-9bee-0ad47652000b",
"exec": [
"// var params = request.data;",
"// //body中参数放入数组",
"// var list = [params.name,params.age];",
"// console.log(\"list ---->\" + list);",
"// list.sort();",
"// console.log(\"list ---->\" + list);",
"// //字段重新组装拼接",
"// var tmp='';",
"// for(var i=0;i<list.length;i++){",
"// tmp += list[i];",
"// }",
"// console.log(\"tmp ---->\" + tmp);",
"// var signHmacSHA1=CryptoJS.SHA1(tmp).toString(CryptoJS.enc.Hex).toUpperCase();",
"// postman.setGlobalVariable(\"sign\", signHmacSHA1);",
"",
"timestamp=Math.round(new Date().getTime() / 1000).toString();",
"",
"",
"var tmp = timestamp + '123+#'",
"",
"console.log(\"str ---->\" + tmp);",
"",
"var sign = CryptoJS.SHA1(tmp).toString().toUpperCase();",
"console.log(\"sign ---->\" + sign);",
"",
"postman.setGlobalVariable(\"sign\", sign);",
"",
"",
""
],
"type": "text/javascript"
}
}
],
"folder": null,
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"headers": "sign: {{sign}}\ntimestamp: {{$timestamp}}\n",
"pathVariables": {}
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。