1 Star 6 Fork 3

daling/MatchEngine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
match.postman_collection.json 9.30 KB
一键复制 编辑 原始数据 按行查看 历史
daling 提交于 2020-03-31 13:23 . first commit
{
"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": {}
}
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/lhb929/MatchEngine.git
git@gitee.com:lhb929/MatchEngine.git
lhb929
MatchEngine
MatchEngine
master

搜索帮助