From 06bcb38b45618057b59c3224854a1a9fcbb6ae70 Mon Sep 17 00:00:00 2001 From: "bob.wee" Date: Tue, 8 Aug 2023 17:20:53 +0800 Subject: [PATCH] update Signed-off-by: bob.wee --- index.html | 2 +- static/js/0.b278ffc4d4064d24d558.js | 2 ++ static/js/0.b278ffc4d4064d24d558.js.map | 1 + static/js/0.de6e3d81c63917137301.js | 2 -- static/js/0.de6e3d81c63917137301.js.map | 1 - static/js/app.614d62d6b952657825cb.js | 2 -- static/js/app.614d62d6b952657825cb.js.map | 1 - static/js/app.6912524a2d80e98b52e0.js | 2 ++ static/js/app.6912524a2d80e98b52e0.js.map | 1 + ...d70e5f0dfcac2b09de.js => manifest.a33a986912d2e58c86db.js} | 4 ++-- ...fcac2b09de.js.map => manifest.a33a986912d2e58c86db.js.map} | 2 +- 11 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 static/js/0.b278ffc4d4064d24d558.js create mode 100644 static/js/0.b278ffc4d4064d24d558.js.map delete mode 100644 static/js/0.de6e3d81c63917137301.js delete mode 100644 static/js/0.de6e3d81c63917137301.js.map delete mode 100644 static/js/app.614d62d6b952657825cb.js delete mode 100644 static/js/app.614d62d6b952657825cb.js.map create mode 100644 static/js/app.6912524a2d80e98b52e0.js create mode 100644 static/js/app.6912524a2d80e98b52e0.js.map rename static/js/{manifest.28d70e5f0dfcac2b09de.js => manifest.a33a986912d2e58c86db.js} (87%) rename static/js/{manifest.28d70e5f0dfcac2b09de.js.map => manifest.a33a986912d2e58c86db.js.map} (95%) diff --git a/index.html b/index.html index 00de492f..183b46a0 100644 --- a/index.html +++ b/index.html @@ -172,4 +172,4 @@ .search-results { right: 10px; max-width: 600px; - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/static/js/0.b278ffc4d4064d24d558.js b/static/js/0.b278ffc4d4064d24d558.js new file mode 100644 index 00000000..08b0ee78 --- /dev/null +++ b/static/js/0.b278ffc4d4064d24d558.js @@ -0,0 +1,2 @@ +webpackJsonp([0],{TqGO:function(e,t){},dPpd:function(e,t){},hOG2:function(e,t){},tGzo:function(e,t){},z6YW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s,n,i,r,o,c,l=a("Dd8w"),p=a.n(l),m=a("0xDb"),u=a("Gu7T"),h=a.n(u),d=a("mvHQ"),b=a.n(d),v=a("OvRC"),g=a.n(v),_=a("bOdI"),f=a.n(_),y=(s={},f()(s,m.c.zh,{name:"参数名",type:"类型",required:"是否必填",description:"字段说明"}),f()(s,m.c.tw,{name:"參數名",type:"類型",required:"是否必填",description:"欄位說明"}),f()(s,m.c.en,{name:"Parameter Name",type:"Type",required:"Required",description:"Field Description"}),s),C=(n={},f()(n,m.c.zh,{name:"参数名",description:"字段说明"}),f()(n,m.c.tw,{name:"參數名",description:"欄位說明"}),f()(n,m.c.en,{name:"Parameter Name",description:"Field Description"}),n),T=(i={},f()(i,m.c.zh,{name:"",description:"说明"}),f()(i,m.c.tw,{name:"",description:"說明"}),f()(i,m.c.en,{name:"",description:"description"}),i),x={code:(r={},f()(r,m.c.zh,"复制代码"),f()(r,m.c.tw,"複製代碼"),f()(r,m.c.en,"Copy Code"),r),params:(o={},f()(o,m.c.zh,"复制参数"),f()(o,m.c.tw,"複製參數"),f()(o,m.c.en,"Copy Parameters"),o),txt:(c={},f()(c,m.c.zh,"示例代码"),f()(c,m.c.tw,"示例代碼"),f()(c,m.c.en,"Sample code"),c)},k="request",w="request1",P="request2",M="request3",S="response",E="response1",q="response2",z="response3",j="wssResponse",V="common",D="key1",N="key2",A="key3",$="key4",F="key5",O="key6",R="key7",H="key8",I={name:"Demo",props:{lang:String,item:{type:Object,default:function(){}}},data:function(){return{parmasShowType:1,activeParamsTab:"",paramsTableColumn:[],codeLangConfig:m.d,activeCodeTab:m.d[0].value}},computed:{isTable:function(){return 1===this.parmasShowType},successMsg:function(){return m.m.success[this.lang]},errorMsg:function(){return m.m.error[this.lang]},copyCodeBtnText:function(){return x.code[this.lang]},SampleCodeBtnText:function(){return x.txt[this.lang]},copyParmsBtnText:function(){return x.params[this.lang]},currentMap:function(){return y[this.lang]},currentCommonMap:function(){return T[this.lang]},currentWssMap:function(){return C[this.lang]},requestTableColumns:function(){return[{prop:"name",label:this.currentMap.name},{prop:"type",label:this.currentMap.type},{prop:"required",label:this.currentMap.required},{prop:"description",label:this.currentMap.description}]},commonTableColumns:function(){return[{prop:"name",label:this.currentCommonMap.name},{prop:"description",label:this.currentCommonMap.description}]},wssTableColumns:function(){return[{prop:"name",label:this.currentWssMap.name},{prop:"description",label:this.currentWssMap.description}]},responseTableColumns:function(){return[{prop:"name",label:this.currentMap.name},{prop:"type",label:this.currentMap.type},{prop:"description",label:this.currentMap.description}]},paramsTabs:function(){return Array.isArray(this.item.params)?this.item.params.map(function(e){return{type:e.type,key:e.key}}):[]},jsonParams:function(){var e=this,t=this.item.params.find(function(t){return t.key===e.activeParamsTab}),a=g()(null);return(t?t.data:[]).forEach(function(e){a[e.name]=e.type}),b()(a,null,2)},renderParamsData:function(){var e=this,t=this.item.params.find(function(t){return t.key===e.activeParamsTab});if(this.isTable)return t?t.data:[];var a=g()(null);return(t?t.data:[]).forEach(function(e){a[e.name]=e.type}),this.$hljs.highlight(b()(a,null,2),{language:"json"}).value},code:function(){return this.item.api?Object(m.g)(this.item.api,this.activeCodeTab,this.item.host||"open-api.bingx.com"):"No Code"},demoCode:function(){return this.$hljs.highlight(this.code,{language:this.activeCodeTab}).value}},watch:{activeParamsTab:function(e){this.paramsTableColumn=[].concat(e===k||e===w||e===P||e===M?h()(this.requestTableColumns):e===S||e===E||e===q||e===z?h()(this.responseTableColumns):e===V?h()(this.commonTableColumns):e===D?h()(this.commonTableColumns):e===N?h()(this.commonTableColumns):e===A?h()(this.commonTableColumns):e===$?h()(this.commonTableColumns):e===F?h()(this.commonTableColumns):e===O?h()(this.commonTableColumns):e===R?h()(this.commonTableColumns):e===H?h()(this.commonTableColumns):e===j?h()(this.wssTableColumns):h()(this.responseTableColumns))}},methods:{onCopy:function(){this.$message.success(this.successMsg)},onError:function(){this.$message.success(this.errorMsg)}},created:function(){"demo"===this.item.type&&(this.activeParamsTab=this.paramsTabs[0].key)}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"item-demo-content"},[a("div",[a("div",{staticStyle:{display:"flex"}},[a("div",{staticStyle:{flex:"1"}},[a("el-radio",{attrs:{label:1},model:{value:e.parmasShowType,callback:function(t){e.parmasShowType=t},expression:"parmasShowType"}},[e._v("Table")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.parmasShowType,callback:function(t){e.parmasShowType=t},expression:"parmasShowType"}},[e._v("JSON")])],1),e._v(" "),e.isTable?e._e():a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.jsonParams,expression:"jsonParams",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],attrs:{size:"small"}},[e._v("\n "+e._s(e.copyParmsBtnText)+"\n ")])],1),e._v(" "),a("div",{staticClass:"params-content"},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeParamsTab,callback:function(t){e.activeParamsTab=t},expression:"activeParamsTab"}},e._l(e.paramsTabs,function(t){return a("el-tab-pane",{key:t.key,attrs:{name:t.key,label:t.type}},[e.isTable?a("el-table",{attrs:{data:e.renderParamsData,stripe:"",border:""}},e._l(e.paramsTableColumn,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop,align:"left"}})}),1):a("div",{staticClass:"code-html"},[a("pre",[a("code",{staticClass:"hljs language-json",domProps:{innerHTML:e._s(e.renderParamsData)}})])])],1)}),1)],1)]),e._v(" "),a("div",[a("i",{staticClass:"el-icon-s-opportunity",staticStyle:{color:"#409EFF"}},[e._v(" "+e._s(e.SampleCodeBtnText))]),e._v(" "),a("div",{staticStyle:{display:"flex","flex-direction":"row-reverse"}},[a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.code,expression:"code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],attrs:{size:"small"}},[e._v(e._s(e.copyCodeBtnText))])],1),e._v(" "),a("div",{staticClass:"params-content",staticStyle:{"margin-top":"4px"}},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeCodeTab,callback:function(t){e.activeCodeTab=t},expression:"activeCodeTab"}},e._l(e.codeLangConfig,function(t){return a("el-tab-pane",{key:t.value,attrs:{name:t.value,label:t.label}},[a("div",{staticClass:"code-html demo-code"},[a("pre",[a("code",{class:["hljs","language-"+e.activeCodeTab],domProps:{innerHTML:e._s(e.demoCode)}})])])])}),1)],1)])])},staticRenderFns:[]};var B,G,U,W,Y,J=a("VU/8")(I,L,!1,function(e){a("hOG2")},"data-v-72f99f8e",null).exports,K=(B={},f()(B,m.c.zh,{name:"参数名",type:"类型",required:"是否必填",description:"字段说明"}),f()(B,m.c.tw,{name:"參數名",type:"類型",required:"是否必填",description:"欄位說明"}),f()(B,m.c.en,{name:"Parameter Name",type:"Type",required:"Required",description:"Field Description"}),B),Q=(G={},f()(G,m.c.zh,{name:"参数名",description:"字段说明"}),f()(G,m.c.tw,{name:"參數名",description:"欄位說明"}),f()(G,m.c.en,{name:"Parameter Name",description:"Field Description"}),G),X=(U={},f()(U,m.c.zh,{name:"",description:"说明"}),f()(U,m.c.tw,{name:"",description:"說明"}),f()(U,m.c.en,{name:"",description:"description"}),U),Z={code:(W={},f()(W,m.c.zh,"复制代码"),f()(W,m.c.tw,"複製代碼"),f()(W,m.c.en,"Copy Code"),W),params:(Y={},f()(Y,m.c.zh,"复制参数"),f()(Y,m.c.tw,"複製參數"),f()(Y,m.c.en,"Copy Parameters"),Y)},ee="request",te="request1",ae="request2",se="request3",ne="response",ie="response1",re="response2",oe="response3",ce="wssResponse",le="common",pe="key1",me="key2",ue="key3",he="key4",de="key5",be="key6",ve="key7",ge="key8",_e={name:"DemoSocket",props:{lang:String,item:{type:Object,default:function(){}}},data:function(){return{parmasShowType:1,currentRoute:"",activeParamsTab:"",paramsTableColumn:[],codeLangConfig2:m.e,activeCodeTab:m.e[0].value}},computed:{isTable:function(){return 1===this.parmasShowType},successMsg:function(){return m.m.success[this.lang]},errorMsg:function(){return m.m.error[this.lang]},copyCodeBtnText:function(){return Z.code[this.lang]},copyParmsBtnText:function(){return Z.params[this.lang]},currentMap:function(){return K[this.lang]},currentCommonMap:function(){return X[this.lang]},currentWssMap:function(){return Q[this.lang]},requestTableColumns:function(){return[{prop:"name",label:this.currentMap.name},{prop:"type",label:this.currentMap.type},{prop:"required",label:this.currentMap.required},{prop:"description",label:this.currentMap.description}]},commonTableColumns:function(){return[{prop:"name",label:this.currentCommonMap.name},{prop:"description",label:this.currentCommonMap.description}]},wssTableColumns:function(){return[{prop:"name",label:this.currentWssMap.name},{prop:"description",label:this.currentWssMap.description}]},responseTableColumns:function(){return[{prop:"name",label:this.currentMap.name},{prop:"type",label:this.currentMap.type},{prop:"description",label:this.currentMap.description}]},paramsTabs:function(){return Array.isArray(this.item.params)?this.item.params.map(function(e){return{type:e.type,key:e.key}}):[]},jsonParams:function(){var e=this,t=this.item.params.find(function(t){return t.key===e.activeParamsTab}),a=g()(null);return(t?t.data:[]).forEach(function(e){a[e.name]=e.type}),b()(a,null,2)},renderParamsData:function(){var e=this,t=this.item.params.find(function(t){return t.key===e.activeParamsTab});if(this.isTable)return t?t.data:[];var a=g()(null);return(t?t.data:[]).forEach(function(e){a[e.name]=e.type}),this.$hljs.highlight(b()(a,null,2),{language:"json"}).value},code:function(){return Object(m.h)(this.item.api,this.activeCodeTab,this.item.host||"open-api.bingx.com")},demoCode:function(){return this.$hljs.highlight(this.code,{language:this.activeCodeTab}).value}},watch:{activeParamsTab:function(e){this.paramsTableColumn=[].concat(e===ee||e===te||e===ae||e===se?h()(this.requestTableColumns):e===ne||e===ie||e===re||e===oe?h()(this.responseTableColumns):e===le?h()(this.commonTableColumns):e===pe?h()(this.commonTableColumns):e===me?h()(this.commonTableColumns):e===ue?h()(this.commonTableColumns):e===he?h()(this.commonTableColumns):e===de?h()(this.commonTableColumns):e===be?h()(this.commonTableColumns):e===ve?h()(this.commonTableColumns):e===ge?h()(this.commonTableColumns):e===ce?h()(this.wssTableColumns):h()(this.responseTableColumns))}},methods:{onCopy:function(){this.$message.success(this.successMsg)},onError:function(){this.$message.success(this.errorMsg)}},created:function(){"demo"===this.item.type&&(this.activeParamsTab=this.paramsTabs[0].key)}},fe={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"item-demo-content"},[a("div",[a("div",{staticStyle:{display:"flex"}},[a("div",{staticStyle:{flex:"1"}},[a("el-radio",{attrs:{label:1},model:{value:e.parmasShowType,callback:function(t){e.parmasShowType=t},expression:"parmasShowType"}},[e._v("Table")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.parmasShowType,callback:function(t){e.parmasShowType=t},expression:"parmasShowType"}},[e._v("JSON")])],1),e._v(" "),e.isTable?e._e():a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.jsonParams,expression:"jsonParams",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],attrs:{size:"small"}},[e._v("\n "+e._s(e.copyParmsBtnText)+"\n ")])],1),e._v(" "),a("div",{staticClass:"params-content"},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeParamsTab,callback:function(t){e.activeParamsTab=t},expression:"activeParamsTab"}},e._l(e.paramsTabs,function(t){return a("el-tab-pane",{key:t.key,attrs:{name:t.key,label:t.type}},[e.isTable?a("el-table",{attrs:{data:e.renderParamsData,stripe:"",border:""}},e._l(e.paramsTableColumn,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop,align:"left"}})}),1):a("div",{staticClass:"code-html"},[a("pre",[a("code",{staticClass:"hljs language-json",domProps:{innerHTML:e._s(e.renderParamsData)}})])])],1)}),1)],1)]),e._v(" "),a("div",[a("div",{staticStyle:{display:"flex","flex-direction":"row-reverse"}},[a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.code,expression:"code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],attrs:{size:"small"}},[e._v(e._s(e.copyCodeBtnText))])],1),e._v(" "),a("div",{staticClass:"params-content",staticStyle:{"margin-top":"4px"}},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeCodeTab,callback:function(t){e.activeCodeTab=t},expression:"activeCodeTab"}},e._l(e.codeLangConfig2,function(t){return a("el-tab-pane",{key:t.value,attrs:{name:t.value,label:t.label}},[a("div",{staticClass:"code-html demo-code"},[a("pre",[a("code",{class:["hljs","language-"+e.activeCodeTab],domProps:{innerHTML:e._s(e.demoCode)}})])])])}),1)],1)])])},staticRenderFns:[]};var ye=a("VU/8")(_e,fe,!1,function(e){a("TqGO")},"data-v-22d78ccf",null).exports,Ce={name:"ContentItem",props:{lang:String,item:{type:Object,default:function(){}}},components:{Demo:J,DemoSocket:ye},data:function(){return{}},filters:{generateId:m.i},computed:{successMsg:function(){return m.m.success[this.lang]},errorMsg:function(){return m.m.error[this.lang]}},methods:{onCopy:function(){this.$message.success(this.successMsg)},onError:function(){this.$message.success(this.errorMsg)}}},Te={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return"hash"===e.item.type?a("h2",{staticClass:"item-hash",attrs:{id:e._f("generateId")(e.item.text),"data-text":e.item.text}},[a("router-link",{staticClass:"header-anchor",attrs:{to:{path:e.$route.path,hash:"#"+e.item.text}}},[e._v("\n "+e._s(e.item.text)+"\n ")])],1):a("div",{staticClass:"content-item"},["title"===e.item.type?a("p",{staticClass:"item-title"},[e._v(e._s(e.item.text)+" ")]):e._e(),e._v(" "),"接口参数"===e.item.text?a("div",{staticStyle:{"margin-top":"15px"}},[a("i",{staticClass:"el-icon-s-opportunity",staticStyle:{"font-size":"larger",color:"#409EFF"}}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("1. 创建API KEY")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("2. 配置API KEY权限")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/authentication.html",target:"_blank"}},[e._v("3. 了解签名认证")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("i",{staticClass:"el-icon-right"},[e._v("4. 跑以下示例代码")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/base-info.html#常见错误码",target:"_blank"}},[e._v("5. 了解常见错误码")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/base-info.html#频率限制",target:"_blank"}},[e._v("6. 了解频率限制")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/base-info.html#时间戳规范",target:"_blank"}},[e._v("7. 了解请求时间戳")]),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/support/articles/360027240173/#h_01GC8VAS3VM1RHFEDE9XVTDAJQ",target:"_blank"}},[e._v("8. 了解手续费")])],1):e._e(),e._v(" "),"接口參數"===e.item.text?a("div",{staticStyle:{"margin-top":"15px"}},[a("i",{staticClass:"el-icon-s-opportunity",staticStyle:{"font-size":"larger",color:"#409EFF"}}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("1. 創建API KEY")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("2. 配置API KEY權限")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/authentication.html",target:"_blank"}},[e._v("3. 了解簽名認證")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("i",{staticClass:"el-icon-right"},[e._v("4. 跑以下示例代碼")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/base-info.html#常見錯誤碼",target:"_blank"}},[e._v("5. 常見錯誤碼")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/base-info.html#頻率限制",target:"_blank"}},[e._v("6. 了解頻率限制")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/base-info.html#時間戳規範",target:"_blank"}},[e._v("7. 了解請求時間戳")]),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/support/articles/360027240173/#h_01GC8VAS3VM1RHFEDE9XVTDAJQ",target:"_blank"}},[e._v("8. 了解手续费")])],1):e._e(),e._v(" "),"request parameters"===e.item.text?a("div",{staticStyle:{"margin-top":"15px"}},[a("i",{staticClass:"el-icon-s-opportunity",staticStyle:{"font-size":"larger",color:"#409EFF"}}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("1. Create API KEY")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("2. Configure API KEY permissions")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/authentication.html",target:"_blank"}},[e._v("3. Understanding signature authentication")]),e._v(" "),a("i",{staticClass:"el-icon-right"},[e._v("4. Run the following example code")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/base-info.html#Common%20Error%20Codes",target:"_blank"}},[e._v("5. Understand common error codes")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/base-info.html#Rate%20Limits",target:"_blank"}},[e._v("6. Understand rate limitations")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx-api.github.io/docs/#/swapV2/base-info.html#Timestamp",target:"_blank"}},[e._v("7. Understanding request timestamps")]),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/en-us/support/articles/360027240173/#h_01GC8VAS3VM1RHFEDE9XVTDAJQ",target:"_blank"}},[e._v("8. Understand fee schedule")])],1):e._e(),e._v(" "),"normal"===e.item.type?a("div",{staticClass:"item-normal"},[e.item.text?a("p",{style:e.item.style||{}},[e._v(e._s(e.item.text)),"HTTP 请求"===e.item.text||"HTTP 請求"===e.item.text||"HTTP Request"===e.item.text?a("label",[e._v(" https://open-api.bingx.com")]):e._e()]):e._e(),e._v(" "),Array.isArray(e.item.children)?a("ul",{staticStyle:{"margin-left":"-10px"}},e._l(e.item.children,function(t,s){return a("li",{key:s},["html"===t.type?a("span",{domProps:{innerHTML:e._s(t.text)}}):a("span",[e._v(e._s(t.text))]),e._v(" "),Array.isArray(t.children)?a("ul",{staticStyle:{"margin-left":"-15px","list-style-type":"disc"}},e._l(t.children,function(t,s){return a("li",{key:s},[e._v(e._s(t.text))])}),0):e._e()])}),0):e._e()]):e._e(),e._v(" "),"html"===e.item.type?a("p",{domProps:{innerHTML:e._s(e.item.text)}}):e._e(),e._v(" "),"warning"===e.item.type?a("p",{staticClass:"item-warning-content"},[e._v(e._s(e.item.text))]):e._e(),e._v(" "),"code"===e.item.type?a("p",{staticClass:"item-code-content",staticStyle:{position:"relative"}},[a("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.item.text,expression:"item.text",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],staticClass:"el-icon-copy-document"}),e._v("\n "+e._s(e.item.text)+"\n ")]):e._e(),e._v(" "),"demo"===e.item.type&&e.$router.currentRoute.path.indexOf("/socket/")<0?a("Demo",{attrs:{lang:e.lang,item:e.item}}):e._e(),e._v(" "),"demo"===e.item.type&&e.$router.currentRoute.path.indexOf("/socket/")>-1?a("DemoSocket",{attrs:{lang:e.lang,item:e.item}}):e._e()],1)},staticRenderFns:[]};var xe=a("VU/8")(Ce,Te,!1,function(e){a("tGzo")},null,null).exports,ke={name:"Content Not Found",content:[]},we={props:{lang:String},components:{ContentItem:xe},data:function(){return{appConfig:Object(m.j)(),pageContent:p()({},ke)}},computed:{},watch:{"$route.path":{handler:function(e){this.pageContent=this.appConfig[e]||p()({},ke)},immediate:!0},lang:function(){this.appConfig=Object(m.j)(),this.pageContent=this.appConfig[this.$route.path]||p()({},ke)}},mounted:function(){m.f.$emit("content-ready")},updated:function(){m.f.$emit("content-ready")}},Pe={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-content"},[a("h1",{staticClass:"page-content-title"},[e._v(e._s(e.pageContent.name))]),e._v(" "),a("div",{staticClass:"page-content-wrap",attrs:{id:"page-content-wrap"}},[Array.isArray(e.pageContent.content)?e._l(e.pageContent.content,function(t,s){return a("ContentItem",{key:s,attrs:{item:t,lang:e.lang}})}):a("p",[e._v(e._s(e.pageContent.content))])],2)])},staticRenderFns:[]};var Me=a("VU/8")(we,Pe,!1,function(e){a("dPpd")},"data-v-514494ef",null);t.default=Me.exports}}); +//# sourceMappingURL=0.b278ffc4d4064d24d558.js.map \ No newline at end of file diff --git a/static/js/0.b278ffc4d4064d24d558.js.map b/static/js/0.b278ffc4d4064d24d558.js.map new file mode 100644 index 00000000..404220a9 --- /dev/null +++ b/static/js/0.b278ffc4d4064d24d558.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///src/components/Content/Demo.vue","webpack:///./src/components/Content/Demo.vue?eb76","webpack:///./src/components/Content/Demo.vue","webpack:///src/components/Content/DemoSocket.vue","webpack:///./src/components/Content/DemoSocket.vue?69c9","webpack:///./src/components/Content/DemoSocket.vue","webpack:///src/components/Content/ContentItem.vue","webpack:///./src/components/Content/ContentItem.vue?469f","webpack:///./src/components/Content/ContentItem.vue","webpack:///src/components/Content/index.vue","webpack:///./src/components/Content/index.vue?c71d","webpack:///./src/components/Content/index.vue"],"names":["propMap","_propMap","defineProperty_default","utils","zh","name","type","required","description","tw","en","wssMap","_wssMap","commonMap","_commonMap","buttonTextMap","code","_code","params","_params","txt","_txt","paramsTabKey","Demo","props","lang","String","item","Object","default","data","parmasShowType","activeParamsTab","paramsTableColumn","codeLangConfig","activeCodeTab","value","computed","isTable","this","successMsg","errorMsg","copyCodeBtnText","SampleCodeBtnText","copyParmsBtnText","currentMap","currentCommonMap","currentWssMap","requestTableColumns","prop","label","commonTableColumns","wssTableColumns","responseTableColumns","paramsTabs","Array","isArray","map","key","jsonParams","_this","find","res","create_default","forEach","i","stringify_default","renderParamsData","_this2","$hljs","highlight","language","api","host","demoCode","watch","val","concat","toConsumableArray_default","methods","onCopy","$message","success","onError","created","Content_Demo","render","_vm","_h","$createElement","_c","_self","staticClass","staticStyle","display","flex","attrs","model","callback","$$v","expression","_v","_e","directives","rawName","arg","size","_s","_l","tab","stripe","border","column","index","align","domProps","innerHTML","color","flex-direction","margin-top","class","staticRenderFns","components_Content_Demo","__webpack_require__","normalizeComponent","ssrContext","DemoSocket_propMap","DemoSocket__propMap","DemoSocket_wssMap","DemoSocket__wssMap","DemoSocket_commonMap","DemoSocket__commonMap","DemoSocket_buttonTextMap","DemoSocket__code","DemoSocket__params","DemoSocket_paramsTabKey","DemoSocket","currentRoute","codeLangConfig2","Content_DemoSocket","components_Content_DemoSocket","DemoSocket_normalizeComponent","ContentItem","components","filters","generateId","Content_ContentItem","id","_f","text","data-text","to","path","$route","hash","font-size","href","target","style","children","margin-left","c1","list-style-type","c2","j","position","$router","indexOf","components_Content_ContentItem","ContentItem_normalizeComponent","defaultPageContent","content","Content","appConfig","pageContent","extends_default","$route.path","handler","immediate","mounted","$emit","updated","components_Content","Content_Component","Content_normalizeComponent","__webpack_exports__"],"mappings":"8TAkDAA,GAAAC,KAAAC,IAAAD,EACAE,EAAA,EAAAC,IACAC,KAAA,MACAC,KAAA,KACAC,SAAA,OACAC,YAAA,SALAN,IAAAD,EAOAE,EAAA,EAAAM,IACAJ,KAAA,MACAC,KAAA,KACAC,SAAA,OACAC,YAAA,SAXAN,IAAAD,EAaAE,EAAA,EAAAO,IACAL,KAAA,iBACAC,KAAA,OACAC,SAAA,WACAC,YAAA,sBAjBAP,GAoBAU,GAAAC,KAAAV,IAAAU,EACAT,EAAA,EAAAC,IACAC,KAAA,MACAG,YAAA,SAHAN,IAAAU,EAKAT,EAAA,EAAAM,IACAJ,KAAA,MACAG,YAAA,SAPAN,IAAAU,EASAT,EAAA,EAAAO,IACAL,KAAA,iBACAG,YAAA,sBAXAI,GAcAC,GAAAC,KAAAZ,IAAAY,EACAX,EAAA,EAAAC,IACAC,KAAA,GACAG,YAAA,OAHAN,IAAAY,EAKAX,EAAA,EAAAM,IACAJ,KAAA,GACAG,YAAA,OAPAN,IAAAY,EASAX,EAAA,EAAAO,IACAL,KAAA,GACAG,YAAA,gBAXAM,GAeAC,GACAC,MAAAC,KAAAf,IAAAe,EACAd,EAAA,EAAAC,GAAA,QADAF,IAAAe,EAEAd,EAAA,EAAAM,GAAA,QAFAP,IAAAe,EAGAd,EAAA,EAAAO,GAAA,aAHAO,GAKAC,QAAAC,KAAAjB,IAAAiB,EACAhB,EAAA,EAAAC,GAAA,QADAF,IAAAiB,EAEAhB,EAAA,EAAAM,GAAA,QAFAP,IAAAiB,EAGAhB,EAAA,EAAAO,GAAA,mBAHAS,GAKAC,KAAAC,KAAAnB,IAAAmB,EACAlB,EAAA,EAAAC,GAAA,QADAF,IAAAmB,EAEAlB,EAAA,EAAAM,GAAA,QAFAP,IAAAmB,EAGAlB,EAAA,EAAAO,GAAA,eAHAW,IAOAC,EACA,UADAA,EAEA,WAFAA,EAGA,WAHAA,EAIA,WAJAA,EAKA,WALAA,EAMA,YANAA,EAOA,YAPAA,EAQA,YARAA,EASA,cATAA,EAUA,SAVAA,EAWA,OAXAA,EAYA,OAZAA,EAaA,OAbAA,EAcA,OAdAA,EAeA,OAfAA,EAgBA,OAhBAA,EAiBA,OAjBAA,EAkBA,OAKAC,GACAlB,KAAA,OACAmB,OACAC,KAAAC,OACAC,MACArB,KAAAsB,OACAC,QAAA,eAIAC,KAVA,WAWA,OACAC,eAAA,EACAC,gBAAA,GACAC,qBAEAC,eAAA/B,EAAA,EACAgC,cAAAhC,EAAA,KAAAiC,QAIAC,UACAC,QADA,WAEA,WAAAC,KAAAR,gBAGAS,WALA,WAMA,OAAArC,EAAA,UAAAoC,KAAAd,OAGAgB,SATA,WAUA,OAAAtC,EAAA,QAAAoC,KAAAd,OAGAiB,gBAbA,WAcA,OAAA3B,EAAA,KAAAwB,KAAAd,OAEAkB,kBAhBA,WAiBA,OAAA5B,EAAA,IAAAwB,KAAAd,OAGAmB,iBApBA,WAqBA,OAAA7B,EAAA,OAAAwB,KAAAd,OAGAoB,WAxBA,WAyBA,OAAA7C,EAAAuC,KAAAd,OAEAqB,iBA3BA,WA4BA,OAAAjC,EAAA0B,KAAAd,OAEAsB,cA9BA,WA+BA,OAAApC,EAAA4B,KAAAd,OAEAuB,oBAjCA,WAkCA,QACAC,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,WACAC,MAAAX,KAAAM,WAAA,WAEAI,KAAA,cACAC,MAAAX,KAAAM,WAAA,eAGAM,mBAhDA,WAiDA,QACAF,KAAA,OACAC,MAAAX,KAAAO,iBAAA,OAEAG,KAAA,cACAC,MAAAX,KAAAO,iBAAA,eAGAM,gBAzDA,WA0DA,QACAH,KAAA,OACAC,MAAAX,KAAAQ,cAAA,OAEAE,KAAA,cACAC,MAAAX,KAAAQ,cAAA,eAIAM,qBAnEA,WAoEA,QACAJ,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,cACAC,MAAAX,KAAAM,WAAA,eAIAS,WAhFA,WAiFA,OAAAC,MAAAC,QAAAjB,KAAAZ,KAAAT,QACAqB,KAAAZ,KAAAT,OAAAuC,IAAA,SAAA9B,GAAA,OACArB,KAAAqB,EAAArB,KACAoD,IAAA/B,EAAA+B,WAMAC,WA1FA,WA0FA,IAAAC,EAAArB,KACAZ,EAAAY,KAAAZ,KAAAT,OAAA2C,KAAA,SAAAlC,GAAA,OAAAA,EAAA+B,MAAAE,EAAA5B,kBACA8B,EAAAC,IAAA,MAKA,OAJApC,IAAAG,SACAkC,QAAA,SAAAC,GACAH,EAAAG,EAAA5D,MAAA4D,EAAA3D,OAEA4D,IAAAJ,EAAA,SAGAK,iBApGA,WAoGA,IAAAC,EAAA7B,KACAZ,EAAAY,KAAAZ,KAAAT,OAAA2C,KAAA,SAAAlC,GAAA,OAAAA,EAAA+B,MAAAU,EAAApC,kBACA,GAAAO,KAAAD,QACA,OAAAX,IAAAG,QAGA,IAAAgC,EAAAC,IAAA,MAMA,OALApC,IAAAG,SACAkC,QAAA,SAAAC,GACAH,EAAAG,EAAA5D,MAAA4D,EAAA3D,OAGAiC,KAAA8B,MAAAC,UAAAJ,IAAAJ,EAAA,SAAAS,SAAA,SAAAnC,OAGApB,KAnHA,WAoHA,OAAAuB,KAAAZ,KAAA6C,IAGA5C,OAAAzB,EAAA,EAAAyB,CAAAW,KAAAZ,KAAA6C,IAAAjC,KAAAJ,cAAAI,KAAAZ,KAAA8C,MA9IA,sBA4IA,WAKAC,SA1HA,WA2HA,OAAAnC,KAAA8B,MAAAC,UAAA/B,KAAAvB,MAAAuD,SAAAhC,KAAAJ,gBAAAC,QAIAuC,OACA3C,gBADA,SACA4C,GAEArC,KAAAN,qBAAA4C,OADAD,IAAAtD,GAAAsD,IAAAtD,GAAAsD,IAAAtD,GAAAsD,IAAAtD,EACAwD,IAAAvC,KAAAS,qBACA4B,IAAAtD,GAAAsD,IAAAtD,GAAAsD,IAAAtD,GAAAsD,IAAAtD,EACAwD,IAAAvC,KAAAc,sBACAuB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAa,iBAEA0B,IAAAvC,KAAAc,yBAKA0B,SACAC,OADA,WAEAzC,KAAA0C,SAAAC,QAAA3C,KAAAC,aAEA2C,QAJA,WAKA5C,KAAA0C,SAAAC,QAAA3C,KAAAE,YAIA2C,QA7LA,WA8LA,SAAA7C,KAAAZ,KAAArB,OACAiC,KAAAP,gBAAAO,KAAAe,WAAA,GAAAI,OCxUe2B,GADEC,OAFjB,WAA0B,IAAAC,EAAAhD,KAAaiD,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,sBAAgCF,EAAA,OAAAA,EAAA,OAAsBG,aAAaC,QAAA,UAAkBJ,EAAA,OAAYG,aAAaE,KAAA,OAAYL,EAAA,YAAiBM,OAAO9C,MAAA,GAAU+C,OAAQ7D,MAAAmD,EAAA,eAAAW,SAAA,SAAAC,GAAoDZ,EAAAxD,eAAAoE,GAAuBC,WAAA,oBAA8Bb,EAAAc,GAAA,WAAAd,EAAAc,GAAA,KAAAX,EAAA,YAA+CM,OAAO9C,MAAA,GAAU+C,OAAQ7D,MAAAmD,EAAA,eAAAW,SAAA,SAAAC,GAAoDZ,EAAAxD,eAAAoE,GAAuBC,WAAA,oBAA8Bb,EAAAc,GAAA,cAAAd,EAAAc,GAAA,KAAAd,EAAAjD,QAAwZiD,EAAAe,KAAxZZ,EAAA,aAAkEa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA,WAAAa,WAAA,aAAAK,IAAA,SAAwGpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGT,OAASU,KAAA,WAAgBnB,EAAAc,GAAA,eAAAd,EAAAoB,GAAApB,EAAA3C,kBAAA,oBAAA2C,EAAAc,GAAA,KAAAX,EAAA,OAAwGE,YAAA,mBAA6BF,EAAA,WAAgBM,OAAO1F,KAAA,QAAc2F,OAAQ7D,MAAAmD,EAAA,gBAAAW,SAAA,SAAAC,GAAqDZ,EAAAvD,gBAAAmE,GAAwBC,WAAA,oBAA+Bb,EAAAqB,GAAArB,EAAA,oBAAAsB,GAAuC,OAAAnB,EAAA,eAAyBhC,IAAAmD,EAAAnD,IAAAsC,OAAmB3F,KAAAwG,EAAAnD,IAAAR,MAAA2D,EAAAvG,QAAiCiF,EAAA,QAAAG,EAAA,YAA+BM,OAAOlE,KAAAyD,EAAApB,iBAAA2C,OAAA,GAAAC,OAAA,KAAqDxB,EAAAqB,GAAArB,EAAA,2BAAAyB,EAAAC,GAAuD,OAAAvB,EAAA,mBAA6BhC,IAAAuD,EAAAjB,OAAiB9C,MAAA8D,EAAA9D,MAAAD,KAAA+D,EAAA/D,KAAAiE,MAAA,YAA0D,GAAAxB,EAAA,OAAeE,YAAA,cAAwBF,EAAA,OAAAA,EAAA,QAAuBE,YAAA,qBAAAuB,UAA2CC,UAAA7B,EAAAoB,GAAApB,EAAApB,0BAA0C,KAAU,SAAAoB,EAAAc,GAAA,KAAAX,EAAA,OAAAA,EAAA,KAAyCE,YAAA,wBAAAC,aAAiDwB,MAAA,aAAmB9B,EAAAc,GAAA,IAAAd,EAAAoB,GAAApB,EAAA5C,sBAAA4C,EAAAc,GAAA,KAAAX,EAAA,OAAoEG,aAAaC,QAAA,OAAAwB,iBAAA,iBAAiD5B,EAAA,aAAkBa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA,KAAAa,WAAA,OAAAK,IAAA,SAA4FpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGT,OAASU,KAAA,WAAgBnB,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA7C,qBAAA,GAAA6C,EAAAc,GAAA,KAAAX,EAAA,OAAkEE,YAAA,iBAAAC,aAA0C0B,aAAA,SAAoB7B,EAAA,WAAgBM,OAAO1F,KAAA,QAAc2F,OAAQ7D,MAAAmD,EAAA,cAAAW,SAAA,SAAAC,GAAmDZ,EAAApD,cAAAgE,GAAsBC,WAAA,kBAA6Bb,EAAAqB,GAAArB,EAAA,wBAAAvE,GAA4C,OAAA0E,EAAA,eAAyBhC,IAAA1C,EAAAoB,MAAA4D,OAAsB3F,KAAAW,EAAAoB,MAAAc,MAAAlC,EAAAkC,SAAsCwC,EAAA,OAAYE,YAAA,wBAAkCF,EAAA,OAAAA,EAAA,QAAuB8B,OAAA,mBAAAjC,EAAApD,eAAAgF,UAA4DC,UAAA7B,EAAAoB,GAAApB,EAAAb,qBAA0C,YAEl2F+C,oBCCjB,cAuBeC,EAvBUC,EAAQ,OAcjCC,CACErG,EACA8D,GATF,EAVA,SAAAwC,GACEF,EAAQ,SAaV,kBAEA,MAUgC,QCsBhCG,GAAAC,KAAA7H,IAAA6H,EACA5H,EAAA,EAAAC,IACAC,KAAA,MACAC,KAAA,KACAC,SAAA,OACAC,YAAA,SALAN,IAAA6H,EAOA5H,EAAA,EAAAM,IACAJ,KAAA,MACAC,KAAA,KACAC,SAAA,OACAC,YAAA,SAXAN,IAAA6H,EAaA5H,EAAA,EAAAO,IACAL,KAAA,iBACAC,KAAA,OACAC,SAAA,WACAC,YAAA,sBAjBAuH,GAoBAC,GAAAC,KAAA/H,IAAA+H,EACA9H,EAAA,EAAAC,IACAC,KAAA,MACAG,YAAA,SAHAN,IAAA+H,EAKA9H,EAAA,EAAAM,IACAJ,KAAA,MACAG,YAAA,SAPAN,IAAA+H,EASA9H,EAAA,EAAAO,IACAL,KAAA,iBACAG,YAAA,sBAXAyH,GAcAC,GAAAC,KAAAjI,IAAAiI,EACAhI,EAAA,EAAAC,IACAC,KAAA,GACAG,YAAA,OAHAN,IAAAiI,EAKAhI,EAAA,EAAAM,IACAJ,KAAA,GACAG,YAAA,OAPAN,IAAAiI,EASAhI,EAAA,EAAAO,IACAL,KAAA,GACAG,YAAA,gBAXA2H,GAeAC,GACApH,MAAAqH,KAAAnI,IAAAmI,EACAlI,EAAA,EAAAC,GAAA,QADAF,IAAAmI,EAEAlI,EAAA,EAAAM,GAAA,QAFAP,IAAAmI,EAGAlI,EAAA,EAAAO,GAAA,aAHA2H,GAKAnH,QAAAoH,KAAApI,IAAAoI,EACAnI,EAAA,EAAAC,GAAA,QADAF,IAAAoI,EAEAnI,EAAA,EAAAM,GAAA,QAFAP,IAAAoI,EAGAnI,EAAA,EAAAO,GAAA,mBAHA4H,IAOAC,GACA,UADAA,GAEA,WAFAA,GAGA,WAHAA,GAIA,WAJAA,GAKA,WALAA,GAMA,YANAA,GAOA,YAPAA,GAQA,YARAA,GASA,cATAA,GAUA,SAVAA,GAWA,OAXAA,GAYA,OAZAA,GAaA,OAbAA,GAcA,OAdAA,GAeA,OAfAA,GAgBA,OAhBAA,GAiBA,OAjBAA,GAkBA,OAKAC,IACAnI,KAAA,aACAmB,OACAC,KAAAC,OACAC,MACArB,KAAAsB,OACAC,QAAA,eAIAC,KAVA,WAWA,OACAC,eAAA,EACA0G,aAAA,GACAzG,gBAAA,GACAC,qBACAyG,gBAAAvI,EAAA,EACAgC,cAAAhC,EAAA,KAAAiC,QAIAC,UACAC,QADA,WAEA,WAAAC,KAAAR,gBAGAS,WALA,WAMA,OAAArC,EAAA,UAAAoC,KAAAd,OAGAgB,SATA,WAUA,OAAAtC,EAAA,QAAAoC,KAAAd,OAGAiB,gBAbA,WAcA,OAAA0F,EAAA,KAAA7F,KAAAd,OAGAmB,iBAjBA,WAkBA,OAAAwF,EAAA,OAAA7F,KAAAd,OAGAoB,WArBA,WAsBA,OAAAiF,EAAAvF,KAAAd,OAEAqB,iBAxBA,WAyBA,OAAAoF,EAAA3F,KAAAd,OAEAsB,cA3BA,WA4BA,OAAAiF,EAAAzF,KAAAd,OAEAuB,oBA9BA,WA+BA,QACAC,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,WACAC,MAAAX,KAAAM,WAAA,WAEAI,KAAA,cACAC,MAAAX,KAAAM,WAAA,eAGAM,mBA7CA,WA8CA,QACAF,KAAA,OACAC,MAAAX,KAAAO,iBAAA,OAEAG,KAAA,cACAC,MAAAX,KAAAO,iBAAA,eAGAM,gBAtDA,WAuDA,QACAH,KAAA,OACAC,MAAAX,KAAAQ,cAAA,OAEAE,KAAA,cACAC,MAAAX,KAAAQ,cAAA,eAIAM,qBAhEA,WAiEA,QACAJ,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,cACAC,MAAAX,KAAAM,WAAA,eAIAS,WA7EA,WA8EA,OAAAC,MAAAC,QAAAjB,KAAAZ,KAAAT,QACAqB,KAAAZ,KAAAT,OAAAuC,IAAA,SAAA9B,GAAA,OACArB,KAAAqB,EAAArB,KACAoD,IAAA/B,EAAA+B,WAMAC,WAvFA,WAuFA,IAAAC,EAAArB,KACAZ,EAAAY,KAAAZ,KAAAT,OAAA2C,KAAA,SAAAlC,GAAA,OAAAA,EAAA+B,MAAAE,EAAA5B,kBACA8B,EAAAC,IAAA,MAKA,OAJApC,IAAAG,SACAkC,QAAA,SAAAC,GACAH,EAAAG,EAAA5D,MAAA4D,EAAA3D,OAEA4D,IAAAJ,EAAA,SAGAK,iBAjGA,WAiGA,IAAAC,EAAA7B,KACAZ,EAAAY,KAAAZ,KAAAT,OAAA2C,KAAA,SAAAlC,GAAA,OAAAA,EAAA+B,MAAAU,EAAApC,kBACA,GAAAO,KAAAD,QACA,OAAAX,IAAAG,QAGA,IAAAgC,EAAAC,IAAA,MAMA,OALApC,IAAAG,SACAkC,QAAA,SAAAC,GACAH,EAAAG,EAAA5D,MAAA4D,EAAA3D,OAGAiC,KAAA8B,MAAAC,UAAAJ,IAAAJ,EAAA,SAAAS,SAAA,SAAAnC,OAGApB,KAhHA,WAqHA,OAAAY,OAAAzB,EAAA,EAAAyB,CAAAW,KAAAZ,KAAA6C,IAAAjC,KAAAJ,cAAAI,KAAAZ,KAAA8C,MA5IA,uBA+IAC,SAxHA,WAyHA,OAAAnC,KAAA8B,MAAAC,UAAA/B,KAAAvB,MAAAuD,SAAAhC,KAAAJ,gBAAAC,QAIAuC,OACA3C,gBADA,SACA4C,GAEArC,KAAAN,qBAAA4C,OADAD,IAAA2D,IAAA3D,IAAA2D,IAAA3D,IAAA2D,IAAA3D,IAAA2D,GACAzD,IAAAvC,KAAAS,qBACA4B,IAAA2D,IAAA3D,IAAA2D,IAAA3D,IAAA2D,IAAA3D,IAAA2D,GACAzD,IAAAvC,KAAAc,sBACAuB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAa,iBAEA0B,IAAAvC,KAAAc,yBAKA0B,SACAC,OADA,WAEAzC,KAAA0C,SAAAC,QAAA3C,KAAAC,aAEA2C,QAJA,WAKA5C,KAAA0C,SAAAC,QAAA3C,KAAAE,YAIA2C,QA3LA,WA4LA,SAAA7C,KAAAZ,KAAArB,OACAiC,KAAAP,gBAAAO,KAAAe,WAAA,GAAAI,OC/TeiF,IADErD,OAFP,WAAgB,IAAAC,EAAAhD,KAAaiD,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,sBAAgCF,EAAA,OAAAA,EAAA,OAAsBG,aAAaC,QAAA,UAAkBJ,EAAA,OAAYG,aAAaE,KAAA,OAAYL,EAAA,YAAiBM,OAAO9C,MAAA,GAAU+C,OAAQ7D,MAAAmD,EAAA,eAAAW,SAAA,SAAAC,GAAoDZ,EAAAxD,eAAAoE,GAAuBC,WAAA,oBAA8Bb,EAAAc,GAAA,WAAAd,EAAAc,GAAA,KAAAX,EAAA,YAA+CM,OAAO9C,MAAA,GAAU+C,OAAQ7D,MAAAmD,EAAA,eAAAW,SAAA,SAAAC,GAAoDZ,EAAAxD,eAAAoE,GAAuBC,WAAA,oBAA8Bb,EAAAc,GAAA,cAAAd,EAAAc,GAAA,KAAAd,EAAAjD,QAAwZiD,EAAAe,KAAxZZ,EAAA,aAAkEa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA,WAAAa,WAAA,aAAAK,IAAA,SAAwGpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGT,OAASU,KAAA,WAAgBnB,EAAAc,GAAA,eAAAd,EAAAoB,GAAApB,EAAA3C,kBAAA,oBAAA2C,EAAAc,GAAA,KAAAX,EAAA,OAAwGE,YAAA,mBAA6BF,EAAA,WAAgBM,OAAO1F,KAAA,QAAc2F,OAAQ7D,MAAAmD,EAAA,gBAAAW,SAAA,SAAAC,GAAqDZ,EAAAvD,gBAAAmE,GAAwBC,WAAA,oBAA+Bb,EAAAqB,GAAArB,EAAA,oBAAAsB,GAAuC,OAAAnB,EAAA,eAAyBhC,IAAAmD,EAAAnD,IAAAsC,OAAmB3F,KAAAwG,EAAAnD,IAAAR,MAAA2D,EAAAvG,QAAiCiF,EAAA,QAAAG,EAAA,YAA+BM,OAAOlE,KAAAyD,EAAApB,iBAAA2C,OAAA,GAAAC,OAAA,KAAqDxB,EAAAqB,GAAArB,EAAA,2BAAAyB,EAAAC,GAAuD,OAAAvB,EAAA,mBAA6BhC,IAAAuD,EAAAjB,OAAiB9C,MAAA8D,EAAA9D,MAAAD,KAAA+D,EAAA/D,KAAAiE,MAAA,YAA0D,GAAAxB,EAAA,OAAeE,YAAA,cAAwBF,EAAA,OAAAA,EAAA,QAAuBE,YAAA,qBAAAuB,UAA2CC,UAAA7B,EAAAoB,GAAApB,EAAApB,0BAA0C,KAAU,SAAAoB,EAAAc,GAAA,KAAAX,EAAA,OAAAA,EAAA,OAA2CG,aAAaC,QAAA,OAAAwB,iBAAA,iBAAiD5B,EAAA,aAAkBa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA,KAAAa,WAAA,OAAAK,IAAA,SAA4FpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGT,OAASU,KAAA,WAAgBnB,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA7C,qBAAA,GAAA6C,EAAAc,GAAA,KAAAX,EAAA,OAAkEE,YAAA,iBAAAC,aAA0C0B,aAAA,SAAoB7B,EAAA,WAAgBM,OAAO1F,KAAA,QAAc2F,OAAQ7D,MAAAmD,EAAA,cAAAW,SAAA,SAAAC,GAAmDZ,EAAApD,cAAAgE,GAAsBC,WAAA,kBAA6Bb,EAAAqB,GAAArB,EAAA,yBAAAvE,GAA6C,OAAA0E,EAAA,eAAyBhC,IAAA1C,EAAAoB,MAAA4D,OAAsB3F,KAAAW,EAAAoB,MAAAc,MAAAlC,EAAAkC,SAAsCwC,EAAA,OAAYE,YAAA,wBAAkCF,EAAA,OAAAA,EAAA,QAAuB8B,OAAA,mBAAAjC,EAAApD,eAAAgF,UAA4DC,UAAA7B,EAAAoB,GAAApB,EAAAb,qBAA0C,YAE9sF+C,oBCChC,IAuBemB,GAvBUjB,EAAQ,OAcjBkB,CACdL,GACAG,IAT6B,EAV/B,SAAoBd,GAClBF,EAAQ,SAaS,kBAEU,MAUG,QC8EhCmB,IACAzI,KAAA,cACAmB,OACAC,KAAAC,OACAC,MACArB,KAAAsB,OACAC,QAAA,eAIAkH,YACAxH,KAAAmG,EACAc,WAAAI,IAEA9G,KAdA,WAeA,UAKAkH,SACAC,WAAA9I,EAAA,GAGAkC,UACAG,WADA,WAEA,OAAArC,EAAA,UAAAoC,KAAAd,OAGAgB,SALA,WAMA,OAAAtC,EAAA,QAAAoC,KAAAd,QAIAsD,SACAC,OADA,WAEAzC,KAAA0C,SAAAC,QAAA3C,KAAAC,aAEA2C,QAJA,WAKA5C,KAAA0C,SAAAC,QAAA3C,KAAAE,aC5IeyG,IADE5D,OAFP,WAAgB,IAAAC,EAAAhD,KAAaiD,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,eAAAD,EAAA5D,KAAArB,KAAAoF,EAAA,MAA2CE,YAAA,YAAAI,OAA+BmD,GAAA5D,EAAA6D,GAAA,aAAA7D,GAAA5D,KAAA0H,MAAAC,YAAA/D,EAAA5D,KAAA0H,QAAoE3D,EAAA,eAAoBE,YAAA,gBAAAI,OAAmCuD,IAAMC,KAAAjE,EAAAkE,OAAAD,KAAAE,KAAA,IAAAnE,EAAA5D,KAAA,SAAyD4D,EAAAc,GAAA,WAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,MAAA,gBAAA3D,EAAA,OAAoEE,YAAA,iBAA2B,UAAAL,EAAA5D,KAAArB,KAAAoF,EAAA,KAAsCE,YAAA,eAAyBL,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,MAAA,OAAA9D,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAA0H,KAAA3D,EAAA,OAAgGG,aAAa0B,aAAA,UAAqB7B,EAAA,KAAUE,YAAA,wBAAAC,aAAiD8D,YAAA,SAAAtC,MAAA,aAAwC9B,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,kBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA+CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,oBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAiDE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,gEAAAC,OAAA,YAA0FtE,EAAAc,GAAA,eAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,KAAsBE,YAAA,kBAA4BL,EAAAc,GAAA,gBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA6CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,iEAAAC,OAAA,YAA2FtE,EAAAc,GAAA,gBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA6CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,gEAAAC,OAAA,YAA0FtE,EAAAc,GAAA,eAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,iEAAAC,OAAA,YAA2FtE,EAAAc,GAAA,gBAAAX,EAAA,KAAiCE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,sFAAAC,OAAA,YAAgHtE,EAAAc,GAAA,kBAAAd,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAA0H,KAAA3D,EAAA,OAAqFG,aAAa0B,aAAA,UAAqB7B,EAAA,KAAUE,YAAA,wBAAAC,aAAiD8D,YAAA,SAAAtC,MAAA,aAAwC9B,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,kBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA+CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,oBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAiDE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,gEAAAC,OAAA,YAA0FtE,EAAAc,GAAA,eAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,KAAsBE,YAAA,kBAA4BL,EAAAc,GAAA,gBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA6CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,iEAAAC,OAAA,YAA2FtE,EAAAc,GAAA,cAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA2CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,gEAAAC,OAAA,YAA0FtE,EAAAc,GAAA,eAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,iEAAAC,OAAA,YAA2FtE,EAAAc,GAAA,gBAAAX,EAAA,KAAiCE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,sFAAAC,OAAA,YAAgHtE,EAAAc,GAAA,kBAAAd,EAAAe,KAAAf,EAAAc,GAAA,4BAAAd,EAAA5D,KAAA0H,KAAA3D,EAAA,OAAmGG,aAAa0B,aAAA,UAAqB7B,EAAA,KAAUE,YAAA,wBAAAC,aAAiD8D,YAAA,SAAAtC,MAAA,aAAwC9B,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,uBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAoDE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,sCAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAmEE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,gEAAAC,OAAA,YAA0FtE,EAAAc,GAAA,+CAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4EE,YAAA,kBAA4BL,EAAAc,GAAA,uCAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAoEE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,kFAAAC,OAAA,YAA4GtE,EAAAc,GAAA,sCAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAmEE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,yEAAAC,OAAA,YAAmGtE,EAAAc,GAAA,oCAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAiEE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,qEAAAC,OAAA,YAA+FtE,EAAAc,GAAA,yCAAAX,EAAA,KAA0DE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,sFAAAC,OAAA,YAAgHtE,EAAAc,GAAA,oCAAAd,EAAAe,KAAAf,EAAAc,GAAA,gBAAAd,EAAA5D,KAAArB,KAAAoF,EAAA,OAAyGE,YAAA,gBAA0BL,EAAA5D,KAAA,KAAA+D,EAAA,KAA0BoE,MAAAvE,EAAA5D,KAAAmI,YAA6BvE,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,OAAA,YAAA9D,EAAA5D,KAAA0H,MAAA,YAAA9D,EAAA5D,KAAA0H,MAAA,iBAAA9D,EAAA5D,KAAA0H,KAAA3D,EAAA,SAAAH,EAAAc,GAAA,iCAAAd,EAAAe,OAAAf,EAAAe,KAAAf,EAAAc,GAAA,KAAA9C,MAAAC,QAAA+B,EAAA5D,KAAAoI,UAAArE,EAAA,MAAiQG,aAAamE,cAAA,UAAuBzE,EAAAqB,GAAArB,EAAA5D,KAAA,kBAAAsI,EAAAhG,GAA2C,OAAAyB,EAAA,MAAgBhC,IAAAO,IAAM,SAAAgG,EAAA3J,KAAAoF,EAAA,QAAkCyB,UAAUC,UAAA7B,EAAAoB,GAAAsD,EAAAZ,SAA6B3D,EAAA,QAAAH,EAAAc,GAAAd,EAAAoB,GAAAsD,EAAAZ,SAAA9D,EAAAc,GAAA,KAAA9C,MAAAC,QAAAyG,EAAAF,UAAArE,EAAA,MAAyFG,aAAamE,cAAA,QAAAE,kBAAA,SAAgD3E,EAAAqB,GAAAqD,EAAA,kBAAAE,EAAAC,GAAqC,OAAA1E,EAAA,MAAgBhC,IAAA0G,IAAM7E,EAAAc,GAAAd,EAAAoB,GAAAwD,EAAAd,WAA4B,GAAA9D,EAAAe,SAAgB,GAAAf,EAAAe,OAAAf,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAArB,KAAAoF,EAAA,KAAwEyB,UAAUC,UAAA7B,EAAAoB,GAAApB,EAAA5D,KAAA0H,SAAmC9D,EAAAe,KAAAf,EAAAc,GAAA,iBAAAd,EAAA5D,KAAArB,KAAAoF,EAAA,KAA6DE,YAAA,yBAAmCL,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,SAAA9D,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAArB,KAAAoF,EAAA,KAA0FE,YAAA,oBAAAC,aAA6CwE,SAAA,cAAuB3E,EAAA,KAAUa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA5D,KAAA,KAAAyE,WAAA,YAAAK,IAAA,SAAsGpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGb,YAAA,0BAAsCL,EAAAc,GAAA,WAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,MAAA,YAAA9D,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAArB,MAAAiF,EAAA+E,QAAA7B,aAAAe,KAAAe,QAAA,cAAA7E,EAAA,QAA0KM,OAAOvE,KAAA8D,EAAA9D,KAAAE,KAAA4D,EAAA5D,QAAiC4D,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAArB,MAAAiF,EAAA+E,QAAA7B,aAAAe,KAAAe,QAAA,eAAA7E,EAAA,cAA6HM,OAAOvE,KAAA8D,EAAA9D,KAAAE,KAAA4D,EAAA5D,QAAiC4D,EAAAe,MAAA,IAEvyOmB,oBCChC,IAuBe+C,GAvBU7C,EAAQ,OAcjB8C,CACd3B,GACAI,IAT6B,EAV/B,SAAoBrB,GAClBF,EAAQ,SAaS,KAEU,MAUG,QCThC+C,IACArK,KAAA,oBACAsK,YAGAC,IACApJ,OACAC,KAAAC,QAGAqH,YACAD,YAAA0B,IAGA1I,KATA,WAUA,OACA+I,UAAAjJ,OAAAzB,EAAA,EAAAyB,GACAkJ,YAAmBC,OACnBL,MAKArI,YAIAsC,OACAqG,eACAC,QADA,SACArG,GACArC,KAAAuI,YAAAvI,KAAAsI,UAAAjG,IAAAmG,OAAAL,KAEAQ,WAAA,GAEAzJ,KAPA,WAQAc,KAAAsI,UAAAjJ,OAAAzB,EAAA,EAAAyB,GACAW,KAAAuI,YAAAvI,KAAAsI,UAAAtI,KAAAkH,OAAAD,OAAAuB,OAAAL,MAIAS,QAnCA,WAoCIhL,EAAA,EAAJiL,MAAA,kBAGAC,QAvCA,WAwCIlL,EAAA,EAAJiL,MAAA,mBC3DeE,IADEhG,OAFP,WAAgB,IAAAC,EAAAhD,KAAaiD,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,gBAA0BF,EAAA,MAAWE,YAAA,uBAAiCL,EAAAc,GAAAd,EAAAoB,GAAApB,EAAAuF,YAAAzK,SAAAkF,EAAAc,GAAA,KAAAX,EAAA,OAA+DE,YAAA,oBAAAI,OAAuCmD,GAAA,uBAA0B5F,MAAAC,QAAA+B,EAAAuF,YAAAH,SAAApF,EAAAqB,GAAArB,EAAAuF,YAAA,iBAAAnJ,EAAAsF,GAAiG,OAAAvB,EAAA,eAAyBhC,IAAAuD,EAAAjB,OAAiBrE,OAAAF,KAAA8D,EAAA9D,UAA+BiE,EAAA,KAAAH,EAAAc,GAAAd,EAAAoB,GAAApB,EAAAuF,YAAAH,aAAA,MAE1blD,oBCChC,IAcI8D,GAdqB5D,EAAQ,OAcjB6D,CACdZ,GACAU,IAT6B,EAV/B,SAAoBzD,GAClBF,EAAQ,SAaS,kBAEU,MAUd8D,EAAA,QAAAF,GAAiB","file":"static/js/0.b278ffc4d4064d24d558.js","sourcesContent":["\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Content/Demo.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"item-demo-content\"},[_c('div',[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('div',{staticStyle:{\"flex\":\"1\"}},[_c('el-radio',{attrs:{\"label\":1},model:{value:(_vm.parmasShowType),callback:function ($$v) {_vm.parmasShowType=$$v},expression:\"parmasShowType\"}},[_vm._v(\"Table\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":2},model:{value:(_vm.parmasShowType),callback:function ($$v) {_vm.parmasShowType=$$v},expression:\"parmasShowType\"}},[_vm._v(\"JSON\")])],1),_vm._v(\" \"),(!_vm.isTable)?_c('el-button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.jsonParams),expression:\"jsonParams\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],attrs:{\"size\":\"small\"}},[_vm._v(\"\\n \"+_vm._s(_vm.copyParmsBtnText)+\"\\n \")]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"params-content\"},[_c('el-tabs',{attrs:{\"type\":\"card\"},model:{value:(_vm.activeParamsTab),callback:function ($$v) {_vm.activeParamsTab=$$v},expression:\"activeParamsTab\"}},_vm._l((_vm.paramsTabs),function(tab){return _c('el-tab-pane',{key:tab.key,attrs:{\"name\":tab.key,\"label\":tab.type}},[(_vm.isTable)?_c('el-table',{attrs:{\"data\":_vm.renderParamsData,\"stripe\":\"\",\"border\":\"\"}},_vm._l((_vm.paramsTableColumn),function(column,index){return _c('el-table-column',{key:index,attrs:{\"label\":column.label,\"prop\":column.prop,\"align\":\"left\"}})}),1):_c('div',{staticClass:\"code-html\"},[_c('pre',[_c('code',{staticClass:\"hljs language-json\",domProps:{\"innerHTML\":_vm._s(_vm.renderParamsData)}})])])],1)}),1)],1)]),_vm._v(\" \"),_c('div',[_c('i',{staticClass:\"el-icon-s-opportunity\",staticStyle:{\"color\":\"#409EFF\"}},[_vm._v(\" \"+_vm._s(_vm.SampleCodeBtnText))]),_vm._v(\" \"),_c('div',{staticStyle:{\"display\":\"flex\",\"flex-direction\":\"row-reverse\"}},[_c('el-button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.code),expression:\"code\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],attrs:{\"size\":\"small\"}},[_vm._v(_vm._s(_vm.copyCodeBtnText))])],1),_vm._v(\" \"),_c('div',{staticClass:\"params-content\",staticStyle:{\"margin-top\":\"4px\"}},[_c('el-tabs',{attrs:{\"type\":\"card\"},model:{value:(_vm.activeCodeTab),callback:function ($$v) {_vm.activeCodeTab=$$v},expression:\"activeCodeTab\"}},_vm._l((_vm.codeLangConfig),function(code){return _c('el-tab-pane',{key:code.value,attrs:{\"name\":code.value,\"label\":code.label}},[_c('div',{staticClass:\"code-html demo-code\"},[_c('pre',[_c('code',{class:['hljs', (\"language-\" + _vm.activeCodeTab)],domProps:{\"innerHTML\":_vm._s(_vm.demoCode)}})])])])}),1)],1)])])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-72f99f8e\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Content/Demo.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-72f99f8e\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Demo.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Demo.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Demo.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-72f99f8e\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Demo.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-72f99f8e\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Content/Demo.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Content/DemoSocket.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"item-demo-content\"},[_c('div',[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('div',{staticStyle:{\"flex\":\"1\"}},[_c('el-radio',{attrs:{\"label\":1},model:{value:(_vm.parmasShowType),callback:function ($$v) {_vm.parmasShowType=$$v},expression:\"parmasShowType\"}},[_vm._v(\"Table\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":2},model:{value:(_vm.parmasShowType),callback:function ($$v) {_vm.parmasShowType=$$v},expression:\"parmasShowType\"}},[_vm._v(\"JSON\")])],1),_vm._v(\" \"),(!_vm.isTable)?_c('el-button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.jsonParams),expression:\"jsonParams\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],attrs:{\"size\":\"small\"}},[_vm._v(\"\\n \"+_vm._s(_vm.copyParmsBtnText)+\"\\n \")]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"params-content\"},[_c('el-tabs',{attrs:{\"type\":\"card\"},model:{value:(_vm.activeParamsTab),callback:function ($$v) {_vm.activeParamsTab=$$v},expression:\"activeParamsTab\"}},_vm._l((_vm.paramsTabs),function(tab){return _c('el-tab-pane',{key:tab.key,attrs:{\"name\":tab.key,\"label\":tab.type}},[(_vm.isTable)?_c('el-table',{attrs:{\"data\":_vm.renderParamsData,\"stripe\":\"\",\"border\":\"\"}},_vm._l((_vm.paramsTableColumn),function(column,index){return _c('el-table-column',{key:index,attrs:{\"label\":column.label,\"prop\":column.prop,\"align\":\"left\"}})}),1):_c('div',{staticClass:\"code-html\"},[_c('pre',[_c('code',{staticClass:\"hljs language-json\",domProps:{\"innerHTML\":_vm._s(_vm.renderParamsData)}})])])],1)}),1)],1)]),_vm._v(\" \"),_c('div',[_c('div',{staticStyle:{\"display\":\"flex\",\"flex-direction\":\"row-reverse\"}},[_c('el-button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.code),expression:\"code\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],attrs:{\"size\":\"small\"}},[_vm._v(_vm._s(_vm.copyCodeBtnText))])],1),_vm._v(\" \"),_c('div',{staticClass:\"params-content\",staticStyle:{\"margin-top\":\"4px\"}},[_c('el-tabs',{attrs:{\"type\":\"card\"},model:{value:(_vm.activeCodeTab),callback:function ($$v) {_vm.activeCodeTab=$$v},expression:\"activeCodeTab\"}},_vm._l((_vm.codeLangConfig2),function(code){return _c('el-tab-pane',{key:code.value,attrs:{\"name\":code.value,\"label\":code.label}},[_c('div',{staticClass:\"code-html demo-code\"},[_c('pre',[_c('code',{class:['hljs', (\"language-\" + _vm.activeCodeTab)],domProps:{\"innerHTML\":_vm._s(_vm.demoCode)}})])])])}),1)],1)])])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-22d78ccf\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Content/DemoSocket.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-22d78ccf\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./DemoSocket.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./DemoSocket.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./DemoSocket.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-22d78ccf\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./DemoSocket.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-22d78ccf\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Content/DemoSocket.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Content/ContentItem.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.item.type === 'hash')?_c('h2',{staticClass:\"item-hash\",attrs:{\"id\":_vm._f(\"generateId\")(_vm.item.text),\"data-text\":_vm.item.text}},[_c('router-link',{staticClass:\"header-anchor\",attrs:{\"to\":{ path: _vm.$route.path, hash: (\"#\" + (_vm.item.text)) }}},[_vm._v(\"\\n \"+_vm._s(_vm.item.text)+\"\\n \")])],1):_c('div',{staticClass:\"content-item\"},[(_vm.item.type === 'title')?_c('p',{staticClass:\"item-title\"},[_vm._v(_vm._s(_vm.item.text)+\" \")]):_vm._e(),_vm._v(\" \"),(_vm.item.text === '接口参数')?_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('i',{staticClass:\"el-icon-s-opportunity\",staticStyle:{\"font-size\":\"larger\",\"color\":\"#409EFF\"}}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"1. 创建API KEY\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"2. 配置API KEY权限\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/authentication.html\",\"target\":\"_blank\"}},[_vm._v(\"3. 了解签名认证\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"},[_vm._v(\"4. 跑以下示例代码\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/base-info.html#常见错误码\",\"target\":\"_blank\"}},[_vm._v(\"5. 了解常见错误码\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/base-info.html#频率限制\",\"target\":\"_blank\"}},[_vm._v(\"6. 了解频率限制\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/base-info.html#时间戳规范\",\"target\":\"_blank\"}},[_vm._v(\"7. 了解请求时间戳\")]),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/support/articles/360027240173/#h_01GC8VAS3VM1RHFEDE9XVTDAJQ\",\"target\":\"_blank\"}},[_vm._v(\"8. 了解手续费\")])],1):_vm._e(),_vm._v(\" \"),(_vm.item.text === '接口參數')?_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('i',{staticClass:\"el-icon-s-opportunity\",staticStyle:{\"font-size\":\"larger\",\"color\":\"#409EFF\"}}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"1. 創建API KEY\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"2. 配置API KEY權限\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/authentication.html\",\"target\":\"_blank\"}},[_vm._v(\"3. 了解簽名認證\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"},[_vm._v(\"4. 跑以下示例代碼\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/base-info.html#常見錯誤碼\",\"target\":\"_blank\"}},[_vm._v(\"5. 常見錯誤碼\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/base-info.html#頻率限制\",\"target\":\"_blank\"}},[_vm._v(\"6. 了解頻率限制\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/base-info.html#時間戳規範\",\"target\":\"_blank\"}},[_vm._v(\"7. 了解請求時間戳\")]),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/support/articles/360027240173/#h_01GC8VAS3VM1RHFEDE9XVTDAJQ\",\"target\":\"_blank\"}},[_vm._v(\"8. 了解手续费\")])],1):_vm._e(),_vm._v(\" \"),(_vm.item.text === 'request parameters')?_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('i',{staticClass:\"el-icon-s-opportunity\",staticStyle:{\"font-size\":\"larger\",\"color\":\"#409EFF\"}}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"1. Create API KEY\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"2. Configure API KEY permissions\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/authentication.html\",\"target\":\"_blank\"}},[_vm._v(\"3. Understanding signature authentication\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"},[_vm._v(\"4. Run the following example code\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/base-info.html#Common%20Error%20Codes\",\"target\":\"_blank\"}},[_vm._v(\"5. Understand common error codes\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/base-info.html#Rate%20Limits\",\"target\":\"_blank\"}},[_vm._v(\"6. Understand rate limitations\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx-api.github.io/docs/#/swapV2/base-info.html#Timestamp\",\"target\":\"_blank\"}},[_vm._v(\"7. Understanding request timestamps\")]),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/en-us/support/articles/360027240173/#h_01GC8VAS3VM1RHFEDE9XVTDAJQ\",\"target\":\"_blank\"}},[_vm._v(\"8. Understand fee schedule\")])],1):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'normal')?_c('div',{staticClass:\"item-normal\"},[(_vm.item.text)?_c('p',{style:(_vm.item.style || {})},[_vm._v(_vm._s(_vm.item.text)),(_vm.item.text === 'HTTP 请求' || _vm.item.text === 'HTTP 請求' || _vm.item.text === 'HTTP Request')?_c('label',[_vm._v(\" https://open-api.bingx.com\")]):_vm._e()]):_vm._e(),_vm._v(\" \"),(Array.isArray(_vm.item.children))?_c('ul',{staticStyle:{\"margin-left\":\"-10px\"}},_vm._l((_vm.item.children),function(c1,i){return _c('li',{key:i},[(c1.type === 'html')?_c('span',{domProps:{\"innerHTML\":_vm._s(c1.text)}}):_c('span',[_vm._v(_vm._s(c1.text))]),_vm._v(\" \"),(Array.isArray(c1.children))?_c('ul',{staticStyle:{\"margin-left\":\"-15px\",\"list-style-type\":\"disc\"}},_vm._l((c1.children),function(c2,j){return _c('li',{key:j},[_vm._v(_vm._s(c2.text))])}),0):_vm._e()])}),0):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'html')?_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.item.text)}}):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'warning')?_c('p',{staticClass:\"item-warning-content\"},[_vm._v(_vm._s(_vm.item.text))]):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'code')?_c('p',{staticClass:\"item-code-content\",staticStyle:{\"position\":\"relative\"}},[_c('i',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.item.text),expression:\"item.text\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],staticClass:\"el-icon-copy-document\"}),_vm._v(\"\\n \"+_vm._s(_vm.item.text)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'demo' && _vm.$router.currentRoute.path.indexOf('/socket/') < 0)?_c('Demo',{attrs:{\"lang\":_vm.lang,\"item\":_vm.item}}):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'demo' && _vm.$router.currentRoute.path.indexOf('/socket/') > -1)?_c('DemoSocket',{attrs:{\"lang\":_vm.lang,\"item\":_vm.item}}):_vm._e()],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-0e537400\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Content/ContentItem.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-0e537400\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./ContentItem.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./ContentItem.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./ContentItem.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-0e537400\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./ContentItem.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Content/ContentItem.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Content/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-content\"},[_c('h1',{staticClass:\"page-content-title\"},[_vm._v(_vm._s(_vm.pageContent.name))]),_vm._v(\" \"),_c('div',{staticClass:\"page-content-wrap\",attrs:{\"id\":\"page-content-wrap\"}},[(Array.isArray(_vm.pageContent.content))?_vm._l((_vm.pageContent.content),function(item,index){return _c('ContentItem',{key:index,attrs:{\"item\":item,\"lang\":_vm.lang}})}):_c('p',[_vm._v(_vm._s(_vm.pageContent.content))])],2)])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-514494ef\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Content/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-514494ef\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-514494ef\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-514494ef\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Content/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/0.de6e3d81c63917137301.js b/static/js/0.de6e3d81c63917137301.js deleted file mode 100644 index 346bbde7..00000000 --- a/static/js/0.de6e3d81c63917137301.js +++ /dev/null @@ -1,2 +0,0 @@ -webpackJsonp([0],{"/Fr+":function(e,t){},TqGO:function(e,t){},dPpd:function(e,t){},hOG2:function(e,t){},z6YW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,s,i,r,o,c,l=a("Dd8w"),p=a.n(l),m=a("0xDb"),u=a("Gu7T"),d=a.n(u),h=a("mvHQ"),b=a.n(h),v=a("OvRC"),g=a.n(v),f=a("bOdI"),y=a.n(f),_=(n={},y()(n,m.c.zh,{name:"参数名",type:"类型",required:"是否必填",description:"字段说明"}),y()(n,m.c.tw,{name:"參數名",type:"類型",required:"是否必填",description:"欄位說明"}),y()(n,m.c.en,{name:"Parameter Name",type:"Type",required:"Required",description:"Field Description"}),n),C=(s={},y()(s,m.c.zh,{name:"参数名",description:"字段说明"}),y()(s,m.c.tw,{name:"參數名",description:"欄位說明"}),y()(s,m.c.en,{name:"Parameter Name",description:"Field Description"}),s),T=(i={},y()(i,m.c.zh,{name:"",description:"说明"}),y()(i,m.c.tw,{name:"",description:"說明"}),y()(i,m.c.en,{name:"",description:"description"}),i),x={code:(r={},y()(r,m.c.zh,"复制代码"),y()(r,m.c.tw,"複製代碼"),y()(r,m.c.en,"Copy Code"),r),params:(o={},y()(o,m.c.zh,"复制参数"),y()(o,m.c.tw,"複製參數"),y()(o,m.c.en,"Copy Parameters"),o),txt:(c={},y()(c,m.c.zh,"示例代码"),y()(c,m.c.tw,"示例代碼"),y()(c,m.c.en,"Sample code"),c)},k="request",w="request1",P="request2",M="request3",S="response",E="response1",q="response2",j="response3",z="wssResponse",N="common",$="key1",F="key2",D="key3",O="key4",A="key5",V="key6",R="key7",I="key8",L={name:"Demo",props:{lang:String,item:{type:Object,default:function(){}}},data:function(){return{parmasShowType:1,activeParamsTab:"",paramsTableColumn:[],codeLangConfig:m.d,activeCodeTab:m.d[0].value}},computed:{isTable:function(){return 1===this.parmasShowType},successMsg:function(){return m.m.success[this.lang]},errorMsg:function(){return m.m.error[this.lang]},copyCodeBtnText:function(){return x.code[this.lang]},SampleCodeBtnText:function(){return x.txt[this.lang]},copyParmsBtnText:function(){return x.params[this.lang]},currentMap:function(){return _[this.lang]},currentCommonMap:function(){return T[this.lang]},currentWssMap:function(){return C[this.lang]},requestTableColumns:function(){return[{prop:"name",label:this.currentMap.name},{prop:"type",label:this.currentMap.type},{prop:"required",label:this.currentMap.required},{prop:"description",label:this.currentMap.description}]},commonTableColumns:function(){return[{prop:"name",label:this.currentCommonMap.name},{prop:"description",label:this.currentCommonMap.description}]},wssTableColumns:function(){return[{prop:"name",label:this.currentWssMap.name},{prop:"description",label:this.currentWssMap.description}]},responseTableColumns:function(){return[{prop:"name",label:this.currentMap.name},{prop:"type",label:this.currentMap.type},{prop:"description",label:this.currentMap.description}]},paramsTabs:function(){return Array.isArray(this.item.params)?this.item.params.map(function(e){return{type:e.type,key:e.key}}):[]},jsonParams:function(){var e=this,t=this.item.params.find(function(t){return t.key===e.activeParamsTab}),a=g()(null);return(t?t.data:[]).forEach(function(e){a[e.name]=e.type}),b()(a,null,2)},renderParamsData:function(){var e=this,t=this.item.params.find(function(t){return t.key===e.activeParamsTab});if(this.isTable)return t?t.data:[];var a=g()(null);return(t?t.data:[]).forEach(function(e){a[e.name]=e.type}),this.$hljs.highlight(b()(a,null,2),{language:"json"}).value},code:function(){return this.item.api?Object(m.g)(this.item.api,this.activeCodeTab,this.item.host||"open-api.bingx.com"):"No Code"},demoCode:function(){return this.$hljs.highlight(this.code,{language:this.activeCodeTab}).value}},watch:{activeParamsTab:function(e){this.paramsTableColumn=[].concat(e===k||e===w||e===P||e===M?d()(this.requestTableColumns):e===S||e===E||e===q||e===j?d()(this.responseTableColumns):e===N?d()(this.commonTableColumns):e===$?d()(this.commonTableColumns):e===F?d()(this.commonTableColumns):e===D?d()(this.commonTableColumns):e===O?d()(this.commonTableColumns):e===A?d()(this.commonTableColumns):e===V?d()(this.commonTableColumns):e===R?d()(this.commonTableColumns):e===I?d()(this.commonTableColumns):e===z?d()(this.wssTableColumns):d()(this.responseTableColumns))}},methods:{onCopy:function(){this.$message.success(this.successMsg)},onError:function(){this.$message.success(this.errorMsg)}},created:function(){"demo"===this.item.type&&(this.activeParamsTab=this.paramsTabs[0].key)}},B={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"item-demo-content"},[a("div",[a("div",{staticStyle:{display:"flex"}},[a("div",{staticStyle:{flex:"1"}},[a("el-radio",{attrs:{label:1},model:{value:e.parmasShowType,callback:function(t){e.parmasShowType=t},expression:"parmasShowType"}},[e._v("Table")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.parmasShowType,callback:function(t){e.parmasShowType=t},expression:"parmasShowType"}},[e._v("JSON")])],1),e._v(" "),e.isTable?e._e():a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.jsonParams,expression:"jsonParams",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],attrs:{size:"small"}},[e._v("\n "+e._s(e.copyParmsBtnText)+"\n ")])],1),e._v(" "),a("div",{staticClass:"params-content"},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeParamsTab,callback:function(t){e.activeParamsTab=t},expression:"activeParamsTab"}},e._l(e.paramsTabs,function(t){return a("el-tab-pane",{key:t.key,attrs:{name:t.key,label:t.type}},[e.isTable?a("el-table",{attrs:{data:e.renderParamsData,stripe:"",border:""}},e._l(e.paramsTableColumn,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop,align:"left"}})}),1):a("div",{staticClass:"code-html"},[a("pre",[a("code",{staticClass:"hljs language-json",domProps:{innerHTML:e._s(e.renderParamsData)}})])])],1)}),1)],1)]),e._v(" "),a("div",[a("i",{staticClass:"el-icon-s-opportunity",staticStyle:{color:"#409EFF"}},[e._v(" "+e._s(e.SampleCodeBtnText))]),e._v(" "),a("div",{staticStyle:{display:"flex","flex-direction":"row-reverse"}},[a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.code,expression:"code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],attrs:{size:"small"}},[e._v(e._s(e.copyCodeBtnText))])],1),e._v(" "),a("div",{staticClass:"params-content",staticStyle:{"margin-top":"4px"}},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeCodeTab,callback:function(t){e.activeCodeTab=t},expression:"activeCodeTab"}},e._l(e.codeLangConfig,function(t){return a("el-tab-pane",{key:t.value,attrs:{name:t.value,label:t.label}},[a("div",{staticClass:"code-html demo-code"},[a("pre",[a("code",{class:["hljs","language-"+e.activeCodeTab],domProps:{innerHTML:e._s(e.demoCode)}})])])])}),1)],1)])])},staticRenderFns:[]};var H,U,W,Y,K,G=a("VU/8")(L,B,!1,function(e){a("hOG2")},"data-v-72f99f8e",null).exports,J=(H={},y()(H,m.c.zh,{name:"参数名",type:"类型",required:"是否必填",description:"字段说明"}),y()(H,m.c.tw,{name:"參數名",type:"類型",required:"是否必填",description:"欄位說明"}),y()(H,m.c.en,{name:"Parameter Name",type:"Type",required:"Required",description:"Field Description"}),H),Q=(U={},y()(U,m.c.zh,{name:"参数名",description:"字段说明"}),y()(U,m.c.tw,{name:"參數名",description:"欄位說明"}),y()(U,m.c.en,{name:"Parameter Name",description:"Field Description"}),U),X=(W={},y()(W,m.c.zh,{name:"",description:"说明"}),y()(W,m.c.tw,{name:"",description:"說明"}),y()(W,m.c.en,{name:"",description:"description"}),W),Z={code:(Y={},y()(Y,m.c.zh,"复制代码"),y()(Y,m.c.tw,"複製代碼"),y()(Y,m.c.en,"Copy Code"),Y),params:(K={},y()(K,m.c.zh,"复制参数"),y()(K,m.c.tw,"複製參數"),y()(K,m.c.en,"Copy Parameters"),K)},ee="request",te="request1",ae="request2",ne="request3",se="response",ie="response1",re="response2",oe="response3",ce="wssResponse",le="common",pe="key1",me="key2",ue="key3",de="key4",he="key5",be="key6",ve="key7",ge="key8",fe={name:"DemoSocket",props:{lang:String,item:{type:Object,default:function(){}}},data:function(){return{parmasShowType:1,currentRoute:"",activeParamsTab:"",paramsTableColumn:[],codeLangConfig2:m.e,activeCodeTab:m.e[0].value}},computed:{isTable:function(){return 1===this.parmasShowType},successMsg:function(){return m.m.success[this.lang]},errorMsg:function(){return m.m.error[this.lang]},copyCodeBtnText:function(){return Z.code[this.lang]},copyParmsBtnText:function(){return Z.params[this.lang]},currentMap:function(){return J[this.lang]},currentCommonMap:function(){return X[this.lang]},currentWssMap:function(){return Q[this.lang]},requestTableColumns:function(){return[{prop:"name",label:this.currentMap.name},{prop:"type",label:this.currentMap.type},{prop:"required",label:this.currentMap.required},{prop:"description",label:this.currentMap.description}]},commonTableColumns:function(){return[{prop:"name",label:this.currentCommonMap.name},{prop:"description",label:this.currentCommonMap.description}]},wssTableColumns:function(){return[{prop:"name",label:this.currentWssMap.name},{prop:"description",label:this.currentWssMap.description}]},responseTableColumns:function(){return[{prop:"name",label:this.currentMap.name},{prop:"type",label:this.currentMap.type},{prop:"description",label:this.currentMap.description}]},paramsTabs:function(){return Array.isArray(this.item.params)?this.item.params.map(function(e){return{type:e.type,key:e.key}}):[]},jsonParams:function(){var e=this,t=this.item.params.find(function(t){return t.key===e.activeParamsTab}),a=g()(null);return(t?t.data:[]).forEach(function(e){a[e.name]=e.type}),b()(a,null,2)},renderParamsData:function(){var e=this,t=this.item.params.find(function(t){return t.key===e.activeParamsTab});if(this.isTable)return t?t.data:[];var a=g()(null);return(t?t.data:[]).forEach(function(e){a[e.name]=e.type}),this.$hljs.highlight(b()(a,null,2),{language:"json"}).value},code:function(){return Object(m.h)(this.item.api,this.activeCodeTab,this.item.host||"open-api.bingx.com")},demoCode:function(){return this.$hljs.highlight(this.code,{language:this.activeCodeTab}).value}},watch:{activeParamsTab:function(e){this.paramsTableColumn=[].concat(e===ee||e===te||e===ae||e===ne?d()(this.requestTableColumns):e===se||e===ie||e===re||e===oe?d()(this.responseTableColumns):e===le?d()(this.commonTableColumns):e===pe?d()(this.commonTableColumns):e===me?d()(this.commonTableColumns):e===ue?d()(this.commonTableColumns):e===de?d()(this.commonTableColumns):e===he?d()(this.commonTableColumns):e===be?d()(this.commonTableColumns):e===ve?d()(this.commonTableColumns):e===ge?d()(this.commonTableColumns):e===ce?d()(this.wssTableColumns):d()(this.responseTableColumns))}},methods:{onCopy:function(){this.$message.success(this.successMsg)},onError:function(){this.$message.success(this.errorMsg)}},created:function(){"demo"===this.item.type&&(this.activeParamsTab=this.paramsTabs[0].key)}},ye={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"item-demo-content"},[a("div",[a("div",{staticStyle:{display:"flex"}},[a("div",{staticStyle:{flex:"1"}},[a("el-radio",{attrs:{label:1},model:{value:e.parmasShowType,callback:function(t){e.parmasShowType=t},expression:"parmasShowType"}},[e._v("Table")]),e._v(" "),a("el-radio",{attrs:{label:2},model:{value:e.parmasShowType,callback:function(t){e.parmasShowType=t},expression:"parmasShowType"}},[e._v("JSON")])],1),e._v(" "),e.isTable?e._e():a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.jsonParams,expression:"jsonParams",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],attrs:{size:"small"}},[e._v("\n "+e._s(e.copyParmsBtnText)+"\n ")])],1),e._v(" "),a("div",{staticClass:"params-content"},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeParamsTab,callback:function(t){e.activeParamsTab=t},expression:"activeParamsTab"}},e._l(e.paramsTabs,function(t){return a("el-tab-pane",{key:t.key,attrs:{name:t.key,label:t.type}},[e.isTable?a("el-table",{attrs:{data:e.renderParamsData,stripe:"",border:""}},e._l(e.paramsTableColumn,function(e,t){return a("el-table-column",{key:t,attrs:{label:e.label,prop:e.prop,align:"left"}})}),1):a("div",{staticClass:"code-html"},[a("pre",[a("code",{staticClass:"hljs language-json",domProps:{innerHTML:e._s(e.renderParamsData)}})])])],1)}),1)],1)]),e._v(" "),a("div",[a("div",{staticStyle:{display:"flex","flex-direction":"row-reverse"}},[a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.code,expression:"code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],attrs:{size:"small"}},[e._v(e._s(e.copyCodeBtnText))])],1),e._v(" "),a("div",{staticClass:"params-content",staticStyle:{"margin-top":"4px"}},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeCodeTab,callback:function(t){e.activeCodeTab=t},expression:"activeCodeTab"}},e._l(e.codeLangConfig2,function(t){return a("el-tab-pane",{key:t.value,attrs:{name:t.value,label:t.label}},[a("div",{staticClass:"code-html demo-code"},[a("pre",[a("code",{class:["hljs","language-"+e.activeCodeTab],domProps:{innerHTML:e._s(e.demoCode)}})])])])}),1)],1)])])},staticRenderFns:[]};var _e=a("VU/8")(fe,ye,!1,function(e){a("TqGO")},"data-v-22d78ccf",null).exports,Ce={name:"ContentItem",props:{lang:String,item:{type:Object,default:function(){}}},components:{Demo:G,DemoSocket:_e},data:function(){return{}},filters:{generateId:m.i},computed:{successMsg:function(){return m.m.success[this.lang]},errorMsg:function(){return m.m.error[this.lang]}},methods:{onCopy:function(){this.$message.success(this.successMsg)},onError:function(){this.$message.success(this.errorMsg)}}},Te={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return"hash"===e.item.type?a("h2",{staticClass:"item-hash",attrs:{id:e._f("generateId")(e.item.text),"data-text":e.item.text}},[a("router-link",{staticClass:"header-anchor",attrs:{to:{path:e.$route.path,hash:"#"+e.item.text}}},[e._v("\n "+e._s(e.item.text)+"\n ")])],1):a("div",{staticClass:"content-item"},["title"===e.item.type?a("p",{staticClass:"item-title"},[e._v(e._s(e.item.text)+" ")]):e._e(),e._v(" "),"接口参数"===e.item.text?a("div",{staticStyle:{"margin-top":"15px"}},[a("i",{staticClass:"el-icon-s-opportunity",staticStyle:{"font-size":"larger",color:"#409EFF"}}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("1. 创建API KEY")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("2. 配置API KEY权限")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/authentication.html",target:"_blank"}},[e._v("3. 了解签名认证")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("i",{staticClass:"el-icon-right"},[e._v("4. 跑以下示例代码")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/base-info.html#常见错误码",target:"_blank"}},[e._v("5. 了解常见错误码")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/base-info.html#频率限制",target:"_blank"}},[e._v("6. 了解频率限制")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/base-info.html#时间戳规范",target:"_blank"}},[e._v("7. 了解请求时间戳")])],1):e._e(),e._v(" "),"接口參數"===e.item.text?a("div",{staticStyle:{"margin-top":"15px"}},[a("i",{staticClass:"el-icon-s-opportunity",staticStyle:{"font-size":"larger",color:"#409EFF"}}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("1. 創建API KEY")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("2. 配置API KEY權限")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/authentication.html",target:"_blank"}},[e._v("3. 了解簽名認證")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("i",{staticClass:"el-icon-right"},[e._v("4. 跑以下示例代碼")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/base-info.html#常見錯誤碼",target:"_blank"}},[e._v("5. 常見錯誤碼")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/base-info.html#頻率限制",target:"_blank"}},[e._v("6. 了解頻率限制")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/base-info.html#時間戳規範",target:"_blank"}},[e._v("7. 了解請求時間戳")])],1):e._e(),e._v(" "),"request parameters"===e.item.text?a("div",{staticStyle:{"margin-top":"15px"}},[a("i",{staticClass:"el-icon-s-opportunity",staticStyle:{"font-size":"larger",color:"#409EFF"}}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("1. Create API KEY")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:"https://bingx.com/zh-tw/account/api/",target:"_blank"}},[e._v("2. Configure API KEY permissions")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/authentication.html",target:"_blank"}},[e._v("3. Understanding signature authentication")]),e._v(" "),a("i",{staticClass:"el-icon-right"},[e._v("4. Run the following example code")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/base-info.html#Common%20Error%20Codes",target:"_blank"}},[e._v("5. Understand common error codes")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/base-info.html#Rate%20Limits",target:"_blank"}},[e._v("6. Understand rate limitations")]),e._v(" "),a("i",{staticClass:"el-icon-right"}),e._v(" "),a("el-link",{attrs:{href:" https://bingx-api.github.io/docs/#/swapV2/base-info.html#Timestamp",target:"_blank"}},[e._v("7. Understanding request timestamps")])],1):e._e(),e._v(" "),"normal"===e.item.type?a("div",{staticClass:"item-normal"},[e.item.text?a("p",{style:e.item.style||{}},[e._v(e._s(e.item.text)),"HTTP 请求"===e.item.text||"HTTP 請求"===e.item.text||"HTTP Request"===e.item.text?a("label",[e._v(" https://open-api.bingx.com")]):e._e()]):e._e(),e._v(" "),Array.isArray(e.item.children)?a("ul",{staticStyle:{"margin-left":"-10px"}},e._l(e.item.children,function(t,n){return a("li",{key:n},["html"===t.type?a("span",{domProps:{innerHTML:e._s(t.text)}}):a("span",[e._v(e._s(t.text))]),e._v(" "),Array.isArray(t.children)?a("ul",{staticStyle:{"margin-left":"-15px","list-style-type":"disc"}},e._l(t.children,function(t,n){return a("li",{key:n},[e._v(e._s(t.text))])}),0):e._e()])}),0):e._e()]):e._e(),e._v(" "),"html"===e.item.type?a("p",{domProps:{innerHTML:e._s(e.item.text)}}):e._e(),e._v(" "),"warning"===e.item.type?a("p",{staticClass:"item-warning-content"},[e._v(e._s(e.item.text))]):e._e(),e._v(" "),"code"===e.item.type?a("p",{staticClass:"item-code-content",staticStyle:{position:"relative"}},[a("i",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.item.text,expression:"item.text",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],staticClass:"el-icon-copy-document"}),e._v("\n "+e._s(e.item.text)+"\n ")]):e._e(),e._v(" "),"demo"===e.item.type&&e.$router.currentRoute.path.indexOf("/socket/")<0?a("Demo",{attrs:{lang:e.lang,item:e.item}}):e._e(),e._v(" "),"demo"===e.item.type&&e.$router.currentRoute.path.indexOf("/socket/")>-1?a("DemoSocket",{attrs:{lang:e.lang,item:e.item}}):e._e()],1)},staticRenderFns:[]};var xe=a("VU/8")(Ce,Te,!1,function(e){a("/Fr+")},null,null).exports,ke={name:"Content Not Found",content:[]},we={props:{lang:String},components:{ContentItem:xe},data:function(){return{appConfig:Object(m.j)(),pageContent:p()({},ke)}},computed:{},watch:{"$route.path":{handler:function(e){this.pageContent=this.appConfig[e]||p()({},ke)},immediate:!0},lang:function(){this.appConfig=Object(m.j)(),this.pageContent=this.appConfig[this.$route.path]||p()({},ke)}},mounted:function(){m.f.$emit("content-ready")},updated:function(){m.f.$emit("content-ready")}},Pe={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-content"},[a("h1",{staticClass:"page-content-title"},[e._v(e._s(e.pageContent.name))]),e._v(" "),a("div",{staticClass:"page-content-wrap",attrs:{id:"page-content-wrap"}},[Array.isArray(e.pageContent.content)?e._l(e.pageContent.content,function(t,n){return a("ContentItem",{key:n,attrs:{item:t,lang:e.lang}})}):a("p",[e._v(e._s(e.pageContent.content))])],2)])},staticRenderFns:[]};var Me=a("VU/8")(we,Pe,!1,function(e){a("dPpd")},"data-v-514494ef",null);t.default=Me.exports}}); -//# sourceMappingURL=0.de6e3d81c63917137301.js.map \ No newline at end of file diff --git a/static/js/0.de6e3d81c63917137301.js.map b/static/js/0.de6e3d81c63917137301.js.map deleted file mode 100644 index ef6e41f5..00000000 --- a/static/js/0.de6e3d81c63917137301.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///src/components/Content/Demo.vue","webpack:///./src/components/Content/Demo.vue?eb76","webpack:///./src/components/Content/Demo.vue","webpack:///src/components/Content/DemoSocket.vue","webpack:///./src/components/Content/DemoSocket.vue?69c9","webpack:///./src/components/Content/DemoSocket.vue","webpack:///src/components/Content/ContentItem.vue","webpack:///./src/components/Content/ContentItem.vue?97b5","webpack:///./src/components/Content/ContentItem.vue","webpack:///src/components/Content/index.vue","webpack:///./src/components/Content/index.vue?c71d","webpack:///./src/components/Content/index.vue"],"names":["propMap","_propMap","defineProperty_default","utils","zh","name","type","required","description","tw","en","wssMap","_wssMap","commonMap","_commonMap","buttonTextMap","code","_code","params","_params","txt","_txt","paramsTabKey","Demo","props","lang","String","item","Object","default","data","parmasShowType","activeParamsTab","paramsTableColumn","codeLangConfig","activeCodeTab","value","computed","isTable","this","successMsg","errorMsg","copyCodeBtnText","SampleCodeBtnText","copyParmsBtnText","currentMap","currentCommonMap","currentWssMap","requestTableColumns","prop","label","commonTableColumns","wssTableColumns","responseTableColumns","paramsTabs","Array","isArray","map","key","jsonParams","_this","find","res","create_default","forEach","i","stringify_default","renderParamsData","_this2","$hljs","highlight","language","api","host","demoCode","watch","val","concat","toConsumableArray_default","methods","onCopy","$message","success","onError","created","Content_Demo","render","_vm","_h","$createElement","_c","_self","staticClass","staticStyle","display","flex","attrs","model","callback","$$v","expression","_v","_e","directives","rawName","arg","size","_s","_l","tab","stripe","border","column","index","align","domProps","innerHTML","color","flex-direction","margin-top","class","staticRenderFns","components_Content_Demo","__webpack_require__","normalizeComponent","ssrContext","DemoSocket_propMap","DemoSocket__propMap","DemoSocket_wssMap","DemoSocket__wssMap","DemoSocket_commonMap","DemoSocket__commonMap","DemoSocket_buttonTextMap","DemoSocket__code","DemoSocket__params","DemoSocket_paramsTabKey","DemoSocket","currentRoute","codeLangConfig2","Content_DemoSocket","components_Content_DemoSocket","DemoSocket_normalizeComponent","ContentItem","components","filters","generateId","Content_ContentItem","id","_f","text","data-text","to","path","$route","hash","font-size","href","target","style","children","margin-left","c1","list-style-type","c2","j","position","$router","indexOf","components_Content_ContentItem","ContentItem_normalizeComponent","defaultPageContent","content","Content","appConfig","pageContent","extends_default","$route.path","handler","immediate","mounted","$emit","updated","components_Content","Content_Component","Content_normalizeComponent","__webpack_exports__"],"mappings":"gUAkDAA,GAAAC,KAAAC,IAAAD,EACAE,EAAA,EAAAC,IACAC,KAAA,MACAC,KAAA,KACAC,SAAA,OACAC,YAAA,SALAN,IAAAD,EAOAE,EAAA,EAAAM,IACAJ,KAAA,MACAC,KAAA,KACAC,SAAA,OACAC,YAAA,SAXAN,IAAAD,EAaAE,EAAA,EAAAO,IACAL,KAAA,iBACAC,KAAA,OACAC,SAAA,WACAC,YAAA,sBAjBAP,GAoBAU,GAAAC,KAAAV,IAAAU,EACAT,EAAA,EAAAC,IACAC,KAAA,MACAG,YAAA,SAHAN,IAAAU,EAKAT,EAAA,EAAAM,IACAJ,KAAA,MACAG,YAAA,SAPAN,IAAAU,EASAT,EAAA,EAAAO,IACAL,KAAA,iBACAG,YAAA,sBAXAI,GAcAC,GAAAC,KAAAZ,IAAAY,EACAX,EAAA,EAAAC,IACAC,KAAA,GACAG,YAAA,OAHAN,IAAAY,EAKAX,EAAA,EAAAM,IACAJ,KAAA,GACAG,YAAA,OAPAN,IAAAY,EASAX,EAAA,EAAAO,IACAL,KAAA,GACAG,YAAA,gBAXAM,GAeAC,GACAC,MAAAC,KAAAf,IAAAe,EACAd,EAAA,EAAAC,GAAA,QADAF,IAAAe,EAEAd,EAAA,EAAAM,GAAA,QAFAP,IAAAe,EAGAd,EAAA,EAAAO,GAAA,aAHAO,GAKAC,QAAAC,KAAAjB,IAAAiB,EACAhB,EAAA,EAAAC,GAAA,QADAF,IAAAiB,EAEAhB,EAAA,EAAAM,GAAA,QAFAP,IAAAiB,EAGAhB,EAAA,EAAAO,GAAA,mBAHAS,GAKAC,KAAAC,KAAAnB,IAAAmB,EACAlB,EAAA,EAAAC,GAAA,QADAF,IAAAmB,EAEAlB,EAAA,EAAAM,GAAA,QAFAP,IAAAmB,EAGAlB,EAAA,EAAAO,GAAA,eAHAW,IAOAC,EACA,UADAA,EAEA,WAFAA,EAGA,WAHAA,EAIA,WAJAA,EAKA,WALAA,EAMA,YANAA,EAOA,YAPAA,EAQA,YARAA,EASA,cATAA,EAUA,SAVAA,EAWA,OAXAA,EAYA,OAZAA,EAaA,OAbAA,EAcA,OAdAA,EAeA,OAfAA,EAgBA,OAhBAA,EAiBA,OAjBAA,EAkBA,OAKAC,GACAlB,KAAA,OACAmB,OACAC,KAAAC,OACAC,MACArB,KAAAsB,OACAC,QAAA,eAIAC,KAVA,WAWA,OACAC,eAAA,EACAC,gBAAA,GACAC,qBAEAC,eAAA/B,EAAA,EACAgC,cAAAhC,EAAA,KAAAiC,QAIAC,UACAC,QADA,WAEA,WAAAC,KAAAR,gBAGAS,WALA,WAMA,OAAArC,EAAA,UAAAoC,KAAAd,OAGAgB,SATA,WAUA,OAAAtC,EAAA,QAAAoC,KAAAd,OAGAiB,gBAbA,WAcA,OAAA3B,EAAA,KAAAwB,KAAAd,OAEAkB,kBAhBA,WAiBA,OAAA5B,EAAA,IAAAwB,KAAAd,OAGAmB,iBApBA,WAqBA,OAAA7B,EAAA,OAAAwB,KAAAd,OAGAoB,WAxBA,WAyBA,OAAA7C,EAAAuC,KAAAd,OAEAqB,iBA3BA,WA4BA,OAAAjC,EAAA0B,KAAAd,OAEAsB,cA9BA,WA+BA,OAAApC,EAAA4B,KAAAd,OAEAuB,oBAjCA,WAkCA,QACAC,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,WACAC,MAAAX,KAAAM,WAAA,WAEAI,KAAA,cACAC,MAAAX,KAAAM,WAAA,eAGAM,mBAhDA,WAiDA,QACAF,KAAA,OACAC,MAAAX,KAAAO,iBAAA,OAEAG,KAAA,cACAC,MAAAX,KAAAO,iBAAA,eAGAM,gBAzDA,WA0DA,QACAH,KAAA,OACAC,MAAAX,KAAAQ,cAAA,OAEAE,KAAA,cACAC,MAAAX,KAAAQ,cAAA,eAIAM,qBAnEA,WAoEA,QACAJ,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,cACAC,MAAAX,KAAAM,WAAA,eAIAS,WAhFA,WAiFA,OAAAC,MAAAC,QAAAjB,KAAAZ,KAAAT,QACAqB,KAAAZ,KAAAT,OAAAuC,IAAA,SAAA9B,GAAA,OACArB,KAAAqB,EAAArB,KACAoD,IAAA/B,EAAA+B,WAMAC,WA1FA,WA0FA,IAAAC,EAAArB,KACAZ,EAAAY,KAAAZ,KAAAT,OAAA2C,KAAA,SAAAlC,GAAA,OAAAA,EAAA+B,MAAAE,EAAA5B,kBACA8B,EAAAC,IAAA,MAKA,OAJApC,IAAAG,SACAkC,QAAA,SAAAC,GACAH,EAAAG,EAAA5D,MAAA4D,EAAA3D,OAEA4D,IAAAJ,EAAA,SAGAK,iBApGA,WAoGA,IAAAC,EAAA7B,KACAZ,EAAAY,KAAAZ,KAAAT,OAAA2C,KAAA,SAAAlC,GAAA,OAAAA,EAAA+B,MAAAU,EAAApC,kBACA,GAAAO,KAAAD,QACA,OAAAX,IAAAG,QAGA,IAAAgC,EAAAC,IAAA,MAMA,OALApC,IAAAG,SACAkC,QAAA,SAAAC,GACAH,EAAAG,EAAA5D,MAAA4D,EAAA3D,OAGAiC,KAAA8B,MAAAC,UAAAJ,IAAAJ,EAAA,SAAAS,SAAA,SAAAnC,OAGApB,KAnHA,WAoHA,OAAAuB,KAAAZ,KAAA6C,IAGA5C,OAAAzB,EAAA,EAAAyB,CAAAW,KAAAZ,KAAA6C,IAAAjC,KAAAJ,cAAAI,KAAAZ,KAAA8C,MA9IA,sBA4IA,WAKAC,SA1HA,WA2HA,OAAAnC,KAAA8B,MAAAC,UAAA/B,KAAAvB,MAAAuD,SAAAhC,KAAAJ,gBAAAC,QAIAuC,OACA3C,gBADA,SACA4C,GAEArC,KAAAN,qBAAA4C,OADAD,IAAAtD,GAAAsD,IAAAtD,GAAAsD,IAAAtD,GAAAsD,IAAAtD,EACAwD,IAAAvC,KAAAS,qBACA4B,IAAAtD,GAAAsD,IAAAtD,GAAAsD,IAAAtD,GAAAsD,IAAAtD,EACAwD,IAAAvC,KAAAc,sBACAuB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAY,oBACAyB,IAAAtD,EACAwD,IAAAvC,KAAAa,iBAEA0B,IAAAvC,KAAAc,yBAKA0B,SACAC,OADA,WAEAzC,KAAA0C,SAAAC,QAAA3C,KAAAC,aAEA2C,QAJA,WAKA5C,KAAA0C,SAAAC,QAAA3C,KAAAE,YAIA2C,QA7LA,WA8LA,SAAA7C,KAAAZ,KAAArB,OACAiC,KAAAP,gBAAAO,KAAAe,WAAA,GAAAI,OCxUe2B,GADEC,OAFjB,WAA0B,IAAAC,EAAAhD,KAAaiD,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,sBAAgCF,EAAA,OAAAA,EAAA,OAAsBG,aAAaC,QAAA,UAAkBJ,EAAA,OAAYG,aAAaE,KAAA,OAAYL,EAAA,YAAiBM,OAAO9C,MAAA,GAAU+C,OAAQ7D,MAAAmD,EAAA,eAAAW,SAAA,SAAAC,GAAoDZ,EAAAxD,eAAAoE,GAAuBC,WAAA,oBAA8Bb,EAAAc,GAAA,WAAAd,EAAAc,GAAA,KAAAX,EAAA,YAA+CM,OAAO9C,MAAA,GAAU+C,OAAQ7D,MAAAmD,EAAA,eAAAW,SAAA,SAAAC,GAAoDZ,EAAAxD,eAAAoE,GAAuBC,WAAA,oBAA8Bb,EAAAc,GAAA,cAAAd,EAAAc,GAAA,KAAAd,EAAAjD,QAAwZiD,EAAAe,KAAxZZ,EAAA,aAAkEa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA,WAAAa,WAAA,aAAAK,IAAA,SAAwGpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGT,OAASU,KAAA,WAAgBnB,EAAAc,GAAA,eAAAd,EAAAoB,GAAApB,EAAA3C,kBAAA,oBAAA2C,EAAAc,GAAA,KAAAX,EAAA,OAAwGE,YAAA,mBAA6BF,EAAA,WAAgBM,OAAO1F,KAAA,QAAc2F,OAAQ7D,MAAAmD,EAAA,gBAAAW,SAAA,SAAAC,GAAqDZ,EAAAvD,gBAAAmE,GAAwBC,WAAA,oBAA+Bb,EAAAqB,GAAArB,EAAA,oBAAAsB,GAAuC,OAAAnB,EAAA,eAAyBhC,IAAAmD,EAAAnD,IAAAsC,OAAmB3F,KAAAwG,EAAAnD,IAAAR,MAAA2D,EAAAvG,QAAiCiF,EAAA,QAAAG,EAAA,YAA+BM,OAAOlE,KAAAyD,EAAApB,iBAAA2C,OAAA,GAAAC,OAAA,KAAqDxB,EAAAqB,GAAArB,EAAA,2BAAAyB,EAAAC,GAAuD,OAAAvB,EAAA,mBAA6BhC,IAAAuD,EAAAjB,OAAiB9C,MAAA8D,EAAA9D,MAAAD,KAAA+D,EAAA/D,KAAAiE,MAAA,YAA0D,GAAAxB,EAAA,OAAeE,YAAA,cAAwBF,EAAA,OAAAA,EAAA,QAAuBE,YAAA,qBAAAuB,UAA2CC,UAAA7B,EAAAoB,GAAApB,EAAApB,0BAA0C,KAAU,SAAAoB,EAAAc,GAAA,KAAAX,EAAA,OAAAA,EAAA,KAAyCE,YAAA,wBAAAC,aAAiDwB,MAAA,aAAmB9B,EAAAc,GAAA,IAAAd,EAAAoB,GAAApB,EAAA5C,sBAAA4C,EAAAc,GAAA,KAAAX,EAAA,OAAoEG,aAAaC,QAAA,OAAAwB,iBAAA,iBAAiD5B,EAAA,aAAkBa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA,KAAAa,WAAA,OAAAK,IAAA,SAA4FpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGT,OAASU,KAAA,WAAgBnB,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA7C,qBAAA,GAAA6C,EAAAc,GAAA,KAAAX,EAAA,OAAkEE,YAAA,iBAAAC,aAA0C0B,aAAA,SAAoB7B,EAAA,WAAgBM,OAAO1F,KAAA,QAAc2F,OAAQ7D,MAAAmD,EAAA,cAAAW,SAAA,SAAAC,GAAmDZ,EAAApD,cAAAgE,GAAsBC,WAAA,kBAA6Bb,EAAAqB,GAAArB,EAAA,wBAAAvE,GAA4C,OAAA0E,EAAA,eAAyBhC,IAAA1C,EAAAoB,MAAA4D,OAAsB3F,KAAAW,EAAAoB,MAAAc,MAAAlC,EAAAkC,SAAsCwC,EAAA,OAAYE,YAAA,wBAAkCF,EAAA,OAAAA,EAAA,QAAuB8B,OAAA,mBAAAjC,EAAApD,eAAAgF,UAA4DC,UAAA7B,EAAAoB,GAAApB,EAAAb,qBAA0C,YAEl2F+C,oBCCjB,cAuBeC,EAvBUC,EAAQ,OAcjCC,CACErG,EACA8D,GATF,EAVA,SAAAwC,GACEF,EAAQ,SAaV,kBAEA,MAUgC,QCsBhCG,GAAAC,KAAA7H,IAAA6H,EACA5H,EAAA,EAAAC,IACAC,KAAA,MACAC,KAAA,KACAC,SAAA,OACAC,YAAA,SALAN,IAAA6H,EAOA5H,EAAA,EAAAM,IACAJ,KAAA,MACAC,KAAA,KACAC,SAAA,OACAC,YAAA,SAXAN,IAAA6H,EAaA5H,EAAA,EAAAO,IACAL,KAAA,iBACAC,KAAA,OACAC,SAAA,WACAC,YAAA,sBAjBAuH,GAoBAC,GAAAC,KAAA/H,IAAA+H,EACA9H,EAAA,EAAAC,IACAC,KAAA,MACAG,YAAA,SAHAN,IAAA+H,EAKA9H,EAAA,EAAAM,IACAJ,KAAA,MACAG,YAAA,SAPAN,IAAA+H,EASA9H,EAAA,EAAAO,IACAL,KAAA,iBACAG,YAAA,sBAXAyH,GAcAC,GAAAC,KAAAjI,IAAAiI,EACAhI,EAAA,EAAAC,IACAC,KAAA,GACAG,YAAA,OAHAN,IAAAiI,EAKAhI,EAAA,EAAAM,IACAJ,KAAA,GACAG,YAAA,OAPAN,IAAAiI,EASAhI,EAAA,EAAAO,IACAL,KAAA,GACAG,YAAA,gBAXA2H,GAeAC,GACApH,MAAAqH,KAAAnI,IAAAmI,EACAlI,EAAA,EAAAC,GAAA,QADAF,IAAAmI,EAEAlI,EAAA,EAAAM,GAAA,QAFAP,IAAAmI,EAGAlI,EAAA,EAAAO,GAAA,aAHA2H,GAKAnH,QAAAoH,KAAApI,IAAAoI,EACAnI,EAAA,EAAAC,GAAA,QADAF,IAAAoI,EAEAnI,EAAA,EAAAM,GAAA,QAFAP,IAAAoI,EAGAnI,EAAA,EAAAO,GAAA,mBAHA4H,IAOAC,GACA,UADAA,GAEA,WAFAA,GAGA,WAHAA,GAIA,WAJAA,GAKA,WALAA,GAMA,YANAA,GAOA,YAPAA,GAQA,YARAA,GASA,cATAA,GAUA,SAVAA,GAWA,OAXAA,GAYA,OAZAA,GAaA,OAbAA,GAcA,OAdAA,GAeA,OAfAA,GAgBA,OAhBAA,GAiBA,OAjBAA,GAkBA,OAKAC,IACAnI,KAAA,aACAmB,OACAC,KAAAC,OACAC,MACArB,KAAAsB,OACAC,QAAA,eAIAC,KAVA,WAWA,OACAC,eAAA,EACA0G,aAAA,GACAzG,gBAAA,GACAC,qBACAyG,gBAAAvI,EAAA,EACAgC,cAAAhC,EAAA,KAAAiC,QAIAC,UACAC,QADA,WAEA,WAAAC,KAAAR,gBAGAS,WALA,WAMA,OAAArC,EAAA,UAAAoC,KAAAd,OAGAgB,SATA,WAUA,OAAAtC,EAAA,QAAAoC,KAAAd,OAGAiB,gBAbA,WAcA,OAAA0F,EAAA,KAAA7F,KAAAd,OAGAmB,iBAjBA,WAkBA,OAAAwF,EAAA,OAAA7F,KAAAd,OAGAoB,WArBA,WAsBA,OAAAiF,EAAAvF,KAAAd,OAEAqB,iBAxBA,WAyBA,OAAAoF,EAAA3F,KAAAd,OAEAsB,cA3BA,WA4BA,OAAAiF,EAAAzF,KAAAd,OAEAuB,oBA9BA,WA+BA,QACAC,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,WACAC,MAAAX,KAAAM,WAAA,WAEAI,KAAA,cACAC,MAAAX,KAAAM,WAAA,eAGAM,mBA7CA,WA8CA,QACAF,KAAA,OACAC,MAAAX,KAAAO,iBAAA,OAEAG,KAAA,cACAC,MAAAX,KAAAO,iBAAA,eAGAM,gBAtDA,WAuDA,QACAH,KAAA,OACAC,MAAAX,KAAAQ,cAAA,OAEAE,KAAA,cACAC,MAAAX,KAAAQ,cAAA,eAIAM,qBAhEA,WAiEA,QACAJ,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,OACAC,MAAAX,KAAAM,WAAA,OAEAI,KAAA,cACAC,MAAAX,KAAAM,WAAA,eAIAS,WA7EA,WA8EA,OAAAC,MAAAC,QAAAjB,KAAAZ,KAAAT,QACAqB,KAAAZ,KAAAT,OAAAuC,IAAA,SAAA9B,GAAA,OACArB,KAAAqB,EAAArB,KACAoD,IAAA/B,EAAA+B,WAMAC,WAvFA,WAuFA,IAAAC,EAAArB,KACAZ,EAAAY,KAAAZ,KAAAT,OAAA2C,KAAA,SAAAlC,GAAA,OAAAA,EAAA+B,MAAAE,EAAA5B,kBACA8B,EAAAC,IAAA,MAKA,OAJApC,IAAAG,SACAkC,QAAA,SAAAC,GACAH,EAAAG,EAAA5D,MAAA4D,EAAA3D,OAEA4D,IAAAJ,EAAA,SAGAK,iBAjGA,WAiGA,IAAAC,EAAA7B,KACAZ,EAAAY,KAAAZ,KAAAT,OAAA2C,KAAA,SAAAlC,GAAA,OAAAA,EAAA+B,MAAAU,EAAApC,kBACA,GAAAO,KAAAD,QACA,OAAAX,IAAAG,QAGA,IAAAgC,EAAAC,IAAA,MAMA,OALApC,IAAAG,SACAkC,QAAA,SAAAC,GACAH,EAAAG,EAAA5D,MAAA4D,EAAA3D,OAGAiC,KAAA8B,MAAAC,UAAAJ,IAAAJ,EAAA,SAAAS,SAAA,SAAAnC,OAGApB,KAhHA,WAqHA,OAAAY,OAAAzB,EAAA,EAAAyB,CAAAW,KAAAZ,KAAA6C,IAAAjC,KAAAJ,cAAAI,KAAAZ,KAAA8C,MA5IA,uBA+IAC,SAxHA,WAyHA,OAAAnC,KAAA8B,MAAAC,UAAA/B,KAAAvB,MAAAuD,SAAAhC,KAAAJ,gBAAAC,QAIAuC,OACA3C,gBADA,SACA4C,GAEArC,KAAAN,qBAAA4C,OADAD,IAAA2D,IAAA3D,IAAA2D,IAAA3D,IAAA2D,IAAA3D,IAAA2D,GACAzD,IAAAvC,KAAAS,qBACA4B,IAAA2D,IAAA3D,IAAA2D,IAAA3D,IAAA2D,IAAA3D,IAAA2D,GACAzD,IAAAvC,KAAAc,sBACAuB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAY,oBACAyB,IAAA2D,GACAzD,IAAAvC,KAAAa,iBAEA0B,IAAAvC,KAAAc,yBAKA0B,SACAC,OADA,WAEAzC,KAAA0C,SAAAC,QAAA3C,KAAAC,aAEA2C,QAJA,WAKA5C,KAAA0C,SAAAC,QAAA3C,KAAAE,YAIA2C,QA3LA,WA4LA,SAAA7C,KAAAZ,KAAArB,OACAiC,KAAAP,gBAAAO,KAAAe,WAAA,GAAAI,OC/TeiF,IADErD,OAFP,WAAgB,IAAAC,EAAAhD,KAAaiD,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,sBAAgCF,EAAA,OAAAA,EAAA,OAAsBG,aAAaC,QAAA,UAAkBJ,EAAA,OAAYG,aAAaE,KAAA,OAAYL,EAAA,YAAiBM,OAAO9C,MAAA,GAAU+C,OAAQ7D,MAAAmD,EAAA,eAAAW,SAAA,SAAAC,GAAoDZ,EAAAxD,eAAAoE,GAAuBC,WAAA,oBAA8Bb,EAAAc,GAAA,WAAAd,EAAAc,GAAA,KAAAX,EAAA,YAA+CM,OAAO9C,MAAA,GAAU+C,OAAQ7D,MAAAmD,EAAA,eAAAW,SAAA,SAAAC,GAAoDZ,EAAAxD,eAAAoE,GAAuBC,WAAA,oBAA8Bb,EAAAc,GAAA,cAAAd,EAAAc,GAAA,KAAAd,EAAAjD,QAAwZiD,EAAAe,KAAxZZ,EAAA,aAAkEa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA,WAAAa,WAAA,aAAAK,IAAA,SAAwGpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGT,OAASU,KAAA,WAAgBnB,EAAAc,GAAA,eAAAd,EAAAoB,GAAApB,EAAA3C,kBAAA,oBAAA2C,EAAAc,GAAA,KAAAX,EAAA,OAAwGE,YAAA,mBAA6BF,EAAA,WAAgBM,OAAO1F,KAAA,QAAc2F,OAAQ7D,MAAAmD,EAAA,gBAAAW,SAAA,SAAAC,GAAqDZ,EAAAvD,gBAAAmE,GAAwBC,WAAA,oBAA+Bb,EAAAqB,GAAArB,EAAA,oBAAAsB,GAAuC,OAAAnB,EAAA,eAAyBhC,IAAAmD,EAAAnD,IAAAsC,OAAmB3F,KAAAwG,EAAAnD,IAAAR,MAAA2D,EAAAvG,QAAiCiF,EAAA,QAAAG,EAAA,YAA+BM,OAAOlE,KAAAyD,EAAApB,iBAAA2C,OAAA,GAAAC,OAAA,KAAqDxB,EAAAqB,GAAArB,EAAA,2BAAAyB,EAAAC,GAAuD,OAAAvB,EAAA,mBAA6BhC,IAAAuD,EAAAjB,OAAiB9C,MAAA8D,EAAA9D,MAAAD,KAAA+D,EAAA/D,KAAAiE,MAAA,YAA0D,GAAAxB,EAAA,OAAeE,YAAA,cAAwBF,EAAA,OAAAA,EAAA,QAAuBE,YAAA,qBAAAuB,UAA2CC,UAAA7B,EAAAoB,GAAApB,EAAApB,0BAA0C,KAAU,SAAAoB,EAAAc,GAAA,KAAAX,EAAA,OAAAA,EAAA,OAA2CG,aAAaC,QAAA,OAAAwB,iBAAA,iBAAiD5B,EAAA,aAAkBa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA,KAAAa,WAAA,OAAAK,IAAA,SAA4FpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGT,OAASU,KAAA,WAAgBnB,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA7C,qBAAA,GAAA6C,EAAAc,GAAA,KAAAX,EAAA,OAAkEE,YAAA,iBAAAC,aAA0C0B,aAAA,SAAoB7B,EAAA,WAAgBM,OAAO1F,KAAA,QAAc2F,OAAQ7D,MAAAmD,EAAA,cAAAW,SAAA,SAAAC,GAAmDZ,EAAApD,cAAAgE,GAAsBC,WAAA,kBAA6Bb,EAAAqB,GAAArB,EAAA,yBAAAvE,GAA6C,OAAA0E,EAAA,eAAyBhC,IAAA1C,EAAAoB,MAAA4D,OAAsB3F,KAAAW,EAAAoB,MAAAc,MAAAlC,EAAAkC,SAAsCwC,EAAA,OAAYE,YAAA,wBAAkCF,EAAA,OAAAA,EAAA,QAAuB8B,OAAA,mBAAAjC,EAAApD,eAAAgF,UAA4DC,UAAA7B,EAAAoB,GAAApB,EAAAb,qBAA0C,YAE9sF+C,oBCChC,IAuBemB,GAvBUjB,EAAQ,OAcjBkB,CACdL,GACAG,IAT6B,EAV/B,SAAoBd,GAClBF,EAAQ,SAaS,kBAEU,MAUG,QCsEhCmB,IACAzI,KAAA,cACAmB,OACAC,KAAAC,OACAC,MACArB,KAAAsB,OACAC,QAAA,eAIAkH,YACAxH,KAAAmG,EACAc,WAAAI,IAEA9G,KAdA,WAeA,UAKAkH,SACAC,WAAA9I,EAAA,GAGAkC,UACAG,WADA,WAEA,OAAArC,EAAA,UAAAoC,KAAAd,OAGAgB,SALA,WAMA,OAAAtC,EAAA,QAAAoC,KAAAd,QAIAsD,SACAC,OADA,WAEAzC,KAAA0C,SAAAC,QAAA3C,KAAAC,aAEA2C,QAJA,WAKA5C,KAAA0C,SAAAC,QAAA3C,KAAAE,aCpIeyG,IADE5D,OAFP,WAAgB,IAAAC,EAAAhD,KAAaiD,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,eAAAD,EAAA5D,KAAArB,KAAAoF,EAAA,MAA2CE,YAAA,YAAAI,OAA+BmD,GAAA5D,EAAA6D,GAAA,aAAA7D,GAAA5D,KAAA0H,MAAAC,YAAA/D,EAAA5D,KAAA0H,QAAoE3D,EAAA,eAAoBE,YAAA,gBAAAI,OAAmCuD,IAAMC,KAAAjE,EAAAkE,OAAAD,KAAAE,KAAA,IAAAnE,EAAA5D,KAAA,SAAyD4D,EAAAc,GAAA,WAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,MAAA,gBAAA3D,EAAA,OAAoEE,YAAA,iBAA2B,UAAAL,EAAA5D,KAAArB,KAAAoF,EAAA,KAAsCE,YAAA,eAAyBL,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,MAAA,OAAA9D,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAA0H,KAAA3D,EAAA,OAAgGG,aAAa0B,aAAA,UAAqB7B,EAAA,KAAUE,YAAA,wBAAAC,aAAiD8D,YAAA,SAAAtC,MAAA,aAAwC9B,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,kBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA+CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,oBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAiDE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,iEAAAC,OAAA,YAA2FtE,EAAAc,GAAA,eAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,KAAsBE,YAAA,kBAA4BL,EAAAc,GAAA,gBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA6CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,kEAAAC,OAAA,YAA4FtE,EAAAc,GAAA,gBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA6CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,iEAAAC,OAAA,YAA2FtE,EAAAc,GAAA,eAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,kEAAAC,OAAA,YAA4FtE,EAAAc,GAAA,oBAAAd,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAA0H,KAAA3D,EAAA,OAAuFG,aAAa0B,aAAA,UAAqB7B,EAAA,KAAUE,YAAA,wBAAAC,aAAiD8D,YAAA,SAAAtC,MAAA,aAAwC9B,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,kBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA+CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,oBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAiDE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,iEAAAC,OAAA,YAA2FtE,EAAAc,GAAA,eAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,KAAsBE,YAAA,kBAA4BL,EAAAc,GAAA,gBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA6CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,kEAAAC,OAAA,YAA4FtE,EAAAc,GAAA,cAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA2CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,iEAAAC,OAAA,YAA2FtE,EAAAc,GAAA,eAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4CE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,kEAAAC,OAAA,YAA4FtE,EAAAc,GAAA,oBAAAd,EAAAe,KAAAf,EAAAc,GAAA,4BAAAd,EAAA5D,KAAA0H,KAAA3D,EAAA,OAAqGG,aAAa0B,aAAA,UAAqB7B,EAAA,KAAUE,YAAA,wBAAAC,aAAiD8D,YAAA,SAAAtC,MAAA,aAAwC9B,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,uBAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAoDE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,uCAAAC,OAAA,YAAiEtE,EAAAc,GAAA,sCAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAmEE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,iEAAAC,OAAA,YAA2FtE,EAAAc,GAAA,+CAAAd,EAAAc,GAAA,KAAAX,EAAA,KAA4EE,YAAA,kBAA4BL,EAAAc,GAAA,uCAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAoEE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,mFAAAC,OAAA,YAA6GtE,EAAAc,GAAA,sCAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAmEE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,0EAAAC,OAAA,YAAoGtE,EAAAc,GAAA,oCAAAd,EAAAc,GAAA,KAAAX,EAAA,KAAiEE,YAAA,kBAA4BL,EAAAc,GAAA,KAAAX,EAAA,WAA4BM,OAAO4D,KAAA,sEAAAC,OAAA,YAAgGtE,EAAAc,GAAA,6CAAAd,EAAAe,KAAAf,EAAAc,GAAA,gBAAAd,EAAA5D,KAAArB,KAAAoF,EAAA,OAAkHE,YAAA,gBAA0BL,EAAA5D,KAAA,KAAA+D,EAAA,KAA0BoE,MAAAvE,EAAA5D,KAAAmI,YAA6BvE,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,OAAA,YAAA9D,EAAA5D,KAAA0H,MAAA,YAAA9D,EAAA5D,KAAA0H,MAAA,iBAAA9D,EAAA5D,KAAA0H,KAAA3D,EAAA,SAAAH,EAAAc,GAAA,iCAAAd,EAAAe,OAAAf,EAAAe,KAAAf,EAAAc,GAAA,KAAA9C,MAAAC,QAAA+B,EAAA5D,KAAAoI,UAAArE,EAAA,MAAiQG,aAAamE,cAAA,UAAuBzE,EAAAqB,GAAArB,EAAA5D,KAAA,kBAAAsI,EAAAhG,GAA2C,OAAAyB,EAAA,MAAgBhC,IAAAO,IAAM,SAAAgG,EAAA3J,KAAAoF,EAAA,QAAkCyB,UAAUC,UAAA7B,EAAAoB,GAAAsD,EAAAZ,SAA6B3D,EAAA,QAAAH,EAAAc,GAAAd,EAAAoB,GAAAsD,EAAAZ,SAAA9D,EAAAc,GAAA,KAAA9C,MAAAC,QAAAyG,EAAAF,UAAArE,EAAA,MAAyFG,aAAamE,cAAA,QAAAE,kBAAA,SAAgD3E,EAAAqB,GAAAqD,EAAA,kBAAAE,EAAAC,GAAqC,OAAA1E,EAAA,MAAgBhC,IAAA0G,IAAM7E,EAAAc,GAAAd,EAAAoB,GAAAwD,EAAAd,WAA4B,GAAA9D,EAAAe,SAAgB,GAAAf,EAAAe,OAAAf,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAArB,KAAAoF,EAAA,KAAwEyB,UAAUC,UAAA7B,EAAAoB,GAAApB,EAAA5D,KAAA0H,SAAmC9D,EAAAe,KAAAf,EAAAc,GAAA,iBAAAd,EAAA5D,KAAArB,KAAAoF,EAAA,KAA6DE,YAAA,yBAAmCL,EAAAc,GAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,SAAA9D,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAArB,KAAAoF,EAAA,KAA0FE,YAAA,oBAAAC,aAA6CwE,SAAA,cAAuB3E,EAAA,KAAUa,aAAalG,KAAA,YAAAmG,QAAA,mBAAApE,MAAAmD,EAAA5D,KAAA,KAAAyE,WAAA,YAAAK,IAAA,SAAsGpG,KAAA,YAAAmG,QAAA,sBAAApE,MAAAmD,EAAA,OAAAa,WAAA,SAAAK,IAAA,YAAsGpG,KAAA,YAAAmG,QAAA,oBAAApE,MAAAmD,EAAA,QAAAa,WAAA,UAAAK,IAAA,UAAkGb,YAAA,0BAAsCL,EAAAc,GAAA,WAAAd,EAAAoB,GAAApB,EAAA5D,KAAA0H,MAAA,YAAA9D,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAArB,MAAAiF,EAAA+E,QAAA7B,aAAAe,KAAAe,QAAA,cAAA7E,EAAA,QAA0KM,OAAOvE,KAAA8D,EAAA9D,KAAAE,KAAA4D,EAAA5D,QAAiC4D,EAAAe,KAAAf,EAAAc,GAAA,cAAAd,EAAA5D,KAAArB,MAAAiF,EAAA+E,QAAA7B,aAAAe,KAAAe,QAAA,eAAA7E,EAAA,cAA6HM,OAAOvE,KAAA8D,EAAA9D,KAAAE,KAAA4D,EAAA5D,QAAiC4D,EAAAe,MAAA,IAEvrNmB,oBCChC,IAuBe+C,GAvBU7C,EAAQ,OAcjB8C,CACd3B,GACAI,IAT6B,EAV/B,SAAoBrB,GAClBF,EAAQ,SAaS,KAEU,MAUG,QCThC+C,IACArK,KAAA,oBACAsK,YAGAC,IACApJ,OACAC,KAAAC,QAGAqH,YACAD,YAAA0B,IAGA1I,KATA,WAUA,OACA+I,UAAAjJ,OAAAzB,EAAA,EAAAyB,GACAkJ,YAAmBC,OACnBL,MAKArI,YAIAsC,OACAqG,eACAC,QADA,SACArG,GACArC,KAAAuI,YAAAvI,KAAAsI,UAAAjG,IAAAmG,OAAAL,KAEAQ,WAAA,GAEAzJ,KAPA,WAQAc,KAAAsI,UAAAjJ,OAAAzB,EAAA,EAAAyB,GACAW,KAAAuI,YAAAvI,KAAAsI,UAAAtI,KAAAkH,OAAAD,OAAAuB,OAAAL,MAIAS,QAnCA,WAoCIhL,EAAA,EAAJiL,MAAA,kBAGAC,QAvCA,WAwCIlL,EAAA,EAAJiL,MAAA,mBC3DeE,IADEhG,OAFP,WAAgB,IAAAC,EAAAhD,KAAaiD,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,gBAA0BF,EAAA,MAAWE,YAAA,uBAAiCL,EAAAc,GAAAd,EAAAoB,GAAApB,EAAAuF,YAAAzK,SAAAkF,EAAAc,GAAA,KAAAX,EAAA,OAA+DE,YAAA,oBAAAI,OAAuCmD,GAAA,uBAA0B5F,MAAAC,QAAA+B,EAAAuF,YAAAH,SAAApF,EAAAqB,GAAArB,EAAAuF,YAAA,iBAAAnJ,EAAAsF,GAAiG,OAAAvB,EAAA,eAAyBhC,IAAAuD,EAAAjB,OAAiBrE,OAAAF,KAAA8D,EAAA9D,UAA+BiE,EAAA,KAAAH,EAAAc,GAAAd,EAAAoB,GAAApB,EAAAuF,YAAAH,aAAA,MAE1blD,oBCChC,IAcI8D,GAdqB5D,EAAQ,OAcjB6D,CACdZ,GACAU,IAT6B,EAV/B,SAAoBzD,GAClBF,EAAQ,SAaS,kBAEU,MAUd8D,EAAA,QAAAF,GAAiB","file":"static/js/0.de6e3d81c63917137301.js","sourcesContent":["\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Content/Demo.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"item-demo-content\"},[_c('div',[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('div',{staticStyle:{\"flex\":\"1\"}},[_c('el-radio',{attrs:{\"label\":1},model:{value:(_vm.parmasShowType),callback:function ($$v) {_vm.parmasShowType=$$v},expression:\"parmasShowType\"}},[_vm._v(\"Table\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":2},model:{value:(_vm.parmasShowType),callback:function ($$v) {_vm.parmasShowType=$$v},expression:\"parmasShowType\"}},[_vm._v(\"JSON\")])],1),_vm._v(\" \"),(!_vm.isTable)?_c('el-button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.jsonParams),expression:\"jsonParams\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],attrs:{\"size\":\"small\"}},[_vm._v(\"\\n \"+_vm._s(_vm.copyParmsBtnText)+\"\\n \")]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"params-content\"},[_c('el-tabs',{attrs:{\"type\":\"card\"},model:{value:(_vm.activeParamsTab),callback:function ($$v) {_vm.activeParamsTab=$$v},expression:\"activeParamsTab\"}},_vm._l((_vm.paramsTabs),function(tab){return _c('el-tab-pane',{key:tab.key,attrs:{\"name\":tab.key,\"label\":tab.type}},[(_vm.isTable)?_c('el-table',{attrs:{\"data\":_vm.renderParamsData,\"stripe\":\"\",\"border\":\"\"}},_vm._l((_vm.paramsTableColumn),function(column,index){return _c('el-table-column',{key:index,attrs:{\"label\":column.label,\"prop\":column.prop,\"align\":\"left\"}})}),1):_c('div',{staticClass:\"code-html\"},[_c('pre',[_c('code',{staticClass:\"hljs language-json\",domProps:{\"innerHTML\":_vm._s(_vm.renderParamsData)}})])])],1)}),1)],1)]),_vm._v(\" \"),_c('div',[_c('i',{staticClass:\"el-icon-s-opportunity\",staticStyle:{\"color\":\"#409EFF\"}},[_vm._v(\" \"+_vm._s(_vm.SampleCodeBtnText))]),_vm._v(\" \"),_c('div',{staticStyle:{\"display\":\"flex\",\"flex-direction\":\"row-reverse\"}},[_c('el-button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.code),expression:\"code\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],attrs:{\"size\":\"small\"}},[_vm._v(_vm._s(_vm.copyCodeBtnText))])],1),_vm._v(\" \"),_c('div',{staticClass:\"params-content\",staticStyle:{\"margin-top\":\"4px\"}},[_c('el-tabs',{attrs:{\"type\":\"card\"},model:{value:(_vm.activeCodeTab),callback:function ($$v) {_vm.activeCodeTab=$$v},expression:\"activeCodeTab\"}},_vm._l((_vm.codeLangConfig),function(code){return _c('el-tab-pane',{key:code.value,attrs:{\"name\":code.value,\"label\":code.label}},[_c('div',{staticClass:\"code-html demo-code\"},[_c('pre',[_c('code',{class:['hljs', (\"language-\" + _vm.activeCodeTab)],domProps:{\"innerHTML\":_vm._s(_vm.demoCode)}})])])])}),1)],1)])])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-72f99f8e\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Content/Demo.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-72f99f8e\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Demo.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Demo.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Demo.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-72f99f8e\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Demo.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-72f99f8e\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Content/Demo.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Content/DemoSocket.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"item-demo-content\"},[_c('div',[_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('div',{staticStyle:{\"flex\":\"1\"}},[_c('el-radio',{attrs:{\"label\":1},model:{value:(_vm.parmasShowType),callback:function ($$v) {_vm.parmasShowType=$$v},expression:\"parmasShowType\"}},[_vm._v(\"Table\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":2},model:{value:(_vm.parmasShowType),callback:function ($$v) {_vm.parmasShowType=$$v},expression:\"parmasShowType\"}},[_vm._v(\"JSON\")])],1),_vm._v(\" \"),(!_vm.isTable)?_c('el-button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.jsonParams),expression:\"jsonParams\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],attrs:{\"size\":\"small\"}},[_vm._v(\"\\n \"+_vm._s(_vm.copyParmsBtnText)+\"\\n \")]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"params-content\"},[_c('el-tabs',{attrs:{\"type\":\"card\"},model:{value:(_vm.activeParamsTab),callback:function ($$v) {_vm.activeParamsTab=$$v},expression:\"activeParamsTab\"}},_vm._l((_vm.paramsTabs),function(tab){return _c('el-tab-pane',{key:tab.key,attrs:{\"name\":tab.key,\"label\":tab.type}},[(_vm.isTable)?_c('el-table',{attrs:{\"data\":_vm.renderParamsData,\"stripe\":\"\",\"border\":\"\"}},_vm._l((_vm.paramsTableColumn),function(column,index){return _c('el-table-column',{key:index,attrs:{\"label\":column.label,\"prop\":column.prop,\"align\":\"left\"}})}),1):_c('div',{staticClass:\"code-html\"},[_c('pre',[_c('code',{staticClass:\"hljs language-json\",domProps:{\"innerHTML\":_vm._s(_vm.renderParamsData)}})])])],1)}),1)],1)]),_vm._v(\" \"),_c('div',[_c('div',{staticStyle:{\"display\":\"flex\",\"flex-direction\":\"row-reverse\"}},[_c('el-button',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.code),expression:\"code\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],attrs:{\"size\":\"small\"}},[_vm._v(_vm._s(_vm.copyCodeBtnText))])],1),_vm._v(\" \"),_c('div',{staticClass:\"params-content\",staticStyle:{\"margin-top\":\"4px\"}},[_c('el-tabs',{attrs:{\"type\":\"card\"},model:{value:(_vm.activeCodeTab),callback:function ($$v) {_vm.activeCodeTab=$$v},expression:\"activeCodeTab\"}},_vm._l((_vm.codeLangConfig2),function(code){return _c('el-tab-pane',{key:code.value,attrs:{\"name\":code.value,\"label\":code.label}},[_c('div',{staticClass:\"code-html demo-code\"},[_c('pre',[_c('code',{class:['hljs', (\"language-\" + _vm.activeCodeTab)],domProps:{\"innerHTML\":_vm._s(_vm.demoCode)}})])])])}),1)],1)])])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-22d78ccf\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Content/DemoSocket.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-22d78ccf\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./DemoSocket.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./DemoSocket.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./DemoSocket.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-22d78ccf\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./DemoSocket.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-22d78ccf\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Content/DemoSocket.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Content/ContentItem.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.item.type === 'hash')?_c('h2',{staticClass:\"item-hash\",attrs:{\"id\":_vm._f(\"generateId\")(_vm.item.text),\"data-text\":_vm.item.text}},[_c('router-link',{staticClass:\"header-anchor\",attrs:{\"to\":{ path: _vm.$route.path, hash: (\"#\" + (_vm.item.text)) }}},[_vm._v(\"\\n \"+_vm._s(_vm.item.text)+\"\\n \")])],1):_c('div',{staticClass:\"content-item\"},[(_vm.item.type === 'title')?_c('p',{staticClass:\"item-title\"},[_vm._v(_vm._s(_vm.item.text)+\" \")]):_vm._e(),_vm._v(\" \"),(_vm.item.text === '接口参数')?_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('i',{staticClass:\"el-icon-s-opportunity\",staticStyle:{\"font-size\":\"larger\",\"color\":\"#409EFF\"}}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"1. 创建API KEY\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"2. 配置API KEY权限\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/authentication.html\",\"target\":\"_blank\"}},[_vm._v(\"3. 了解签名认证\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"},[_vm._v(\"4. 跑以下示例代码\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/base-info.html#常见错误码\",\"target\":\"_blank\"}},[_vm._v(\"5. 了解常见错误码\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/base-info.html#频率限制\",\"target\":\"_blank\"}},[_vm._v(\"6. 了解频率限制\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/base-info.html#时间戳规范\",\"target\":\"_blank\"}},[_vm._v(\"7. 了解请求时间戳\")])],1):_vm._e(),_vm._v(\" \"),(_vm.item.text === '接口參數')?_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('i',{staticClass:\"el-icon-s-opportunity\",staticStyle:{\"font-size\":\"larger\",\"color\":\"#409EFF\"}}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"1. 創建API KEY\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"2. 配置API KEY權限\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/authentication.html\",\"target\":\"_blank\"}},[_vm._v(\"3. 了解簽名認證\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"},[_vm._v(\"4. 跑以下示例代碼\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/base-info.html#常見錯誤碼\",\"target\":\"_blank\"}},[_vm._v(\"5. 常見錯誤碼\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/base-info.html#頻率限制\",\"target\":\"_blank\"}},[_vm._v(\"6. 了解頻率限制\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/base-info.html#時間戳規範\",\"target\":\"_blank\"}},[_vm._v(\"7. 了解請求時間戳\")])],1):_vm._e(),_vm._v(\" \"),(_vm.item.text === 'request parameters')?_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('i',{staticClass:\"el-icon-s-opportunity\",staticStyle:{\"font-size\":\"larger\",\"color\":\"#409EFF\"}}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"1. Create API KEY\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\"https://bingx.com/zh-tw/account/api/\",\"target\":\"_blank\"}},[_vm._v(\"2. Configure API KEY permissions\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/authentication.html\",\"target\":\"_blank\"}},[_vm._v(\"3. Understanding signature authentication\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"},[_vm._v(\"4. Run the following example code\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/base-info.html#Common%20Error%20Codes\",\"target\":\"_blank\"}},[_vm._v(\"5. Understand common error codes\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/base-info.html#Rate%20Limits\",\"target\":\"_blank\"}},[_vm._v(\"6. Understand rate limitations\")]),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-right\"}),_vm._v(\" \"),_c('el-link',{attrs:{\"href\":\" https://bingx-api.github.io/docs/#/swapV2/base-info.html#Timestamp\",\"target\":\"_blank\"}},[_vm._v(\"7. Understanding request timestamps\")])],1):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'normal')?_c('div',{staticClass:\"item-normal\"},[(_vm.item.text)?_c('p',{style:(_vm.item.style || {})},[_vm._v(_vm._s(_vm.item.text)),(_vm.item.text === 'HTTP 请求' || _vm.item.text === 'HTTP 請求' || _vm.item.text === 'HTTP Request')?_c('label',[_vm._v(\" https://open-api.bingx.com\")]):_vm._e()]):_vm._e(),_vm._v(\" \"),(Array.isArray(_vm.item.children))?_c('ul',{staticStyle:{\"margin-left\":\"-10px\"}},_vm._l((_vm.item.children),function(c1,i){return _c('li',{key:i},[(c1.type === 'html')?_c('span',{domProps:{\"innerHTML\":_vm._s(c1.text)}}):_c('span',[_vm._v(_vm._s(c1.text))]),_vm._v(\" \"),(Array.isArray(c1.children))?_c('ul',{staticStyle:{\"margin-left\":\"-15px\",\"list-style-type\":\"disc\"}},_vm._l((c1.children),function(c2,j){return _c('li',{key:j},[_vm._v(_vm._s(c2.text))])}),0):_vm._e()])}),0):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'html')?_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.item.text)}}):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'warning')?_c('p',{staticClass:\"item-warning-content\"},[_vm._v(_vm._s(_vm.item.text))]):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'code')?_c('p',{staticClass:\"item-code-content\",staticStyle:{\"position\":\"relative\"}},[_c('i',{directives:[{name:\"clipboard\",rawName:\"v-clipboard:copy\",value:(_vm.item.text),expression:\"item.text\",arg:\"copy\"},{name:\"clipboard\",rawName:\"v-clipboard:success\",value:(_vm.onCopy),expression:\"onCopy\",arg:\"success\"},{name:\"clipboard\",rawName:\"v-clipboard:error\",value:(_vm.onError),expression:\"onError\",arg:\"error\"}],staticClass:\"el-icon-copy-document\"}),_vm._v(\"\\n \"+_vm._s(_vm.item.text)+\"\\n \")]):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'demo' && _vm.$router.currentRoute.path.indexOf('/socket/') < 0)?_c('Demo',{attrs:{\"lang\":_vm.lang,\"item\":_vm.item}}):_vm._e(),_vm._v(\" \"),(_vm.item.type === 'demo' && _vm.$router.currentRoute.path.indexOf('/socket/') > -1)?_c('DemoSocket',{attrs:{\"lang\":_vm.lang,\"item\":_vm.item}}):_vm._e()],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-123538e0\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Content/ContentItem.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-123538e0\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./ContentItem.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./ContentItem.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./ContentItem.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-123538e0\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./ContentItem.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Content/ContentItem.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Content/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-content\"},[_c('h1',{staticClass:\"page-content-title\"},[_vm._v(_vm._s(_vm.pageContent.name))]),_vm._v(\" \"),_c('div',{staticClass:\"page-content-wrap\",attrs:{\"id\":\"page-content-wrap\"}},[(Array.isArray(_vm.pageContent.content))?_vm._l((_vm.pageContent.content),function(item,index){return _c('ContentItem',{key:index,attrs:{\"item\":item,\"lang\":_vm.lang}})}):_c('p',[_vm._v(_vm._s(_vm.pageContent.content))])],2)])}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-514494ef\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/Content/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-514494ef\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-514494ef\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-514494ef\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Content/index.vue\n// module id = null\n// module chunks = "],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/app.614d62d6b952657825cb.js b/static/js/app.614d62d6b952657825cb.js deleted file mode 100644 index b40a95dc..00000000 --- a/static/js/app.614d62d6b952657825cb.js +++ /dev/null @@ -1,2 +0,0 @@ -webpackJsonp([3],{"+25w":function(e,t){e.exports=[{type:"hash",text:"查询标准合约余额"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/contract/v1/balance"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/contract/v1/balance",protocol:"https",method:"DELETE",payload:{}},params:[{type:"Request(无)",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"asset",type:"string",description:"资产"},{name:"balance",type:"string",description:"总余额"},{name:"crossWalletBalance",type:"string",description:"全仓余额"},{name:"crossUnPnl",type:"string",description:"全仓持仓未实现盈亏"},{name:"availableBalance",type:"string",description:"下单可用余额"},{name:"maxWithdrawAmount",type:"string",description:"最大可转出余额"},{name:"marginAvailable",type:"bool",description:"是否可用作联合保证金"},{name:"updateTime",type:"number",description:"时间戳"}]}]}]},"+6hF":function(e,t){e.exports=[{type:"hash",text:"Create sub account"},{type:"normal",text:"Create sub account"},{type:"normal",text:"HTTP request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/create"},{type:"normal",text:"Interface parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subAccountString",type:"string",required:"yes",description:"Sub account username"},{name:"note",type:"string",required:"no",description:"notes"},{name:"recvWindow",type:"long",required:"yes",description:""},{name:"timestamp",type:"long",required:"yes",description:""}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"Sub account uid"},{name:"subAccountString",type:"string",description:"Sub account username"},{name:"note",type:"string",description:"Sub account note information"}]}]}]},"+92Z":function(e,t){e.exports=[{type:"hash",text:"查詢最新資金費率"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getLatestFunding"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getLatestFunding",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"fundingRate",type:"float64",description:"當前資金費率"},{name:"fairPrice",type:"float64",description:"當前的標記價格"},{name:"leftSeconds",type:"float64",description:"下次結算剩餘時間,單位為秒"}]}]}]},"+HuI":function(e,t){e.exports=[{type:"hash",text:"用户内部转账"},{type:"normal",text:"用户在bingx平台内互相转账"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/wallets/v1/capital/innerTransfer/apply"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/innerTransfer/apply",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"是",description:"转账币种名"},{name:"userAccountType",type:"int",required:"是",description:"用户账号类型 1=uid 2=手机号 3=邮箱"},{name:"userAccount",type:"string",required:"是",description:"用户账户: uid、电话、邮箱"},{name:"amount",type:"float64",required:"是",description:"转账数额"},{name:"callingCode",type:"string",required:"否",description:"电话区号"},{name:"walletType",type:"int",required:"是",description:"账户类型,1 资金账户;2 标合账户;3 永续账户"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"id",type:"string",description:"提币记录唯一标识,该字段在提币走内转时不返回"}]}]}]},"+Jww":function(e,t){e.exports=[{type:"hash",text:"Cancel an Order"},{type:"normal",text:"Cancel an order that the current account is in the current entrusted state."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelOrder"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelOrder",protocol:"https",method:"POST",payload:{orderId:"",symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"yes",description:"order ID"},{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"order ID"}]}]}]},"+LWv":function(e,t,n){var i={".":"vVqC","./":"vVqC","./01_create_api":"bY49","./01_create_api.json":"bY49","./02_permission_set":"44OD","./02_permission_set.json":"44OD","./03_request_content":"xXiq","./03_request_content.json":"xXiq","./04_sign_discription":"t9kx","./04_sign_discription.json":"t9kx","./05_request":"bIA2","./05_request.json":"bIA2","./index":"vVqC","./index.js":"vVqC"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="+LWv"},"+Rge":function(e,t){e.exports=[{type:"hash",text:"Generate an API Key"},{type:"normal",text:"",children:[{type:"html",text:"Before being able to sign any requests, you must create an API Key at the API Management page onBingXUpon creating a key you will have 2 pieces of information which you should remember:API key and Secret key."},{type:"normal",text:"While setting the API key, it is recommended to set the IP access whitelist for security reasons"},{type:"normal",text:"Never tell anyone your API key/Secret key"}]},{type:"warning",text:"If the API key is accidentally leaked, please delete it immediately and produce a new API key"}]},"+Vb3":function(e,t){e.exports={module:"spot",path:"/spot/introduce",name:"介紹",content:[{type:"html",text:"歡迎使用BingX開發者文檔。"},{type:"normal",text:"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 "}]}},"+W0b":function(e,t){e.exports=[{type:"hash",text:"Internal transfer of sub accounts"},{type:"normal",text:"Users transfer funds to each other within the bingx platform"},{type:"normal",text:"HTTP request",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply"},{type:"normal",text:"Interface parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/subInnerTransfer/apply",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,timestamp:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"yes",description:"Transfer currency name"},{name:"userAccountType",type:"int",required:"yes",description:"User account type 1=uid 2=phone number 3=email"},{name:"userAccount",type:"string",required:"yes",description:"User account: uid, phone, email"},{name:"amount",type:"float64",required:"yes",description:"Transfer amount"},{name:"callingCode",type:"string",required:"no",description:"Area Code"},{name:"walletType",type:"int",required:"yes",description:"Account type, 1 fund account; 2. Standard account; 3 perpetual accounts"},{name:"timestamp",type:"int64",required:"yes",description:"The timestamp of the request, in milliseconds"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time empty window value, in milliseconds"}]},{type:"Response",key:"response",data:[{name:"id",type:"string",description:"Unique identifier of the withdrawal record, this field is not returned during internal transfer of withdrawal"}]}]}]},"+Xv4":function(e,t){e.exports=[{type:"hash",text:"關閉 Listen Key"},{type:"normal",text:"關閉用戶數據流。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"DELETE /openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"code",text:"curl -i -X DELETE 'https://open-api.bingx.com/openApi/user/auth/userDataStream?listenKey=d84d39fe78762b39e202ba204bf3f7ebed43bbe7a481299779cb53479ea9677d'"},{type:"normal",text:"響應",style:{"font-weight":"bold"}},{type:"html",text:"
  • http status 200 成功
  • "},{type:"html",text:"
  • http status 204 沒有請求參數
  • "},{type:"html",text:"
  • http status 404 沒有這個listenKey
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"DELETE",payload:{}},params:[{type:"Request",key:"request",data:[{name:"listenKey",type:"string",required:"是",description:"返回的listenKey"}]}]}]},"+hJF":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Wd1J").keys(),r=[],o=0;oTypes:"},{type:"html",text:"
  • 4XX error codes are used to indicate wrong request content, behavior, format.
  • "},{type:"html",text:"
  • 5XX error codes are used to indicate problems with the Bingx service.
  • "},{type:"html",text:"

    Error Codes:

    "},{type:"html",text:"
  • 400 Bad Request – Invalid request format Invalid request format
  • "},{type:"html",text:"
  • 401 Unauthorized – Invalid API Key Invalid API Key
  • "},{type:"html",text:"
  • 403 Forbidden – You do not have access to the requested resource
  • "},{type:"html",text:"
  • 404 - Not Found
  • "},{type:"html",text:"
  • 429 - Too Many Requests Return code is used when breaking a request rate limit.
  • "},{type:"html",text:"
  • 418 - return code is used when an IP has been auto-banned for continuing to send requests after receiving 429 codes.
  • "},{type:"html",text:"
  • 500 - Internal Server Error – We had a problem with our server We had a problem with our server
  • "},{type:"html",text:"
  • 504 - return code means that the API server has submitted a request to the service center but failed to get a response. It should be noted that the 504 return code does not mean that the request failed. It refers to an unknown status. The request may have been executed, or it may have failed. Further confirmation is required.
  • "},{type:"html",text:"

    Common business error codes:

    "},{type:"html",text:"
  • 100001 - signature verification failed#
  • "},{type:"html",text:"
  • 100500 - Internal system error
  • "},{type:"html",text:"
  • 80001 - request failed
  • "},{type:"html",text:"
  • 80012 - service unavailable
  • "},{type:"html",text:"
  • 80014 - Invalid parameter
  • "},{type:"html",text:"
  • 80016 - Order does not exist
  • "},{type:"html",text:"
  • 80017 - position does not exist
  • "},{type:"html",text:"

    Notes:

    "},{type:"html",text:"
  • If it fails, there will be an error description included in the response body.
  • "},{type:"html",text:"
  • Errors may be thrown from every interface.
  • "}]},"/1k/":function(e,t){e.exports=[{type:"hash",text:"查詢訂單"},{type:"normal",text:"查詢訂單詳情"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:" GET /openApi/swap/v2/trade/order"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"orderId",type:"int64",required:"否",description:"訂單號"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID"}]},{type:"status",key:"key1",data:[{name:"NEW",type:"",required:"",description:"新建訂單"},{name:"PARTIALLY_FILLED",type:"",required:"",description:"部分成交"},{name:"FILLED",type:"",required:"",description:"全部成交"},{name:"CANCELED",type:"",required:"",description:"已撤銷"}]}]}]},"/Fs7":function(e,t){e.exports=[{type:"hash",text:"Cancel All Orders"},{type:"normal",text:"Cancel all orders in the current entrusted state of the current account."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"DELETE /openApi/swap/v2/trade/allOpenOrders"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allOpenOrders",protocol:"https",method:"DELETE",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp in milliseconds"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"success",type:"LIST",description:"list of successfully canceled orders"},{name:"failed",type:"array",description:"list of failed orders"},{name:"orderId",type:"int64",description:"Order ID"},{name:"errorCode",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"errorMessage",type:"string",description:"Error Details Description"}]},{type:"Order",key:"order",data:[{name:"time",type:"int64",description:"order time, unit: millisecond"},{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"side",type:"string",description:"buying and selling direction"},{name:"type",type:"string",description:"order type"},{name:"positionSide",type:"string",description:"position side"},{name:"cumQuote",type:"string",description:"transaction amount"},{name:"status",type:"string",description:"order status"},{name:"stopPrice",type:"string",description:"Trigger price"},{name:"price",type:"string",description:"Price"},{name:"origQty",type:"string",description:"original order quantity"},{name:"avgPrice",type:"string",description:"average transaction price"},{name:"executedQty",type:"string",description:"volume"},{name:"orderId",type:"int64",description:"Order ID"},{name:"profit",type:"string",description:"profit and loss"},{name:"commission",type:"string",description:"Fee"},{name:"updateTime",type:"int64",description:"update time, unit: millisecond"}]}]}]},"/Kh3":function(e,t){e.exports=[{type:"hash",text:"查詢開倉槓桿"},{type:"normal",text:"查詢用戶在指定symbol合約的開倉槓桿。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/leverage"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/leverage",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"longLeverage",type:"int64",description:"多倉槓桿倍數"},{name:"shortLeverage",type:"int64",description:"空倉槓桿倍數"}]}]}]},"/RL+":function(e,t){e.exports=[{type:"hash",text:"查询账户保证金模式"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getMarginMode"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getMarginMode",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"marginMode",type:"string",description:"保证金模式"}]},{type:"marginMode",key:"common",data:[{name:"Isolated",type:"",description:"逐仓"},{name:"Cross",type:"",description:"全仓"}]}]}]},"/YEw":function(e,t){e.exports=[{type:"hash",text:"查詢訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/query"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/query",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"orderId",type:"int64",required:"是",description:"訂單id"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId,僅支持2個小時的查詢範圍"},{name:"recvWindow",type:"float64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求時間戳, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易品種"},{name:"orderId",type:"int64",description:"訂單號"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"下單數量"},{name:"executedQty",type:"string",description:"成交數量"},{name:"cummulativeQuoteQty",type:"string",description:"成交額"},{name:"status",type:"string",description:"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗"},{name:"type",type:"string",description:"訂單類型, MARKET市價 LIMIT限價"},{name:"side",type:"string",description:"交易類型, BUY買 SELL賣"},{name:"time",type:"int64",description:"下單時間戳"},{name:"updateTime",type:"int64",description:"更新時間戳"},{name:"origQuoteOrderQty",type:"string",description:"下單金額"},{name:"fee",type:"string",description:"手續費"},{name:"feeAsset",type:"string",description:"手續費資產類型"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID"}]}]}]},"/Z+/":function(e,t,n){var i={".":"cId4","./":"cId4","./01_get_asset_transfer":"bSWG","./01_get_asset_transfer.json":"bSWG","./02_get_asset_transfer2":"gp5h","./02_get_asset_transfer2.json":"gp5h","./03_get_deposit_hisrec":"OW9C","./03_get_deposit_hisrec.json":"OW9C","./04_get_withdraw_history":"VVr3","./04_get_withdraw_history.json":"VVr3","./05_post_wallets_coins":"Bxps","./05_post_wallets_coins.json":"Bxps","./06_post_wallets_withdraw":"puhI","./06_post_wallets_withdraw.json":"puhI","./07_post_capital_innerTransfer_apply":"KPNz","./07_post_capital_innerTransfer_apply.json":"KPNz","./index":"cId4","./index.js":"cId4"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="/Z+/"},"/bR7":function(e,t){e.exports=[{type:"title",text:"2023-06-03"},{type:"normal",text:"New version API document website release",style:{"font-weight":"bold"},children:[{type:"normal",text:"New version UI and interaction"},{type:"normal",text:"Demo code is automatically generated and copied with one click"},{type:"normal",text:"Fast conversion between interface parameter tables and JSON, one click full code copying, reducing the workload for developers to copy API parameters"},{type:"normal",text:"Add full-text fuzzy search function"},{type:"normal",text:"Add email subscription function, and notify developers via email if there are API version updates in the future"},{type:"normal",text:"Added issue feedback function, developers can directly feedback API issues to the BingX team through this website"}]}]},"/bqr":function(e,t){e.exports=[{type:"hash",text:"Bulk order"},{type:"normal",text:"The current account performs batch order operations on the specified symbol contract."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/batchOrders"},{type:"html",text:"
  • Specific order conditions and rules are consistent with ordinary orders
  • "},{type:"html",text:"
  • BatchOrders is an array, using Python as an example
  • "},{type:"code",text:'{"batchOrders" : "[{\\"symbol\\": \\"ETH-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 1},{\\"symbol\\": \\"BTC-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 0.001}]"}'},{type:"html",text:"
  • The actual HTTP URL request parameters sent are as follows
  • "},{type:"code",text:'https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=[{"symbol": "ETH-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 1},{"symbol": "BTC-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 0.001}]×tamp=1691312510782&signature=a7bd3f4ebf3321c1e3c9d2305584e0f28a70766340b79cca29f0a8428d5bbd7f'},{type:"warning",text:"Batch orders are processed concurrently, and order matching order is not guaranteed"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/batchOrders",protocol:"https",method:"POST",payload:{batchOrders:[{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}],recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"batchOrders",type:"LIST",required:"yes",description:"Order list, supporting up to 5 orders, with Order objects referencing transactions to place orders"},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp, unit: millisecond"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Order",key:"key1",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"type",type:"string",required:"yes",description:"order type LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"yes",description:"buying and selling direction SELL, BUY"},{name:"positionSide",type:"string",required:"no",description:"Position direction, and only LONG or SHORT can be selected, the default is LONG"},{name:"price",type:"float64",required:"no",description:"Price"},{name:"quantity",type:"float64",required:"no",description:"Original quantity, only support units by COIN not U$: quantity=U$/price"},{name:"stopPrice",type:"float64",required:"no",description:"Trigger price, only required for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp, unit: millisecond"},{name:"clientOrderID",type:"string",required:"no",description:"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderID"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"},{name:"timeInForce",type:"string",required:"no",description:"Time in Force, currently supports PostOnly, GTC, IOC, and FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"side",type:"string",description:"buying and selling direction"},{name:"type",type:"string",description:"order type"},{name:"positionSide",type:"string",description:"position side"},{name:"orderId",type:"int64",description:"Order ID"},{name:"clientOrderID",type:"string",required:"no",description:"Customized order ID for users"}]}]}]},"/jWt":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("6wHN").keys(),r=[],o=0;o如果未發送startTime 和 endTime ,默認返回最新的K線數據"},{type:"html",text:"
  • 如果發送 startTime 和 endTime ,默認返回截止 endTime 的最新的K線數據
  • "},{type:"html",text:"
  • 如果發送 startTime 但不發送 endTime ,默認返回 startTime 開始的最新的K線數據
  • "},{type:"html",text:"
  • 如果不發送 startTime 但發送 endTime ,默認返回截止 endTime 最新的K線數據
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/market/kline",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",interval:"",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"interval",type:"string",required:"是",description:"時間間隔,參考字段說明"},{name:"startTime",type:"int64",required:"否",description:"開始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int64",required:"否",description:"默認值:500 最大值:1440"}]},{type:"Response",key:"response",data:[{name:"klines",type:"array",description:"kline數組"}]},{type:"kline數組內元素順序[下標]",key:"key5",data:[{name:"0",type:"",description:"K線開盤時間"},{name:"1",type:"",description:"開盤價"},{name:"2",type:"",description:"最高價"},{name:"3",type:"",description:"最低價"},{name:"4",type:"",description:"收盤價"},{name:"5",type:"",description:"成交價"},{name:"6",type:"",description:"K線收盤時間"},{name:"7",type:"",description:"成交額"}]},{type:"interval",key:"key12",data:[{name:"1m",description:"一分鐘K線"},{name:"3m",description:"三分鐘K線"},{name:"5m",description:"五分鐘K線"},{name:"15m",description:"十五分鐘K線"},{name:"30m",description:"三十分鐘K線"},{name:"1h",description:"一小時K線"},{name:"2h",description:"两小時K線"},{name:"4h",description:"四小時K線"},{name:"6h",description:"六小時K線"},{name:"8h",description:"八小時K線"},{name:"12h",description:"12小時K線"},{name:"1d",description:"1日K線"},{name:"3d",description:"3日K線"},{name:"1w",description:"週K線"},{name:"1M",description:"月K線"}]}]}]},"/nlw":function(e,t,n){var i={"./01_get_contract_allPosition.json":"ttu5","./02_get_contract_allOrders.json":"RhU9","./03_get_contract_balance.json":"n0S/"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="/nlw"},"/s4V":function(e,t){e.exports=[{type:"hash",text:"Subscribe Market Depth Data"},{type:"normal",text:"Subscribe to the push of a certain trading pair's market depth data; this topic sends the latest market depth as a snapshot. Snapshots are sent at a frequency of once every 1 second. "},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 market.depth.$Symbol.$Step.$Level,比如market.depth.BTC-USDT.step0.level5"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"level",type:"string",required:"yes",description:"Depth level, such as level5,level10,level20,level50,level100"},{name:"level",type:"string",required:"yes",description:"Depth level, such as level5,level10,level20,level50,level100"}]},{type:"step",key:"key1",data:[{name:"step0",type:"",description:"Depth data will not be merged."},{name:"step1",type:"",description:"Multiply the minimum precision of the price by 10 to merge the depth data"},{name:"step2",type:"",description:"Multiply the minimum precision of the price by 100 to merge the depth data"},{name:"step3",type:"",description:"Multiply the minimum precision of the price by 1,000 to merge the depth data"},{name:"step4",type:"",description:"Multiply the minimum precision of the price by 10,000 to merge the depth data"},{name:"step5",type:"",description:"Multiply the minimum precision of the price by 100,000 to merge the depth data"}]},{type:"level",key:"key2",data:[{name:"level5",type:"",description:"level 5"},{name:"level10",type:"",description:"level 10"},{name:"level20",type:"",description:"level 20"},{name:"level50",type:"",description:"level 50"},{name:"level100",type:"",description:"level 100"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"dataType",type:"",description:"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5"},{name:"data",type:"",description:"Push Data"},{name:"asks",type:"",description:"Sell side depth"},{name:"bids",type:"",description:"Buy side depth"},{name:"p",type:"",description:"price"},{name:"v",type:"",description:"volume"}]}]}]},"/sx7":function(e,t){e.exports=[{type:"hash",text:"Common Error Codes"},{type:"html",text:"

    Types:

    "},{type:"html",text:"
  • 4XX error codes are used to indicate wrong request content, behavior, format.
  • "},{type:"html",text:"
  • 5XX error codes are used to indicate problems with the Bingx service.
  • "},{type:"html",text:"

    Common business error codes:

    "},{type:"html",text:"
  • 100001 - signature verification failed#
  • "},{type:"html",text:"
  • 100202 - Insufficient balance
  • "},{type:"html",text:"
  • 100400 - Invalid parameter
  • "},{type:"html",text:"
  • 100440 - Order price deviates greatly from the market price
  • "},{type:"html",text:"
  • 100500 - We had a problem with our server
  • "},{type:"html",text:"
  • 100503 - Server busy
  • "},{type:"html",text:"

    Notes:

    "},{type:"html",text:"
  • If it fails, there will be an error description included in the response body.
  • "},{type:"html",text:"
  • Errors may be thrown from every interface.
  • "}]},"/vH4":function(e,t){},"/xkA":function(e,t){e.exports=[{type:"hash",text:"訂單更新推送"},{type:"normal",text:"當有新訂單創建、訂單有新成交或者新的狀態變化時會推送此類事件 事件類型統一為 ORDER_TRADE_UPDATE "},{type:"normal",text:"訂單方向",children:[{type:"normal",text:"BUY 買入"},{type:"normal",text:"SELL 賣出"}]},{type:"normal",text:"訂單類型",children:[{type:"normal",text:"MARKET 市價單"},{type:"normal",text:"LIMIT 限價單"},{type:"normal",text:"STOP 止損單"},{type:"normal",text:"TAKE_PROFIT 止盈單"},{type:"normal",text:"LIQUIDATION 強平單"}]},{type:"normal",text:"本次事件的具體執行類型",children:[{type:"normal",text:"NEW"},{type:"normal",text:"CANCELED 已撤"},{type:"normal",text:"CALCULATED 訂單ADL或爆倉 "},{type:"normal",text:"EXPIRED 訂單失效 "},{type:"normal",text:"TRADE 交易 "}]},{type:"normal",text:"訂單狀態",children:[{type:"normal",text:"NEW"},{type:"normal",text:"PARTIALLY_FILLED"},{type:"normal",text:"FILLED"},{type:"normal",text:"CANCELED "},{type:"normal",text:"EXPIRED "}]},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件類型:ORDER_TRADE_UPDATE"},{name:"E",type:"",description:"事件時間:1676603102163"},{name:"o",type:"obj",description:"訂單<對象>"}]},{type:"o",key:"common",data:[{name:"s",type:"",description:"交易對:LINK-USDT"},{name:"c",type:"",description:"客戶端自定訂單ID"},{name:"i",type:"",description:"訂單ID:1627970445070303232"},{name:"S",type:"",description:"訂單方向:SELL"},{name:"o",type:"",description:"訂單類型:MARKET"},{name:"q",type:"",description:"訂單委託數量:5.00000000"},{name:"p",type:"",description:"訂單委託價格:7.82700000"},{name:"ap",type:"",description:"訂單平均價格:7.82690000"},{name:"x",type:"",description:"本次事件的具體執行類型:TRADE"},{name:"X",type:"",description:"訂單的當前狀態:FILLED"},{name:"N",type:"",description:"手續費資產類型:USDT"},{name:"n",type:"",description:"手續費:-0.01369708"},{name:"T",type:"",description:"成交時間:1676973375149"},{name:"wt",type:"",description:"觸發價類型:MARK_PRICE 標記價格,CONTRACT_PRICE 最新價格,INDEX_PRICE 指數價格"},{name:"ps",type:"",description:"持倉方向:LONG or SHORT"},{name:"rp",type:"",description:"該交易實現盈虧: 0.00000000"},{name:"z",type:"",description:"訂單累計已成交量: 0.00000000"}]}]}]},"0EGA":function(e,t){e.exports=[{type:"hash",text:"Perpetual Swap Positions"},{type:"normal",text:"Retrieve information on users' positions of Perpetual Swap."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getPositions"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getPositions",protocol:"https",method:"POST",payload:{apiKey:"",currency:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"apiKey",type:"string",required:"yes",description:""},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"},{name:"symbol",type:"string",description:"Trading pair symbol"},{name:"currency",type:"string",description:"Asset Type"},{name:"positionId",type:"string",description:"Position ID"},{name:"positionSide",type:"string",description:"position direction LONG/SHORT long/short"},{name:"marginMode",type:"string",description:"margin mode Cross/Isolated"},{name:"volume",type:"float64",description:"Position Amount"},{name:"availableVolume",type:"float64",description:"AvailableAmt Amount"},{name:"unrealisedPNL",type:"float64",description:"unrealized profit and loss"},{name:"realisedPNL",type:"float64",description:"realized profit and loss"},{name:"margin",type:"float64",description:"Margin"},{name:"avgPrice",type:"float64",description:"Average opening price"},{name:"liquidatedPrice",type:"float64",description:"Estimated Liquidation Price"},{name:"leverage",type:"float64",description:"leverage"}]}]}]},"0FzS":function(e,t){e.exports=[{type:"hash",text:"查询当前委托订单"},{type:"normal",text:"查询一段时间周期内账户下处于当前委托状态的订单详情。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/pendingOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/pendingOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:""},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"}]},{type:"Response",key:"response",data:[{name:"entrustTm",type:"string",description:"订单委托时间"},{name:"side",type:"string",description:"交易方向(Bid/Ask 买/卖)"},{name:"tradeType",type:"string",description:"委托类型(Market/Limit 市价/限价)"},{name:"action",type:"string",description:"Open/Close 开仓/平仓"},{name:"entrustPrice",type:"float64",description:"委托价格"},{name:"entrustVolume",type:"float64",description:"委托数量"},{name:"avgFilledPrice",type:"float64",description:"成交均价"},{name:"filledVolume",type:"float64",description:"成交数量"},{name:"orderId",type:"string",description:"订单号"},{name:"profit",type:"float64",description:"盈亏"},{name:"commission",type:"float64",description:"手续费"},{name:"updateTm",type:"string",description:"订单更新时间"}]}]}]},"0IKX":function(e,t){e.exports=[{type:"hash",text:"獲取合約未平倉數"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/openInterest"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/openInterest",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"}]},{type:"Response",key:"response",data:[{name:"openInterest",type:"string",description:"持倉數量"},{name:"symbol",type:"string",description:"合約名稱"},{name:"time",type:"int64",description:"撮合引擎時間"}]}]}]},"0L/C":function(e,t){e.exports=[{type:"hash",text:"批量下单"},{type:"normal",text:"当前账户在指定symbol合约上进行批量下单操作。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/batchOrders"},{type:"html",text:"
  • 具体订单条件规则,与普通下单一致
  • "},{type:"html",text:"
  • batchOrders是数组,以Python 举例
  • "},{type:"code",text:'{"batchOrders" : "[{\\"symbol\\": \\"ETH-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 1},{\\"symbol\\": \\"BTC-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 0.001}]"}'},{type:"html",text:"
  • 真实发出去的http url请求参数参考如下
  • "},{type:"code",text:'https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=[{"symbol": "ETH-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 1},{"symbol": "BTC-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 0.001}]×tamp=1691312510782&signature=a7bd3f4ebf3321c1e3c9d2305584e0f28a70766340b79cca29f0a8428d5bbd7f'},{type:"warning",text:"批量下单采取并发处理,不保证订单撮合顺序"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/batchOrders",protocol:"https",method:"POST",payload:{batchOrders:[{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}],recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"batchOrders",type:"LIST",required:"是",description:"订单列表,最多支持5个订单,Order对象参考交易下单"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Order",key:"key1",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"type",type:"string",required:"是",description:"订单类型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"买卖方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG"},{name:"price",type:"float64",required:"否",description:"委托价格"},{name:"quantity",type:"float64",required:"否",description:"下单数量,合约数量,当前只支持以币计的合约数,暂不支持输入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,TRIGGER_LIMIT,TRIGGER_MARKET, STOP, TAKE_PROFIT 需要此参数"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"orderId",type:"int64",description:"订单号"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},"0RsY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("2LhZ").keys(),r=[],o=0;oHTTP請求"},{type:"code",text:"POST/GET api/v1/common/server/time"},{type:"html",text:"

    參數: 無

    "},{type:"demo",api:{uri:"/api/v1/common/server/time",protocol:"https",method:"GET",payload:{}},params:[{type:"Response",key:"response",data:[{name:"code",type:"Int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"},{name:"currentTime",type:"Int64",description:"係統當前時間,單位毫秒"}]}]}]},"1A8u":function(e,t){e.exports=[{type:"hash",text:"Query historical transaction orders"},{type:"normal",text:"Obtain the transaction history of a certain transaction pair"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/allFillOrders"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allFillOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,tradingUnit:"",startTs:0,endTs:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"no",description:"Only return this orderID and subsequent orders, default to returning the most recent order"},{name:"symbol",type:"string",required:"yes",description:"trading pair, for example: BTC-USDT"},{name:"tradingUnit",type:"string",required:"yes",description:"Trading unit, optional values: COIN, CONT directly represent assets such as BTC and ETH, and CONT represents the number of contract sheets"},{name:"startTs",type:"int64",required:"yes",description:"Starting timestamp in milliseconds"},{name:"endTs",type:"int64",required:"yes",description:"End timestamp in milliseconds"},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp, unit: millisecond"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"filledTm",type:"string",description:"Match the transaction time in the format of 2006-01-02T15:04:05.999Z"},{name:"volume",type:"string",description:"Transaction quantity"},{name:"price",type:"string",description:"Transaction price"},{name:"amount",type:"string",description:"Transaction amount"},{name:"commission",type:"string",description:"commission"},{name:"currency",type:"string",description:"Asset unit, usually USDT"},{name:"orderId",type:"string",description:"order id"},{name:"liquidatedPrice",type:"string",description:"Estimating strong parity, triggering the estimated strong parity at the time of strong parity, only available for strong parity orders"},{name:"liquidatedMarginRatio",type:"string",description:"Strong average margin rate, which triggers the strong average margin rate at the time of strong average, only available for strong average orders"},{name:"filledTime",type:"string",description:"Match the transaction time in the format of 2006-01-02T15:04:05.999+0800"}]}]}]},"1F8u":function(e,t,n){var i={"./01_server_url.json":"wpxO","./02_server_apply.json":"zCSH","./03_error_code.json":"Q+zo"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="1F8u"},"1MWL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("SxTR").keys(),r=[],o=0;o請求交互說明"},{type:"html",text:"
  • 請求參數:根據接口請求參數規定進行參數封装。
  • "},{type:"html",text:"
  • 提交請求參數:将封装好的請求參數通過POST/GET/DELETE等方式提交至服務器。
  • "},{type:"html",text:"
  • 服務器響應:服務器首先對用戶請求數據進行參數安全校驗,通過校驗後根據業務邏輯将響應數據以JSON格式返回給用戶。
  • "},{type:"html",text:"
  • 數據處理:對服務器響應數據進行處理。
  • "},{type:"html",text:"成功"},{type:"html",text:"
  • HTTP狀態碼200表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。
  • "}]},"2qJV":function(e,t){e.exports=[{type:"hash",text:"查詢深度信息"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/market/depth"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/market/depth",protocol:"https",method:"GET",payload:{symbol:"",limit:100}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"limit",type:"int",required:"否",description:"默認20,最多100"}]},{type:"Response",key:"response",data:[{name:"bids",type:"array",description:"第一個元素價格,第二個元素數量"},{name:"asks",type:"array",description:"第一個元素價格,第二個元素數量"},{name:"ts",type:"int",description:"深度時間戳,單位毫秒"}]}]}]},"2uFj":function(e,t,n){"use strict";var i=n("bOdI"),r=n.n(i),o=n("e5CW"),s=n("mvHQ"),a=n.n(s),p=n("W/J5"),d=n("otUP"),c=n("Vl00"),y=n("ZZch"),m=n.n(y),l=n("F5V+"),u=n("pk3M"),h=n("Ob2m"),g=n("L6ds"),_=n("edi2"),T=n.n(_),f=n("C8jp"),x=n("wX2Q"),b=n("Bo+j"),w={path:"market.html",name:"Websocket Market Data",content:x.Data},q={path:"account.html",name:"Websocket Account Data",content:b.Data},v={module:"swap",path:"/swap/socket",name:"Socket API Reference",children:[{path:"",name:"Introduction",content:JSON.parse(a()(f.Data).replaceAll("wss://open-api-swap.bingx.com/swap-market","wss://open-ws-swap.bingbon.pro/ws"))},w,q]},k={module:"swap",path:"/swap/changelog",name:"Change log",content:p.Data},S={module:"swap",path:"/swap/trade-api.html",name:"Trade Interface",content:h.Data},D={module:"swap",path:"/swap/authentication.html",name:"Authentication",content:l.Data},O={module:"swap",path:"/swap/base-info.html",name:"Basic Information",content:c.Data};O.content=O.content.concat(T.a);var A={module:"swap",path:"/swap/account-api.html",name:"Account Interface",content:u.Data},j=a()(d.Data).replaceAll("/openApi/user/auth/userDataStream","/api/v1/user/auth/userDataStream");j=j.replaceAll("open-api.bingx.com","api-swap-rest.bingbon.pro");var E={module:"swap",path:"/swap/listen-key.html",name:"Listen Key",content:JSON.parse(j)},P={module:"swap",path:"/swap/market-api.html",name:"Market Interface",content:g.Data},I=[m.a,k,D,O,P,A,S,E,v],R=n("/jWt"),U=n("XWMS"),C=n("ohLs"),M=n("BJ4d"),L={path:"market.html",name:"Websocket Market Data",content:U.Data},K={path:"account.html",name:"Websocket Account Data",content:C.Data},N=[{path:"",name:"Introduction",content:M.Data},L,K],B=n("sHXP"),G=n("cId4"),z=n("puzn"),H=n.n(z),F=n("W+Bc"),W=n("S9BK"),Q=a()(d.Data);Q=(Q=Q.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var V={module:"common",path:"/common/changelog",name:"Change log",content:p.Data},Y={module:"common",path:"/common/sub-account",name:"sub-account",content:W.Data},Z={module:"common",path:"/common/authentication.html",name:"Authentication",content:R.Data},X={module:"common",path:"/common/base-info.html",name:"Basic Information",content:B.Data},J={module:"common",path:"/common/account-api.html",name:"User Universal Transfer Interface",content:G.Data},$={module:"common",path:"/common/permission-interface.html",name:"permission interface",content:F.Data},ee={module:"common",path:"/common/authentication-interface.html",name:"Authentication Interface",content:JSON.parse(Q)},te=[H.a,V,X,Z,$,J,Y,ee],ne=n("y1S6"),ie=n.n(ne),re=n("2ggw"),oe=n("BbCp"),se={module:"spot",path:"/spot/socket",name:"Socket API Reference",children:N},ae={module:"spot",path:"/spot/changelog",name:"Change log",content:p.Data},pe={module:"spot",path:"/spot/trade-api.html",name:"Trade Interface",content:re.Data},de={module:"spot",path:"/spot/authentication.html",name:"Authentication",content:R.Data},ce={module:"spot",path:"/spot/base-info.html",name:"Basic Information",content:B.Data},ye={module:"spot",path:"/spot/account-api.html",name:"User Universal Transfer Interface",content:G.Data},me={module:"spot",path:"/spot/market-api.html",name:"Market Interface",content:oe.Data},le={module:"spot",path:"/spot/listen-key.html",name:"Listen Key",content:d.Data},ue=[ie.a,ae,ce,de,pe,me,ye,le,se],he=n("CSFx"),ge=n("HGsQ"),_e=n.n(ge),Te={module:"standard",path:"/standard/socket",name:"Socket API Reference",children:N},fe={module:"standard",path:"/standard/changelog",name:"Change log",content:p.Data},xe={module:"standard",path:"/standard/contract-interface.html",name:"Standard Contract Interface",content:he.Data},be={module:"standard",path:"/standard/authentication.html",name:"Authentication",content:R.Data},we={module:"standard",path:"/standard/base-info.html",name:"Basic Information",content:B.Data},qe=[_e.a,fe,we,be,xe,Te],ve=n("yse3"),ke=n("5ECq"),Se=n("vVGz"),De=n("2KwY"),Oe=n("goAe"),Ae=n.n(Oe),je=n("5MML"),Ee=n.n(je),Pe=n("Q3ZN"),Ie=n("336Z"),Re={path:"market.html",name:"Websocket Market Data",content:Pe.Data},Ue={path:"account.html",name:"Websocket Account Data",content:Ie.Data},Ce=[{path:"",name:"Introduction",content:f.Data},Re,Ue],Me=a()(d.Data).replaceAll("/market/","/swap-market?");Me=(Me=(Me=(Me=Me.replaceAll("/market","/swap-market")).replaceAll("open-api-ws.bingx.com","open-api-swap.bingx.com")).replaceAll("/swap-market?","/swap-market?listenKey=")).replaceAll("wss://open-api-swap.bingx.com/swap-market?listenKey=","wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Le,Ke,Ne={module:"swapV2",path:"/swapV2/socket",name:"Socket API Reference",children:Ce},Be={module:"swapV2",path:"/swapV2/changelog",name:"Change log",content:p.Data},Ge={module:"swapV2",path:"/swapV2/trade-api.html",name:"Trade Interface",content:ke.Data},ze={module:"swapV2",path:"/swapV2/authentication.html",name:"Authentication",content:R.Data},He={module:"swapV2",path:"/swapV2/base-info.html",name:"Basic Information",content:De.Data},Fe={module:"swapV2",path:"/swapV2/account-api.html",name:"Account Interface",content:ve.Data},We={module:"swapV2",path:"/swapV2/listen-key.html",name:"Listen Key",content:JSON.parse(Me)},Qe={module:"swapV2",path:"/swapV2/market-api.html",name:"Market Interface",content:Se.Data},Ve=[Ae.a,Be,Ee.a,ze,He,Qe,Fe,Ge,We,Ne],Ye=(Le={},r()(Le,o.e,"Perpetual Futures API Reference V2"),r()(Le,o.b,"Spot"),r()(Le,o.c,"Standard Contract"),r()(Le,o.a,"Account & Wallet"),Le),Ze=(Ke={},r()(Ke,o.d,I),r()(Ke,o.e,Ve),r()(Ke,o.a,te),r()(Ke,o.b,ue),r()(Ke,o.c,qe),Ke),Xe=n("Ygbz"),Je=n("HD5E"),$e=n("pPs/"),et=n("Agv/"),tt=n.n(et),nt=n("P462"),it=n("o7Jb"),rt=n("B9Yr"),ot=n("bShK"),st=n("JLZd"),at=n.n(st),pt=n("R86N"),dt=n("Vcuj"),ct=n("UJ2F"),yt={path:"market.html",name:"Websocket 行情推送",content:dt.Data},mt={path:"account.html",name:"Websocket 账户信息推送",content:ct.Data},lt={module:"swap",path:"/swap/socket",name:"Socket 文档",children:[{path:"",name:"介绍",content:JSON.parse(a()(pt.Data).replaceAll("wss://open-api-swap.bingx.com/swap-market","wss://open-ws-swap.bingbon.pro/ws"))},yt,mt]},ut={module:"swap",path:"/swap/changelog",name:"变更日志",content:Xe.Data},ht={module:"swap",path:"/swap/trade-api.html",name:"交易接口",content:rt.Data},gt={module:"swap",path:"/swap/authentication.html",name:"签名认证",content:nt.Data},_t={module:"swap",path:"/swap/base-info.html",name:"基础信息",content:$e.Data};_t.content=_t.content.concat(at.a);var Tt={module:"swap",path:"/swap/account-api.html",name:"账户接口",content:it.Data},ft=a()(Je.Data).replaceAll("/openApi/user/auth/userDataStream","/api/v1/user/auth/userDataStream");ft=ft.replaceAll("open-api.bingx.com","api-swap-rest.bingbon.pro");var xt={module:"swap",path:"/swap/listen-key.html",name:"Listen Key",content:JSON.parse(ft)},bt={module:"swap",path:"/swap/market-api.html",name:"行情接口",content:ot.Data},wt=[tt.a,ut,gt,_t,bt,Tt,ht,xt,lt],qt=n("vVqC"),vt=n("zOyK"),kt=n("JNoc"),St=n("1MWL"),Dt={path:"market.html",name:"Websocket 行情推送",content:vt.Data},Ot={path:"account.html",name:"Websocket 账户信息推送",content:kt.Data},At=[{path:"",name:"介绍",content:St.Data},Dt,Ot],jt=n("yr2O"),Et=n("vfcf"),Pt=n("L7p1"),It=n.n(Pt),Rt=n("aR+m"),Ut=n("QCBJ"),Ct=a()(Je.Data);Ct=(Ct=Ct.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Mt={module:"common",path:"/common/changelog",name:"变更日志",content:Xe.Data},Lt={module:"common",path:"/common/sub-account",name:"子账户",content:Ut.Data},Kt={module:"common",path:"/common/authentication.html",name:"签名认证",content:qt.Data},Nt={module:"common",path:"/common/base-info.html",name:"基础信息",content:jt.Data},Bt={module:"common",path:"/common/account-api.html",name:"用户划转和充值和提币接口",content:Et.Data},Gt={module:"common",path:"/common/permission-interface.html",name:"权限接口",content:Rt.Data},zt={module:"common",path:"/common/authentication-interface.html",name:"鉴权服务",content:JSON.parse(Ct)},Ht=[It.a,Mt,Nt,Kt,Gt,Bt,Lt,zt],Ft=n("xTSi"),Wt=n.n(Ft),Qt=n("UdzQ"),Vt=n("tcKi"),Yt={module:"spot",path:"/spot/socket",name:"Socket 文档",children:At},Zt={module:"spot",path:"/spot/changelog",name:"变更日志",content:Xe.Data},Xt={module:"spot",path:"/spot/trade-api.html",name:"交易接口",content:Qt.Data},Jt={module:"spot",path:"/spot/authentication.html",name:"签名认证",content:qt.Data},$t={module:"spot",path:"/spot/base-info.html",name:"基础信息",content:jt.Data},en={module:"spot",path:"/spot/account-api.html",name:"用户划转和充值和提币接口",content:Et.Data},tn={module:"spot",path:"/spot/market-api.html",name:"行情接口",content:Vt.Data},nn={module:"spot",path:"/spot/listen-key.html",name:"Listen Key",content:Je.Data},rn=[Wt.a,Zt,$t,Jt,Xt,tn,en,nn,Yt],on=n("0RsY"),sn=n("uXeI"),an=n.n(sn),pn={module:"standard",path:"/standard/socket",name:"Socket 文档",children:At},dn={module:"standard",path:"/standard/changelog",name:"变更日志",content:Xe.Data},cn={module:"standard",path:"/standard/contract-interface.html",name:"标准合约接口",content:on.Data},yn={module:"standard",path:"/standard/authentication.html",name:"签名认证",content:qt.Data},mn={module:"standard",path:"/standard/base-info.html",name:"基础信息",content:jt.Data},ln=[an.a,dn,mn,yn,cn,pn],un=n("NoWp"),hn=n("UNGp"),gn=n("ftyM"),_n=n("OKNr"),Tn=n("IEXP"),fn=n.n(Tn),xn=n("Tp48"),bn=n.n(xn),wn=n("+hzZ"),qn=n("K9aK"),vn={path:"market.html",name:"Websocket 行情推送",content:wn.Data},kn={path:"account.html",name:"Websocket 账户信息推送",content:qn.Data},Sn=[{path:"",name:"介绍",content:pt.Data},vn,kn],Dn=a()(Je.Data).replaceAll("/market/","/swap-market?");Dn=(Dn=(Dn=(Dn=Dn.replaceAll("/market","/swap-market")).replaceAll("open-api-ws.bingx.com","open-api-swap.bingx.com")).replaceAll("/swap-market?","/swap-market?listenKey=")).replaceAll("wss://open-api-swap.bingx.com/swap-market?listenKey=","wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var On,An,jn={module:"swapV2",path:"/swapV2/socket",name:"Socket 文档",children:Sn},En={module:"swapV2",path:"/swapV2/changelog",name:"变更日志",content:Xe.Data},Pn={module:"swapV2",path:"/swapV2/trade-api.html",name:"交易接口",content:hn.Data},In={module:"swapV2",path:"/swapV2/authentication.html",name:"签名认证",content:qt.Data},Rn={module:"swapV2",path:"/swapV2/base-info.html",name:"基础信息",content:_n.Data},Un={module:"swapV2",path:"/swapV2/account-api.html",name:"账户接口",content:un.Data},Cn={module:"swapV2",path:"/swapV2/listen-key.html",name:"Listen Key",content:JSON.parse(Dn)},Mn={module:"swapV2",path:"/swapV2/market-api.html",name:"行情接口",content:gn.Data},Ln=[fn.a,En,bn.a,In,Rn,Mn,Un,Pn,Cn,jn],Kn=(On={},r()(On,o.e,"USDT本位永续合约V2"),r()(On,o.b,"现货"),r()(On,o.c,"标准合约"),r()(On,o.a,"账户与钱包"),On),Nn=(An={},r()(An,o.d,wt),r()(An,o.e,Ln),r()(An,o.a,Ht),r()(An,o.b,rn),r()(An,o.c,ln),An),Bn=n("X9kl"),Gn=n("R9OT"),zn=n("hsbI"),Hn=n("JXoq"),Fn=n.n(Hn),Wn=n("8gCM"),Qn=n("NGON"),Vn=n("L4P3"),Yn=n("mROX"),Zn=n("14TU"),Xn=n.n(Zn),Jn=n("+hJF"),$n=n("MRTk"),ei=n("TcGk"),ti={path:"market.html",name:"Websocket 行情推送",content:$n.Data},ni={path:"account.html",name:"Websocket 賬戶信息推送",content:ei.Data},ii={module:"swap",path:"/swap/socket",name:"Socket 文檔",children:[{path:"",name:"介紹",content:JSON.parse(a()(Jn.Data).replaceAll("wss://open-api-swap.bingx.com/swap-market","wss://open-ws-swap.bingbon.pro/ws"))},ti,ni]},ri={module:"swap",path:"/swap/changelog",name:"變更日誌",content:Bn.Data},oi={module:"swap",path:"/swap/trade-api.html",name:"交易接口",content:Vn.Data},si={module:"swap",path:"/swap/authentication.html",name:"簽名認證",content:Wn.Data},ai={module:"swap",path:"/swap/base-info.html",name:"基礎信息",content:zn.Data};ai.content=ai.content.concat(Xn.a);var pi={module:"swap",path:"/swap/account-api.html",name:"賬戶接口",content:Qn.Data},di=a()(Gn.Data).replaceAll("/openApi/user/auth/userDataStream","/api/v1/user/auth/userDataStream");di=di.replaceAll("open-api.bingx.com","api-swap-rest.bingbon.pro");var ci={module:"swap",path:"/swap/listen-key.html",name:"Listen Key",content:JSON.parse(di)},yi={module:"swap",path:"/swap/market-api.html",name:"行情接口",content:Yn.Data},mi=[Fn.a,ri,si,ai,yi,pi,oi,ci,ii],li=n("yjnE"),ui=n("FZvV"),hi=n("KsRT"),gi=n("kq5u"),_i={path:"market.html",name:"Websocket 行情推送",content:ui.Data},Ti={path:"account.html",name:"Websocket 賬戶信息推送",content:hi.Data},fi=[{path:"",name:"介紹",content:gi.Data},_i,Ti],xi=n("qM4I"),bi=n("LuFD"),wi=n("+Vb3"),qi=n.n(wi),vi=n("8e1X"),ki=n("b9rl"),Si=a()(Gn.Data);Si=(Si=Si.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Di={module:"common",path:"/common/sub-account",name:"子賬戶",content:ki.Data},Oi={module:"common",path:"/common/changelog",name:"變更日誌",content:Bn.Data},Ai={module:"common",path:"/common/authentication.html",name:"簽名認證",content:li.Data},ji={module:"common",path:"/common/base-info.html",name:"基礎信息",content:xi.Data},Ei={module:"common",path:"/common/account-api.html",name:"用戶劃轉和充值和提幣接口",content:bi.Data},Pi={module:"common",path:"/common/permission-interface.html",name:"權限接口",content:vi.Data},Ii={module:"common",path:"/common/authentication-interface.html",name:"鑒權服務",content:JSON.parse(Si)},Ri=[qi.a,Oi,ji,Ai,Pi,Ei,Di,Ii],Ui=n("z74M"),Ci=n.n(Ui),Mi=n("tksP"),Li=n("9GqO"),Ki={module:"spot",path:"/spot/socket",name:"Socket 文檔",children:fi},Ni={module:"spot",path:"/spot/changelog",name:"變更日誌",content:Bn.Data},Bi={module:"spot",path:"/spot/trade-api.html",name:"交易接口",content:Mi.Data},Gi={module:"spot",path:"/spot/authentication.html",name:"簽名認證",content:li.Data},zi={module:"spot",path:"/spot/base-info.html",name:"基礎信息",content:xi.Data},Hi={module:"spot",path:"/spot/account-api.html",name:"用戶劃轉和充值和提幣接口",content:bi.Data},Fi={module:"spot",path:"/spot/market-api.html",name:"行情接口",content:Li.Data},Wi={module:"spot",path:"/spot/listen-key.html",name:"Listen Key",content:Gn.Data},Qi=[Ci.a,Ni,zi,Gi,Bi,Fi,Hi,Wi,Ki],Vi=n("wbzr"),Yi=n("okpR"),Zi=n.n(Yi),Xi={module:"standard",path:"/standard/socket",name:"Socket 文檔",children:fi},Ji={module:"standard",path:"/standard/changelog",name:"變更日誌",content:Bn.Data},$i={module:"standard",path:"/standard/contract-interface.html",name:"標准合約接口",content:Vi.Data},er={module:"standard",path:"/standard/authentication.html",name:"簽名認證",content:li.Data},tr={module:"standard",path:"/standard/base-info.html",name:"基礎信息",content:xi.Data},nr=[Zi.a,Ji,tr,er,$i,Xi],ir=n("KJg6"),rr=n("2xjp"),or=n("ByCb"),sr=n("2/Td"),ar=n("5GrR"),pr=n.n(ar),dr=n("n5PB"),cr=n.n(dr),yr=n("B7jJ"),mr=n("3Fwp"),lr={path:"market.html",name:"Websocket 行情推送",content:yr.Data},ur={path:"account.html",name:"Websocket 賬戶信息推送",content:mr.Data},hr=[{path:"",name:"介紹",content:Jn.Data},lr,ur],gr=a()(Gn.Data).replaceAll("/market/","/swap-market?");gr=(gr=(gr=(gr=gr.replaceAll("/market","/swap-market")).replaceAll("open-api-ws.bingx.com","open-api-swap.bingx.com")).replaceAll("/swap-market?","/swap-market?listenKey=")).replaceAll("wss://open-api-swap.bingx.com/swap-market?listenKey=","wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var _r,Tr,fr,xr,br={module:"swapV2",path:"/swapV2/socket",name:"Socket 文檔",children:hr},wr={module:"swapV2",path:"/swapV2/changelog",name:"變更日誌",content:Bn.Data},qr={module:"swapV2",path:"/swapV2/trade-api.html",name:"交易接口",content:rr.Data},vr={module:"swapV2",path:"/swapV2/authentication.html",name:"簽名認證",content:li.Data},kr={module:"swapV2",path:"/swapV2/base-info.html",name:"基礎信息",content:sr.Data},Sr={module:"swapV2",path:"/swapV2/account-api.html",name:"賬戶接口",content:ir.Data},Dr={module:"swapV2",path:"/swapV2/listen-key.html",name:"Listen Key",content:JSON.parse(gr)},Or={module:"swapV2",path:"/swapV2/market-api.html",name:"行情接口",content:or.Data},Ar=[pr.a,wr,cr.a,vr,kr,Or,Sr,qr,Dr,br],jr=(_r={},r()(_r,o.e,"USDT本位永續合約V2"),r()(_r,o.b,"現貨"),r()(_r,o.c,"標準合約"),r()(_r,o.a,"賬戶與錢包"),_r),Er=(Tr={},r()(Tr,o.d,mi),r()(Tr,o.e,Ar),r()(Tr,o.a,Ri),r()(Tr,o.b,Qi),r()(Tr,o.c,nr),Tr),Pr=n("0xDb");n.d(t,"a",function(){return Mr}),n.d(t,"b",function(){return Lr});var Ir=Ye,Rr=Ze,Ur=(fr={},r()(fr,Pr.c.en,Ye),r()(fr,Pr.c.zh,Kn),r()(fr,Pr.c.tw,jr),fr),Cr=(xr={},r()(xr,Pr.c.en,Ze),r()(xr,Pr.c.zh,Nn),r()(xr,Pr.c.tw,Er),xr),Mr=function(e){return Ur[e]||Ir},Lr=function(e){return Cr[e]||Rr}},"2xjp":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Rqf2").keys(),r=[],o=0;o@kline_ E.g.BTC-USDT@kline_1min"},{type:"normal",text:"Subscription Example",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"BTC-USDT@kline_1m"}'},{type:"html",text:"
  • Currently, only one minute of K-line data is available
  • "},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"interval",type:"string",required:"yes",description:"Reference field description, K-line type:,1min, 5min, 15min, 30min, 60min, 1day"}]},{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"The data type of the subscription, for example:BTC-USDT@kline_1min"},{name:"data",type:"",description:"Push Data"}]},{type:"data",key:"key1",data:[{name:"E",type:"",description:"event time"},{name:"K",type:"",description:"data"},{name:"e",type:"",description:"Event Type"},{name:"s",type:"",description:"trading pair"}]},{type:"K",key:"key2",data:[{name:"T",type:"",description:"The end time of this K-line"},{name:"c",type:"",description:"The last transaction price during this K-line period"},{name:"h",type:"",description:"The highest transaction price during this K-line period"},{name:"i",type:"",description:"K-line interval"},{name:"l",type:"",description:"The lowest transaction price during this K-line period"},{name:"n",type:"",description:"Number of transactions during this K-line period"},{name:"o",type:"",description:"The first transaction price during this K-line period"},{name:"q",type:"",description:"Transaction volume during this K-line period"},{name:"s",type:"",description:"trading pair"},{name:"t",type:"",description:"The starting time of this K-line"},{name:"v",type:"",description:"Trading volume during this K-line period"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"1-minute K-line"}]}]}]},"3Fwp":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("xE4z").keys(),r=[],o=0;oFor more about return error codes, please see the error code description on the homepage."},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"klineType",type:"string",required:"yes",description:"The type of K-Line (minutes, hours, weeks etc.)"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"data",type:"",description:"Push Data"},{name:"dataType",type:"",description:"Data Type"},{name:"klineInfosVo",type:"",description:"K-Line data"},{name:"close",type:"",description:"Closing Price"},{name:"high",type:"",description:"High Price"},{name:"low",type:"",description:"Low Price"},{name:"open",type:"",description:"Opening Price"},{name:"statDate",type:"",description:"Kline Date"},{name:"time",type:"",description:"The timestamp of K-Line,Unit: ms"},{name:"volume",type:"",description:"Volume"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"1 min Kline"},{name:"3min",description:"3 min Kline"},{name:"5min",description:"5 min Kline"},{name:"15min",description:"十5 min Kline"},{name:"30min",description:"30 min Kline"},{name:"1hour",description:"1-hour Kline"},{name:"2hour",description:"2-hour Kline"},{name:"4hour",description:"4-hour Kline"},{name:"6hour",description:"6-hour Kline"},{name:"8hour",description:"8-hour Kline"},{name:"12hour",description:"12-hour Kline"},{name:"1day",description:"1-Day Kline"},{name:"1week",description:"1-Week Kline"},{name:"1month",description:"1-Month Kline"}]}]}]},"3Obf":function(e,t,n){var i={"./01_executionReport.json":"H6dO","./02_ account_update.json":"bZVt"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="3Obf"},"3YFN":function(e,t){e.exports=[{type:"hash",text:"查询子账户列表"},{type:"normal",text:"查询子账户列表"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/subAccount/v1/list"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/list",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"否",description:"子账户uid"},{name:"subAccountString",type:"string",required:"否",description:"子账户用户名"},{name:"isFeeze",type:"bool",required:"否",description:"是否冻结"},{name:"page",type:"int",required:"是",description:"分页页码,启始为1"},{name:"limit",type:"int",required:"是",description:"分页大小,最大100"},{name:"timestamp",type:"long",required:"是",description:""}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子账户uid"},{name:"subAccountString",type:"string",description:"子账户用户名"},{name:"note",type:"string",description:"子账户备注信息"},{name:"freeze",type:"bool",description:"是否已经冻结"},{name:"createTime",type:"long",description:"创建时间"}]}]}]},"4/D+":function(e,t,n){var i={".":"aR+m","./":"aR+m","./01_get_account_apiRestrictions":"2ni1","./01_get_account_apiRestrictions.json":"2ni1","./index":"aR+m","./index.js":"aR+m"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4/D+"},"40ny":function(e,t){e.exports=[{type:"hash",text:"撤銷全部訂單"},{type:"normal",text:"将賬戶下處於當前委託狀態的全部訂單進行撤銷操作。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelAll"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelAll",protocol:"https",method:"POST",payload:{apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"}]}]}]},"44OD":function(e,t){e.exports=[{type:"hash",text:"权限设置"},{type:"normal",text:"",children:[{type:"normal",text:"新创建的API的默认权限是 只读。"},{type:"normal",text:"如果需要通过API进行下单交易等写操作,需要在UI修改为对应权限。"}]}]},"45yt":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\n# apt install openssl\n# apt install curl\nAPI_KEY=""\nAPI_SECRET=""\nTIMESTAMP=$((^date \'+%s\'^*1000+^date \'+%N\'^/1000000))\nPARAMETERS="PPAARRAAMMEETTEERRSS"\nHOST="HHOOSSTT"\nPROTOCOL="PPRROOTTOOCCOOLL"\nMETHOD="MMEETTHHOODD"\nAPI="AAPPII"\n\necho "API_KEY:"$API_KEY\necho "API_SECRET:"$API_SECRET\necho "PARAMETERS:"$PARAMETERS\nPARAMETERS="$PARAMETERS×tamp=$TIMESTAMP"\n\nsign=^echo -n $PARAMETERS | openssl dgst -sha256 -hmac $API_SECRET -hex^\nsign=${sign##* }\necho "sign:"$sign\nCURL="curl --location --request $METHOD --header \'X-BX-APIKEY: $API_KEY\' \'$PROTOCOL://$HOST$API?$PARAMETERS&signature=$sign\'"\necho ""\necho $CURL\necho ""\ncurl --location --request $METHOD --header "X-BX-APIKEY: $API_KEY" "$PROTOCOL://$HOST$API?$PARAMETERS&signature=$sign"\necho ""\necho ""\n'},"4AkN":function(e,t){e.exports=[{type:"hash",text:"Get Swap Open Positions"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getOpenPositions"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getOpenPositions",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"volume",type:"float64",description:"Volume of opened positions"},{name:"unit",type:"string",description:"The unit corresponding to the Volume of opened positions, CONT. - BTC, ETH, LINK, BCH, etc."}]}]}]},"4KP5":function(e,t){e.exports=[{type:"hash",text:"时间戳规范"},{type:"normal",text:"",children:[{type:"html",text:"除非另外指定,API中的所有时间戳均以毫秒为单位返回。"},{type:"html",text:"请求的时间戳必须在API服务时间的5秒内,否则请求将被视为过期并被拒绝。如果本地服务器时间和API服务器时间之间存在较大的偏差,那么我们建议您使用通过查询API服务器时间来更新http header。 "}]},{type:"html",text:"

    例子

    "},{type:"code",text:"1587091154123"}]},"4L7x":function(e,t){e.exports=[{type:"hash",text:"Subscribe the Latest Trade Detail"},{type:"normal",text:"Subscribe to the trade detail data of a trading pair"},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"The dataType is @trade E.g. BTC-USDT@trade ETH-USDT@trade"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"dataType",type:"",description:"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5"},{name:"data",type:"",description:"Push Data"},{name:"T",type:"",description:"transaction time"},{name:"s",type:"",description:"trading pair"},{name:"m",type:"",description:"Whether the buyer is a market maker. If true, this transaction is an active sell order, otherwise it is an active buy order."},{name:"p",type:"",description:"price"},{name:"v",type:"",description:"volume"}]}]}]},"4TeI":function(e,t,n){var i={"./01_get_user_balance.json":"zKw2","./02_get_user_positions.json":"uAAZ","./03_get_user_income.json":"clol"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4TeI"},"4UQG":function(e,t){e.exports=[{type:"hash",text:"Requests"},{type:"warning",text:"Root URL for REST access: https://api-swap-rest.bingbon.pro"},{type:"html",text:"All requests are HTTPS-based. The Content-Type in the request header should be set as “application/json”. "},{type:"html",text:"Request Description"},{type:"html",text:"
  • Request Parameters: Encapsulate the request parameters according to the parameter requirements of the specific endpoint request.
  • "},{type:"html",text:"
  • Submit Request Parameters: Submit the encapsulated request parameters to the server via POST/GET/DELETE, etc.
  • "},{type:"html",text:"
  • Server Response: The server first performs parameter security verification on the user request data. When the verification is completed, the response data will be returned to the user in JSON format according to the service logic.
  • "},{type:"html",text:"
  • Data Processing: Process the response data from the server.
  • "},{type:"html",text:"Success"},{type:"html",text:"
  • A successful response is indicated by HTTP status code 200 and may optionally contain a body. If the response has a body, it will be included under each resource below.
  • "}]},"4X8p":function(e,t){e.exports=[{type:"hash",text:"Order update push"},{type:"normal",text:"This type of event will be pushed when a new order is created, an order has a new deal, or a new status change. The event type is unified as ORDER_TRADE_UPDATE "},{type:"normal",text:"order direction",children:[{type:"normal",text:"BUY buy"},{type:"normal",text:"SELL sell"}]},{type:"normal",text:"Order Type",children:[{type:"normal",text:"MARKET market order"},{type:"normal",text:"LIMIT limit order"},{type:"normal",text:"STOP stop loss order"},{type:"normal",text:"TAKE_PROFIT take profit order"},{type:"normal",text:"LIQUIDATION strong liquidation order"}]},{type:"normal",text:"The specific execution type of this event",children:[{type:"normal",text:"NEW"},{type:"normal",text:"CANCELED removed"},{type:"normal",text:"CALCULATED order ADL or liquidation "},{type:"normal",text:"EXPIRED order lapsed "},{type:"normal",text:"TRADE transaction "}]},{type:"normal",text:"Order Status",children:[{type:"normal",text:"NEW"},{type:"normal",text:"PARTIALLY_FILLED"},{type:"normal",text:"FILLED"},{type:"normal",text:"CANCELED "},{type:"normal",text:"EXPIRED "}]},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"event type:ORDER_TRADE_UPDATE"},{name:"E",type:"",description:"event time:1676603102163"},{name:"o",type:"obj",description:"order"}]},{type:"o",key:"common",data:[{name:"s",type:"",description:"trading pair:LINK-USDT"},{name:"c",type:"",description:" client custom order ID"},{name:"i",type:"",description:"Order ID:1627970445070303232"},{name:"S",type:"",description:" order direction:SELL"},{name:"o",type:"",description:"order type:MARKET"},{name:"q",type:"",description:"order quantity:5.00000000"},{name:"p",type:"",description:"order price:7.82700000"},{name:"ap",type:"",description:"order average price:7.82690000"},{name:"x",type:"",description:"The specific execution type of this event:TRADE"},{name:"X",type:"",description:"current status of the order:FILLED"},{name:"N",type:"",description:"Fee asset type:USDT"},{name:"n",type:"",description:" handling fee:-0.01369708"},{name:"T",type:"",description:" transaction time:1676973375149"},{name:"wt",type:"",description:" trigger price type: MARK_PRICE mark price, CONTRACT_PRICE latest price, INDEX_PRICE index price"},{name:"ps",type:"",description:"Position direction: LONG or SHORT"},{name:"rp",type:"",description:"The transaction achieves profit and loss: 0.00000000"},{name:"z",type:"",description:"Order Filled Accumulated Quantity: 0.00000000"}]}]}]},"4b0F":function(e,t,n){var i={"./01_error_code.json":"INR5","./02_timestamp.json":"gE9e","./03_digital_rule.json":"v0HI","./04_rate_limits.json":"x6dl","./05_system_time.json":"i6gS"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4b0F"},"4iqa":function(e,t,n){var i={"./01_create_api.json":"KHR7","./03_request_content.json":"q1lS","./04_sign_discription.json":"OWlA","./05_request.json":"auLt"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4iqa"},"4izq":function(e,t,n){var i={"./01_get_asset_transfer.json":"zvGN","./02_get_asset_transfer2.json":"ah5Z","./03_get_deposit_hisrec.json":"PFmh","./04_get_withdraw_history.json":"bMv0","./05_post_wallets_coins.json":"Dy32","./06_post_wallets_withdraw.json":"KB+u","./07_post_capital_innerTransfer_apply.json":"iYO+"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4izq"},"4uFH":function(e,t){e.exports=[{type:"hash",text:"查询资金费率历史"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getHistoryFunding"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getHistoryFunding",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"historyId",type:"string",description:"历史ID号"},{name:"fundingRate",type:"float64",description:"资金费率"},{name:"fairPrice",type:"float64",description:"标记价格"},{name:"interval",type:"string",description:"资金费率结算周期,单位:小时"},{name:"time",type:"date",description:"结算时间"}]}]}]},"4yOc":function(e,t){e.exports=[{type:"hash",text:"全部一键平仓下单"},{type:"normal",text:"将当前账户下所有仓位进行一键平仓操作。注意,一键平仓是以市价委托进行触发的。 "},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/closeAllPositions"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/closeAllPositions",protocol:"https",method:"POST",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"success",type:"LIST",description:"全部一键平仓产生的多个委托订单号"},{name:"failed",type:"结构数组",description:"平仓失败的订单号"}]}]}]},"50QL":function(e,t){e.exports=[{type:"hash",text:"Query order details"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/queryOrderStatus"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/queryOrderStatus",protocol:"https",method:"POST",payload:{orderId:"",symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"orderId",type:"int64",required:"yes",description:"order ID"}]},{type:"Response",key:"response",data:[{name:"entrustTm",type:"string",description:"Order Time"},{name:"side",type:"string",description:"Direction (Bid/Ask)"},{name:"tradeType",type:"string",description:"Order Type(Market/Limit)"},{name:"action",type:"string",description:"Open/Close"},{name:"entrustPrice",type:"float64",description:"Price"},{name:"entrustVolume",type:"float64",description:"Order Amount"},{name:"avgFilledPrice",type:"float64",description:"Ave. Price"},{name:"filledVolume",type:"float64",description:"Executed quantity"},{name:"orderId",type:"string",description:"Order ID"},{name:"status",type:"string",description:"The status of Order (Filled or PartiallyFilled, Pending, Cancelled, Failed)"},{name:"profit",type:"float64",description:"profit and loss"},{name:"commission",type:"float64",description:"Fee"},{name:"updateTm",type:"string",description:"Update time of order"}]}]}]},"54oK":function(e,t){e.exports=[{type:"hash",text:"查询合约基础信息"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getAllContracts"},{type:"code",text:"example: https://api-swap-rest.bingbon.pro/api/v1/market/getAllContracts"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getAllContracts",protocol:"https",method:"GET",payload:{}},params:[{type:"Request(无)",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"code",type:"",description:"是否有错误信息,0为正常,1为有错误"},{name:"msg",type:"",description:"错误信息描述"},{name:"data",type:"",description:"Array"}]},{type:"Data",key:"response1",data:[{name:"contractId",type:"",description:"合约ID"},{name:"symbol",type:"",description:"合约产品符号,以A_B的形式返回"},{name:"name",type:"",description:"合约产品名字"},{name:"size",type:"",description:"合约大小,例如0.0001 BTC"},{name:"minStep",type:"",description:"用户输入步长"},{name:"volumePrecision",type:"",description:"交易数量精度"},{name:"pricePrecision",type:"",description:"价格精度"},{name:"quantityPrecision",type:"",description:"交易数量精度"},{name:"feeRate",type:"",description:"交易手续费"},{name:"tradeMinLimit",type:"",description:"交易最小单位,单位为张"},{name:"currency",type:"",description:"结算和保证金货币资产"},{name:"asset",type:"",description:"合约交易资产"},{name:"maxLongLeverage",type:"",description:"多头交易的最大杠杆倍数"},{name:"maxShortLeverage",type:"",description:"空头交易的最大杠杆倍数"}]}]}]},"55v+":function(e,t){e.exports=[{type:"hash",text:"Get Market Depth"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getMarketDepth"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getMarketDepth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",level:"5"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'Trading pair symbol,There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"level",type:"int",required:"no",description:"Number of levels,If it is empty, it will return 5 levels of data by default."}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"msg",type:"string",description:"error message"},{name:"data",type:"array",description:""}]},{type:"data",key:"response1",data:[{name:"asks",type:"array[depth]",description:"Sell side depth"},{name:"bids",type:"array[depth]",description:"Buy side depth"}]},{type:"depth",key:"response2",data:[{name:"p",type:"float64",description:"price"},{name:"v",type:"float64",description:"volume"}]}]}]},"5BSP":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\npackage main\n\nimport (\n\t"encoding/json"\n\t"crypto/hmac"\n\t"fmt"\n\t"time"\n\t"net/http"\n\t"io/ioutil"\n\t"crypto/sha256"\n\t"encoding/hex"\n)\nconst HOST = "HHOOSSTT"\nconst API_KEY = ""\nconst API_SECRET = ""\nfunc main() {\n\n dataStr := ^AAPPII^\n payload := ^PPAAYYLLOOAADD^\n apiMap := getParameters(dataStr, payload)\n sign := computeHmac256(fmt.Sprintf("%v",apiMap["parameters"]), API_SECRET)\n parameters := fmt.Sprintf("%v&signature=%s",apiMap["parameters"], sign)\n url := fmt.Sprintf("%v://%s%v?%s",apiMap["protocol"],HOST,apiMap["uri"],parameters)\n method := fmt.Sprintf("%v",apiMap["method"])\n client := &http.Client {}\n fmt.Println("parameters:",parameters)\n fmt.Println("sign:",sign)\n fmt.Println("url:",url)\n fmt.Println("method:",method)\n req, err := http.NewRequest(method, url, nil)\n\n if err != nil {\n fmt.Println(err)\n return\n }\n req.Header.Add("X-BX-APIKEY", API_KEY)\n res, err := client.Do(req)\n if err != nil {\n fmt.Println(err)\n return\n }\n defer res.Body.Close()\n\n body, err := ioutil.ReadAll(res.Body)\n if err != nil {\n fmt.Println(err)\n return\n }\n fmt.Println(string(body))\n}\n\nfunc computeHmac256(strMessage string, strSecret string) string {\n\tkey := []byte(strSecret)\n\th := hmac.New(sha256.New, key)\n\th.Write([]byte(strMessage))\n\treturn hex.EncodeToString(h.Sum(nil))\n}\nfunc getParameters(dataStr string , payload string) map[string]interface{}{\n\t TIMESTAMP := time.Now().UnixNano()\n\t TIMESTAMP = TIMESTAMP/1e6\n\tvar apiMap map[string]interface{}\n\tvar payloadMap map[string]interface{}\n\terr := json.Unmarshal([]byte(dataStr), &apiMap)\n\tif err != nil {\n\t fmt.Printf("json to map error,err:%s\\n", err)\n\t return apiMap\n\t}\n\terr = json.Unmarshal([]byte(payload), &payloadMap)\n\tif err != nil {\n\t fmt.Printf("json to map error,err:%s\\n", err)\n\t return apiMap\n\t}\n\tparameters := ""\n\tfor key, value := range payloadMap {\n parameters = parameters + key+"="+fmt.Sprintf("%v",value)+"&"\n }\n\tparameters +="timestamp="+fmt.Sprintf("%d",TIMESTAMP)\n\tapiMap["parameters"]=fmt.Sprintf("%v",parameters)\n\treturn apiMap\n}'},"5DAQ":function(e,t){e.exports=[{type:"hash",text:"调整逐仓保证金"},{type:"normal",text:"针对逐仓模式下的仓位,调整其逐仓保证金资金"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/swap/v2/trade/positionMargin"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/positionMargin",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",amount:0,type:0,positionSide:"",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"amount",type:"float64",required:"是",description:"保证金资金"},{name:"type",type:"int",required:"是",description:"调整方向 1: 增加逐仓保证金,2: 减少逐仓保证金"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"错误码,0表示成功,不为0表示异常失败"},{name:"msg",type:"string",description:"错误信息提示"},{name:"amount",type:"float64",description:"保证金资金"},{name:"type",type:"int",description:"调整方向 1: 增加逐仓保证金,2: 减少逐仓保证金"}]}]}]},"5ECq":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("btx7").keys(),r=[],o=0;oBingX開發者文檔。"},{type:"normal",text:"本文檔提供了永續合約交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。"},{type:"html",text:"此頁面為永續合約V2版本的開發者文檔,推薦使用。如需查看V1版本的介面說明,可訪問:USDT本位永續合約V1"}]}},"5H3S":function(e,t,n){var i={".":"2ggw","./":"2ggw","./01_post_trade_order":"wpBa","./01_post_trade_order.json":"wpBa","./02_post_trade_order_cancel":"xNnB","./02_post_trade_order_cancel.json":"xNnB","./03_get_trade_order":"EDR3","./03_get_trade_order.json":"EDR3","./04_get_trade_open_order":"V7qZ","./04_get_trade_open_order.json":"V7qZ","./05_get_trade_history_order":"s6dj","./05_get_trade_history_order.json":"s6dj","./06_get_account_balance":"YYU2","./06_get_account_balance.json":"YYU2","./07_post_trade_batchOrders":"lyLM","./07_post_trade_batchOrders.json":"lyLM","./index":"2ggw","./index.js":"2ggw"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="5H3S"},"5KDU":function(e,t,n){var i={"./01_error_code.json":"JIJP","./02_timestamp.json":"4KP5","./03_digital_rule.json":"mcJU","./04_rate_limits.json":"8Dwn","./05_system_time.json":"CtfW"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="5KDU"},"5MML":function(e,t){e.exports={module:"swapV2",path:"/swapV2/description",name:"interface",content:[{type:"html",text:"
  • The interface of the GET method, parameters must be sent in the query string.
  • "},{type:"html",text:"
  • Interface for POST, PUT, and DELETE methods, parameters can be sent in query string or request body (content type application/x-www-form-urlencoded). It is allowed to mix these two ways to send parameters. But if the same parameter name exists in both query string and request body, the one in query string will be used first.
  • "},{type:"html",text:"
  • The order of parameters is not required.
  • "}]}},"5ewk":function(e,t){e.exports=[{type:"hash",text:"修改槓桿"},{type:"normal",text:"調整合約多倉或空倉的槓桿倍數。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/setLeverage"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/setLeverage",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",side:"",leverage:"",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"side",type:"string",required:"是",description:"多倉或者空倉的槓桿,Long表示多倉,Short表示空倉"},{name:"leverage",type:"string",required:"是",description:"槓桿倍數"},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"}]}]}]},"5k3C":function(e,t,n){var i={"./2023-06-03.json":"N36O","./2023-07-29.json":"L1Q8"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="5k3C"},"5mnu":function(e,t){e.exports=[{type:"hash",text:"创建子账户"},{type:"normal",text:"创建子账户"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/create"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subAccountString",type:"string",required:"是",description:"子账户用户名"},{name:"note",type:"string",required:"否",description:"备注"},{name:"recvWindow",type:"long",required:"是",description:""},{name:"timestamp",type:"long",required:"是",description:""}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子账户uid"},{name:"subAccountString",type:"string",description:"子账户用户名"},{name:"note",type:"string",description:"子账户备注信息"}]}]}]},"5xUh":function(e,t){e.exports=[{type:"hash",text:"最新標記價格和資金費率"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/premiumIndex"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/premiumIndex",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"lastFundingRate",type:"string",description:"最近更新的資金費率"},{name:"markPrice",type:"string",description:"當前的標記價格"},{name:"indexPrice",type:"string",description:"指數價格"},{name:"nextFundingTime",type:"int64",description:"下次結算剩餘時間,單位為毫秒"}]}]}]},"5y10":function(e,t){e.exports=[{type:"hash",text:"Subscription account balance push"},{type:"normal",text:"Subscription Type"},{type:"code",text:"dataType: ACCOUNT_UPDATE"},{type:"normal",text:"Subscription example"},{type:"code",text:'{"id":"gdfg2311-d0f6-4a70-8d5a-043e4c741b40","dataType":"ACCOUNT_UPDATE"}'},{type:"normal",text:'The field "m" represents the reason for the launch of the event, including the following possible types: -DEPOSIT'},{type:"html",text:"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    "},{type:"html",text:"
  • For more about return error codes, please see the error code description on the homepage.
  • "},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"Event Type"},{name:"E",type:"",description:"event time"},{name:"T",type:"",description:"Matching time"},{name:"a",type:"",description:"Asset Name"}]},{type:"a",key:"key1",data:[{name:"B",type:"",description:"Array[]"},{name:"m",type:"",description:"event launch reason "}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"Asset Name"},{name:"bc",type:"",description:"Change in wallet balance excluding profit and loss and transaction fees"},{name:"cw",type:"",description:"Asset Name"},{name:"wb",type:"",description:"Wallet balance"}]}]}]},"6DOK":function(e,t,n){var i={".":"LuFD","./":"LuFD","./01_get_asset_transfer":"zvGN","./01_get_asset_transfer.json":"zvGN","./02_get_asset_transfer2":"ah5Z","./02_get_asset_transfer2.json":"ah5Z","./03_get_deposit_hisrec":"PFmh","./03_get_deposit_hisrec.json":"PFmh","./04_get_withdraw_history":"bMv0","./04_get_withdraw_history.json":"bMv0","./05_post_wallets_coins":"Dy32","./05_post_wallets_coins.json":"Dy32","./06_post_wallets_withdraw":"KB+u","./06_post_wallets_withdraw.json":"KB+u","./07_post_capital_innerTransfer_apply":"iYO+","./07_post_capital_innerTransfer_apply.json":"iYO+","./index":"LuFD","./index.js":"LuFD"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="6DOK"},"6wHN":function(e,t,n){var i={"./01_create_api.json":"+Rge","./02_permission_set.json":"UG8z","./03_request_content.json":"hS6o","./04_sign_discription.json":"9KKA","./05_request.json":"uSYo"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="6wHN"},"6y27":function(e,t){e.exports=[{type:"hash",text:"用户万向划转"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/get/asset/transfer"},{type:"code",text:"curl --location --request GET 'https://open-api.bingx.com/openApi/api/v3/get/asset/transfer?type=FUND_PFUTURES&asset=USDT&amount=100×tamp=1670215150028&signature=ecc819d72515095039b7b383310f718584af4cf70106b57609bc59473185c9a3'"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/get/asset/transfer",protocol:"https",method:"GET",payload:{type:"FUND_SFUTURES",asset:"USDT",amount:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"type",type:"ENUM",required:"是",description:"划转类型"},{name:"asset",type:"string",required:"是",description:"币的名称 例如USDT"},{name:"amount",type:"DECIMAL",required:"是",description:"交易金额"},{name:"recvWindow",type:"LONG",required:"否",description:"执行窗口时间,不能大于 60000"},{name:"timestamp",type:"LONG",required:"是",description:"当前时间戳 例如1658748648396"}]},{type:"type",key:"key1",data:[{name:"FUND_SFUTURES",type:"",description:"资金账户->标准合约"},{name:"SFUTURES_FUND",type:"",description:"标准合约->资金账户"},{name:"FUND_PFUTURES",type:"",description:"资金账户->永续合约"},{name:"PFUTURES_FUND",type:"",description:"永续合约->资金账户"},{name:"SFUTURES_PFUTURES",type:"",description:"标准合约->永续合约"},{name:"PFUTURES_SFUTURES",type:"",description:"永续合约->标准合约"}]},{type:"Response",key:"response",data:[{name:"tranId",type:"LONG",description:"交易ID"}]}]}]},"70Q9":function(e,t,n){var i={".":"mROX","./":"mROX","./01_get_quote_contracts":"nyHW","./01_get_quote_contracts.json":"nyHW","./02_get_quote_price":"kQ2M","./02_get_quote_price.json":"kQ2M","./03_get_quote_depth":"YP5V","./03_get_quote_depth.json":"YP5V","./04_get_quote_ trades":"0TqQ","./04_get_quote_ trades.json":"0TqQ","./05_get_quote_ premiumIndex":"+92Z","./05_get_quote_ premiumIndex.json":"+92Z","./06_get_quote_ fundingRate":"xDG3","./06_get_quote_ fundingRate.json":"xDG3","./07_get_quote_ klines":"bDbK","./07_get_quote_ klines.json":"bDbK","./08_get_quote_ klines_history":"keYE","./08_get_quote_ klines_history.json":"keYE","./09_get_quote_ ticker":"VOPx","./09_get_quote_ ticker.json":"VOPx","./10_get_quote_openInterest":"baSA","./10_get_quote_openInterest.json":"baSA","./index":"mROX","./index.js":"mROX"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="70Q9"},"70Y8":function(e,t){e.exports=[{type:"hash",text:"撤销订单"},{type:"normal",text:"将当前账户处于当前委托状态的某个订单进行撤销操作。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"DELETE /openApi/swap/v2/trade/order"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"DELETE",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"否",description:"订单号"},{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"clientOrderId",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"订单时间,单位:毫秒"},{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"cumQuote",type:"string",description:"成交金额"},{name:"status",type:"string",description:"订单状态"},{name:"stopPrice",type:"string",description:"触发价"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"原始委托数量"},{name:"avgPrice",type:"string",description:"平均成交价"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"订单号"},{name:"profit",type:"string",description:"盈亏"},{name:"commission",type:"string",description:"手续费"},{name:"updateTime",type:"int64",description:"更新时间,单位:毫秒"},{name:"clientOrderId",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},"733f":function(e,t,n){var i={".":"5ECq","./":"5ECq","./01_post_trade_order":"YLkf","./01_post_trade_order.json":"YLkf","./02_post_trade_batch_order":"/bqr","./02_post_trade_batch_order.json":"/bqr","./03_post_closeAllPositions":"jBL/","./03_post_closeAllPositions.json":"jBL/","./04_delete_trade_order":"nf3C","./04_delete_trade_order.json":"nf3C","./05_delete_trade_batch_order":"siG2","./05_delete_trade_batch_order.json":"siG2","./06_delete_trade_all_order":"/Fs7","./06_delete_trade_all_order.json":"/Fs7","./07_get_all_openOrders":"jxdV","./07_get_all_openOrders.json":"jxdV","./08_get_trade_order":"1xud","./08_get_trade_order.json":"1xud","./09_get_trade_marginType":"Qa4f","./09_get_trade_marginType.json":"Qa4f","./10_post_trade_marginType":"WCFx","./10_post_trade_marginType.json":"WCFx","./11_get_trade_leverage":"Nux4","./11_get_trade_leverage.json":"Nux4","./12_post_trade_leverage":"j3Xb","./12_post_trade_leverage.json":"j3Xb","./13_get_trade_forceOrders":"fUN5","./13_get_trade_forceOrders.json":"fUN5","./14_get_trade_allOrders":"iu9b","./14_get_trade_allOrders.json":"iu9b","./15_post_trade_positionMargin":"i3k4","./15_post_trade_positionMargin.json":"i3k4","./16_post_trade_order_test":"l8OL","./16_post_trade_order_test.json":"l8OL","./17_get_trade_allFillOrders":"1A8u","./17_get_trade_allFillOrders.json":"1A8u","./18_get_trade_income_export":"JOGY","./18_get_trade_income_export.json":"JOGY","./19_get_trade_user_commissionRate":"2Faq","./19_get_trade_user_commissionRate.json":"2Faq","./20_get_trade_quote_bookTicker":"Oo3B","./20_get_trade_quote_bookTicker.json":"Oo3B","./index":"5ECq","./index.js":"5ECq"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="733f"},"75l9":function(e,t){e.exports={_from:"axios@^0.21.1",_id:"axios@0.21.4",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"axios@^0.21.1",name:"axios",escapedName:"axios",rawSpec:"^0.21.1",saveSpec:null,fetchSpec:"^0.21.1"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",_shasum:"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575",_spec:"axios@^0.21.1",_where:"/Users/admin/code/bingx-api-docs",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundleDependencies:!1,bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},deprecated:!1,description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",unpkg:"dist/axios.min.js",version:"0.21.4"}},"76pZ":function(e,t,n){var i={"./01_listenKey.json":"o5vU","./02_balance.json":"1n2Z","./03_order.json":"79KP","./04_setting.json":"tdzN"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="76pZ"},"79KP":function(e,t){e.exports=[{type:"hash",text:"订单更新推送"},{type:"normal",text:"当有新订单创建、订单有新成交或者新的状态变化时会推送此类事件 事件类型统一为 ORDER_TRADE_UPDATE "},{type:"normal",text:"订单方向",children:[{type:"normal",text:"BUY 买入"},{type:"normal",text:"SELL 卖出"}]},{type:"normal",text:"订单类型",children:[{type:"normal",text:"MARKET 市价单"},{type:"normal",text:"LIMIT 限价单"},{type:"normal",text:"STOP 止损单"},{type:"normal",text:"TAKE_PROFIT 止盈单"},{type:"normal",text:"LIQUIDATION 强平单"}]},{type:"normal",text:"本次事件的具体执行类型",children:[{type:"normal",text:"NEW"},{type:"normal",text:"CANCELED 已撤"},{type:"normal",text:"CALCULATED 订单ADL或爆仓 "},{type:"normal",text:"EXPIRED 订单失效 "},{type:"normal",text:"TRADE 交易 "}]},{type:"normal",text:"订单状态",children:[{type:"normal",text:"NEW"},{type:"normal",text:"PARTIALLY_FILLED"},{type:"normal",text:"FILLED"},{type:"normal",text:"CANCELED "},{type:"normal",text:"EXPIRED "}]},{type:"normal",text:"推送数据",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件类型:ORDER_TRADE_UPDATE"},{name:"E",type:"",description:"事件时间:1676603102163"},{name:"o",type:"obj",description:"订单<对象>"}]},{type:"o",key:"common",data:[{name:"s",type:"",description:"交易对:LINK-USDT"},{name:"c",type:"",description:"客户端自定订单ID"},{name:"i",type:"",description:"订单ID:1627970445070303232"},{name:"S",type:"",description:"订单方向:SELL"},{name:"o",type:"",description:"订单类型:MARKET"},{name:"q",type:"",description:"订单委托数量:5.00000000"},{name:"p",type:"",description:"订单委托价格:7.82700000"},{name:"ap",type:"",description:"订单平均价格:7.82690000"},{name:"x",type:"",description:"本次事件的具体执行类型:TRADE"},{name:"X",type:"",description:"订单的当前状态:FILLED"},{name:"N",type:"",description:"手续费资产类型:USDT"},{name:"n",type:"",description:"手续费:-0.01369708"},{name:"T",type:"",description:"成交时间:1676973375149"},{name:"wt",type:"",description:"触发价类型:MARK_PRICE 标记价格,CONTRACT_PRICE 最新价格,INDEX_PRICE 指数价格"},{name:"ps",type:"",description:"持仓方向:LONG or SHORT"},{name:"rp",type:"",description:"该交易实现盈亏: 0.00000000"},{name:"z",type:"",description:"订单累计已成交量: 0.00000000"}]}]}]},"7I4l":function(e,t,n){var i={"./01_create_sub_accuont.json":"+6hF","./02_post_fetch_uid.json":"xx9R","./03_post_fetch_sub_account_list.json":"uuPR","./04_get_sub_account_spot_balance.json":"PVSb","./05_create_sub_accuont_key.json":"eSSt","./06_get_api_key_info.json":"MQqI","./07_post_edit_apikey.json":"Jwag","./08_delete_sub_account_key.json":"J2bY","./09_update_sub_account_status.json":"nHln","./10.post_wallet_authorize_innerTransfer.json":"HQ8m","./11.post_wallet_subInnerTransfer.json":"+W0b"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="7I4l"},"7Opx":function(e,t,n){var i={".":"tcKi","./":"tcKi","./01_get_common_symbols":"HzkI","./01_get_common_symbols.json":"HzkI","./02_get_ market_traders":"CPhe","./02_get_ market_traders.json":"CPhe","./03_get_market_depth":"gUOZ","./03_get_market_depth.json":"gUOZ","./04_get_market_klines":"rdtp","./04_get_market_klines.json":"rdtp","./index":"tcKi","./index.js":"tcKi"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="7Opx"},"7bgg":function(e,t){e.exports=[{type:"hash",text:"查詢歷史訂單"},{type:"normal",text:"查詢用戶歷史訂單(訂單狀態為已成交或已撤銷)"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/allOrders"},{type:"html",text:"
  • 查詢時間範圍最大不得超過7天
  • "},{type:"html",text:"
  • 默認查詢最近7天內的數據
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"orderId",type:"int64",required:"否",description:"只返回此orderID及之後的訂單,缺省返回最近的訂單"},{name:"startTime",type:"int64",required:"否",description:"開始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int",required:"是",description:"返回的結果集數量 默認值:500 最大值:1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"}]}]}]},"7iFh":function(e,t){e.exports=[{type:"hash",text:"查詢歷史成交訂單"},{type:"normal",text:"獲取某交易對的成交歷史"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/allFillOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allFillOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,tradingUnit:"",startTs:0,endTs:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"否",description:"只返回此orderID及之後的訂單,缺省返回最近的訂單"},{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"tradingUnit",type:"string",required:"是",description:"交易單位,可選值:COIN、CONT直接表示BTC,ETH等資產,CONT表示合約張數"},{name:"startTs",type:"int64",required:"是",description:"起始時間戳,單位毫秒"},{name:"endTs",type:"int64",required:"是",description:"結束時間戳,單位毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"filledTm",type:"string",description:"匹配成交的時間,格式為2006-01-02T15:04:05.999Z"},{name:"volume",type:"string",description:"成交數量"},{name:"price",type:"string",description:"成交價格"},{name:"amount",type:"string",description:"成交金額"},{name:"commission",type:"string",description:"手續費"},{name:"currency",type:"string",description:"資產單位,一般為USDT"},{name:"orderId",type:"string",description:"訂單號"},{name:"liquidatedPrice",type:"string",description:"预估強平價,觸發強平時刻的预估強平價,只有強平訂單才有"},{name:"liquidatedMarginRatio",type:"string",description:"強平時保證金率,觸發強平時刻的強平保證金率,只有強平訂單才有"},{name:"filledTime",type:"string",description:"匹配成交的時間,格式為2006-01-02T15:04:05.999+0800"}]}]}]},"7k03":function(e,t){e.exports=[{type:"hash",text:"Unsubscribe"},{type:"normal",text:"The format of unsubscription is as follows:"},{type:"code",text:'{ "id": "id1", "reqType": "unsub", "dataType": "data to unsub"}'},{type:"normal",text:"Confirmation of Unsubscription:"},{type:"code",text:'{ "id": "id1", "code": 0, "msg": "" }'}]},"7mzI":function(e,t){e.exports=[{type:"hash",text:"查詢逐全倉模式"},{type:"normal",text:"查詢用戶在指定symbol合約上的保證金模式:逐倉或全倉。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/marginType"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/marginType",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"marginType",type:"string",description:"保證金模式"}]},{type:"marginType",key:"common",data:[{name:"ISOLATED",type:"",description:"逐倉"},{name:"CROSSED",type:"",description:"全倉"}]}]}]},"7r0K":function(e,t){e.exports=[{type:"hash",text:"查询所有的币种"},{type:"normal",text:"查询所有的币种,并且查询该币种对应的限额"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/wallets/v1/capital/config/getall"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/config/getall",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"coin",type:"string",description:"币种标识"},{name:"name",type:"string",description:"币种名称"},{name:"networkList",type:"Network",description:"网络信息"}]},{type:"Network",key:"key1",data:[{name:"name",type:"string",description:"网络名"},{name:"network",type:"string",description:"网络标识"},{name:"minConfirm",type:"int64",description:"最小确认块数"},{name:"isDefault",type:"boolean",description:"是否为默认网络"},{name:"withdrawEnable",type:"boolean",description:"该币种是否开放提币"},{name:"withdrawFee",type:"float64",description:"提币手续费"},{name:"withdrawMax",type:"float64",description:"最大提币额(提币限额)"},{name:"withdrawMin",type:"float64",description:"最小提币额"},{name:"withdrawDesc",type:"string",description:"提币描述"}]}]}]},"7rHQ":function(e,t){e.exports=[{type:"hash",text:"查询当前全部挂单"},{type:"normal",text:"查询用户当前处于委托状态的全部订单。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/openOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"GET /openApi/swap/v2/trade/openOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"订单时间,单位:毫秒"},{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"cumQuote",type:"string",description:"成交金额"},{name:"status",type:"string",description:"订单状态"},{name:"stopPrice",type:"string",description:"触发价"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"原始委托数量"},{name:"avgPrice",type:"string",description:"平均成交价"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"订单号"},{name:"profit",type:"string",description:"盈亏"},{name:"commission",type:"string",description:"手续费"},{name:"updateTime",type:"int64",description:"更新时间,单位:毫秒"}]},{type:"status",key:"key1",data:[{name:"NEW",type:"",required:"",description:"新建订单"},{name:"PARTIALLY_FILLED",type:"",required:"",description:"部分成交"},{name:"FILLED",type:"",required:"",description:"全部成交"},{name:"CANCELED",type:"",required:"",description:"已撤销"}]}]}]},"80Bj":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\npackage com.bingx.tools.utils;\n\nimport javax.crypto.Mac;\nimport javax.crypto.spec.SecretKeySpec;\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.net.HttpURLConnection;\nimport java.net.URL;\nimport java.net.URLConnection;\nimport java.security.InvalidKeyException;\nimport java.security.NoSuchAlgorithmException;\nimport java.sql.Timestamp;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.TreeMap;\n\npublic class TradeDemo {\n\n String url = "PPRROOTTOOCCOOLL://HHOOSSTT";\n String apiKey = "";\n String secretKey = "";\n\n private static final char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray();\n\n public static void main(String[] args) {\n TradeDemo h = new TradeDemo();\n String method = "MMEETTHHOODD";\n String path = "AAPPII";\n String timestamp = "" + new Timestamp(System.currentTimeMillis()).getTime();\n TreeMap parameters = new TreeMap();\n PPAAYYLLOOAADD\n String valueToDigest = getMessageToDigest(method, path, parameters);\n String messageDigest = generateHmac256(valueToDigest);\n String parametersString = valueToDigest + "&signature=" + messageDigest;\n String requestUrl = getRequestUrl(path, parametersString);\n execute(requestUrl, method);\n }\n public static String bytesToHex(byte[] bytes) {\n char[] hexChars = new char[bytes.length * 2];\n for (int j = 0; j < bytes.length; j++) {\n int v = bytes[j] & 0xFF;\n hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n }\n return new String(hexChars);\n }\n\n byte[] hmac(String algorithm, byte[] key, byte[] message) throws NoSuchAlgorithmException, InvalidKeyException {\n Mac mac = Mac.getInstance(algorithm);\n mac.init(new SecretKeySpec(key, algorithm));\n return mac.doFinal(message);\n }\n\n\n String generateHmac256(String message) {\n try {\n byte[] bytes = hmac("HmacSHA256", secretKey.getBytes(), message.getBytes());\n return bytesToHex(bytes);\n } catch (Exception e) {\n System.out.println("generateHmac256 expection:" + e);\n }\n return "";\n }\n\n\n String getMessageToDigest(String method, String path, TreeMap parameters) {\n Boolean first = true;\n String valueToDigest = "";\n for (Map.Entry e : parameters.entrySet()) {\n if (!first) {\n valueToDigest += "&";\n }\n first = false;\n valueToDigest += e.getKey() + "=" + e.getValue();\n }\n return valueToDigest;\n }\n\n String getRequestUrl(String path, String parameters) {\n String urlStr = url + path + "?" + parameters;\n return urlStr;\n }\n\n void execute(String requestUrl, String method) {\n try {\n URL url = new URL(requestUrl);\n URLConnection conn = url.openConnection();\n HttpURLConnection http = (HttpURLConnection) conn;\n http.setRequestMethod(method); // PUT is another valid option\n http.addRequestProperty("X-BX-APIKEY", apiKey);\n http.addRequestProperty("User-Agent","Mozilla/5.0");\n http.setDoOutput(true);\n conn.setDoOutput(true);\n conn.setDoInput(true);\n\n String result = "";\n String line = "";\n BufferedReader in = new BufferedReader(\n new InputStreamReader(conn.getInputStream()));\n while ((line = in.readLine()) != null) {\n result += line;\n }\n\n System.out.println("\t" + result);\n\n } catch (Exception e) {\n System.out.println("expection:" + e);\n }\n } \n}\n'},"8Dwn":function(e,t){e.exports=[{type:"hash",text:"频率限制"},{type:"html",text:"如果请求过于频繁系统将自动限制请求,几分钟后,会自动恢复;当前BingX只根据IP进行频率限制,以下分类的所有接口共享一个IP频率限制值"},{type:"html",text:"

    REST API

    "},{type:"html",text:"
  • 行情接口:通过IP限制公共接口的调用,每1秒最多60个请求。
  • "},{type:"html",text:"
  • 账户和交易接口:通过用户ID限制私人接口的调用,每1秒最多20个请求。
  • "}]},"8Evh":function(e,t,n){var i={"./01_create_api.json":"bY49","./02_permission_set.json":"44OD","./03_request_content.json":"xXiq","./04_sign_discription.json":"t9kx","./05_request.json":"bIA2"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="8Evh"},"8FLz":function(e,t){e.exports=[{type:"hash",text:"Query Margin Mode"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getMarginMode"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getMarginMode",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"marginMode",type:"string",description:"margin mode"}]},{type:"marginMode",key:"common",data:[{name:"Isolated",type:"",description:"Isolated Margin"},{name:"Cross",type:"",description:"Full position"}]}]}]},"8e1X":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("hR1o").keys(),r=[],o=0;o"},{type:"code",text:"wss://open-api-ws.bingx.com/market/"},{type:"hash",text:"generate Listen Key"},{type:"normal",text:"listen key Valid for 1 hour"},{type:"normal",text:"interface",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"code",text:"curl -X POST 'https://open-api.bingx.com/openApi/user/auth/userDataStream' --header \"X-BX-APIKEY:g6ikQYpMiWLecMQ39DUivd4ENem9ygzAim63xUPFhRtCFBUDNLajRoZNiubPemKT\""},{type:"normal",text:"response",style:{"font-weight":"bold"}},{type:"code",text:'{"listenKey":"a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7"}'},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"POST",payload:{}},params:[{type:"Header",key:"request",data:[{name:"X-BX-APIKEY",type:"string",required:"no",description:"API KEY"}]},{type:"Response",key:"response",data:[{name:"listenKey",type:"string",description:"listen Key"}]}]}]},"9GqO":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("kxYJ").keys(),r=[],o=0;osignature The signature request parameter is encrypted using the HMAC SHA256 method"},{type:"html",text:"Example: Signature for adjusting currency leverage request parameters"},{type:"html",text:"
  • Interface parameters:
  • "},{type:"html",text:"

    symbol=BTC-USDT
    timestamp=1667872120843
    side=LONG
    leverage=6

    "},{type:"html",text:"
  • api information:
  • "},{type:"html",text:"

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    "},{type:"html",text:"
  • Parameters sent via query string example
  • "},{type:"html",text:"1. Splicing interface parameters: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6

    2. Use secretKey to generate a signature for the concatenated parameter string: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    "},{type:"code",text:' echo -n "symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6" | openssl dgst -sha256 -hmac "mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w" -hex '},{type:"html",text:"3. Send request"},{type:"code",text:"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'"},{type:"html",text:"
  • Parameters are sent through the request body example
  • "},{type:"html",text:"1. Splicing interface parameters: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6
    2. Use secretKey to generate a signature for the concatenated parameter string: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    "},{type:"code",text:' echo -n "symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6" | openssl dgst -sha256 -hmac "mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w" -hex '},{type:"html",text:"3. Send request"},{type:"code",text:"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage' -d 'symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf' "},{type:"html",text:"
  • Parameters sent through query string and request body example
  • "},{type:"html",text:"queryString: symbol=BTC-USDT×tamp=1668159715051
    requestBody: side=LONG&leverage=6 "},{type:"html",text:"1. Splicing interface parameters: symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6
    2. Use secretKey to generate a signature for the concatenated parameter string: 8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d
    "},{type:"code",text:' echo -n "symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6" | openssl dgst -sha256 -hmac "mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w" -hex'},{type:"html",text:"3. Send request"},{type:"code",text:"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1668159715051&signature=8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d' -d 'side=LONG&leverage=6' "}]},"9R9w":function(e,t){e.exports=[{type:"hash",text:"有限档深度信息"},{type:"normal",text:"每秒推送有限档深度信息。默认20档,某些小币种可能不足20档,可以选择100档"},{type:"normal",text:"订阅类型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 @depth,比如BTC-USDT@depth, BTC-USDT@depth20, BTC-USDT@depth100"},{type:"normal",text:"订阅例子",style:{"font-weight":"bold"}},{type:"code",text:' {"id":"975f7385-7f28-4ef1-93af-df01cb9ebb53","dataType":"BTC-USDT@depth"}'},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"订阅的数据类型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送内容"},{name:"asks",type:"",description:"变动的卖单深度"},{name:"bids",type:"",description:"变动的买单深度"}]}]}]},"9V8o":function(e,t){e.exports=[{type:"hash",text:"撤銷訂單"},{type:"normal",text:"将當前賬戶處於當前委託狀態的某個訂單進行撤銷操作。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"DELETE /openApi/swap/v2/trade/order"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"DELETE",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"否",description:"訂單號"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId"},{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID"}]}]}]},"9bR8":function(e,t){e.exports=[{type:"hash",text:"用戶強平單歷史"},{type:"normal",text:"查詢用戶強平單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/forceOrders"},{type:"html",text:'
  • 如果沒有傳 "autoCloseType", 強平單和ADL減倉單都會被返回
  • '},{type:"html",text:'
  • 如果沒有傳"startTime", 只會返回"endTime"之前7天內的數據
  • '},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/forceOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",autoCloseType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"autoCloseType",type:"string",required:"否",description:'"LIQUIDATION":強平單, "ADL":ADL減倉單'},{name:"startTime",type:"int64",required:"否",description:"開始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int",required:"否",description:"返回的結果集數量 默認值50,最大值100"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"}]}]}]},"9f4O":function(e,t){e.exports=[{type:"hash",text:"接入方式"},{type:"normal",text:"行情Websocket的接入URL:wss://open-api-ws.bingx.com/market"}]},"9vIT":function(e,t){e.exports=[{type:"hash",text:"创建子账户apikey"},{type:"normal",text:"创建子账户apikey"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/create"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子账户uid"},{name:"note",type:"string",required:"是",description:"备注"},{name:"permissions",type:"Array",required:"是",description:"权限,1-现货交易,2-读取,3-专业合约交易,4-万向划转,7-允许子账户内转"},{name:"ipAddresses",type:"Array",required:"否",description:"ip白名单"}]},{type:"Response",key:"response",data:[{name:"apiKey",type:"string",description:""},{name:"apiSecret",type:"string",description:"api密钥"},{name:"permissions",type:"Array",description:"权限,1-现货交易,2-读取,3-专业合约交易,4-万向划转,7-允许子账户内转"},{name:"ipAddresses",type:"Array",description:"ip白名单"},{name:"note",type:"string",description:"备注"}]}]}]},A1ZI:function(e,t){e.exports=[{type:"hash",text:"批量撤銷訂單"},{type:"normal",text:"将當前賬戶處於當前委託狀態的部分訂單進行批量撤銷操作。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/batchCancelOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/batchCancelOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",oids:"",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"oids",type:"string",required:"是",description:"訂單ID列表,多個訂單id用逗號進行分隔"},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"},{name:"Success",type:"Array",description:"撤銷成功的訂單ID列表"},{name:"Failed",type:"結构數組",description:"撤銷失敗的訂單列表"},{name:"orderId",type:"int64",description:"訂單ID"},{name:"errorCode",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"errorMessage",type:"string",description:"錯誤信息提示"}]}]}]},ADmP:function(e,t){e.exports=[{type:"hash",text:"有限檔深度信息"},{type:"normal",text:"每秒推送有限檔深度信息。默認20檔,某些小幣種可能不足20檔,可以選擇100檔"},{type:"normal",text:"訂閱類型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 為 @depth,比如BTC-USDT@depth, BTC-USDT@depth20, BTC-USDT@depth100"},{type:"normal",text:"訂閱例子",style:{"font-weight":"bold"}},{type:"code",text:' {"id":"975f7385-7f28-4ef1-93af-df01cb9ebb53","dataType":"BTC-USDT@depth"}'},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'}]},{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"訂閱的數據類型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送內容"},{name:"asks",type:"",description:"變動的賣單深度"},{name:"bids",type:"",description:"變動的買單深度"}]}]}]},AGDW:function(e,t){e.exports=[{type:"hash",text:"查询订单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/query"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/query",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品种, 例如: BTC-USDT, 请使用大写字母"},{name:"orderId",type:"int64",required:"是",description:"订单id"},{name:"clientOrderId",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId,仅支持2个小时的查询范围"},{name:"recvWindow",type:"float64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"请求时间戳, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易品种"},{name:"orderId",type:"int64",description:"订单号"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"下单数量"},{name:"executedQty",type:"string",description:"成交数量"},{name:"cummulativeQuoteQty",type:"string",description:"成交额"},{name:"status",type:"string",description:"订单状态, NEW新订单 PENDING委托中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤销 FAILED失败"},{name:"type",type:"string",description:"订单类型, MARKET市价 LIMIT限价"},{name:"side",type:"string",description:"交易类型, BUY买 SELL卖"},{name:"time",type:"int64",description:"下单时间戳"},{name:"updateTime",type:"int64",description:"更新时间戳"},{name:"origQuoteOrderQty",type:"string",description:"下单金额"},{name:"fee",type:"string",description:"手续费"},{name:"feeAsset",type:"string",description:"手续费资产类型"},{name:"clientOrderId",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},ATrJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\nimport time\nimport requests\nimport hmac\nfrom hashlib import sha256\n\nAPIURL = "PPRROOTTOOCCOOLL://HHOOSSTT";\nAPIKEY = ""\nSECRETKEY = ""\n\ndef demo():\n payload = {}\n path = \'AAPPII\'\n method = "MMEETTHHOODD"\n paramsMap = PPAAYYLLOOAADD\n paramsStr = praseParam(paramsMap)\n return send_request(method, path, paramsStr, payload)\n\ndef get_sign(api_secret, payload):\n signature = hmac.new(api_secret.encode("utf-8"), payload.encode("utf-8"), digestmod=sha256).hexdigest()\n print("sign=" + signature)\n return signature\n\n\ndef send_request(method, path, urlpa, payload):\n url = "%s%s?%s&signature=%s" % (APIURL, path, urlpa, get_sign(SECRETKEY, urlpa))\n print(url)\n headers = {\n \'X-BX-APIKEY\': APIKEY,\n }\n response = requests.request(method, url, headers=headers, data=payload)\n return response.text\n\ndef praseParam(paramsMap):\n sortedKeys = sorted(paramsMap)\n paramsStr = "&".join(["%s=%s" % (x, paramsMap[x]) for x in sortedKeys])\n return paramsStr+"×tamp="+str(int(time.time() * 1000))\n\n\nif __name__ == \'__main__\':\n print("demo:", demo())\n'},"Agv/":function(e,t){e.exports={module:"swap",path:"/swap/introduce",name:"介绍",content:[{type:"html",text:"欢迎使用
    BingX开发者文档。"},{type:"normal",text:"本文档提供了永续合约交易业务的账户管理、行情查询、交易功能等相关API的使用方法介绍。 行情API提供市场的公开的行情数据接口,账户和交易API需要身份验证,提供下单、撤单,查询订单和帐户信息等功能。"},{type:"html",text:"USDT本位永续合约V2"}]}},B7jJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("vwsV").keys(),r=[],o=0;ohttp status 200 成功"},{type:"html",text:"
  • http status 204 没有请求参数
  • "},{type:"html",text:"
  • http status 404 没有这个listenKey
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"DELETE",payload:{}},params:[{type:"Request",key:"request",data:[{name:"listenKey",type:"string",required:"是",description:"返回的listenKey"}]}]}]},"Bo+j":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("ed62").keys(),r=[],o=0;o具體訂單條件規則,與普通下單一致"},{type:"html",text:"
  • batchOrders是數組
  • "},{type:"html",text:"
  • batchOrders是數組,以Python 舉例
  • "},{type:"code",text:'{"batchOrders" : "[{\\"symbol\\": \\"ETH-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 1},{\\"symbol\\": \\"BTC-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 0.001}]"}'},{type:"html",text:"
  • 真實發出去的http url請求參數參考如下
  • "},{type:"code",text:'https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=[{"symbol": "ETH-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 1},{"symbol": "BTC-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 0.001}]×tamp=1691312510782&signature=a7bd3f4ebf3321c1e3c9d2305584e0f28a70766340b79cca29f0a8428d5bbd7f'},{type:"warning",text:"批量下單採取併發處理,不保證訂單撮合順序"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/batchOrders",protocol:"https",method:"POST",payload:{batchOrders:[{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}],recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"batchOrders",type:"LIST",required:"是",description:"訂單列表,最多支持5个訂單,Order對象參考單個交易下單"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Order",key:"key1",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"type",type:"string",required:"是",description:"訂單類型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持倉方向,且僅可選擇 LONG 或 SHORT,默認LONG"},{name:"price",type:"float64",required:"否",description:"委託價格"},{name:"quantity",type:"float64",required:"否",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持輸入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"orderId",type:"int64",description:"訂單號"},{name:"clientOrderID",type:"string",description:"用戶自定義訂單ID"}]}]}]},CtfW:function(e,t){e.exports=[{type:"hash",text:"查询系统时间"},{type:"html",text:"

    HTTP请求

    "},{type:"code",text:"GET /openApi/swap/v2/server/time"},{type:"html",text:"

    参数: 无

    "},{type:"html",text:"
  • code - int64 - 错误码,0表示成功,不为0表示异常失败
  • "},{type:"html",text:"
  • msg - string - 错误信息提示
  • "},{type:"html",text:"
  • serverTime - int64 - 系统当前时间,单位毫秒
  • "},{type:"code",text:'{"code": 0,"msg": "","data": {"serverTime": 1675319535362}}'}]},DLRo:function(e,t){e.exports=[{type:"hash",text:"查询账户信息"},{type:"normal",text:"查询当前账户下永续合约资产的相关信息。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/balance"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/balance",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"错误码,0表示成功,不为0表示异常失败"},{name:"msg",type:"string",description:"错误信息提示"},{name:"asset",type:"string",description:"用户资产"},{name:"balance",type:"string",description:"资产余额"},{name:"equity",type:"string",description:"资产净值"},{name:"unrealizedProfit",type:"string",description:"未实现盈亏"},{name:"realisedProfit",type:"string",description:"已实现盈亏"},{name:"availableMargin",type:"string",description:"可用保证金"},{name:"usedMargin",type:"string",description:"已用保证金"},{name:"freezedMargin",type:"string",description:"冻结保证金"}]}]}]},DLoG:function(e,t){e.exports=[{type:"hash",text:"导出资金流水"},{type:"normal",text:"导出资金流水"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/income/export"},{type:"warning",text:"响应: Excel File"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/income/export",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",incomeType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"incomeType",type:"string",required:"否",description:"资金流水类型,可选值:TRANSFER REALIZED_PNL FUNDING_FEE TRADING_FEE INSURANCE_CLEAR TRIAL_FUND ADL SYSTEM_DEDUCTION"},{name:"startTime",type:"int64",required:"否",description:"起始时间戳,单位毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间戳,单位毫秒"},{name:"limit",type:"int",required:"否",description:"返回的结果集数量 默认值:100 最大值:1000"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间窗口,单位:毫秒"}]}]}]},DWTp:function(e,t,n){var i={"./01_get_user_balance.json":"DLRo","./02_get_user_positions.json":"Knhz","./03_get_user_income.json":"s67u"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="DWTp"},DZHm:function(e,t){e.exports=[{type:"hash",text:"Make Requests"},{type:"normal",text:"All private REST requests must contain the following parameters:",children:[{type:"normal",text:"API Key - as a string"},{type:"normal",text:"Sign - a signature computed based on HMAC SHA256 (see Signature subsection for details)."},{type:"normal",text:"Timestamp - the timestamp of your request."},{type:"normal",text:"Request bodies are expected to have content type application/json and are in valid JSON format."}]}]},DcMO:function(e,t){e.exports=[{type:"hash",text:"Contract Information"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/contracts"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/contracts",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"contractId",type:"string",description:"contract ID"},{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"size",type:"string",description:"contract size, such as 0.0001 BTC"},{name:"quantityPrecision",type:"int",description:"transaction quantity precision"},{name:"pricePrecision",type:"int",description:"price precision"},{name:"feeRate",type:"float64",description:"transaction fee"},{name:"tradeMinLimit",type:"int",description:"The smallest trading unit"},{name:"currency",type:"string",description:"settlement and margin currency asset"},{name:"asset",type:"string",description:"contract trading asset"},{name:"status",type:"int",description:"0 offline, 1 online"},{name:"maxLongLeverage",type:"int",description:"The maximum leverage for long transactions"},{name:"maxShortLeverage",type:"int",description:"Maximum leverage for short trades"}]}]}]},Di51:function(e,t,n){var i={"./01_get_quote_contracts.json":"kQGv","./02_get_quote_price.json":"wZoS","./03_get_quote_depth.json":"TsMJ","./04_get_quote_ trades.json":"ceUr","./05_get_quote_ premiumIndex.json":"s6Wv","./06_get_quote_ fundingRate.json":"PQJ1","./07_get_quote_ klines.json":"MMY+","./08_get_quote_openInterest.json":"FnYD","./09_get_quote_ ticker.json":"YBd1"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Di51"},Dsow:function(e,t,n){var i={".":"vVGz","./":"vVGz","./01_get_quote_contracts":"DcMO","./01_get_quote_contracts.json":"DcMO","./02_get_quote_price":"owTM","./02_get_quote_price.json":"owTM","./03_get_quote_depth":"e+0O","./03_get_quote_depth.json":"e+0O","./04_get_quote_ trades":"PqB/","./04_get_quote_ trades.json":"PqB/","./05_get_quote_ premiumIndex":"Tk4L","./05_get_quote_ premiumIndex.json":"Tk4L","./06_get_quote_ fundingRate":"YtyA","./06_get_quote_ fundingRate.json":"YtyA","./07_get_quote_ klines":"xU+M","./07_get_quote_ klines.json":"xU+M","./08_get_quote_openInterest":"j4uq","./08_get_quote_openInterest.json":"j4uq","./09_get_quote_ ticker":"LWb5","./09_get_quote_ ticker.json":"LWb5","./index":"vVGz","./index.js":"vVGz"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Dsow"},Dy32:function(e,t){e.exports=[{type:"hash",text:"查詢所有幣種"},{type:"normal",text:"查詢所有的幣種,並且查詢該幣種對應的限額"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/wallets/v1/capital/config/getall"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/config/getall",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"coin",type:"string",description:"幣種標誌"},{name:"name",type:"string",description:"幣種名稱"},{name:"networkList",type:"Network",description:"網絡信息"}]},{type:"Network",key:"key1",data:[{name:"name",type:"string",description:"網絡名"},{name:"network",type:"string",description:"網絡標識"},{name:"minConfirm",type:"int64",description:"最小確認塊數"},{name:"isDefault",type:"boolean",description:"是否為默認網絡"},{name:"withdrawEnable",type:"boolean",description:"該幣種是否開放提幣"},{name:"withdrawFee",type:"float64",description:"提幣手續費"},{name:"withdrawMax",type:"float64",description:"最大提幣額(提幣限額)"},{name:"withdrawMin",type:"float64",description:"最小提幣額"},{name:"withdrawDesc",type:"string",description:"提幣描述"}]}]}]},EA8X:function(e,t,n){var i={".":"BbCp","./":"BbCp","./01_get_common_symbols":"qHSP","./01_get_common_symbols.json":"qHSP","./02_get_ market_traders":"u7QQ","./02_get_ market_traders.json":"u7QQ","./03_get_market_depth":"xaTv","./03_get_market_depth.json":"xaTv","./04_get_market_klines":"l6fp","./04_get_market_klines.json":"l6fp","./index":"BbCp","./index.js":"BbCp"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="EA8X"},EDR3:function(e,t){e.exports=[{type:"hash",text:"Query Orders"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/query"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/query",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:"Trading pair, e.g., BTC-USDT"},{name:"orderId",type:"int64",required:"yes",description:"Order ID"},{name:"clientOrderId",type:"string",required:"no",description:"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId,Only supports a query range of 2 hours"},{name:"recvWindow",type:"float64",required:"no",description:"Request valid time window value, Unit: milliseconds"},{name:"timestamp",type:"int64",required:"yes",description:"Timestamp of initiating the request, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"Trading pair"},{name:"orderId",type:"int64",description:"Order ID"},{name:"price",type:"string",description:"Price"},{name:"origQty",type:"string",description:"Original quantity"},{name:"executedQty",type:"string",description:"Executed quantity"},{name:"cummulativeQuoteQty",type:"string",description:"Cumulative quote asset transacted quantity"},{name:"status",type:"string",description:"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED"},{name:"type",type:"string",description:"MARKET/LIMIT"},{name:"side",type:"string",description:"BUY/SELL"},{name:"time",type:"int64",description:"Order timestamp"},{name:"updateTime",type:"int64",description:"Update timestamp"},{name:"origQuoteOrderQty",type:"string",description:"Original quote order quantity"},{name:"fee",type:"string",description:"Fee"},{name:"feeAsset",type:"string",description:"Fee asset"},{name:"clientOrderId",type:"string",required:"no",description:"Customized order ID for users"}]}]}]},ELvl:function(e,t,n){var i={".":"KsRT","./":"KsRT","./01_executionReport":"H6dO","./01_executionReport.json":"H6dO","./02_ account_update":"bZVt","./02_ account_update.json":"bZVt","./index":"KsRT","./index.js":"KsRT"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="ELvl"},EOtf:function(e,t){e.exports=[{type:"hash",text:"Get Perpetual Swap Account Asset Information"},{type:"normal",text:"Get asset information of user‘s Perpetual Account"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getBalance"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getBalance",protocol:"https",method:"POST",payload:{apiKey:"",currency:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"currency",type:"string",required:"yes",description:"Account Asset"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"},{name:"userId",type:"string",description:"User ID"},{name:"currency",type:"string",description:"user asset"},{name:"balance",type:"float64",description:"asset balance"},{name:"equity",type:"float64",description:"net asset value"},{name:"unrealisedPNL",type:"float64",description:"unrealized profit and loss"},{name:"realisedPNL",type:"float64",description:"realized profit and loss"},{name:"availableMargin",type:"float64",description:"available margin"},{name:"usedMargin",type:"float64",description:"used margin"},{name:"freezedMargin",type:"float64",description:"frozen margin"},{name:"longLeverage",type:"float64",description:"long Leverage"},{name:"shortLeverage",type:"float64",description:"short Leverage"}]}]}]},EhCT:function(e,t,n){var i={"./01_create_api.json":"KMXO","./03_request_content.json":"DZHm","./04_sign_discription.json":"gBMP","./05_request.json":"4UQG"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="EhCT"},EhS2:function(e,t){e.exports=[{type:"hash",text:"Cancel Stop Order"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelStopOrder"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelStopOrder",protocol:"https",method:"POST",payload:{apiKey:"",orderId:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"orderId",type:"string",required:"yes",description:"Stop Order ID"}]},{type:"Response",key:"response",data:[{name:"code",type:"",description:""},{name:"message",type:"",description:""}]}]}]},Eq96:function(e,t,n){var i={"./01_create_listenKey.json":"Yto4","./02_put_listenKey.json":"tXGI","./03_delete_listenKey.json":"BnJY"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Eq96"},EtCx:function(e,t){e.exports=[{type:"hash",text:"查询杠杆"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getLeverage"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getLeverage",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"}]},{type:"Response",key:"response",data:[{name:"longLeverage",type:"int64",description:"多仓杠杆倍数"},{name:"shortLeverage",type:"int64",description:"空仓杠杆倍数"}]}]}]},Ewmn:function(e,t){e.exports=[{type:"hash",text:"查詢當前全部掛單"},{type:"normal",text:"查詢用戶當前處於委託狀態的全部訂單。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/openOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"GET /openApi/swap/v2/trade/openOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"}]},{type:"status",key:"key1",data:[{name:"NEW",type:"",required:"",description:"新建訂單"},{name:"PARTIALLY_FILLED",type:"",required:"",description:"部分成交"},{name:"FILLED",type:"",required:"",description:"全部成交"},{name:"CANCELED",type:"",required:"",description:"已撤銷"}]}]}]},"F5V+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("EhCT").keys(),r=[],o=0;o更多返回錯誤代碼請看首頁的錯誤代碼描述"},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱,合約名稱中需有"-",如BTC-USDT'},{name:"klineType",type:"string",required:"是",description:"k線類型,參考字段說明,如分鐘,小時,週等"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"data",type:"",description:"推送內容"},{name:"dataType",type:"",description:"數據類型"},{name:"klineInfosVo",type:"",description:"K線數據"},{name:"close",type:"",description:"收盤價"},{name:"high",type:"",description:"最高價"},{name:"low",type:"",description:"最低價"},{name:"open",type:"",description:"開盤價"},{name:"statDate",type:"",description:"k線時間"},{name:"time",type:"",description:"k線時間戳,單位是毫秒"},{name:"volume",type:"",description:"成交量"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"一分鐘K線"},{name:"3min",description:"三分鐘K線"},{name:"5min",description:"五分鐘K線"},{name:"15min",description:"十五分鐘K線"},{name:"30min",description:"三十分鐘K線"},{name:"1hour",description:"一小時K線"},{name:"2hour",description:"两小時K線"},{name:"4hour",description:"四小時K線"},{name:"6hour",description:"六小時K線"},{name:"8hour",description:"八小時K線"},{name:"12hour",description:"12小時K線"},{name:"1day",description:"1日K線"},{name:"1week",description:"週K線"},{name:"1month",description:"月K線"}]}]}]},H6dO:function(e,t){e.exports=[{type:"html",text:"註意需要獲取此類信息需要 websocket 鑒權,使用 listenKey,詳細方式查看
    Listen Key"},{type:"normal",text:"websocket接口是 wss://open-api-ws.bingx.com/market"},{type:"normal",text:"訂閱賬戶數據流的stream名稱為 /market?listenKey="},{type:"code",text:"wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7"},{type:"hash",text:"訂閱訂單更新數據"},{type:"normal",text:"訂閱類型"},{type:"code",text:"dataType 為 spot.executionReport"},{type:"normal",text:"訂閱例子"},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"spot.executionReport"}'},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"訂閱的數據類型, 例如: spot.executionReport"},{name:"data",type:"",description:"推送內容"}]},{type:"data",key:"key1",data:[{name:"e",type:"",description:"事件類型"},{name:"E",type:"",description:"事件時間"},{name:"s",type:"",description:"交易對"},{name:"S",type:"",description:"訂單方向"},{name:"o",type:"",description:"訂單類型"},{name:"q",type:"",description:"訂單原始數量"},{name:"p",type:"",description:"訂單原始價格"},{name:"x",type:"",description:"事件類型"},{name:"X",type:"",description:"訂單狀態"},{name:"i",type:"",description:"訂單id"},{name:"l",type:"",description:"訂單末次成交量"},{name:"z",type:"",description:"訂單累計已成交量"},{name:"L",type:"",description:"訂單末次成交價格"},{name:"n",type:"",description:"手續費數量"},{name:"N",type:"",description:"手續費資產類别"},{name:"T",type:"",description:"成交時間"},{name:"t",type:"",description:"成交ID"},{name:"O",type:"",description:"訂單創建時間"},{name:"Z",type:"",description:"訂單累計已成交金額"},{name:"Y",type:"",description:"訂單末次成交金額"},{name:"Q",type:"",description:"訂單原始金額"}]}]}]},H6na:function(e,t,n){var i={".":"JNoc","./":"JNoc","./01_executionReport":"yydQ","./01_executionReport.json":"yydQ","./02_ account_update":"Wg+8","./02_ account_update.json":"Wg+8","./index":"JNoc","./index.js":"JNoc"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="H6na"},HD5E:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Eq96").keys(),r=[],o=0;oBingXAPI. "},{type:"normal",text:"You can use our API to access market data endpoints of Standard contract. The market data API is publicly accessible and provides market data, statistics, order book depth of a Trading Pair."}]}},HJU1:function(e,t){e.exports=[{type:"hash",text:"查詢強平訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/forceOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/forceOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",autoCloseType:"",lastOrderId:"",length:0,apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"autoCloseType",type:"string",required:"是",description:"Liquidation 表示強平訂單, ADL 表示減倉訂單"},{name:"lastOrderId",type:"int64",required:"是",description:"用於分頁, 第一次填寫0, 後續填寫前一次返回結果裡面的最後一個訂單id"},{name:"length",type:"int64",required:"是",description:"每次請求的長度, 最大值為100"},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"合約名稱"},{name:"tradeType",type:"string",description:"訂單類型, Limit是限價單, Market是市價單"},{name:"action",type:"string",description:"Liquidation 表示強平訂單, ADL 表示減倉訂單"},{name:"avgFilledPrice",type:"float64",description:"破產價格"},{name:"entrustTm",type:"string",description:"成交時間"},{name:"filledVolume",type:"float64",description:"成交數量"},{name:"orderId",type:"string",description:"訂單id"},{name:"side",type:"string",description:"交易方向, Bid買入, Ask賣出"},{name:"profit",type:"float64",description:"盈虧"},{name:"commission",type:"float64",description:"手續費"}]}]}]},HQ8m:function(e,t){e.exports=[{type:"hash",text:"Authorize sub account internal transfer"},{type:"normal",text:"Main account authorization sub account internal transfer permission (limited to main account use)"},{type:"normal",text:"HTTP request",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/account/v1/innerTransfer/authorizeSubAccount"},{type:"normal",text:"Interface parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/account/v1/innerTransfer/authorizeSubAccount",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,timestamp:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"subUids",type:"string",required:"yes",description:"User uid list, comma separated"},{name:"transferable",type:"boolean",required:"yes",description:"Is it allowed? True allows false prohibits"}]},{type:"Response",key:"response",data:"data"},{name:"data",type:"boolean",description:"Is authorization successful"}]}]},HU7E:function(e,t){e.exports=[{type:"hash",text:"查詢持倉信息"},{type:"normal",text:"查詢當前賬戶下永續合約的持倉信息與盈虧情况。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getPositions"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getPositions",protocol:"https",method:"POST",payload:{apiKey:"",currency:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:""},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"},{name:"symbol",type:"string",description:"合約品種"},{name:"currency",type:"string",description:"資產類型"},{name:"positionId",type:"string",description:"倉位ID"},{name:"positionSide",type:"string",description:"倉位方向 LONG/SHORT 多/空"},{name:"marginMode",type:"string",description:"保證金模式 Cross/Isolated 全倉/逐倉"},{name:"volume",type:"float64",description:"持倉數量"},{name:"availableVolume",type:"float64",description:"可平倉數量"},{name:"unrealisedPNL",type:"float64",description:"未實現盈虧"},{name:"realisedPNL",type:"float64",description:"已實現盈虧"},{name:"margin",type:"float64",description:"保證金"},{name:"avgPrice",type:"float64",description:"開倉均價"},{name:"liquidatedPrice",type:"float64",description:"预估強平價"},{name:"leverage",type:"float64",description:"槓桿"}]}]}]},HVe5:function(e,t){e.exports=[{type:"hash",text:"請求內容"},{type:"normal",text:"請求需要鑒權的接口必須包含以下信息:",children:[{type:"normal",text:"請求頭帶上 X-BX-APIKEY 傳遞 API Key。"},{type:"normal",text:"請求參數帶上 signature 使用簽名算法得出的簽名。"},{type:"normal",text:"timestamp 作為您的請求的時間戳,單位是毫秒。服務器收到請求時會判斷請求中的時間戳,如果是5000毫秒之前發出的,則請求會被認為無效。這個時間空窗值可以通過發送可選參數recvWindow來定義。"}]}]},Hhes:function(e,t){e.exports=[{type:"hash",text:"測試下單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/order/test"},{type:"warning",text:"入參與返回都與下單接口一致,但是不會真實下單,僅返回測試結果,結果為假的訂單,不會扣除你的資金,也不會出現在真實交易面板中,僅用於幫助你練習使用下單接口"},{type:"warning",text:"基於訂單 type 不同,強制要求某些參數:"},{type:"html",text:"
  • LIMIT: 強制要求參數 quantity, price
  • "},{type:"html",text:"
  • MARKET: 強制要求參數 quantity
  • "},{type:"html",text:"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 強制要求參數 quantity、stopPrice、price
  • "},{type:"html",text:"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 強制要求參數 quantity、stopPrice
  • "},{type:"warning",text:"條件單的觸發必須:"},{type:"html",text:"

    STOP/STOP_MARKET 止損單:

    "},{type:"html",text:"
  • 已掛止損單累加數量不能大於持倉數量
  • "},{type:"html",text:"
  • 買入: 標記價格高於等於觸發價stopPrice
  • "},{type:"html",text:"
  • 賣出: 標記價格低於等於觸發價stopPrice
  • "},{type:"html",text:"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈單:

    "},{type:"html",text:"
  • 已掛止盈單累加數量不能大於持倉數量
  • "},{type:"html",text:"
  • 買入: 標記價格低於等於觸發價stopPrice
  • "},{type:"html",text:"
  • 賣出: 標記價格高於等於觸發價stopPrice
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order/test",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"type",type:"string",required:"是",description:"訂單類型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持倉方向,且僅可選擇 LONG 或 SHORT,默認LONG"},{name:"price",type:"float64",required:"否",description:"委託價格"},{name:"quantity",type:"float64",required:"否",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持輸入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"orderId",type:"int64",description:"訂單號"},{name:"clientOrderID",type:"string",description:"用戶自定義訂單ID"}]}]}]},HijD:function(e,t){e.exports=[{type:"hash",text:"历史订单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/contract/v1/allOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/contract/v1/allOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"币对,格式类似:BTC-USDT,必传"},{name:"orderId",type:"int64",required:"否",description:"订单ID,选填"},{name:"startTime",type:"int64",required:"否",description:"开始时间,选填"},{name:"endTime",type:"int64",required:"否",description:"结束时间,选填"},{name:"limit",type:"int64",required:"否",description:"数量,选填"}]},{type:"Response",key:"response",data:[{name:"avgPrice",type:"number",description:"平仓价"},{name:"cumQuote",type:"number",description:"交易额"},{name:"executedQty",type:"number",description:"成交量"},{name:"orderId",type:"number",description:"系统订单号"},{name:"positionSide",type:"string",description:"持仓方向,LONG 和 SHORT"},{name:"status",type:"string",description:"订单状态 CLOSED"},{name:"symbol",type:"string",description:"币对,格式类似:BTC-USDT"},{name:"time",type:"int64",description:"订单时间"},{name:"updateTime",type:"int64",description:"更新时间"},{name:"margin",type:"number",description:"保证金"},{name:"leverage",type:"number",description:"杠杆数"},{name:"isolated",type:"bool",description:"是否是逐仓模式"},{name:"closePrice",type:"number",description:"平仓价"},{name:"positionId",type:"int64",description:"持仓订单号"}]}]}]},Hwtn:function(e,t){e.exports=[{type:"hash",text:"Switch Margin Mode"},{type:"normal",text:"Switch the margin mode of the Perpetual Swap Account, Cross Margin mode or Isolated Margin mode. "},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/setMarginMode"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/setMarginMode",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginMode:"",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"marginMode",type:"string",required:"yes",description:"Isolated or Cross"},{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"}]}]}]},HzkI:function(e,t){e.exports=[{type:"hash",text:"查询交易品种"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/common/symbols"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/common/symbols",protocol:"https",method:"GET",payload:{symbol:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易品种, 例如: BTC-USDT, 请使用大写字母"}]},{type:"Response",key:"response",data:[{name:"symbols",type:"Array",description:"品种信息列表, 元素参考下表"}]},{type:"symbol",key:"response1",data:[{name:"symbol",type:"string",description:"交易品种"},{name:"tickSize",type:"float64",description:"价格步长"},{name:"stepSize",type:"float64",description:"数量步长"},{name:"minQty",type:"float64",description:"最小交易数量"},{name:"maxQty",type:"float64",description:"最大交易数量"},{name:"minNotional",type:"float64",description:"最小交易金额"},{name:"maxNotional",type:"float64",description:"最大交易金额"},{name:"status",type:"int",description:"0下线, 1上线"}]}]}]},"I/UF":function(e,t,n){var i={".":"8e1X","./":"8e1X","./01_get_account_apiRestrictions":"l5cf","./01_get_account_apiRestrictions.json":"l5cf","./index":"8e1X","./index.js":"8e1X"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="I/UF"},I5B8:function(e,t,n){var i={".":"8gCM","./":"8gCM","./01_create_api":"KHR7","./01_create_api.json":"KHR7","./03_request_content":"q1lS","./03_request_content.json":"q1lS","./04_sign_discription":"OWlA","./04_sign_discription.json":"OWlA","./05_request":"auLt","./05_request.json":"auLt","./index":"8gCM","./index.js":"8gCM"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="I5B8"},"I7+s":function(e,t){e.exports=[{type:"hash",text:"订阅合约k线数据"},{type:"normal",text:"订阅单个合约的行情k线数据"},{type:"normal",text:"订阅类型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 market.kline.$Symbol.$KlineType,比如market.kline.BTC-USDT.1min"},{type:"html",text:"
  • 更多返回错误代码请看首页的错误代码描述
  • "},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称,合约名称中需有"-",如BTC-USDT'},{name:"klineType",type:"string",required:"是",description:"k线类型,参考字段说明,如分钟,小时,周等"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有错误信息,0为正常,1为有错误"},{name:"data",type:"",description:"推送内容"},{name:"dataType",type:"",description:"数据类型"},{name:"klineInfosVo",type:"",description:"K线数据"},{name:"close",type:"",description:"收盘价"},{name:"high",type:"",description:"最高价"},{name:"low",type:"",description:"最低价"},{name:"open",type:"",description:"开盘价"},{name:"statDate",type:"",description:"k线时间"},{name:"time",type:"",description:"k线时间戳,单位是毫秒"},{name:"volume",type:"",description:"成交量"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"一分钟K线"},{name:"3min",description:"三分钟K线"},{name:"5min",description:"五分钟K线"},{name:"15min",description:"十五分钟K线"},{name:"30min",description:"三十分钟K线"},{name:"1hour",description:"一小时K线"},{name:"2hour",description:"两小时K线"},{name:"4hour",description:"四小时K线"},{name:"6hour",description:"六小时K线"},{name:"8hour",description:"八小时K线"},{name:"12hour",description:"12小时K线"},{name:"1day",description:"1日K线"},{name:"1week",description:"周K线"},{name:"1month",description:"月K线"}]}]}]},I7Id:function(e,t){e.exports=[{type:"hash",text:"用户手续费率"},{type:"normal",text:"获取当前用户的手续费率"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/commissionRate"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/commissionRate",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"takerCommissionRate",type:"float64",description:"吃单手续费率"},{name:"makerCommissionRate",type:"float64",description:"挂单手续费率"}]}]}]},I7QH:function(e,t){e.exports=[{type:"hash",text:"订阅合约交易深度"},{type:"normal",text:"订阅合约对盘口深度的数据的推送,此主题发送最新市场深度快照。快照频率为每秒1次。"},{type:"normal",text:"订阅类型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 market.depth.$Symbol.$Step.$Level,比如market.depth.BTC-USDT.step0.level5"},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"level",type:"string",required:"是",description:"合并深度类型,step0,step1,step2,step3,step4,step5"},{name:"level",type:"string",required:"是",description:"档数, 如 level5,level10,level20,level50,level100"}]},{type:"step",key:"key1",data:[{name:"step0",type:"",description:"不合并深度"},{name:"step1",type:"",description:"按价格最小精度乘以10合并深度数据"},{name:"step2",type:"",description:"按价格最小精度乘以100合并深度数据"},{name:"step3",type:"",description:"按价格最小精度乘以1000合并深度数据"},{name:"step4",type:"",description:"按价格最小精度乘以10000合并深度数据"},{name:"step5",type:"",description:"按价格最小精度乘以100000合并深度数据"}]},{type:"level",key:"key2",data:[{name:"level5",type:"",description:"5档"},{name:"level10",type:"",description:"10档"},{name:"level20",type:"",description:"20档"},{name:"level50",type:"",description:"50档"},{name:"level100",type:"",description:"100档"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有错误信息,0为正常,1为有错误"},{name:"dataType",type:"",description:"订阅的数据类型,例如 market.depth.BTC-USDT.step0.level5"},{name:"data",type:"",description:"推送内容"},{name:"asks",type:"",description:"卖方深度"},{name:"bids",type:"",description:"买方深度"},{name:"p",type:"",description:"price价格"},{name:"v",type:"",description:"volume数量"}]}]}]},IEXP:function(e,t){e.exports={module:"swapV2",path:"/swapV2/introduce",name:"介绍",content:[{type:"html",text:"欢迎使用BingX开发者文档。"},{type:"normal",text:"本文档提供了永续合约交易业务的账户管理、行情查询、交易功能等相关API的使用方法介绍。 行情API提供市场的公开的行情数据接口,账户和交易API需要身份验证,提供下单、撤单,查询订单和帐户信息等功能。"},{type:"html",text:"此页面为永续合约V2版本的开发者文档,推荐使用。如需查看V1版本的接口说明,可访问:USDT本位永续合约V1"}]}},INR5:function(e,t){e.exports=[{type:"hash",text:"常見錯誤碼"},{type:"html",text:"

    常見HTTP類型:

    "},{type:"html",text:"
  • 4XX 錯誤碼用於指示錯誤的請求內容、行為、格式
  • "},{type:"html",text:"
  • 5XX 錯誤碼用於指示Bingx服務側的問題
  • "},{type:"html",text:"

    常見HTTP錯誤碼:

    "},{type:"html",text:"
  • 400 Bad Request – Invalid request format 請求格式無效
  • "},{type:"html",text:"
  • 401 Unauthorized – Invalid API Key 無效的API Key
  • "},{type:"html",text:"
  • 403 Forbidden – You do not have access to the requested resource 請求無權限
  • "},{type:"html",text:"
  • 404 - Not Found 沒有找到請求
  • "},{type:"html",text:"
  • 429 - Too Many Requests 請求太頻繁被係統限流
  • "},{type:"html",text:"
  • 418 - 表示收到429後繼續訪問,於是被封了
  • "},{type:"html",text:"
  • 500 - Internal Server Error – We had a problem with our server 服務器內部錯誤
  • "},{type:"html",text:"
  • 504 - 表示API服務端已經向業務核心提交了請求但未能獲取響應(特别需要註意的是504代碼不代表請求失敗,而是未知。很可能已經得到了執行,也有可能執行失敗,需要做進一步確認)
  • "},{type:"html",text:"

    常見業務錯誤碼:

    "},{type:"html",text:"
  • 100001 - 簽名驗證失敗
  • "},{type:"html",text:"
  • 100500 - 內部係統錯誤
  • "},{type:"html",text:"
  • 80001 - 請求失敗
  • "},{type:"html",text:"
  • 80012 - 服務不可用
  • "},{type:"html",text:"
  • 80014 - 參數無效
  • "},{type:"html",text:"
  • 80016 - 訂單不存在
  • "},{type:"html",text:"
  • 80017 - 倉位不存在
  • "},{type:"html",text:"

    註意:

    "},{type:"html",text:"
  • 如果失敗,response body 帶有錯誤描述信息
  • "},{type:"html",text:"
  • 每個接口都有可能抛出異常
  • "}]},IOcs:function(e,t){e.exports=[{type:"title",text:"2023-07-29"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"normal",text:"support TAKE_PROFIT/STOP order type in Perpetual Futures API Reference V2"},{type:"normal",text:"support customized field: clientOrderId in both Perpetual Futures API Reference V2 and Spot"},{type:"normal",text:"support batch placing orders in Spot"},{type:"normal",text:"support kline api in Spot"}]}]},IS5C:function(e,t){e.exports=[{type:"hash",text:"撤销止盈止损订单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelStopOrder"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelStopOrder",protocol:"https",method:"POST",payload:{apiKey:"",orderId:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"},{name:"orderId",type:"string",required:"是",description:"止盈止损订单id"}]},{type:"Response",key:"response",data:[{name:"code",type:"",description:""},{name:"message",type:"",description:""}]}]}]},"IW/r":function(e,t){e.exports=[{type:"hash",text:"持倉"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/contract/v1/allPosition"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/contract/v1/allPosition",protocol:"https",method:"GET",payload:{}},params:[{type:"request(無)",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易品種"},{name:"initialMargin",type:"number",description:"保證金"},{name:"leverage",type:"number",description:"槓桿數"},{name:"unrealizedProfit",type:"number",description:"持倉未實現盈虧"},{name:"isolated",type:"bool",description:"是否是逐倉模式"},{name:"entryPrice",type:"number",description:"持倉成本價"},{name:"positionSide",type:"number",description:"持倉方向,LONG 和 SHORT"},{name:"positionAmt",type:"number",description:"已成交數據"},{name:"currentPrice",type:"number",description:"當前價.沒有平倉價時會返回當前價"},{name:"time",type:"int64",description:"開倉時間"}]}]}]},Ia6C:function(e,t,n){var i={"./01_trade_info.json":"jcbY","./02_kline_data.json":"3EGE","./03_depth_info.json":"fsqo"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Ia6C"},IdRU:function(e,t){e.exports=[{type:"hash",text:"测试下单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/order/test"},{type:"warning",text:"入参与返回都与下单接口一致,但是不会真实下单,仅返回测试结果,结果为假的订单,不会扣除你的资金,也不会在出现真实交易面板中,仅用于帮助你练习使用下单接口"},{type:"warning",text:"基于订单 type 不同,强制要求某些参数:"},{type:"html",text:"
  • LIMIT: 强制要求参数 quantity, price
  • "},{type:"html",text:"
  • MARKET: 强制要求参数 quantity
  • "},{type:"html",text:"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 强制要求参数 quantity、stopPrice、price
  • "},{type:"html",text:"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 强制要求参数 quantity、stopPrice
  • "},{type:"warning",text:"条件单的触发必须:"},{type:"html",text:"

    STOP/STOP_MARKET 止损单:

    "},{type:"html",text:"
  • 已挂止损单累加数量不能大于持仓数量
  • "},{type:"html",text:"
  • 买入: 标记价格高于等于触发价stopPrice
  • "},{type:"html",text:"
  • 卖出: 标记价格低于等于触发价stopPrice
  • "},{type:"html",text:"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈单:

    "},{type:"html",text:"
  • 已挂止盈单累加数量不能大于持仓数量
  • "},{type:"html",text:"
  • 买入: 标记价格低于等于触发价stopPrice
  • "},{type:"html",text:"
  • 卖出: 标记价格高于等于触发价stopPrice
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order/test",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"type",type:"string",required:"是",description:"订单类型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"买卖方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG"},{name:"price",type:"float64",required:"否",description:"委托价格"},{name:"quantity",type:"float64",required:"否",description:"下单数量,合约数量,当前只支持以币计的合约数,暂不支持输入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,TRIGGER_LIMIT,TRIGGER_MARKET, STOP, TAKE_PROFIT 需要此参数"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"orderId",type:"int64",description:"订单号"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},IhWV:function(e,t){e.exports=[{type:"hash",text:"取消訂閱"},{type:"normal",text:"取消訂閱的格式如下:"},{type:"code",text:'{ "id": "id1", "reqType": "unsub", "dataType": "data to unsub"}'},{type:"normal",text:"取消訂閱成功確認:"},{type:"code",text:'{ "id": "id1", "code": 0, "msg": "" }'}]},Ijdp:function(e,t,n){var i={"./01_post_user_balance.json":"tiO5","./02_post_user_positions.json":"w+Bj"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Ijdp"},In1U:function(e,t,n){var i={".":"wX2Q","./":"wX2Q","./01_dept_info":"/s4V","./01_dept_info.json":"/s4V","./02_latest_records":"VUGM","./02_latest_records.json":"VUGM","./03_kline_data":"3Jmd","./03_kline_data.json":"3Jmd","./index":"wX2Q","./index.js":"wX2Q"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="In1U"},J0p5:function(e,t,n){var i={".":"HD5E","./":"HD5E","./01_create_listenKey":"Yto4","./01_create_listenKey.json":"Yto4","./02_put_listenKey":"tXGI","./02_put_listenKey.json":"tXGI","./03_delete_listenKey":"BnJY","./03_delete_listenKey.json":"BnJY","./index":"HD5E","./index.js":"HD5E"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="J0p5"},J2bY:function(e,t){e.exports=[{type:"hash",text:"Delete sub account apikey"},{type:"normal",text:"Delete sub account apikey"},{type:"normal",text:"HTTP request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/del"},{type:"normal",text:"Interface parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/del",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"yes",description:"Sub account uid"},{name:"apiKey",type:"string",required:"yes",description:""}]},{type:"Response",key:"response",data:[]}]}]},J7Xj:function(e,t,n){var i={".":"KJg6","./":"KJg6","./01_get_user_balance":"zKw2","./01_get_user_balance.json":"zKw2","./02_get_user_positions":"uAAZ","./02_get_user_positions.json":"uAAZ","./03_get_user_income":"clol","./03_get_user_income.json":"clol","./index":"KJg6","./index.js":"KJg6"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="J7Xj"},J7jo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("mvHQ"),r=n.n(i),o=n("ecdD");t.default=function(e,t,i,s){var a=o.d.find(function(e){return e.value===t});if(!a)return s||"No Code";var p={},d=n("BPx7")("./"+t+".js").default;if(a.value===o.a.js)return p.uri=e.uri,p.method=e.method,p.payload=e.payload,p.protocol=e.protocol,d=(d=d.replace(/AAPPII/g,r()(p,null,4))).replace(/HHOOSSTT/g,i);if(t==o.a.shell){var c="";for(var y in e.payload)c+=y+"="+e.payload[y]+"&";return c&&(c=c.substring(0,c.length-1)),d=(d=(d=(d=(d=(d=d.replace(/AAPPII/g,e.uri)).replace(/HHOOSSTT/g,i)).replace(/PPRROOTTOOCCOOLL/g,e.protocol)).replace(/MMEETTHHOODD/g,e.method)).replace(/PPAARRAAMMEETTEERRSS/g,c)).replace(/\^/g,"`")}if(t===o.a.go)return p.uri=e.uri,p.method=e.method,p.protocol=e.protocol,d=(d=(d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,r()(p,null,4))).replace(/PPAAYYLLOOAADD/g,r()(e.payload,null,4))).replace(/HHOOSSTT/g,i);if(t===o.a.java){p.uri=e.uri,p.method=e.method,p.protocol=e.protocol,d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,p.uri);var m="";for(var l in e.payload)m+='\n parameters.put("'+l+'", "");';return d=(d=(d=(d=d.replace(/PPAAYYLLOOAADD/g,m)).replace(/HHOOSSTT/g,i)).replace(/MMEETTHHOODD/g,p.method)).replace(/PPRROOTTOOCCOOLL/g,p.protocol)}if(t===o.a.python)return p.uri=e.uri,p.method=e.method,p.protocol=e.protocol,d=(d=(d=(d=(d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,p.uri)).replace(/PPAAYYLLOOAADD/g,r()(e.payload,null,4))).replace(/HHOOSSTT/g,i)).replace(/PPRROOTTOOCCOOLL/g,p.protocol)).replace(/MMEETTHHOODD/g,p.method);if(t===o.a.csharp){p.uri=e.uri,p.method=e.method,p.protocol=e.protocol;var u=r()(e.payload,null,4);return u=(u=u.replace(/:/g,"=")).replace(/\"/g,""),d=(d=(d=(d=(d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,p.uri)).replace(/PPAAYYLLOOAADD/g,u)).replace(/HHOOSSTT/g,i)).replace(/PPRROOTTOOCCOOLL/g,p.protocol)).replace(/MMEETTHHOODD/g,p.method)}if(t===o.a.php){p.uri=e.uri,p.method=e.method,p.protocol=e.protocol;var h=r()(e.payload,null,4);return h=(h=h.replace(/:/g,"=")).replace(/\"/g,""),d=(d=(d=(d=(d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,p.uri)).replace(/PPAAYYLLOOAADD/g,h)).replace(/HHOOSSTT/g,i)).replace(/PPRROOTTOOCCOOLL/g,p.protocol)).replace(/MMEETTHHOODD/g,p.method)}return s||"No Code"}},JAIK:function(e,t){e.exports=[{type:"hash",text:"授權子賬戶內轉"},{type:"normal",text:"主賬戶授權子賬戶內轉權限(僅限主賬戶使用)"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/account/v1/innerTransfer/authorizeSubAccount"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/account/v1/innerTransfer/authorizeSubAccount",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,timestamp:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"subUids",type:"string",required:"是",description:"用戶uid列表,逗號分隔"},{name:"transferable",type:"boolean",required:"是",description:"是否允許, true允許 false禁止"}]},{type:"Response",key:"response",data:"data"},{name:"data",type:"boolean",description:"授權是否成功"}]}]},JHlj:function(e,t){e.exports=[{type:"hash",text:"心跳信息"},{type:"normal",text:"当用户的Websocket客户端连接到Bingx Websocket服务器后,服务器会定期(当前设为5秒)向其发送心跳字符串Ping"},{type:"normal",text:"当用户的Websocket客户端接收到此心跳消息后,应返回字符串Pong消息"}]},JIJP:function(e,t){e.exports=[{type:"hash",text:"常见错误码"},{type:"html",text:"

    常见HTTP类型:

    "},{type:"html",text:"
  • 4XX 错误码用于指示错误的请求内容、行为、格式
  • "},{type:"html",text:"
  • 5XX 错误码用于指示Bingx服务侧的问题
  • "},{type:"html",text:"

    常见HTTP错误码:

    "},{type:"html",text:"
  • 400 Bad Request – Invalid request format 请求格式无效
  • "},{type:"html",text:"
  • 401 Unauthorized – Invalid API Key 无效的API Key
  • "},{type:"html",text:"
  • 403 Forbidden – You do not have access to the requested resource 请求无权限
  • "},{type:"html",text:"
  • 404 - Not Found 没有找到请求
  • "},{type:"html",text:"
  • 429 - Too Many Requests 请求太频繁被系统限流
  • "},{type:"html",text:"
  • 418 - 表示收到429后继续访问,于是被封了
  • "},{type:"html",text:"
  • 500 - Internal Server Error – We had a problem with our server 服务器内部错误
  • "},{type:"html",text:"
  • 504 - 表示API服务端已经向业务核心提交了请求但未能获取响应(特别需要注意的是504代码不代表请求失败,而是未知。很可能已经得到了执行,也有可能执行失败,需要做进一步确认)
  • "},{type:"html",text:"

    常见业务错误码:

    "},{type:"html",text:"
  • 100001 - 签名验证失败
  • "},{type:"html",text:"
  • 100500 - 内部系统错误
  • "},{type:"html",text:"
  • 80001 - 请求失败
  • "},{type:"html",text:"
  • 80012 - 服务不可用
  • "},{type:"html",text:"
  • 80014 - 参数无效
  • "},{type:"html",text:"
  • 80016 - 订单不存在
  • "},{type:"html",text:"
  • 80017 - 仓位不存在
  • "},{type:"html",text:"

    注意:

    "},{type:"html",text:"
  • 如果失败,response body 带有错误描述信息
  • "},{type:"html",text:"
  • 每个接口都有可能抛出异常
  • "}]},"JLT+":function(e,t,n){var i={".":"BJ4d","./":"BJ4d","./01_connect":"XKjN","./01_connect.json":"XKjN","./02_data_compress":"0Ts9","./02_data_compress.json":"0Ts9","./03_heart_beat":"Bdxm","./03_heart_beat.json":"Bdxm","./04_subscribe":"xBhx","./04_subscribe.json":"xBhx","./05_cancel_subscribe":"hlb8","./05_cancel_subscribe.json":"hlb8","./index":"BJ4d","./index.js":"BJ4d"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="JLT+"},JLZd:function(e,t){e.exports=[{type:"hash",text:"查询系统时间"},{type:"html",text:"

    HTTP请求

    "},{type:"code",text:"POST/GET api/v1/common/server/time"},{type:"html",text:"

    参数: 无

    "},{type:"demo",api:{uri:"/api/v1/common/server/time",protocol:"https",method:"GET",payload:{}},params:[{type:"Response",key:"response",data:[{name:"code",type:"Int64",description:"错误码,0表示成功,不为0表示异常失败"},{name:"msg",type:"string",description:"错误信息提示"},{name:"currentTime",type:"Int64",description:"系统当前时间,单位毫秒"}]}]}]},JNoc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("0gmE").keys(),r=[],o=0;oBingX
    開發者文檔。"},{type:"normal",text:"本文檔提供了永續合約交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。"},{type:"html",text:"USDT本位永續合約V2"}]}},JZdI:function(e,t){e.exports=[{type:"hash",text:"K-Line Data History"},{type:"normal",text:"Get the K-Line history data of the trading price over a certain period of time."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getHistoryKlines"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getHistoryKlines",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",klineType:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"klineType",type:"string",required:"yes",description:"The type of K-Line (minutes, hours, weeks etc.)"},{name:"startTs",type:"int64",required:"yes",description:"Start timestamp, Unit: ms"},{name:"endTs",type:"int64",required:"yes",description:"End timestamp, Unit: ms"}]},{type:"klineType",key:"key1",data:[{name:"1",type:"",description:"1 min Kline"},{name:"3",type:"",description:"3 min Kline"},{name:"5",type:"",description:"5 min Kline"},{name:"15",type:"",description:"15 min Kline"},{name:"30",type:"",description:"30 min Kline"},{name:"60",type:"",description:"1-hour Kline"},{name:"120",type:"",description:"2-hour Kline"},{name:"240",type:"",description:"4-hour Kline"},{name:"360",type:"",description:"6-hour Kline"},{name:"720",type:"",description:"12-hour Kline"},{name:"1D",type:"",description:"1D Kline"},{name:"1W",type:"",description:"1-Week Kline"},{name:"1M",type:"",description:"1-Month Kline"}]},{type:"Response",key:"response",data:[{name:"klines",type:"Array",description:"K-Line data"},{name:"open",type:"float64",description:"Opening Price"},{name:"close",type:"float64",description:"Closing Price"},{name:"high",type:"float64",description:"High Price"},{name:"low",type:"float64",description:"Low Price"},{name:"volume",type:"float64",description:"transaction volume"},{name:"ts",type:"int64",description:"k-line time stamp, unit milliseconds"}]}]}]},JfGl:function(e,t,n){var i={".":"FZvV","./":"FZvV","./01_trade_info":"tk7z","./01_trade_info.json":"tk7z","./02_kline_data":"klxE","./02_kline_data.json":"klxE","./03_depth_info":"ADmP","./03_depth_info.json":"ADmP","./index":"FZvV","./index.js":"FZvV"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="JfGl"},Jwag:function(e,t){e.exports=[{type:"hash",text:"Edit sub account apikey"},{type:"normal",text:"Edit sub account apikey"},{type:"normal",text:"HTTP request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/edit"},{type:"normal",text:"Interface parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/edit",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"yes",description:"Sub account uid"},{name:"apiKey",type:"string",required:"yes",description:""},{name:"note",type:"string",required:"yes",description:"notes"},{name:"permissions",type:"Array",required:"yes",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",required:"no",description:"IP whitelist"}]},{type:"Response",key:"response",data:[{name:"permissions",type:"Array",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",description:"IP whitelist"},{name:"note",type:"string",description:"notes"}]}]}]},"K+iN":function(e,t){e.exports=[{type:"hash",text:"查询历史订单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/historyOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/historyOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",lastOrderId:"",length:0,apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"lastOrderId",type:"int64",required:"是",description:"用于分页, 第一次填写0, 后续填写前一次返回结果里面的最后一个订单id"},{name:"length",type:"int64",required:"是",description:"每次请求的长度, 最大值为100"},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"orderId",type:"string",description:"订单id"},{name:"side",type:"string",description:"交易方向, Bid买入, Ask卖出"},{name:"action",type:"string",description:"Open表示开仓, Close表示平仓, ADL表示自动减仓, Liquidation表示爆仓强平"},{name:"tradeType",type:"string",description:"订单类型, Limit是限价单, Market是市价单"},{name:"entrustVolume",type:"float64",description:"委托数量"},{name:"entrustPrice",type:"float64",description:"委托价格"},{name:"filledVolume",type:"float64",description:"成交数量"},{name:"avgFilledPrice",type:"float64",description:"成交价格"},{name:"profit",type:"float64",description:"盈亏"},{name:"commission",type:"float64",description:"手续费"},{name:"orderStatus",type:"string",description:"订单状态(Filled or PartiallyFilled, Pending, Cancelled, Failed)"},{name:"entrustTm",type:"string",description:"委托时间"},{name:"updateTm",type:"string",description:"更新时间"}]},{type:"OrderStatus",key:"key1",data:[{name:"Pending",type:"",description:"尚未成交"},{name:"PartiallyFilled",type:"",description:"部分成交"},{name:"Cancelled",type:"",description:"已撤销"},{name:"Filled",type:"",description:"已完成"},{name:"Failed",type:"",description:"失败"}]}]}]},"K/yH":function(e,t){e.exports=[{type:"hash",text:"凍結 解凍子賬戶"},{type:"normal",text:"凍結 解凍子賬戶"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/updateStatus"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/updateStatus",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子賬戶uid"},{name:"freeze",type:"bool",required:"是",description:"是否凍結賬號"}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子賬戶uid"},{name:"freeze",type:"bool",description:"是否已凍結"}]}]}]},K9aK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("76pZ").keys(),r=[],o=0;o"},{type:"code",text:"wss://open-api-ws.bingx.com/market/"},{type:"normal",text:"listenKey 獲取方式如下:"},{type:"hash",text:"生成 Listen Key"},{type:"normal",text:"listen key的有效時間為1小時"},{type:"normal",text:"接口",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"code",text:"curl -X POST 'https://open-api.bingx.com/openApi/user/auth/userDataStream' --header \"X-BX-APIKEY:g6ikQYpMiWLecMQ39DUivd4ENem9ygzAim63xUPFhRtCFBUDNLajRoZNiubPemKT\""},{type:"normal",text:"響應",style:{"font-weight":"bold"}},{type:"code",text:'{"listenKey":"a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7"}'},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"POST",payload:{}},params:[{type:"Header",key:"request",data:[{name:"X-BX-APIKEY",type:"string",required:"否",description:"請求的API KEY"}]},{type:"Response",key:"response",data:[{name:"listenKey",type:"string",description:"返回的listenKey"}]}]}]},KHR7:function(e,t){e.exports=[{type:"hash",text:"創建API"},{type:"html",text:"在對任何請求進行簽名之前,您必須通過 BingX 網站【用戶中心】-【API管理(永續合約)】創建一個API key。 創建key後,您將獲得2個必須記住的信息:"},{type:"normal",text:"",children:[{type:"normal",text:"API Key"},{type:"normal",text:"Secret Key"}]},{type:"normal",text:"API Key 和 Secret Key将由隨機生成和提供。"}]},KJWq:function(e,t){e.exports=[{type:"hash",text:"撤销订单"},{type:"normal",text:"将当前账户处于当前委托状态的某个订单进行撤销操作。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelOrder"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelOrder",protocol:"https",method:"POST",payload:{orderId:"",symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"是",description:"订单ID"},{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"订单ID"}]}]}]},KJg6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("4TeI").keys(),r=[],o=0;oid是用户传入的唯一id,返回时将返回,用于用户区分幂等性校验"},{type:"normal",text:"成功订阅后,Websocket客户端将收到确认:"},{type:"code",text:'{ "id": "id1", "code": 0, "msg": "" }'},{type:"normal",text:"之后, 一旦所订阅的数据有更新,Websocket客户端将收到服务器推送的更新消息"},{type:"html",text:"
  • code错误码说明
  • "},{type:"html",text:'

    0:"SUCCESS"
    /**
    * 100xxx为通用状态码.
    */
    // 服务器搜索无数据
    100204:"SEARCH_NO_CONTENT"

    // 重复请求
    100205:"REPEAT_REQUEST"

    // 客户端请求参数错误
    100400:"ILLEGAL_ARGUMENT"

    // 客户端认证失败
    100401:"AUTHENTICATION_FAIL"

    // 客户端权限校验失败
    100403:"AUTHORIZATION_FAIL"

    // 客户端请求频率限制
    100410:"FREQUENCY_LIMIT"

    // 服务器错误
    100500:"INTERNAL_SERVER_ERROR"

    // 服务器繁忙
    100503:"SERVER_BUSY"

    '}]},Ke1b:function(e,t,n){var i={".":"CSFx","./":"CSFx","./01_get_contract_allPosition":"ttu5","./01_get_contract_allPosition.json":"ttu5","./02_get_contract_allOrders":"RhU9","./02_get_contract_allOrders.json":"RhU9","./03_get_contract_balance":"n0S/","./03_get_contract_balance.json":"n0S/","./index":"CSFx","./index.js":"CSFx"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Ke1b"},Knhz:function(e,t){e.exports=[{type:"hash",text:"查询持仓信息"},{type:"normal",text:"查询当前账户下永续合约的持仓信息与盈亏情况。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/positions"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/positions",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"positionId",type:"string",description:"仓位ID"},{name:"positionSide",type:"string",description:"仓位方向 LONG/SHORT 多/空"},{name:"isolated",type:"bool",description:"是否是逐仓模式, true:逐仓模式 false:全仓"},{name:"positionAmt",type:"string",description:"持仓数量"},{name:"availableAmt",type:"string",description:"可平仓数量"},{name:"unrealizedProfit",type:"string",description:"未实现盈亏"},{name:"realisedProfit",type:"string",description:"已实现盈亏"},{name:"initialMargin",type:"string",description:"保证金"},{name:"avgPrice",type:"string",description:"开仓均价"},{name:"leverage",type:"int",description:"杠杆"}]}]}]},Kq29:function(e,t){e.exports=[{type:"hash",text:"創建子賬戶"},{type:"normal",text:"創建子賬戶"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/create"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subAccountString",type:"string",required:"是",description:"子帳戶用戶名"},{name:"note",type:"string",required:"否",description:"備註"},{name:"recvWindow",type:"long",required:"是",description:""},{name:"timestamp",type:"long",required:"是",description:""}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子賬戶uid"},{name:"subAccountString",type:"string",description:"子賬戶用戶名"},{name:"note",type:"string",description:"子賬戶備註信息"}]}]}]},KsRT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("3Obf").keys(),r=[],o=0;oBingX
    开发者文档。"},{type:"normal",text:"本文档提供了现货交易业务的账户管理、行情查询、交易功能等相关API的使用方法介绍。 行情API提供市场的公开的行情数据接口,账户和交易API需要身份验证,提供下单、撤单,查询订单和帐户信息等功能。 "}]}},LH2b:function(e,t,n){var i={".":"TcGk","./":"TcGk","./01_balance":"nWf4","./01_balance.json":"nWf4","./index":"TcGk","./index.js":"TcGk"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="LH2b"},LNys:function(e,t,n){var i={"./01_post_user_balance.json":"EOtf","./02_post_user_positions.json":"0EGA"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="LNys"},LWb5:function(e,t){e.exports=[{type:"hash",text:"Get Ticker"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/ticker"},{type:"html",text:"
  • If no transaction pair parameters are sent, all transaction pair information will be returned
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/ticker",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"no",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"priceChange",type:"string",description:"24 hour price change"},{name:"priceChangePercent",type:"string",description:"price change percentage"},{name:"lastPrice",type:"string",description:"latest transaction price"},{name:"lastQty",type:"string",description:"latest transaction amount"},{name:"highPrice",type:"string",description:"24-hour highest price"},{name:"lowPrice",type:"string",description:"24 hours lowest price"},{name:"volume",type:"string",description:"24-hour volume"},{name:"quoteVolume",type:"string",description:"24-hour turnover, the unit is USDT"},{name:"openPrice",type:"string",description:"first price within 24 hours"},{name:"openTime",type:"int64",description:"The time when the first transaction occurred within 24 hours"},{name:"closeTime",type:"int64",description:"The time when the last transaction occurred within 24 hours"}]}]}]},Latl:function(e,t){e.exports=[{type:"hash",text:"查詢槓桿"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getLeverage"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getLeverage",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"longLeverage",type:"int64",description:"多倉槓桿倍數"},{name:"shortLeverage",type:"int64",description:"空倉槓桿倍數"}]}]}]},LbRj:function(e,t,n){var i={"./01_get_user_balance.json":"W4Cx","./02_get_user_positions.json":"mp7j","./03_get_user_income.json":"h0vl"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="LbRj"},Ldk5:function(e,t,n){var i={".":"L6ds","./":"L6ds","./01_get_quote_contracts":"SYVa","./01_get_quote_contracts.json":"SYVa","./02_get_quote_price":"eT6P","./02_get_quote_price.json":"eT6P","./03_get_quote_depth":"55v+","./03_get_quote_depth.json":"55v+","./04_get_quote_ trades":"w+Dc","./04_get_quote_ trades.json":"w+Dc","./05_get_quote_ premiumIndex":"qG6H","./05_get_quote_ premiumIndex.json":"qG6H","./06_get_quote_ fundingRate":"2iez","./06_get_quote_ fundingRate.json":"2iez","./07_get_quote_ klines":"vZVR","./07_get_quote_ klines.json":"vZVR","./08_get_quote_ klines_history":"JZdI","./08_get_quote_ klines_history.json":"JZdI","./09_get_quote_ ticker":"4AkN","./09_get_quote_ ticker.json":"4AkN","./10_get_quote_openInterest":"vVjE","./10_get_quote_openInterest.json":"vVjE","./index":"L6ds","./index.js":"L6ds"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Ldk5"},LmIK:function(e,t){e.exports=[{type:"hash",text:"查询最新资金费率"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getLatestFunding"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getLatestFunding",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"fundingRate",type:"float64",description:"当前资金费率"},{name:"fairPrice",type:"float64",description:"当前的标记价格"},{name:"leftSeconds",type:"float64",description:"下次结算剩余时间,单位为秒"}]}]}]},LuFD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("4izq").keys(),r=[],o=0;ohttp status 200 success"},{type:"html",text:"
  • http status 204 not content
  • "},{type:"html",text:"
  • http status 404 not find key
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"DELETE",payload:{}},params:[{type:"Request",key:"request",data:[{name:"listenKey",type:"string",required:"yes",description:"listen Key"}]}]}]},M4z4:function(e,t,n){var i={".":"qM4I","./":"qM4I","./01_server_url":"FVkd","./01_server_url.json":"FVkd","./02_server_apply":"GUKh","./02_server_apply.json":"GUKh","./03_error_code":"uv3h","./03_error_code.json":"uv3h","./index":"qM4I","./index.js":"qM4I"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="M4z4"},M7Po:function(e,t){e.exports=[{type:"hash",text:"Configuration updates such as leverage and margin mode"},{type:"normal",text:"When the account configuration changes, the event type will be pushed as ACCOUNT_CONFIG_UPDATE"},{type:"normal",text:"When the leverage of a trading pair changes, the push message will contain the object ac, which represents the account configuration of the trading pair, where s represents the specific trading pair, l represents the leverage of long positions, S represents the leverage of short positions, and mt represents the margin mode."},{type:"html",text:"
  • For more about return error codes, please see the error code description on the homepage.
  • "},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"event type:ACCOUNT_CONFIG_UPDATE"},{name:"E",type:"",description:"event time:1676603102163"},{name:"ac",type:"obj",description:"trade"}]},{type:"ac",key:"common",data:[{name:"s",type:"",description:"trading pair:BTC-USDT"},{name:"l",type:"",description:"long position leverage:12"},{name:"S",type:"",description:"short position leverage:9"},{name:"mt",type:"",description:"margin mode:cross"}]}]}]},MHMA:function(e,t,n){var i={"./01_dept_info.json":"lI21","./02_latest_records.json":"u+VH","./03_kline_data.json":"TV6R"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="MHMA"},"MMY+":function(e,t){e.exports=[{type:"hash",text:"K线数据"},{type:"normal",text:"查询成交价格的K线数据。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/klines"},{type:"html",text:"
  • 如果未发送 startTime 和 endTime ,默认返回最新的k线数据
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/klines",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",interval:"",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"interval",type:"string",required:"是",description:"时间间隔,参考字段说明"},{name:"startTime",type:"int64",required:"否",description:"开始时间,单位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间,单位:毫秒"},{name:"limit",type:"int64",required:"否",description:"默认值:500 最大值:1440"}]},{type:"Response",key:"response",data:[{name:"open",type:"float64",description:"开盘价"},{name:"close",type:"float64",description:"收盘价"},{name:"high",type:"float64",description:"最高价"},{name:"low",type:"float64",description:"最低价"},{name:"volume",type:"float64",description:"交易数量"},{name:"time",type:"int64",description:"k线时间戳,单位毫秒"}]},{type:"interval",key:"common",data:[{name:"1m",description:"一分钟K线"},{name:"3m",description:"三分钟K线"},{name:"5m",description:"五分钟K线"},{name:"15m",description:"十五分钟K线"},{name:"30m",description:"三十分钟K线"},{name:"1h",description:"一小时K线"},{name:"2h",description:"两小时K线"},{name:"4h",description:"四小时K线"},{name:"6h",description:"六小时K线"},{name:"8h",description:"八小时K线"},{name:"12h",description:"12小时K线"},{name:"1d",description:"1日K线"},{name:"3d",description:"3日K线"},{name:"1w",description:"周K线"},{name:"1M",description:"月K线"}]}]}]},MQqI:function(e,t){e.exports=[{type:"hash",text:"Query apikey information"},{type:"normal",text:"Query apikey information"},{type:"normal",text:"HTTP request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/sub-account/v1/apiKey/query"},{type:"normal",text:"Interface parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/sub-account/v1/apiKey/query",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"uid",type:"long",required:"yes",description:"User uid"},{name:"apiKey",type:"string",required:"no",description:""}]},{type:"Response",key:"response",data:[{name:"apiKey",type:"string",description:""},{name:"note",type:"string",description:"notes"},{name:"permissions",type:"Array",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",description:"IP whitelist"},{name:"createTime",type:"long",description:"Creation time"},{name:"updateTime",type:"long",description:"update time"}]}]}]},MRTk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("fptA").keys(),r=[],o=0;o "+e.api:e.text&&(t=e.name+" -> "+e.text),t&&n.options.push({label:t,value:J()(e)})}),i.push(n)},o=!0,s=!1,a=void 0;try{for(var p,d=Z()(V()(n));!(o=(p=d.next()).done);o=!0){var c=p.value,y=ee()(c,2);r(y[0],y[1])}}catch(e){s=!0,a=e}finally{try{!o&&d.return&&d.return()}finally{if(s)throw a}}}this.options=[].concat(i),setTimeout(function(){t.loading=!1},1e3)}}}),created:function(){this.debounceQuery=pe()(this.query,500)}},me={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"nav-header"},[i("img",{staticClass:"logo",attrs:{src:n("XmuZ"),alt:"BingX API Docs"}}),e._v(" "),i("el-menu",{staticClass:"nav-header-menu",attrs:{mode:"horizontal",router:"","text-color":"#999999","active-text-color":"#292929","default-active":e.defaultActive}},e._l(e.menus,function(t){return i("el-menu-item",{key:t.name,attrs:{index:t.path}},[e._v("\n "+e._s(t.label)+"\n ")])}),1),e._v(" "),i("el-select",{staticClass:"nav-header-search",attrs:{multiple:!1,loading:e.loading,"remote-method":e.debounceQuery,filterable:"",remote:"","no-data-text":"No Data","no-match-text":"No Data","loading-text":"Loading...",placeholder:e.placeholders[e.lang],icon:"el-icon-search","popper-class":"search-results"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[i("template",{slot:"prefix"},[i("i",{staticClass:"el-icon-search"})]),e._v(" "),e._l(e.options,function(t){return i("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)})],2),e._v(" "),i("el-dropdown",{staticClass:"nav-header-lang",attrs:{trigger:"click"}},[i("span",{staticStyle:{cursor:"pointer"}},[e._v("\n "+e._s(e.langLabel)+" "),i("i",{staticClass:"el-icon-arrow-down"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.langs,function(t){return i("el-dropdown-item",{key:t.value,nativeOn:{click:function(n){return e.handleChangeLang(t.value)}}},[e._v("\n "+e._s(t.label)+"\n ")])}),1)],1)],1)},staticRenderFns:[]};var le={components:{NavHeader:n("VU/8")(ye,me,!1,function(e){n("XujR")},"data-v-3b9fa63e",null).exports},computed:W()({},Object(I.b)(["currentLang"]))},ue={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{height:"100%"}},[t("NavHeader",{attrs:{lang:this.currentLang}}),this._v(" "),t("router-view",{attrs:{lang:this.currentLang}})],1)},staticRenderFns:[]},he=n("VU/8")(le,ue,!1,null,null,null).exports;m.a.registerLanguage(M.a.js,u.a),m.a.registerLanguage("json",g.a),m.a.registerLanguage(M.a.go,T.a),m.a.registerLanguage(M.a.shell,x.a),m.a.registerLanguage(M.a.java,w.a),m.a.registerLanguage(M.a.python,v.a),m.a.registerLanguage(M.a.csharp,S.a),m.a.registerLanguage(M.a.php,O.a),m.a.registerLanguage(M.a.html,j.a),m.a.registerLanguage(M.a.nodejs,u.a),i.default.use(p.a,{container:"#scroll-container",duration:500,easing:"ease",offset:0,force:!0}),i.default.use(P.a),i.default.use(c.a),i.default.use(r.a),i.default.prototype.$axios=s.a,i.default.config.productionTip=!1,i.default.prototype.$hljs=m.a;var ge=new r.a({mode:"hash",routes:H});ge.beforeEach(function(e,t,n){e.meta&&e.meta.title&&(document.title=e.meta.title+" | BingX API Docs"),n()}),new i.default({el:"#app",router:ge,store:U,render:function(e){return e(he)}})},NO1N:function(e,t){e.exports=[{type:"hash",text:"查询K线最新数据"},{type:"normal",text:"查询最新成交价格的K线最新数据。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getLatestKline"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getLatestKline",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",klineType:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'},{name:"klineType",type:"string",required:"是",description:"k线类型,参考字段说明,如分钟,小时,周等"}]},{type:"klineType",key:"key1",data:[{name:"1",type:"",description:"1m一分钟K线"},{name:"3",type:"",description:"3m三分钟K线"},{name:"5",type:"",description:"5m五分钟K线"},{name:"15",type:"",description:"15m十五分钟K线"},{name:"30",type:"",description:"30m三十分钟K线"},{name:"60",type:"",description:"1h一小时K线"},{name:"120",type:"",description:"2h两小时K线"},{name:"240",type:"",description:"4h四小时K线"},{name:"360",type:"",description:"6h六小时K线"},{name:"720",type:"",description:"12h十二小时K线"},{name:"1D",type:"",description:"1D日K线"},{name:"1W",type:"",description:"1W周K线"},{name:"1M",type:"",description:"1M月K线"}]},{type:"Response",key:"response",data:[{name:"open",type:"float64",description:"开盘价"},{name:"close",type:"float64",description:"收盘价"},{name:"high",type:"float64",description:"最高价"},{name:"low",type:"float64",description:"最低价"},{name:"volume",type:"float64",description:"交易数量"},{name:"ts",type:"int64",description:"k线时间戳,单位毫秒"}]}]}]},NoWp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("DWTp").keys(),r=[],o=0;o",description:"撤銷成功的訂單列表"},{name:"failed",type:"結构數組",description:"撤銷失敗的訂單列表"},{name:"orderId",type:"int64",description:"訂單號"},{name:"errorCode",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"errorMessage",type:"string",description:"錯誤信息提示"}]},{type:"Order",key:"order",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"}]}]}]},"O/kc":function(e,t,n){var i={".":"NoWp","./":"NoWp","./01_get_user_balance":"DLRo","./01_get_user_balance.json":"DLRo","./02_get_user_positions":"Knhz","./02_get_user_positions.json":"Knhz","./03_get_user_income":"s67u","./03_get_user_income.json":"s67u","./index":"NoWp","./index.js":"NoWp"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="O/kc"},"O2+o":function(e,t,n){var i={".":"MRTk","./":"MRTk","./01_dept_info":"PNFl","./01_dept_info.json":"PNFl","./02_latest_records":"vXfi","./02_latest_records.json":"vXfi","./03_kline_data":"H59N","./03_kline_data.json":"H59N","./index":"MRTk","./index.js":"MRTk"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="O2+o"},O2Id:function(e,t,n){var i={".":"+hJF","./":"+hJF","./01_connect":"uUP9","./01_connect.json":"uUP9","./02_data_compress":"ku8a","./02_data_compress.json":"ku8a","./03_heart_beat":"QDPd","./03_heart_beat.json":"QDPd","./04_subscribe":"f4mz","./04_subscribe.json":"f4mz","./05_cancel_subscribe":"IhWV","./05_cancel_subscribe.json":"IhWV","./index":"+hJF","./index.js":"+hJF"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="O2Id"},OKNr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("5KDU").keys(),r=[],o=0;o例如:對於如下的請求參數進行簽名"},{type:"code",text:'curl "https://api-swap-rest.bingbon.pro/api/v1/user/getBalance"'},{type:"html",text:"

    通過POST方式獲取獲取用戶某資產餘額信息,以

    "},{type:"html",text:"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    "},{type:"html",text:"為例"},{type:"html",text:"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    "},{type:"html",text:"請求參數按字典排序之後,為 "},{type:"html",text:"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    "},{type:"html",text:"mothod為POST,path為/api/v1/user/getBalance,生成待簽名的參數字符串如下:"},{type:"code",text:"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' "},{type:"html",text:"按算法生成待簽名的字符串"},{type:"code",text:"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' "},{type:"html",text:"然後,将待簽名字符串添加私鑰參數生成最终待簽名字符串。例如:"},{type:"html",text:'

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256("UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI", "POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013")

    '},{type:"code",text:'echo -n "POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013" | openssl dgst -sha256 -hmac "UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI" -binary | base64 | xargs python2.7 -c \'import sys, urllib;print(urllib.quote(sys.argv[1]))\' '},{type:"html",text:"Signature的結果為S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D,則簽名之後的url query參數為 "},{type:"html",text:"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    "},{type:"html",text:"即最终發送給服務器的API請求應該為:"},{type:"code",text:"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D"}]},Ob2m:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("gi0x").keys(),r=[],o=0;o如果 startTime 和 endTime 都未发送, 返回最近 limit 条数据."},{type:"html",text:"
  • 如果 startTime 和 endTime 之间的数据量大于 limit, 返回 startTime + limit情况下的数据。
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/fundingRate",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"startTime",type:"int64",required:"否",description:"起始时间,单位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间,单位:毫秒"},{name:"limit",type:"int32",required:"否",description:"默认值:100 最大值:1000"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"fundingRate",type:"string",description:"资金费率"},{name:"fundingTime",type:"int64",description:"资金费时间:单位毫秒"}]}]}]},PTH3:function(e,t){e.exports=[{type:"hash",text:"变换逐全仓模式"},{type:"normal",text:"变换用户在指定symbol合约上的保证金模式:逐仓或全仓。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/marginType"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/marginType",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginType:"",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"marginType",type:"string",required:"是",description:"保证金模式 ISOLATED(逐仓), CROSSED(全仓)"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"错误码,0表示成功,不为0表示异常失败"},{name:"msg",type:"string",description:"错误信息提示"}]},{type:"marginType",key:"common",data:[{name:"ISOLATED",type:"",description:"逐仓"},{name:"CROSSED",type:"",description:"全仓"}]}]}]},PVSb:function(e,t){e.exports=[{type:"hash",text:"Query sub account spot assets"},{type:"normal",text:"Query sub account spot assets"},{type:"normal",text:"HTTP request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/subAccount/v1/assets"},{type:"normal",text:"Interface parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/assets",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"yes",description:"Sub account uid"}]},{type:"Response",key:"response",data:[{name:"asset",type:"string",description:"Asset Name"},{name:"free",type:"double",description:"Available limit"},{name:"locked",type:"double",description:"Lock in assets"}]}]}]},PWE0:function(e,t,n){var i={".":"X9kl","./":"X9kl","./2023-06-03":"jVl+","./2023-06-03.json":"jVl+","./2023-07-29":"MfXY","./2023-07-29.json":"MfXY","./index":"X9kl","./index.js":"X9kl"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="PWE0"},Par2:function(e,t,n){var i={"./01_get_asset_transfer.json":"6y27","./02_get_asset_transfer2.json":"TDIc","./03_get_deposit_hisrec.json":"YAvn","./04_get_withdraw_history.json":"WNKq","./05_post_wallets_coins.json":"7r0K","./06_post_wallets_withdraw.json":"T4Os","./07_post_capital_innerTransfer_apply.json":"+HuI"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Par2"},"PqB/":function(e,t){e.exports=[{type:"hash",text:"The latest Trade of a Trading Pair"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/trades"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/trades",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:500}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"limit",type:"int",required:"no",description:"default: 500, maximum 1000"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"transaction time"},{name:"isBuyerMaker",type:"bool",description:"Whether the buyer is the maker of the order (true / false)"},{name:"price",type:"string",description:"transaction price"},{name:"qty",type:"string",description:"transaction quantity"},{name:"quoteQty",type:"string",description:"turnover"}]}]}]},PyiJ:function(e,t){e.exports=[{type:"hash",text:"用户强平单历史"},{type:"normal",text:"查询用户强平单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/forceOrders"},{type:"html",text:'
  • 如果没有传 "autoCloseType", 强平单和ADL减仓单都会被返回
  • '},{type:"html",text:'
  • 如果没有传"startTime", 只会返回"endTime"之前7天内的数据
  • '},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/forceOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",autoCloseType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"autoCloseType",type:"string",required:"否",description:'"LIQUIDATION":强平单, "ADL":ADL减仓单'},{name:"startTime",type:"int64",required:"否",description:"开始时间,单位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间,单位:毫秒"},{name:"limit",type:"int",required:"否",description:"返回的结果集数量 默认值50,最大值100"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"订单时间,单位:毫秒"},{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"cumQuote",type:"string",description:"成交金额"},{name:"status",type:"string",description:"订单状态"},{name:"stopPrice",type:"string",description:"触发价"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"原始委托数量"},{name:"avgPrice",type:"string",description:"平均成交价"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"订单号"},{name:"profit",type:"string",description:"盈亏"},{name:"commission",type:"string",description:"手续费"},{name:"updateTime",type:"int64",description:"更新时间,单位:毫秒"}]}]}]},Pyy0:function(e,t,n){var i={".":"336Z","./":"336Z","./01_listenKey":"gOrG","./01_listenKey.json":"gOrG","./02_balance":"Zg2x","./02_balance.json":"Zg2x","./03_order":"4X8p","./03_order.json":"4X8p","./04_setting":"M7Po","./04_setting.json":"M7Po","./index":"336Z","./index.js":"336Z"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Pyy0"},"Q+zo":function(e,t){e.exports=[{type:"hash",text:"常见错误码"},{type:"html",text:"

    常见HTTP错误码:

    "},{type:"html",text:"
  • 4XX 错误码用于指示错误的请求内容、行为、格式
  • "},{type:"html",text:"
  • 5XX 错误码用于指示Bingx服务侧的问题
  • "},{type:"html",text:"

    常见业务错误码:

    "},{type:"html",text:"
  • 100001 - 签名验证失败
  • "},{type:"html",text:"
  • 100202 - 余额不足
  • "},{type:"html",text:"
  • 100400 - 参数错误
  • "},{type:"html",text:"
  • 100440 - 下单价格跟市场市场价格偏离太远
  • "},{type:"html",text:"
  • 100500 - 服务器内部错误
  • "},{type:"html",text:"
  • 100503 - 服务器繁忙
  • "},{type:"html",text:"

    注意:

    "},{type:"html",text:"
  • 如果失败,response body 带有错误描述信息
  • "},{type:"html",text:"
  • 每个接口都有可能抛出异常
  • "}]},Q3ZN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("f6o8").keys(),r=[],o=0;ohttp status 200 success"},{type:"html",text:"
  • http status 204 not content
  • "},{type:"html",text:"
  • http status 404 not find key
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"PUT",payload:{}},params:[{type:"Request",key:"request",data:[{name:"listenKey",type:"string",required:"yes",description:"listen Key"}]}]}]},RvjO:function(e,t){e.exports=[{type:"hash",text:"設置止盈止損訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/stopOrder"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/stopOrder",protocol:"https",method:"POST",payload:{apiKey:"",positionId:"",orderId:"",stopLossPrice:0,takeProfitPrice:0,entrustVolume:0}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"},{name:"positionId",type:"int64",required:"是",description:"持倉id"},{name:"orderId",type:"int64",required:"否",description:"止盈止損訂單id"},{name:"stopLossPrice",type:"float64",required:"否",description:"止損價格"},{name:"takeProfitPrice",type:"float64",required:"否",description:"止盈價格"},{name:"entrustVolume",type:"float64",required:"是",description:"委託數量"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"止盈止損訂單id"}]}]}]},"S+dO":function(e,t){e.exports=[{type:"hash",text:"查詢資產"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/account/balance"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/account/balance",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"recvWindow",type:"int64",required:"否",description:"請求時間戳, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"balances",type:"Array",description:"資產列表, 元素字段參考下表"}]},{type:"balance",key:"response1",data:[{name:"asset",type:"string",description:"資產名"},{name:"free",type:"string",description:"可用資金"},{name:"locked",type:"string",description:"凍結資金"}]}]}]},S9BK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("7I4l").keys(),r=[],o=0;o标准合约"},{name:"SFUTURES_FUND",type:"",description:"标准合约->资金账户"},{name:"FUND_PFUTURES",type:"",description:"资金账户->永续合约"},{name:"PFUTURES_FUND",type:"",description:"永续合约->资金账户"},{name:"SFUTURES_PFUTURES",type:"",description:"标准合约->永续合约"},{name:"PFUTURES_SFUTURES",type:"",description:"永续合约->标准合约"},{name:"FUND_STRADING",type:"",description:"资金账户 -> 网格"},{name:"STRADING_FUND",type:"",description:"网格 -> 资金账户"},{name:"FUND_CTRADING",type:"",description:"资金账户 -> 跟单"},{name:"SFUTURES_CTRADING",type:"",description:"标准合约账户 -> 跟单"},{name:"PFUTURES_CTRADING",type:"",description:"永续合约账户 -> 跟单"},{name:"CTRADING_FUND",type:"",description:"跟单 -> 资金账户"},{name:"CTRADING_SFUTURES",type:"",description:"跟单 -> 标准合约账户"},{name:"CTRADING_PFUTURES",type:"",description:"跟单 -> 永续合约账户"}]},{type:"Response",key:"response",data:[{name:"total",type:"LONG",description:"总数"},{name:"rows",type:"Array",description:"数据Array"},{name:"asset",type:"string",description:"币的名称"},{name:"amount",type:"DECIMAL",description:"币的金额"},{name:"type",type:"ENUM",description:"划转类型"},{name:"status",type:"string",description:"CONFIRMED"},{name:"tranId",type:"LONG",description:"交易ID"},{name:"timestamp",type:"LONG",description:"划转的时间戳"}]}]}]},TDl7:function(e,t){e.exports=[{type:"hash",text:"交易下单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/trade"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/trade",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",apiKey:"",side:"",entrustPrice:0,entrustVolume:0,tradeType:"",action:"",takerProfitPrice:0,stopLossPrice:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"},{name:"side",type:"string",required:"是",description:"(Bid/Ask 买/卖)"},{name:"entrustPrice",type:"float64",required:"是",description:"价格"},{name:"entrustVolume",type:"float64",required:"是",description:"数量"},{name:"tradeType",type:"string",required:"是",description:"Market/Limit 市价/限价"},{name:"action",type:"string",required:"是",description:"Open/Close 开仓/平仓"},{name:"takerProfitPrice",type:"float64",required:"否",description:"止盈价格"},{name:"stopLossPrice",type:"float64",required:"否",description:"止损价格"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"订单ID"}]}]}]},TDt4:function(e,t){e.exports=[{type:"hash",text:"導出資金流水"},{type:"normal",text:"導出資金流水"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/income/export"},{type:"warning",text:"響應: Excel File"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/income/export",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",incomeType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"incomeType",type:"string",required:"否",description:"資金流水類型,可選值:TRANSFER REALIZED_PNL FUNDING_FEE TRADING_FEE INSURANCE_CLEAR TRIAL_FUND ADL SYSTEM_DEDUCTION"},{name:"startTime",type:"int64",required:"否",description:"起始時間戳,單位毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間戳,單位毫秒"},{name:"limit",type:"int",required:"否",description:"返回的結果集數量 默認值:100 最大值:1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間窗口,單位:毫秒"}]}]}]},TUnK:function(e,t,n){var i={"./01_trade_info.json":"tk7z","./02_kline_data.json":"klxE","./03_depth_info.json":"ADmP"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="TUnK"},TV6R:function(e,t){e.exports=[{type:"hash",text:"订阅合约k线数据"},{type:"normal",text:"K线stream逐秒推送所请求的K线种类(最新一根K线)的更新。"},{type:"normal",text:"订阅类型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 @kline_,比如BTC-USDT@kline_1m"},{type:"normal",text:"订阅举例",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"BTC-USDT@kline_1m"}'},{type:"html",text:"
  • 更多返回错误代码请看首页的错误代码描述
  • "},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称,合约名称中需有"-",如BTC-USDT'},{name:"interval",type:"string",required:"是",description:"k线类型,交易对, 参考字段说明,如分钟,小时,周等"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有错误信息,0为正常,1为有错误"},{name:"dataType",type:"",description:"订阅的数据类型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送内容"},{name:"c",type:"",description:"收盘价"},{name:"h",type:"",description:"最高价"},{name:"l",type:"",description:"最低价"},{name:"o",type:"",description:"开盘价"},{name:"v",type:"",description:"成交量"},{name:"s",type:"",description:"交易对"}]},{type:"interval",key:"common",data:[{name:"1m",description:"一分钟K线"},{name:"3m",description:"三分钟K线"},{name:"5m",description:"五分钟K线"},{name:"15m",description:"十五分钟K线"},{name:"30m",description:"三十分钟K线"},{name:"1h",description:"一小时K线"},{name:"2h",description:"两小时K线"},{name:"4h",description:"四小时K线"},{name:"6h",description:"六小时K线"},{name:"8h",description:"八小时K线"},{name:"12h",description:"12小时K线"},{name:"1d",description:"1日K线"},{name:"3d",description:"3日K线"},{name:"1w",description:"周K线"},{name:"1M",description:"月K线"}]}]}]},TcGk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("CU9l").keys(),r=[],o=0;oGET方法的接口, 参数必须在query string中发送."},{type:"html",text:"
  • POST, PUT, 和 DELETE 方法的接口, 参数可以在 query string 中发送,也可以在 request body 中发送(content type application/x-www-form-urlencoded)。
    允许混合这两种方式发送参数。但如果同一个参数名在 query string 和 request body 中都有,query string 中的会被优先采用。
  • "},{type:"html",text:"
  • 对参数的顺序不做要求。
  • "}]}},TsMJ:function(e,t){e.exports=[{type:"hash",text:"深度信息"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/depth"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/depth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:20}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"limit",type:"int",required:"否",description:"默认20,可选值:[5, 10, 20, 50, 100, 500, 1000]"}]},{type:"Response",key:"response",data:[{name:"T",type:"int64",description:"系统时间,单位:毫秒"},{name:"asks",type:"array",description:"卖方深度。第一个元素价格,第二个元素数量"},{name:"bids",type:"array",description:"买方深度。第一个元素价格,第二个元素数量"}]}]}]},Tupg:function(e,t){e.exports=[{type:"hash",text:"冻结 解冻子账户"},{type:"normal",text:"冻结 解冻子账户"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/updateStatus"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/updateStatus",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子账户uid"},{name:"freeze",type:"bool",required:"是",description:"是否冻结账号"}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子账户uid"},{name:"freeze",type:"bool",description:"是否已冻结"}]}]}]},U3vK:function(e,t){e.exports=[{type:"hash",text:"權限設置"},{type:"normal",text:"",children:[{type:"normal",text:"新創建的API的默認權限是 只讀。"},{type:"normal",text:"如果需要通過API進行下單交易等寫操作,需要在UI修改為對應權限。"}]}]},U4UH:function(e,t,n){var i={".":"R9OT","./":"R9OT","./01_create_listenKey":"KCrj","./01_create_listenKey.json":"KCrj","./02_put_listenKey":"lKnG","./02_put_listenKey.json":"lKnG","./03_delete_listenKey":"+Xv4","./03_delete_listenKey.json":"+Xv4","./index":"R9OT","./index.js":"R9OT"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="U4UH"},UG8z:function(e,t){e.exports=[{type:"hash",text:"Permission Settings"},{type:"normal",text:"",children:[{type:"normal",text:"The default permission for newly created APIs is read-only."},{type:"normal",text:"If you need to perform write operations such as placing an order through the API, you need to modify it to the corresponding permission on the UI."}]}]},UGH9:function(e,t,n){var i={".":"ohLs","./":"ohLs","./01_executionReport":"pjpR","./01_executionReport.json":"pjpR","./02_ account_update":"5y10","./02_ account_update.json":"5y10","./index":"ohLs","./index.js":"ohLs"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="UGH9"},UJ2F:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("F6Mp").keys(),r=[],o=0;o如果未發送 startTime 和 endTime ,默認返回最新的k線數據"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/klines",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",interval:"",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"interval",type:"string",required:"是",description:"時間間隔,參考字段說明"},{name:"startTime",type:"int64",required:"否",description:"開始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int64",required:"否",description:"默認值:500 最大值:1440"}]},{type:"Response",key:"response",data:[{name:"open",type:"float64",description:"開盤價"},{name:"close",type:"float64",description:"收盤價"},{name:"high",type:"float64",description:"最高價"},{name:"low",type:"float64",description:"最低價"},{name:"volume",type:"float64",description:"交易數量"},{name:"time",type:"int64",description:"k線時間戳,單位毫秒"}]},{type:"interval",key:"common",data:[{name:"1m",description:"一分鐘K線"},{name:"3m",description:"三分鐘K線"},{name:"5m",description:"五分鐘K線"},{name:"15m",description:"十五分鐘K線"},{name:"30m",description:"三十分鐘K線"},{name:"1h",description:"一小時K線"},{name:"2h",description:"两小時K線"},{name:"4h",description:"四小時K線"},{name:"6h",description:"六小時K線"},{name:"8h",description:"八小時K線"},{name:"12h",description:"12小時K線"},{name:"1d",description:"1日K線"},{name:"3d",description:"3日K線"},{name:"1w",description:"週K線"},{name:"1M",description:"月K線"}]}]}]},"Ua/t":function(e,t){e.exports=[{type:"hash",text:"查询最新成交记录"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getMarketTrades"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getMarketTrades",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"time",type:"date",description:"成交时间"},{name:"makerSide",type:"string",description:"吃单方向(Buy / Sell 买/卖)"},{name:"price",type:"string",description:"成交价格"},{name:"volume",type:"string",description:"成交数量"}]}]}]},UdzQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("sHu4").keys(),r=[],o=0;o@kline_,比如BTC-USDT@kline_1min"},{type:"normal",text:"订阅举例",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"BTC-USDT@kline_1m"}'},{type:"html",text:"
  • 目前仅提供一分钟的k线数据
  • "},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称,合约名称中需有"-",如BTC-USDT'},{name:"interval",type:"string",required:"是",description:"参考字段说明,K线类型,1min, 5min, 15min, 30min, 60min, 1day"}]},{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"订阅的数据类型,例如 BTC-USDT@kline_1min"},{name:"data",type:"",description:"推送内容"}]},{type:"data",key:"key1",data:[{name:"E",type:"",description:"事件时间"},{name:"K",type:"",description:"数据"},{name:"e",type:"",description:"事件类型"},{name:"s",type:"",description:"交易对"}]},{type:"K",key:"key2",data:[{name:"T",type:"",description:"这根K线的结束时间"},{name:"c",type:"",description:"这根K线期间末一笔成交价"},{name:"h",type:"",description:"这根K线期间最高成交价"},{name:"i",type:"",description:"K线间隔"},{name:"l",type:"",description:"这根K线期间最低成交价"},{name:"n",type:"",description:"这根K线期间成交笔数"},{name:"o",type:"",description:"这根K线期间第一笔成交价"},{name:"q",type:"",description:"这根K线期间成交额"},{name:"s",type:"",description:"交易对"},{name:"t",type:"",description:"这根K线的起始时间"},{name:"v",type:"",description:"这根K线期间成交量"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"1min一分钟K线"}]}]}]},VOPx:function(e,t){e.exports=[{type:"hash",text:"查詢合約24小時價格變動情况"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getTicker"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getTicker",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"合約名稱"},{name:"priceChange",type:"string",description:"價格變動, 單位是USDT"},{name:"priceChangePercent",type:"string",description:"價格變動百分比"},{name:"lastPrice",type:"string",description:"最新交易價格"},{name:"lastVolume",type:"string",description:"最新交易數量"},{name:"highPrice",type:"string",description:"24小時最高價"},{name:"lowPrice",type:"string",description:"24小時最低價"},{name:"volume",type:"string",description:"24小時成交量"},{name:"dayVolume",type:"string",description:"24小時成交額, 單位是USDT"},{name:"openPrice",type:"string",description:"24小時內第一個價格"}]}]}]},VQr5:function(e,t){e.exports=[{type:"hash",text:"Timestamp"},{type:"normal",text:"",children:[{type:"html",text:"Unless otherwise specified, all timestamps from the API are returned with millisseconds resolution."},{type:"html",text:"The timestamp of the request must be within 5 seconds of the API service time, otherwise the request will be considered expired and rejected. If there is a large deviation between the local server time and the API server time, we recommend that you update the http header by querying the API server time. header。 "}]},{type:"html",text:"

    Example

    "},{type:"code",text:"1587091154123"}]},VTkR:function(e,t,n){var i={".":"9GqO","./":"9GqO","./01_get_common_symbols":"o8W7","./01_get_common_symbols.json":"o8W7","./02_get_ market_traders":"SDL0","./02_get_ market_traders.json":"SDL0","./03_get_market_depth":"2qJV","./03_get_market_depth.json":"2qJV","./04_get_market_klines":"/lsz","./04_get_market_klines.json":"/lsz","./index":"9GqO","./index.js":"9GqO"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="VTkR"},VUGM:function(e,t){e.exports=[{type:"hash",text:"Subscribe the Latest Trade Detail"},{type:"normal",text:"Subscribe to the trade detail data of a trading pair"},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 market.trade.detail.$Symbol,比如market.trade.detail.BTC-USDT"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"dataType",type:"",description:"The type of data subscribed, such as market.tradeDetail.BTC-USDT"},{name:"data",type:"",description:"Push Data"},{name:"trades",type:"",description:"Deal by deal"},{name:"time",type:"",description:"transaction time"},{name:"makerSide",type:"",description:"Direction ( Bid / Ask)"},{name:"price",type:"",description:"transaction price"},{name:"volume",type:"",description:"Executed quantity"}]}]}]},VVr3:function(e,t){e.exports=[{type:"hash",text:"Withdraw History (supporting network)"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/capital/withdraw/history"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/capital/withdraw/history",protocol:"https",method:"GET",payload:{coin:"",withdrawOrderId:"",status:0,startTime:1658748648396,endTime:1658748648396,offset:0,limit:1e3,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"no",description:"coin name"},{name:"withdrawOrderId",type:"string",required:"no",description:"Custom ID, if there is none, this field will not be returned"},{name:"status",type:"int",required:"no",description:"Status (0: Confirmation Email has been sent, 2: Waiting for confirmation 3: Rejected 4: Processing 5: Withdrawal transaction failed 6 Withdrawal completed)"},{name:"startTime",type:"LONG",required:"no",description:"Starting time1658748648396"},{name:"endTime",type:"LONG",required:"no",description:"End Time 1658748648396"},{name:"offset",type:"int",required:"no",description:"offset default0"},{name:"limit",type:"int",required:"no",description:"Page size default 1000 cannot exceed 1000"},{name:"recvWindow",type:"LONG",required:"no",description:"Execution window time, cannot be greater than 60000"},{name:"timestamp",type:"LONG",required:"yes",description:"current timestamp e.g.1658748648396"}]},{type:"Response",key:"response",data:[{name:"address",type:"string",description:"address"},{name:"amount",type:"DECIMAL",description:"Withdrawal amount"},{name:"applyTime",type:"Date",description:"Withdrawal time"},{name:"coin",type:"string",description:"coin name"},{name:"id",type:"string",description:"The id of the withdrawal"},{name:"withdrawOrderId",type:"string",description:"Custom ID, if there is none, this field will not be returned"},{name:"network",type:"string",description:"Withdrawal network"},{name:"transferType",type:"LONG",description:"Transaction Type 1 = Withdrawal"},{name:"status",type:"int",description:"Status Status 0-Confirmed-10-To be confirmed (under review) 20-Applied for block 30-Approved and passed 40-Approval failed 50-Exported 60-Preliminary confirmation of recharge (final confirmation becomes 0) 70-Approved failed and returned assets"},{name:"transactionFee",type:"string",description:"handling fee"},{name:"confirmNo",type:"int",description:"Withdrawal confirmation times"},{name:"info",type:"string",description:"Reason for withdrawal failure"},{name:"txId",type:"String",description:"Withdrawal transaction id"}]}]}]},VbHA:function(e,t){e.exports=[{type:"hash",text:"Subscribe Market Depth Data"},{type:"normal",text:"Push limited file depth information every second."},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"The dataType is @depth E.g. BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"level",type:"string",required:"yes",description:"Depth level, such as 5,10,20,50,100"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"dataType",type:"",description:"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5"},{name:"data",type:"",description:"Push Data"},{name:"asks",type:"",description:"Sell side depth"},{name:"bids",type:"",description:"Buy side depth"},{name:"p",type:"",description:"price"},{name:"v",type:"",description:"volume"}]}]}]},Vcuj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("dJsD").keys(),r=[],o=0;o= orderId。否则将返回最新订单。"},{type:"normal",text:"如果设置 startTime 和 endTime, orderId 就不需要设置。"}]},{type:"demo",api:{uri:"/openApi/spot/v1/trade/historyOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,startTime:0,endTime:0,pageIndex:0,pageSize:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品种, 例如: BTC-USDT, 请使用大写字母"},{name:"orderId",type:"int64",required:"否",description:""},{name:"startTime",type:"int64",required:"否",description:"开始时间戳, 单位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间戳, 单位:毫秒"},{name:"pageIndex",type:"int64",required:"是",description:"分页页码,必须大于0"},{name:"pageSize",type:"int64",required:"是",description:"分页数量,必须大于0,最大值为100"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"请求时间戳, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"orders",type:"Array",description:"订单列表,最大长度为2000, 订单字段参考下表"}]},{type:"order",key:"response1",data:[{name:"symbol",type:"string",description:"交易品种"},{name:"orderId",type:"int64",description:"订单号"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"下单数量"},{name:"executedQty",type:"string",description:"成交数量"},{name:"cummulativeQuoteQty",type:"string",description:"成交额"},{name:"status",type:"string",description:"订单状态, NEW新订单 PENDING委托中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤销 FAILED失败"},{name:"type",type:"string",description:"订单类型, MARKET市价 LIMIT限价"},{name:"side",type:"string",description:"交易类型, BUY买 SELL卖"},{name:"time",type:"int64",description:"下单时间戳"},{name:"updateTime",type:"int64",description:"更新时间戳"},{name:"origQuoteOrderQty",type:"string",description:"下单金额"}]}]}]},"W+/z":function(e,t){e.exports=[{type:"hash",text:"切換賬戶保證金模式"},{type:"normal",text:"修改永續合約賬戶的保證金模式,全倉模式或逐倉模式。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/setMarginMode"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/setMarginMode",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginMode:"",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"marginMode",type:"string",required:"是",description:"Isolated or Cross, 賬戶保證金模式,逐倉或者全倉"},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"}]}]}]},"W+Bc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("BQvj").keys(),r=[],o=0;o-1;o--){var s=n("wcqk")(""+i[o]);r=r.concat(s)}var a=r},W4Cx:function(e,t){e.exports=[{type:"hash",text:"Get Perpetual Swap Account Asset Information"},{type:"normal",text:"Get asset information of user‘s Perpetual Account"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/balance"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/balance",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"yes",description:"request timestamp in milliseconds"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"},{name:"asset",type:"string",description:"user asset"},{name:"balance",type:"string",description:"asset balance"},{name:"equity",type:"string",description:"net asset value"},{name:"unrealizedProfit",type:"string",description:"unrealized profit and loss"},{name:"realisedProfit",type:"string",description:"realized profit and loss"},{name:"availableMargin",type:"string",description:"available margin"},{name:"usedMargin",type:"string",description:"used margin"},{name:"freezedMargin",type:"string",description:"frozen margin"}]}]}]},W9nQ:function(e,t){e.exports=[{type:"hash",text:"賬戶餘額和倉位更新推送"},{type:"normal",text:"賬戶更新事件的 event type 固定為 ACCOUNT_UPDATE "},{type:"normal",text:"當賬戶信息有變動時,會推送此事件:",children:[{type:"normal",text:"僅當賬戶信息有變動時(包括資金、倉位等發生變化),才會推送此事件; 訂單狀態變化沒有引起賬戶和持倉變化的,不會推送此事件;"},{type:"normal",text:"position 信息:僅當symbol倉位有變動時推送。 "}]},{type:"normal",text:'"FUNDING FEE" 引起的資金餘額變化,僅推送簡略事件: ',children:[{type:"normal",text:'當用戶某全倉持倉發生"FUNDING FEE"時,事件ACCOUNT_UPDATE将只會推送相關的用戶資產餘額信息B(僅推送FUNDING FEE 發生相關的資產餘額信息),而不會推送任何持倉信息P。 '},{type:"normal",text:'當用戶某逐倉倉持倉發生"FUNDING FEE"時,事件ACCOUNT_UPDATE将只會推送相關的用戶資產餘額信息B(僅推送"FUNDING FEE"所使用的資產餘額信息),和相關的持倉信息P(僅推送這筆"FUNDING FEE"發生所在的持倉信息),其餘持倉信息不會被推送。 '}]},{type:"normal",text:'字段"m"代表了事件推出的原因,包含了以下可能類型:',children:[{type:"normal",text:"DEPOSIT"},{type:"normal",text:"WITHDRAW"},{type:"normal",text:"ORDER"},{type:"normal",text:"FUNDING_FEE"}]},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件類型:ACCOUNT_UPDATE"},{name:"E",type:"",description:"事件時間:1676603102163"},{name:"T",type:"",description:"1676603102163"},{name:"a",type:"obj",description:"賬戶更新事件"}]},{type:"a",key:"key1",data:[{name:"m",type:"",description:"事件推出原因"},{name:"B",type:"",description:"數組:餘額信息"},{name:"P",type:"",description:"數組:交易信息"}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"資產名稱:USDT"},{name:"wb",type:"",description:"钱包餘額:5277.59264687"},{name:"cw",type:"",description:"除去逐倉倉位保證金的钱包餘額:5233.21709203"},{name:"bc",type:"",description:"钱包餘額改變量:0"}]},{type:"P",key:"key3",data:[{name:"s",type:"",description:"交易對:LINK-USDT"},{name:"pa",type:"",description:"倉位:108.84300000"},{name:"ep",type:"",description:"入倉價格:7.25620000"},{name:"up",type:"",description:"持倉未實現盈虧:1.42220000"},{name:"mt",type:"",description:"保證金模式:isolated"},{name:"iw",type:"",description:"若為逐倉,倉位保證金:23.19081642"},{name:"ps",type:"",description:"持倉方向:SHORT"}]}]}]},WCFx:function(e,t){e.exports=[{type:"hash",text:"Switch Margin Mode"},{type:"normal",text:"Change the user's margin mode on the specified symbol contract: isolated margin or cross margin."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/marginType"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/marginType",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginType:"",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp in milliseconds"},{name:"marginType",type:"string",required:"yes",description:"Margin mode ISOLATED (isolated margin), CROSSED (cross margin)"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"}]},{type:"marginType",key:"common",data:[{name:"ISOLATED",type:"",description:"Isolated Margin"},{name:"CROSSED",type:"",description:"Full position"}]}]}]},WKtD:function(e,t){e.exports=[{type:"hash",text:"撤銷止盈止損訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelStopOrder"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelStopOrder",protocol:"https",method:"POST",payload:{apiKey:"",orderId:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"},{name:"orderId",type:"string",required:"是",description:"止盈止損訂單id"}]},{type:"Response",key:"response",data:[{name:"code",type:"",description:""},{name:"message",type:"",description:""}]}]}]},WNKq:function(e,t){e.exports=[{type:"hash",text:"获取提币历史(支持多网络)"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/capital/withdraw/history"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/capital/withdraw/history",protocol:"https",method:"GET",payload:{coin:"",withdrawOrderId:"",status:0,startTime:1658748648396,endTime:1658748648396,offset:0,limit:1e3,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"否",description:"币的名称"},{name:"withdrawOrderId",type:"string",required:"否",description:"自定义ID, 如果没有则不返回该字段"},{name:"status",type:"int",required:"否",description:"状态 (0:已发送确认Email, 2:等待确认 3:被拒绝 4:处理中 5:提现交易失败 6 提现完成)"},{name:"startTime",type:"LONG",required:"否",description:"开始时间 1658748648396"},{name:"endTime",type:"LONG",required:"否",description:"结束时间 1658748648396"},{name:"offset",type:"int",required:"否",description:"偏移 默认0"},{name:"limit",type:"int",required:"否",description:"页数量大小 默认1000 不能超过1000"},{name:"recvWindow",type:"LONG",required:"否",description:"执行窗口时间,不能大于 60000"},{name:"timestamp",type:"LONG",required:"是",description:"当前时间戳 例如1658748648396"}]},{type:"Response",key:"response",data:[{name:"address",type:"string",description:"地址"},{name:"amount",type:"DECIMAL",description:"提现转出金额"},{name:"applyTime",type:"Date",description:"充值时间"},{name:"coin",type:"string",description:"币名称"},{name:"id",type:"string",description:"该笔提现的id"},{name:"withdrawOrderId",type:"string",description:"自定义ID, 如果没有则不返回该字段"},{name:"network",type:"string",description:"提现网络"},{name:"transferType",type:"LONG",description:"交易类型1=提现"},{name:"status",type:"int",description:"状态 状态 0-已确认-10-待确认(审核中) 20-已申请区块 30已审核通过 40审核不通过 50已汇出 60充值初步确认(最终确认变为0) 70审核不通过已退回资产"},{name:"transactionFee",type:"string",description:"手续费"},{name:"confirmNo",type:"int",description:"提现确认次数"},{name:"info",type:"string",description:"提币失败原因"},{name:"txId",type:"String",description:"提现交易id"}]}]}]},WVbz:function(e,t){e.exports=[{type:"hash",text:"變換逐全倉模式"},{type:"normal",text:"變換用戶在指定symbol合約上的保證金模式:逐倉或全倉。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/marginType"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/marginType",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginType:"",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"marginType",type:"string",required:"是",description:"保證金模式 ISOLATED(逐倉), CROSSED(全倉)"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"}]},{type:"marginType",key:"common",data:[{name:"ISOLATED",type:"",description:"逐倉"},{name:"CROSSED",type:"",description:"全倉"}]}]}]},WbRb:function(e,t){e.exports=[{type:"hash",text:"訂閱合約k線數據"},{type:"normal",text:"K線stream逐秒推送所請求的K線種類(最新一根K線)的更新。"},{type:"normal",text:"訂閱類型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 為 @kline_,比如BTC-USDT@kline_1m"},{type:"normal",text:"訂閱举例",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"BTC-USDT@kline_1m"}'},{type:"html",text:"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • "},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱,合約名稱中需有"-",如BTC-USDT'},{name:"interval",type:"string",required:"是",description:"k線類型,交易對, 參考字段說明,如分鐘,小時,週等"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"dataType",type:"",description:"訂閱的數據類型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送內容"},{name:"c",type:"",description:"收盤價"},{name:"h",type:"",description:"最高價"},{name:"l",type:"",description:"最低價"},{name:"o",type:"",description:"開盤價"},{name:"v",type:"",description:"成交量"},{name:"s",type:"",description:"交易對"}]},{type:"interval",key:"common",data:[{name:"1m",description:"一分鐘K線"},{name:"3m",description:"三分鐘K線"},{name:"5m",description:"五分鐘K線"},{name:"15m",description:"十五分鐘K線"},{name:"30m",description:"三十分鐘K線"},{name:"1h",description:"一小時K線"},{name:"2h",description:"两小時K線"},{name:"4h",description:"四小時K線"},{name:"6h",description:"六小時K線"},{name:"8h",description:"八小時K線"},{name:"12h",description:"12小時K線"},{name:"1d",description:"1日K線"},{name:"3d",description:"3日K線"},{name:"1w",description:"週K線"},{name:"1M",description:"月K線"}]}]}]},Wd1J:function(e,t,n){var i={"./01_connect.json":"uUP9","./02_data_compress.json":"ku8a","./03_heart_beat.json":"QDPd","./04_subscribe.json":"f4mz","./05_cancel_subscribe.json":"IhWV"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Wd1J"},"Wg+8":function(e,t){e.exports=[{type:"hash",text:"订阅账户余额推送"},{type:"normal",text:"订阅类型"},{type:"code",text:"dataType 为 ACCOUNT_UPDATE"},{type:"normal",text:"订阅例子"},{type:"code",text:'{"id":"gdfg2311-d0f6-4a70-8d5a-043e4c741b40","dataType":"ACCOUNT_UPDATE"}'},{type:"normal",text:'字段"m"代表了事件推出的原因,包含了以下可能类型:'},{type:"html",text:"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    "},{type:"html",text:"
  • 更多返回错误代码请看首页的错误代码描述
  • "},{type:"normal",text:"推送数据",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件类型"},{name:"E",type:"",description:"事件时间"},{name:"T",type:"",description:"撮合时间"},{name:"a",type:"",description:"资产名称"}]},{type:"a",key:"key1",data:[{name:"B",type:"",description:"Array[]"},{name:"m",type:"",description:"事件推出原因 "}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"资产名称"},{name:"bc",type:"",description:"除去盈亏与交易手续费以外的钱包余额改变量"},{name:"cw",type:"",description:"资产名称"},{name:"wb",type:"",description:"钱包余额"}]}]}]},WnJc:function(e,t,n){var i={"./01_get_quote_contracts.json":"lrAs","./02_get_quote_price.json":"r2l6","./03_get_quote_depth.json":"obcS","./04_get_quote_ trades.json":"KY9U","./05_get_quote_ premiumIndex.json":"5xUh","./06_get_quote_ fundingRate.json":"dEdI","./07_get_quote_ klines.json":"UTAD","./08_get_quote_openInterest.json":"0IKX","./09_get_quote_ ticker.json":"Y7KR"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="WnJc"},X4K5:function(e,t){e.exports=[{type:"hash",text:"接入方式"},{type:"normal",text:"行情Websocket的接入URL:wss://open-api-swap.bingx.com/swap-market"}]},X9kl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("tMb9").keys(),r=[],o=i.length-1;o>-1;o--){var s=n("PWE0")(""+i[o]);r=r.concat(s)}var a=r},XBGg:function(e,t){e.exports=[{type:"hash",text:"签名说明"},{type:"normal",text:"sign 是对http method,url path,请求参数等按字符串连接之后使用 HMAC SHA256 方法加密而得到的。",children:[{type:"normal",text:"path 为URL的请求路径,例如: /api/v1/user/getBalance"},{type:"normal",text:"method 是请求方法(POST/GET/PUT/DELETE),字母全部大写。"},{type:"normal",text:"参数是对 所有参数(含timestamp)按照字典排序之后,按照key1=value1 + key2=value2 ... + Secret Key 字符串(+表示字符串连接)。"}]},{type:"html",text:"originString = method + path + params sign = HmacSHA256(originString)"},{type:"html",text:"

    例如:对于如下的请求参数进行签名

    "},{type:"code",text:'curl "https://api-swap-rest.bingbon.pro/api/v1/user/getBalance"'},{type:"html",text:"

    通过POST方式获取获取用户某资产余额信息,以

    "},{type:"html",text:"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    "},{type:"html",text:"为例"},{type:"html",text:"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    "},{type:"html",text:"请求参数按字典排序之后,为 "},{type:"html",text:"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    "},{type:"html",text:"mothod为POST,path为/api/v1/user/getBalance,生成待签名的参数字符串如下:"},{type:"code",text:"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' "},{type:"html",text:"按算法生成待签名的字符串"},{type:"code",text:"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' "},{type:"html",text:"然后,将待签名字符串添加私钥参数生成最终待签名字符串。例如:"},{type:"html",text:'

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256("UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI", "POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013")

    '},{type:"code",text:'echo -n "POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013" | openssl dgst -sha256 -hmac "UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI" -binary | base64 | xargs python2.7 -c \'import sys, urllib;print(urllib.quote(sys.argv[1]))\' '},{type:"html",text:"Signature的结果为S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D,则签名之后的url query参数为 "},{type:"html",text:"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    "},{type:"html",text:"即最终发送给服务器的API请求应该为:"},{type:"code",text:"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D"}]},XKjN:function(e,t){e.exports=[{type:"hash",text:"Access"},{type:"normal",text:"Market Websocket access URL: wss://open-api-ws.bingx.com/market"}]},XWMS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Ia6C").keys(),r=[],o=0;o不發送交易對參數,則會返回所有交易對信息"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/ticker",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"priceChange",type:"string",description:"24小時價格變動"},{name:"priceChangePercent",type:"string",description:"價格變動百分比"},{name:"lastPrice",type:"string",description:"最新交易價格"},{name:"lastQty",type:"string",description:"最新交易額"},{name:"highPrice",type:"string",description:"24小時最高價"},{name:"lowPrice",type:"string",description:"24小時最低價"},{name:"volume",type:"string",description:"24小時成交量"},{name:"quoteVolume",type:"string",description:"24小時成交額, 單位是USDT"},{name:"openPrice",type:"string",description:"24小時內第一個價格"},{name:"openTime",type:"int64",description:"24小時內,第一筆交易的發生時間"},{name:"closeTime",type:"int64",description:"24小時內,最後一筆交易的發生時間"}]}]}]},Y8uX:function(e,t){e.exports=[{type:"hash",text:"删除子账户apikey"},{type:"normal",text:"删除子账户apikey"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/del"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/del",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子账户uid"},{name:"apiKey",type:"string",required:"是",description:""}]},{type:"Response",key:"response",data:[]}]}]},YAvn:function(e,t){e.exports=[{type:"hash",text:"获取充值历史(支持多网络)"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/capital/deposit/hisrec"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/capital/deposit/hisrec",protocol:"https",method:"GET",payload:{coin:"",status:0,startTime:1658748648396,endTime:1658748648396,offset:0,limit:1e3,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"否",description:"币的名称"},{name:"status",type:"int",required:"否",description:"状态(0:pending,6: credited but cannot withdraw, 1:success)"},{name:"startTime",type:"LONG",required:"否",description:"开始时间 1658748648396"},{name:"endTime",type:"LONG",required:"否",description:"结束时间 1658748648396"},{name:"offset",type:"int",required:"否",description:"偏移 默认0"},{name:"limit",type:"int",required:"否",description:"页数量大小 默认1000 不能超过1000"},{name:"recvWindow",type:"LONG",required:"否",description:"执行窗口时间,不能大于 60000"},{name:"timestamp",type:"LONG",required:"是",description:"当前时间戳 例如1658748648396"}]},{type:"Response",key:"response",data:[{name:"amount",type:"DECIMAL",description:"充值金额"},{name:"coin",type:"string",description:"币名称"},{name:"network",type:"string",description:"充值网络"},{name:"status",type:"int",description:"状态 状态 0-已确认-10-待确认(审核中) 20-已申请区块 30已审核通过 40审核不通过 50已汇出 60充值初步确认(最终确认变为0) 70审核不通过已退回资产"},{name:"address",type:"string",description:"充值地址"},{name:"addressTag",type:"string",description:"备注"},{name:"txId",type:"LONG",description:"交易id"},{name:"insertTime",type:"LONG",description:"交易时间"},{name:"transferType",type:"LONG",description:"交易类型0=充值"},{name:"unlockConfirm",type:"LONG",description:"解锁需要的网络确认次数"},{name:"confirmTimes",type:"LONG",description:"网络确认次数"}]}]}]},YBd1:function(e,t){e.exports=[{type:"hash",text:"24小时价格变动情况"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/ticker"},{type:"html",text:"
  • 不发送交易对参数,则会返回所有交易对信息
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/ticker",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"priceChange",type:"string",description:"24小时价格变动"},{name:"priceChangePercent",type:"string",description:"价格变动百分比"},{name:"lastPrice",type:"string",description:"最新交易价格"},{name:"lastQty",type:"string",description:"最新交易额"},{name:"highPrice",type:"string",description:"24小时最高价"},{name:"lowPrice",type:"string",description:"24小时最低价"},{name:"volume",type:"string",description:"24小时成交量"},{name:"quoteVolume",type:"string",description:"24小时成交额, 单位是USDT"},{name:"openPrice",type:"string",description:"24小时内第一个价格"},{name:"openTime",type:"int64",description:"24小时内,第一笔交易的发生时间"},{name:"closeTime",type:"int64",description:"24小时内,最后一笔交易的发生时间"}]}]}]},YLkf:function(e,t){e.exports=[{type:"hash",text:"Trade order"},{type:"normal",text:"The current account places an order on the specified symbol contract. (Supports limit order, market order, market order for plan entrustment, limit order for plan entrustment, position stop profit and stop loss order, and liquidation for positions)"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/order"},{type:"warning",text:"Depending on the order type, certain parameters are mandatory:"},{type:"html",text:"
  • LIMIT: Mandatory Parameters: quantity, price
  • "},{type:"html",text:"
  • MARKET: Mandatory Parameters: quantity
  • "},{type:"html",text:"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: Mandatory Parameters: quantity、stopPrice、price
  • "},{type:"html",text:"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: Mandatory Parameters: quantity、stopPrice
  • "},{type:"html",text:"

    1. Open/Close: How to use the same endpoint to open (Long/Short) and close (Long/Short) positions? Please refer to the following request payload combination:

    "},{type:"html",text:"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    "},{type:"html",text:'

    {"symbol": "ETH-USDT","side": "BUY","positionSide": "LONG", "type": "MARKET", "quantity": 5}

    '},{type:"html",text:"

    2. Set take profit and stop loss: This endpoint can also be used to set take profit and stop loss, but the position needs to be opened first;
    The current take profit and stop loss price only supports the default marked price, and currently does not support the latest and index price options

    "},{type:"html",text:'

    {"symbol": "ETH-USDT","side": "BUY","positionSide": "LONG", "type": "TAKE_PROFIT_MARKET", "quantity": 3, "stopPrice": 31968.0}

    '},{type:"warning",text:"The triggering of the conditional order must:"},{type:"html",text:"

    STOP/STOP_MARKET stop loss order:

    "},{type:"html",text:"
  • The accumulative quantity of the pending stop loss orders cannot be greater than the quantity of open positions
  • "},{type:"html",text:"
  • Buy: the mark price is higher than or equal to the trigger price stopPrice
  • "},{type:"html",text:"
  • Sell: the mark price is lower than or equal to the trigger price stopPrice
  • "},{type:"html",text:"

    TAKE_PROFIT/TAKE_PROFIT_MARKET take profit order:

    "},{type:"html",text:"
  • The accumulative quantity of the pending take profit order cannot be greater than the position quantity
  • "},{type:"html",text:"
  • Buy: the mark price is lower than or equal to the trigger price stopPrice
  • "},{type:"html",text:"
  • Sell: the mark price is higher than or equal to the trigger price stopPrice
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"type",type:"string",required:"yes",description:"order type LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"yes",description:"buying and selling direction SELL, BUY"},{name:"positionSide",type:"string",required:"no",description:"Position direction, and only LONG or SHORT can be selected, the default is LONG"},{name:"price",type:"float64",required:"no",description:"Price"},{name:"quantity",type:"float64",required:"no",description:"Original quantity, only support units by COIN not U$: quantity=U$/price"},{name:"stopPrice",type:"float64",required:"no",description:"Trigger price, only required for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp, unit: millisecond"},{name:"clientOrderID",type:"string",required:"no",description:"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderID"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"},{name:"timeInForce",type:"string",required:"no",description:"Time in Force, currently supports PostOnly, GTC, IOC, and FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"side",type:"string",description:"buying and selling direction"},{name:"type",type:"string",description:"order type"},{name:"positionSide",type:"string",description:"position side"},{name:"orderId",type:"int64",description:"Order ID"},{name:"clientOrderID",type:"string",required:"no",description:"Customized order ID for users"}]}]}]},YOB9:function(e,t,n){var i={"./01_post_trade_order.json":"TDl7","./02_post_closeAllPositions.json":"o80Q","./03_post_closeAllPositions.json":"nQs3","./04_delete_trade_order.json":"KJWq","./05_delete_trade_batch_order.json":"w9O3","./06_delete_trade_all_order.json":"KZXS","./07_get_all_openOrders.json":"0FzS","./08_get_trade_order.json":"xd76","./09_get_trade_marginType.json":"/RL+","./10_post_trade_marginType.json":"Fg4Y","./11_get_trade_leverage.json":"EtCx","./12_post_trade_leverage.json":"hkx8","./13_get_trade_forceOrders.json":"tc3t","./14_get_trade_allOrders.json":"K+iN","./15_post_trade_positionMargin.json":"vzun","./16_post_trade_order_test.json":"IS5C","./17_get_trade_allFillOrders.json":"Z792","./18_get_trade_allFillOrders_history.json":"2Oo8"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="YOB9"},YP5V:function(e,t){e.exports=[{type:"hash",text:"查詢合約交易深度"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getMarketDepth"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getMarketDepth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",level:"5"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'},{name:"level",type:"int",required:"否",description:"層數,若為空,則默認返回5層"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"msg",type:"string",description:"錯誤信息描述"},{name:"data",type:"array",description:""}]},{type:"data",key:"response1",data:[{name:"asks",type:"array[depth]",description:"賣方深度"},{name:"bids",type:"array[depth]",description:"買方深度"}]},{type:"depth",key:"response2",data:[{name:"p",type:"float64",description:"price價格"},{name:"v",type:"float64",description:"volume數量"}]}]}]},YYU2:function(e,t){e.exports=[{type:"hash",text:"Query Assets"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/account/balance"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/account/balance",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"recvWindow",type:"int64",required:"no",description:"Timestamp of initiating the request, Unit: milliseconds"},{name:"timestamp",type:"int64",required:"yes",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"balances",type:"Array",description:"Asset list, element fields refer to the following table"}]},{type:"balance",key:"response1",data:[{name:"asset",type:"string",description:"Asset name"},{name:"free",type:"string",description:"Available asset"},{name:"locked",type:"string",description:"Freeze asset"}]}]}]},YdSN:function(e,t){e.exports=[{type:"hash",text:"请求内容"},{type:"normal",text:"所有REST请求都必须包含以下参数:",children:[{type:"normal",text:"API Key作为一个字符串。"},{type:"normal",text:"sign 使用一定算法得出的签名(请参阅签名信息)。"},{type:"normal",text:"timestamp 作为您的请求的时间戳。"},{type:"normal",text:"所有请求都应该含有application/json类型内容,并且是有效的JSON。"}]}]},Ygbz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("5k3C").keys(),r=[],o=i.length-1;o>-1;o--){var s=n("yIQg")(""+i[o]);r=r.concat(s)}var a=r},Yto4:function(e,t){e.exports=[{type:"normal",text:"websocket接口是"},{type:"code",text:"wss://open-api-ws.bingx.com/market"},{type:"normal",text:"订阅账户数据流的stream名称为 /market/"},{type:"code",text:"wss://open-api-ws.bingx.com/market/"},{type:"normal",text:"listenKey 获取方式如下:"},{type:"hash",text:"生成 Listen Key"},{type:"normal",text:"listen key的有效时间为1小时"},{type:"normal",text:"接口",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"code",text:"curl -X POST 'https://open-api.bingx.com/openApi/user/auth/userDataStream' --header \"X-BX-APIKEY:g6ikQYpMiWLecMQ39DUivd4ENem9ygzAim63xUPFhRtCFBUDNLajRoZNiubPemKT\""},{type:"normal",text:"响应",style:{"font-weight":"bold"}},{type:"code",text:'{"listenKey":"a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7"}'},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"POST",payload:{}},params:[{type:"Header",key:"request",data:[{name:"X-BX-APIKEY",type:"string",required:"否",description:"请求的API KEY"}]},{type:"Response",key:"response",data:[{name:"listenKey",type:"string",description:"返回的listenKey"}]}]}]},YtyA:function(e,t){e.exports=[{type:"hash",text:"Funding Rate History"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/fundingRate"},{type:"html",text:"
  • If both startTime and endTime are not sent, return the latest limit data.
  • "},{type:"html",text:"
  • If the amount of data between startTime and endTime is greater than limit, return the data in the case of startTime + limit.
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/fundingRate",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"startTime",type:"int64",required:"no",description:"Start time, unit: millisecond"},{name:"endTime",type:"int64",required:"no",description:"End time, unit: millisecond"},{name:"limit",type:"int32",required:"no",description:"default: 100 maximum: 1000"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"fundingRate",type:"string",description:"funding rate"},{name:"fundingTime",type:"int64",description:"Funding time: milliseconds"}]}]}]},YzmL:function(e,t){e.exports=[{type:"hash",text:"授权子账号内转"},{type:"normal",text:"主账号授权子账号内转权限(限主账号使用)"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/account/v1/innerTransfer/authorizeSubAccount"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/account/v1/innerTransfer/authorizeSubAccount",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,timestamp:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"subUids",type:"string",required:"是",description:"用户uid列表, 逗号分隔"},{name:"transferable",type:"boolean",required:"是",description:"是否允许, true允许 false禁止"}]},{type:"Response",key:"response",data:"data"},{name:"data",type:"boolean",description:"授权是否成功"}]}]},Z0gb:function(e,t,n){var i={".":"2xjp","./":"2xjp","./01_post_trade_order":"vDBD","./01_post_trade_order.json":"vDBD","./02_post_trade_batch_order":"Crrt","./02_post_trade_batch_order.json":"Crrt","./03_post_closeAllPositions":"pKuc","./03_post_closeAllPositions.json":"pKuc","./04_delete_trade_order":"9V8o","./04_delete_trade_order.json":"9V8o","./05_delete_trade_batch_order":"hIfT","./05_delete_trade_batch_order.json":"hIfT","./06_delete_trade_all_order":"Nw8z","./06_delete_trade_all_order.json":"Nw8z","./07_get_all_openOrders":"Ewmn","./07_get_all_openOrders.json":"Ewmn","./08_get_trade_order":"/1k/","./08_get_trade_order.json":"/1k/","./09_get_trade_marginType":"7mzI","./09_get_trade_marginType.json":"7mzI","./10_post_trade_marginType":"WVbz","./10_post_trade_marginType.json":"WVbz","./11_get_trade_leverage":"/Kh3","./11_get_trade_leverage.json":"/Kh3","./12_post_trade_leverage":"ZoHP","./12_post_trade_leverage.json":"ZoHP","./13_get_trade_forceOrders":"9bR8","./13_get_trade_forceOrders.json":"9bR8","./14_get_trade_allOrders":"7bgg","./14_get_trade_allOrders.json":"7bgg","./15_post_trade_positionMargin":"QHIT","./15_post_trade_positionMargin.json":"QHIT","./16_post_trade_order_test":"Hhes","./16_post_trade_order_test.json":"Hhes","./17_get_trade_allFillOrders":"7iFh","./17_get_trade_allFillOrders.json":"7iFh","./18_get_trade_income_export":"TDt4","./18_get_trade_income_export.json":"TDt4","./19_get_trade_user_commissionRate":"x8dX","./19_get_trade_user_commissionRate.json":"x8dX","./20_get_trade_quote_bookTicker":"SGv/","./20_get_trade_quote_bookTicker.json":"SGv/","./index":"2xjp","./index.js":"2xjp"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Z0gb"},Z2yu:function(e,t){e.exports=[{type:"hash",text:"查詢當前委託訂單"},{type:"normal",text:"查詢一段時間週期內賬戶下處於當前委託狀態的訂單詳情。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/pendingOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/pendingOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:""},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"entrustTm",type:"string",description:"訂單委託時間"},{name:"side",type:"string",description:"交易方向(Bid/Ask 買/賣)"},{name:"tradeType",type:"string",description:"委託類型(Market/Limit 市價/限價)"},{name:"action",type:"string",description:"Open/Close 開倉/平倉"},{name:"entrustPrice",type:"float64",description:"委託價格"},{name:"entrustVolume",type:"float64",description:"委託數量"},{name:"avgFilledPrice",type:"float64",description:"成交均價"},{name:"filledVolume",type:"float64",description:"成交數量"},{name:"orderId",type:"string",description:"訂單號"},{name:"profit",type:"float64",description:"盈虧"},{name:"commission",type:"float64",description:"手續費"},{name:"updateTm",type:"string",description:"訂單更新時間"}]}]}]},Z792:function(e,t){e.exports=[{type:"hash",text:"查询止盈止损订单列表"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/pendingStopOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/pendingStopOrders",protocol:"https",method:"POST",payload:{apiKey:"",symbol:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"},{name:"symbol",type:"string",required:"是",description:"合约名称"}]},{type:"Response",key:"response",data:[{name:"userId",type:"string",description:"用户id"},{name:"orderId",type:"string",description:"订单id"},{name:"symbol",type:"string",description:"合约名称"},{name:"positionId",type:"string",description:"仓位id"},{name:"stopLossPrice",type:"float64",description:"止损价格"},{name:"takeProfitPrice",type:"float64",description:"止盈价格"},{name:"entrustVolume",type:"float64",description:"委托数量"},{name:"side",type:"string",description:"交易方向, Bid买入, Ask卖出"},{name:"entrustTm",type:"string",description:"委托时间"}]}]}]},ZZch:function(e,t){e.exports={module:"swap",path:"/swap/introduce",name:"Introduction",content:[{type:"html",text:"Welcome to the BingXAPI. "},{type:"normal",text:"You can use our API to access market data, trading, and account management endpoints of Perpetual Swap. The market data API is publicly accessible and provides market data such as The Latest Trade of a Trading Pair. The account and trading APIs require authentication with an API Key which allows you to place and cancel orders and enquire order status and account info."},{type:"html",text:"USDT-M Perpetual Futures API Reference V2"}]}},Zg2x:function(e,t){e.exports=[{type:"hash",text:"Account balance and position update push"},{type:"normal",text:"The event type of the account update event is fixed as ACCOUNT_UPDATE "},{type:"normal",text:"When the account information changes, this event will be pushed:",children:[{type:"normal",text:"This event will only be pushed when there is a change in account information (including changes in funds, positions, etc.); This event will not be pushed if the change in the order status does not cause changes in the account and positions;"},{type:"normal",text:"position information: push only when there is a change in the symbol position. "}]},{type:"normal",text:'Fund balance changes caused by "FUNDING FEE", only push brief events: ',children:[{type:"normal",text:"When \"FUNDING FEE\" occurs in a user's cross position, the event ACCOUNT_UPDATE will only push the relevant user's asset balance information B (only push the asset balance information related to the occurrence of FUNDING FEE), and will not push any position information P. "},{type:"normal",text:'When "FUNDING FEE" occurs in a user\'s isolated position, the event ACCOUNT_UPDATE will only push the relevant user asset balance information B (only push the asset balance information used by "FUNDING FEE"), and related position information P( Only the position information where this "FUNDING FEE" occurred is pushed), and the rest of the position information will not be pushed. '}]},{type:"normal",text:'The field "m" represents the reason for the launch of the event, including the following possible types: -DEPOSIT',children:[{type:"normal",text:"DEPOSIT"},{type:"normal",text:"WITHDRAW"},{type:"normal",text:"ORDER"},{type:"normal",text:"FUNDING_FEE"}]},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"event type:ACCOUNT_UPDATE"},{name:"E",type:"",description:"event time:1676603102163"},{name:"T",type:"",description:"1676603102163"},{name:"a",type:"obj",description:"account update event"}]},{type:"a",key:"key1",data:[{name:"m",type:"",description:"event launch reason"},{name:"B",type:"",description:"Array: balance information"},{name:"P",type:"",description:"Array: trade info"}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"asset name:USDT"},{name:"wb",type:"",description:"wallet balance:5277.59264687"},{name:"cw",type:"",description:"Wallet balance excluding isolated margin:5233.21709203"},{name:"bc",type:"",description:"wallet balance change amount:0"}]},{type:"P",key:"key3",data:[{name:"s",type:"",description:"trading pair:LINK-USDT"},{name:"pa",type:"",description:"position:108.84300000"},{name:"ep",type:"",description:"entry price:7.25620000"},{name:"up",type:"",description:"unrealized profit and loss of positions:1.42220000"},{name:"mt",type:"",description:"margin mode:isolated"},{name:"iw",type:"",description:"If it is an isolated position, the position margin:23.19081642"},{name:"ps",type:"",description:"position direction:SHORT"}]}]}]},Zi0D:function(e,t,n){var i={".":"UJ2F","./":"UJ2F","./01_balance":"p0H6","./01_balance.json":"p0H6","./index":"UJ2F","./index.js":"UJ2F"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Zi0D"},ZoHP:function(e,t){e.exports=[{type:"hash",text:"調整開倉槓桿"},{type:"normal",text:"調整用戶在指定symbol合約的開倉槓桿。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/leverage"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/leverage",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",side:"",leverage:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"side",type:"string",required:"是",description:"多倉或者空倉的槓桿,LONG表示多倉,SHORT表示空倉"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"leverage",type:"int64",required:"是",description:"槓桿倍數"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"leverage",type:"int64",description:"槓桿倍數"},{name:"symbol",type:"string",description:"交易對"}]}]}]},ZuZg:function(e,t,n){var i={"./01_connect.json":"itMl","./02_data_compress.json":"yOH9","./03_heart_beat.json":"hrCt","./04_subscribe.json":"jYwr","./05_cancel_subscribe.json":"cspZ"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="ZuZg"},ZzgK:function(e,t,n){var i={".":"otUP","./":"otUP","./01_create_listenKey":"8kVO","./01_create_listenKey.json":"8kVO","./02_put_listenKey":"Rtfu","./02_put_listenKey.json":"Rtfu","./03_delete_listenKey":"LvyQ","./03_delete_listenKey.json":"LvyQ","./index":"otUP","./index.js":"otUP"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="ZzgK"},a8qg:function(e,t){e.exports=[{type:"hash",text:"查詢子賬戶現貨資產"},{type:"normal",text:"查詢子賬戶現貨資產"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/subAccount/v1/assets"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/assets",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子賬戶uid"}]},{type:"Response",key:"response",data:[{name:"asset",type:"string",description:"資產名稱"},{name:"free",type:"double",description:"可用額度"},{name:"locked",type:"double",description:"鎖定資產"}]}]}]},"aR+m":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("SRzp").keys(),r=[],o=0;o標准合約"},{name:"SFUTURES_FUND",type:"",description:"標准合約->資金賬戶"},{name:"FUND_PFUTURES",type:"",description:"資金賬戶->永續合約"},{name:"PFUTURES_FUND",type:"",description:"永續合約->資金賬戶"},{name:"SFUTURES_PFUTURES",type:"",description:"標准合約->永續合約"},{name:"PFUTURES_SFUTURES",type:"",description:"永續合約->標准合約"},{name:"FUND_STRADING",type:"",description:"資金賬戶 -> 網格"},{name:"STRADING_FUND",type:"",description:"網格 -> 資金賬戶"},{name:"FUND_CTRADING",type:"",description:"資金賬戶 -> 跟單"},{name:"SFUTURES_CTRADING",type:"",description:"標准合約賬戶 -> 跟單"},{name:"PFUTURES_CTRADING",type:"",description:"永續合約賬戶 -> 跟單"},{name:"CTRADING_FUND",type:"",description:"跟單 -> 資金賬戶"},{name:"CTRADING_SFUTURES",type:"",description:"跟單 -> 標准合約賬戶"},{name:"CTRADING_PFUTURES",type:"",description:"跟單 -> 永續合約賬戶"}]},{type:"Response",key:"response",data:[{name:"total",type:"LONG",description:"总數"},{name:"rows",type:"Array",description:"數據Array"},{name:"asset",type:"string",description:"幣的名稱"},{name:"amount",type:"DECIMAL",description:"幣的金額"},{name:"type",type:"ENUM",description:"劃轉類型"},{name:"status",type:"string",description:"CONFIRMED"},{name:"tranId",type:"LONG",description:"交易ID"},{name:"timestamp",type:"LONG",description:"劃轉的時間戳"}]}]}]},auLt:function(e,t){e.exports=[{type:"hash",text:"請求交互"},{type:"warning",text:"REST訪問的根URL: https://api-swap-rest.bingbon.pro"},{type:"html",text:"所有請求基於Https协议,請求頭信息中Content-Type 需要統一設置為:'application/json’。 "},{type:"html",text:"請求交互說明"},{type:"html",text:"
  • 請求參數:根據接口請求參數規定進行參數封装。
  • "},{type:"html",text:"
  • 提交請求參數:将封装好的請求參數通過POST/GET/DELETE等方式提交至服務器。
  • "},{type:"html",text:"
  • 服務器響應:服務器首先對用戶請求數據進行參數安全校驗,通過校驗後根據業務邏輯将響應數據以JSON格式返回給用戶。
  • "},{type:"html",text:"
  • 數據處理:對服務器響應數據進行處理。
  • "},{type:"html",text:"成功"},{type:"html",text:"
  • HTTP狀態碼200表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。
  • "}]},azxt:function(e,t){e.exports=[{type:"hash",text:"查詢apikey信息"},{type:"normal",text:"查詢apikey信息"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/sub-account/v1/apiKey/query"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/sub-account/v1/apiKey/query",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"uid",type:"long",required:"是",description:"用戶uid"},{name:"apiKey",type:"string",required:"否",description:""}]},{type:"Response",key:"response",data:[{name:"apiKey",type:"string",description:""},{name:"note",type:"string",description:"備註"},{name:"permissions",type:"Array",description:"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,5-提幣"},{name:"ipAddresses",type:"Array",description:"ip白名單"},{name:"createTime",type:"long",description:"創建時間"},{name:"updateTime",type:"long",description:"更新時間"}]}]}]},b9rl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Otrz").keys(),r=[],o=0;o@depth,比如BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100"},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"level",type:"string",required:"是",description:"檔數, 如 5,10,20,50,100"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"dataType",type:"",description:"訂閱的數據類型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送內容"},{name:"asks",type:"",description:"賣方深度"},{name:"bids",type:"",description:"買方深度"},{name:"p",type:"",description:"price價格"},{name:"v",type:"",description:"volume數量"}]},{type:"level",key:"common",data:[{name:"5",type:"",description:"5檔"},{name:"10",type:"",description:"10檔"},{name:"20",type:"",description:"20檔"},{name:"50",type:"",description:"50檔"},{name:"100",type:"",description:"100檔"}]}]}]},bIA2:function(e,t){e.exports=[{type:"hash",text:"请求交互"},{type:"warning",text:"REST访问的根URL: https://open-api.bingx.com"},{type:"html",text:"请求交互说明"},{type:"html",text:"
  • 请求参数:根据接口请求参数规定进行参数封装。
  • "},{type:"html",text:"
  • 提交请求参数:将封装好的请求参数通过POST/GET/DELETE等方式提交至服务器。
  • "},{type:"html",text:"
  • 服务器响应:服务器首先对用户请求数据进行参数安全校验,通过校验后根据业务逻辑将响应数据以JSON格式返回给用户。
  • "},{type:"html",text:"
  • 数据处理:对服务器响应数据进行处理。
  • "},{type:"html",text:"成功"},{type:"html",text:"
  • HTTP状态码200表示成功响应,并可能包含内容。如果响应含有内容,则将显示在相应的返回内容里面。
  • "}]},bMjl:function(e,t,n){var i={".":"Ob2m","./":"Ob2m","./01_post_trade_order":"e3ud","./01_post_trade_order.json":"e3ud","./02_post_closeAllPositions":"rac6","./02_post_closeAllPositions.json":"rac6","./03_post_closeAllPositions":"ovOx","./03_post_closeAllPositions.json":"ovOx","./04_delete_trade_order":"+Jww","./04_delete_trade_order.json":"+Jww","./05_delete_trade_batch_order":"GLwn","./05_delete_trade_batch_order.json":"GLwn","./06_delete_trade_all_order":"vl+M","./06_delete_trade_all_order.json":"vl+M","./07_get_all_openOrders":"mQAj","./07_get_all_openOrders.json":"mQAj","./08_get_trade_order":"50QL","./08_get_trade_order.json":"50QL","./09_get_trade_marginType":"8FLz","./09_get_trade_marginType.json":"8FLz","./10_post_trade_marginType":"Hwtn","./10_post_trade_marginType.json":"Hwtn","./11_get_trade_leverage":"Toje","./11_get_trade_leverage.json":"Toje","./12_post_trade_leverage":"XqXJ","./12_post_trade_leverage.json":"XqXJ","./13_get_trade_forceOrders":"GZ+E","./13_get_trade_forceOrders.json":"GZ+E","./14_get_trade_allOrders":"JRHj","./14_get_trade_allOrders.json":"JRHj","./15_post_trade_positionMargin":"y7gJ","./15_post_trade_positionMargin.json":"y7gJ","./16_post_trade_order_test":"EhS2","./16_post_trade_order_test.json":"EhS2","./17_get_trade_allFillOrders":"GFCe","./17_get_trade_allFillOrders.json":"GFCe","./18_get_trade_allFillOrders_history":"kyJY","./18_get_trade_allFillOrders_history.json":"kyJY","./index":"Ob2m","./index.js":"Ob2m"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="bMjl"},bMv0:function(e,t){e.exports=[{type:"hash",text:"獲取提幣歷史(支持多網絡)"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/capital/withdraw/history"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/capital/withdraw/history",protocol:"https",method:"GET",payload:{coin:"",withdrawOrderId:"",status:0,startTime:1658748648396,endTime:1658748648396,offset:0,limit:1e3,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"否",description:"幣的名稱"},{name:"withdrawOrderId",type:"string",required:"否",description:"自定義ID, 如果沒有則不返回該字段"},{name:"status",type:"int",required:"否",description:"狀態 (0:已發送確認Email, 2:等待確認 3:被拒絕 4:處理中 5:提現交易失敗 6 提現完成)"},{name:"startTime",type:"LONG",required:"否",description:"開始時間 1658748648396"},{name:"endTime",type:"LONG",required:"否",description:"結束時間 1658748648396"},{name:"offset",type:"int",required:"否",description:"偏移 默認0"},{name:"limit",type:"int",required:"否",description:"頁數量大小 默認1000 不能超過1000"},{name:"recvWindow",type:"LONG",required:"否",description:"執行窗口時間,不能大於 60000"},{name:"timestamp",type:"LONG",required:"是",description:"當前時間戳 例如1658748648396"}]},{type:"Response",key:"response",data:[{name:"address",type:"string",description:"地址"},{name:"amount",type:"DECIMAL",description:"提現轉出金額"},{name:"applyTime",type:"Date",description:"充值時間"},{name:"coin",type:"string",description:"幣名稱"},{name:"id",type:"string",description:"該筆提現的id"},{name:"withdrawOrderId",type:"string",description:"自定義ID, 如果沒有則不返回該字段"},{name:"network",type:"string",description:"提現網絡"},{name:"transferType",type:"LONG",description:"交易類型1=提現"},{name:"status",type:"int",description:"狀態 狀態 0-已確認-10-待確認(審核中) 20-已申請區块 30已審核通過 40審核不通過 50已汇出 60充值初步確認(最终確認變為0) 70審核不通過已退回資產"},{name:"transactionFee",type:"string",description:"手續費"},{name:"confirmNo",type:"int",description:"提現確認次數"},{name:"info",type:"string",description:"提幣失敗原因"},{name:"txId",type:"String",description:"提現交易id"}]}]}]},bSWG:function(e,t){e.exports=[{type:"hash",text:"User Universal Transfer"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/get/asset/transfer"},{type:"code",text:"curl --location --request GET 'https://open-api.bingx.com/openApi/api/v3/get/asset/transfer?type=FUND_PFUTURES&asset=USDT&amount=100×tamp=1670215150028&signature=ecc819d72515095039b7b383310f718584af4cf70106b57609bc59473185c9a3'"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/get/asset/transfer",protocol:"https",method:"GET",payload:{type:"FUND_SFUTURES",asset:"USDT",amount:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"type",type:"ENUM",required:"yes",description:"transfer tpye"},{name:"asset",type:"string",required:"yes",description:"coin name e.g. USDT"},{name:"amount",type:"DECIMAL",required:"yes",description:"amount"},{name:"recvWindow",type:"LONG",required:"no",description:"Execution window time, cannot be greater than 60000"},{name:"timestamp",type:"LONG",required:"yes",description:"current timestamp e.g. 1658748648396"}]},{type:"type",key:"key1",data:[{name:"FUND_SFUTURES",type:"",description:"Funding Account->Standard Contract"},{name:"SFUTURES_FUND",type:"",description:"Standard Contract->Funding Account"},{name:"FUND_PFUTURES",type:"",description:"Funding Account->Perpetual Futures"},{name:"PFUTURES_FUND",type:"",description:"Perpetual Futures->Funding Account"},{name:"SFUTURES_PFUTURES",type:"",description:"Standard Contract->Perpetual Futures"},{name:"PFUTURES_SFUTURES",type:"",description:"Perpetual Futures->Standard Contract"}]},{type:"Response",key:"response",data:[{name:"tranId",type:"LONG",description:"Transaction ID"}]}]}]},bShK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Gfsl").keys(),r=[],o=0;oBingX
    网站【用户中心】-【API管理】创建一个API key。 创建key后,您将获得2个必须记住的信息: API key和Secret key."},{type:"normal",text:"设置API key的同时,为了安全,建议设置IP访问白名单."},{type:"normal",text:"永远不要把你的API key/Secret key告诉给任何人."}]},{type:"warning",text:"如果不小心泄露了API key,请立刻删除此API key, 并可以另外生产新的API key."}]},bZVt:function(e,t){e.exports=[{type:"hash",text:"訂閱賬戶餘額推送"},{type:"normal",text:"訂閱類型"},{type:"code",text:"dataType 為 ACCOUNT_UPDATE"},{type:"normal",text:"訂閱例子"},{type:"code",text:'{"id":"gdfg2311-d0f6-4a70-8d5a-043e4c741b40","dataType":"ACCOUNT_UPDATE"}'},{type:"normal",text:'字段"m"代表了事件推出的原因,包含了以下可能類型:'},{type:"html",text:"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    "},{type:"html",text:"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • "},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件類型"},{name:"E",type:"",description:"事件時間"},{name:"T",type:"",description:"撮合時間"},{name:"a",type:"",description:"資產名稱"}]},{type:"a",key:"key1",data:[{name:"B",type:"",description:"Array[]"},{name:"m",type:"",description:"事件推出原因 "}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"資產名稱"},{name:"bc",type:"",description:"除去盈虧與交易手續費以外的钱包餘額改變量"},{name:"cw",type:"",description:"資產名稱"},{name:"wb",type:"",description:"钱包餘額"}]}]}]},baSA:function(e,t){e.exports=[{type:"hash",text:"查詢合約未平倉數量"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getOpenPositions"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getOpenPositions",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"volume",type:"float64",description:"持倉數量"},{name:"unit",type:"string",description:"持倉數量對應的單位,CONT(張), BTC, ETH, LINK, BCH等等"}]}]}]},bfDi:function(e,t){e.exports=[{type:"hash",text:"查詢委託訂單列表"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/openOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/openOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"recvWindow",type:"float64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求時間戳, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"orders",type:"Array",description:"訂單列表,最大長度為2000, 訂單字段參考下表"}]},{type:"order",key:"response1",data:[{name:"symbol",type:"string",description:"交易品種"},{name:"orderId",type:"int64",description:"訂單號"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"下單數量"},{name:"executedQty",type:"string",description:"成交數量"},{name:"cummulativeQuoteQty",type:"string",description:"成交額"},{name:"status",type:"string",description:"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗"},{name:"type",type:"string",description:"訂單類型, MARKET市價 LIMIT限價"},{name:"side",type:"string",description:"交易類型, BUY買 SELL賣"},{name:"time",type:"int64",description:"下單時間戳"},{name:"updateTime",type:"int64",description:"更新時間戳"},{name:"origQuoteOrderQty",type:"string",description:"下單金額"}]}]}]},btx7:function(e,t,n){var i={"./01_post_trade_order.json":"YLkf","./02_post_trade_batch_order.json":"/bqr","./03_post_closeAllPositions.json":"jBL/","./04_delete_trade_order.json":"nf3C","./05_delete_trade_batch_order.json":"siG2","./06_delete_trade_all_order.json":"/Fs7","./07_get_all_openOrders.json":"jxdV","./08_get_trade_order.json":"1xud","./09_get_trade_marginType.json":"Qa4f","./10_post_trade_marginType.json":"WCFx","./11_get_trade_leverage.json":"Nux4","./12_post_trade_leverage.json":"j3Xb","./13_get_trade_forceOrders.json":"fUN5","./14_get_trade_allOrders.json":"iu9b","./15_post_trade_positionMargin.json":"i3k4","./16_post_trade_order_test.json":"l8OL","./17_get_trade_allFillOrders.json":"1A8u","./18_get_trade_income_export.json":"JOGY","./19_get_trade_user_commissionRate.json":"2Faq","./20_get_trade_quote_bookTicker.json":"Oo3B"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="btx7"},cId4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("kTL7").keys(),r=[],o=0;o@trade,比如BTC-USDT@trade ETH-USDT@trade"},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"dataType",type:"",description:"訂閱的數據類型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送內容"},{name:"T",type:"",description:"成交時間"},{name:"s",type:"",description:"交易對"},{name:"m",type:"",description:"買方是否是做市方。如true,則此次成交是一個主動賣出單,否則是一個主動買入單。"},{name:"p",type:"",description:"price價格"},{name:"v",type:"",description:"volume數量"}]}]}]},ceUr:function(e,t){e.exports=[{type:"hash",text:"近期成交"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/trades"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/trades",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:500}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"limit",type:"int",required:"否",description:"默认:500,最大1000"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"成交时间"},{name:"isBuyerMaker",type:"bool",description:"买方是否为挂单方(true / false)"},{name:"price",type:"string",description:"成交价格"},{name:"qty",type:"string",description:"成交数量"},{name:"quoteQty",type:"string",description:"成交额"}]}]}]},clol:function(e,t){e.exports=[{type:"hash",text:"獲取賬戶損益資金流水"},{type:"normal",text:"查詢當前賬戶下永續合約的資金流水。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/income"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"html",text:"
  • 如果startTime 和 endTime 均未發送, 只會返回最近7天的數據。
  • "},{type:"html",text:"
  • 如果incomeType沒有發送,返回所有類型賬戶損益資金流水。
  • "},{type:"html",text:"
  • 僅保留最近3個月的數據。
  • "},{type:"demo",api:{uri:"/openApi/swap/v2/user/income",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",incomeType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"incomeType",type:"string",required:"否",description:"收益類型,見上方說明"},{name:"startTime",type:"int64",required:"否",description:"開始時間"},{name:"endTime",type:"int64",required:"否",description:"結束時間"},{name:"limit",type:"int64",required:"否",description:"返回的結果集數量 默認值:100 最大值:1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"incomeType",type:"string",description:"資金流類型"},{name:"income",type:"string",description:"資金流數量,正數代表流入,負數代表流出"},{name:"asset",type:"string",description:"資產內容"},{name:"info",type:"string",description:"備註信息,取决於流水類型"},{name:"time",type:"int64",description:"時間,單位:毫秒"},{name:"tranId",type:"string",description:"劃轉id"},{name:"tradeId",type:"string",description:"引起流水產生的原始交易ID"}]},{type:"incomeType",key:"common",data:[{name:"TRANSFER",type:"",description:"轉賬"},{name:"REALIZED_PNL",type:"",description:"已實現盈虧"},{name:"FUNDING_FEE",type:"",description:"資金費用"},{name:"TRADING_FEE",type:"",description:"手續費"},{name:"INSURANCE_CLEAR",type:"",description:"強平"},{name:"TRIAL_FUND",type:"",description:"體驗金"},{name:"ADL",type:"",description:"自動減倉"},{name:"SYSTEM_DEDUCTION",type:"",description:"系統扣除"}]}]}]},cspZ:function(e,t){e.exports=[{type:"hash",text:"取消訂閱"},{type:"normal",text:"取消訂閱的格式如下:"},{type:"code",text:'{ "id": "id1", "reqType": "unsub", "dataType": "data to unsub"}'},{type:"normal",text:"取消訂閱成功確認:"},{type:"code",text:'{ "id": "id1", "code": 0, "msg": "" }'},{type:"html",text:"

    symbol說明

    "},{type:"warning",text:"symbol必須全大寫"}]},dEdI:function(e,t){e.exports=[{type:"hash",text:"查詢資金費率歷史"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/fundingRate"},{type:"html",text:"
  • 如果 startTime 和 endTime 都未發送, 返回最近 limit 條數據.
  • "},{type:"html",text:"
  • 如果 startTime 和 endTime 之間的數據量大於 limit, 返回 startTime + limit情况下的數據。
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/fundingRate",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"startTime",type:"int64",required:"否",description:"起始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int32",required:"否",description:"默認值:100 最大值:1000"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"fundingRate",type:"string",description:"資金費率"},{name:"fundingTime",type:"int64",description:"資金費時間:單位毫秒"}]}]}]},dJsD:function(e,t,n){var i={"./01_dept_info.json":"I7QH","./02_latest_records.json":"fkpZ","./03_kline_data.json":"I7+s"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="dJsD"},dLDu:function(e,t){e.exports=[{type:"hash",text:"查询开仓杠杆"},{type:"normal",text:"查询用户在指定symbol合约的开仓杠杆。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/leverage"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/leverage",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"longLeverage",type:"int64",description:"多仓杠杆倍数"},{name:"shortLeverage",type:"int64",description:"空仓杠杆倍数"}]}]}]},db2W:function(e,t){e.exports=[{type:"hash",text:"交易下单"},{type:"normal",text:"当前账户在指定symbol合约上进行下单操作。(支持限价单、市价单、计划委托市价单、计划委托限价单、仓位止盈止损单、针对仓位平仓)"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/order"},{type:"warning",text:"基于订单 type 不同,强制要求某些参数:"},{type:"html",text:"
  • LIMIT: 强制要求参数 quantity, price
  • "},{type:"html",text:"
  • MARKET: 强制要求参数 quantity
  • "},{type:"html",text:"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 强制要求参数 quantity、stopPrice、price
  • "},{type:"html",text:"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 强制要求参数 quantity、stopPrice
  • "},{type:"html",text:"

    1. 开/平仓: 如何使用同一个接口 开仓(多/空),平仓(多/空)?请参考如下request payload组合:

    "},{type:"html",text:"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    "},{type:"html",text:'

    {"symbol": "ETH-USDT","side": "BUY","positionSide": "LONG", "type": "MARKET", "quantity": 5}

    '},{type:"html",text:"

    2. 设置止盈止损:本接口也可用于设置止盈止损,但需要先开仓; 当前止盈止损价格只支持默认的标记价格,暂不支持最新和指数价格选项

    "},{type:"html",text:'

    {"symbol": "ETH-USDT","side": "BUY","positionSide": "LONG", "type": "TAKE_PROFIT_MARKET", "quantity": 3, "stopPrice": 31968.0}

    '},{type:"warning",text:"条件单的触发必须:"},{type:"html",text:"

    STOP/STOP_MARKET 止损单:

    "},{type:"html",text:"
  • 已挂止损单累加数量不能大于持仓数量
  • "},{type:"html",text:"
  • 买入: 标记价格高于等于触发价stopPrice
  • "},{type:"html",text:"
  • 卖出: 标记价格低于等于触发价stopPrice
  • "},{type:"html",text:"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈单:

    "},{type:"html",text:"
  • 已挂止盈单累加数量不能大于持仓数量
  • "},{type:"html",text:"
  • 买入: 标记价格低于等于触发价stopPrice
  • "},{type:"html",text:"
  • 卖出: 标记价格高于等于触发价stopPrice
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"type",type:"string",required:"是",description:"订单类型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"买卖方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG"},{name:"price",type:"float64",required:"否",description:"委托价格"},{name:"quantity",type:"float64",required:"否",description:"下单数量,合约数量,当前只支持以币计的合约数,暂不支持输入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,TRIGGER_LIMIT,TRIGGER_MARKET, STOP, TAKE_PROFIT 需要此参数"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"orderId",type:"int64",description:"订单号"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},"dcc+":function(e,t){e.exports=[{type:"hash",text:"查詢歷史訂單列表"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/historyOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"normal",text:"註意",children:[{type:"normal",text:"如設置 orderId , 訂單将 >= orderId。否則将返回最新訂單。"},{type:"normal",text:"如果設置 startTime 和 endTime, orderId 就不需要設置。"}]},{type:"demo",api:{uri:"/openApi/spot/v1/trade/historyOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,startTime:0,endTime:0,pageIndex:0,pageSize:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"orderId",type:"int64",required:"否",description:""},{name:"startTime",type:"int64",required:"否",description:"開始時間戳, 單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間戳, 單位:毫秒"},{name:"pageIndex",type:"int64",required:"是",description:"分頁頁碼,必須大於0"},{name:"pageSize",type:"int64",required:"是",description:"分頁數量,必須大於0,最大值為100"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求時間戳, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"orders",type:"Array",description:"訂單列表,最大長度為2000, 訂單字段參考下表"}]},{type:"order",key:"response1",data:[{name:"symbol",type:"string",description:"交易品種"},{name:"orderId",type:"int64",description:"訂單號"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"下單數量"},{name:"executedQty",type:"string",description:"成交數量"},{name:"cummulativeQuoteQty",type:"string",description:"成交額"},{name:"status",type:"string",description:"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗"},{name:"type",type:"string",description:"訂單類型, MARKET市價 LIMIT限價"},{name:"side",type:"string",description:"交易類型, BUY買 SELL賣"},{name:"time",type:"int64",description:"下單時間戳"},{name:"updateTime",type:"int64",description:"更新時間戳"},{name:"origQuoteOrderQty",type:"string",description:"下單金額"}]}]}]},dsQw:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='package main\n\nimport (\n\t"bytes"\n\t"compress/gzip"\n\t"fmt"\n\t"io/ioutil"\n\t"log"\n\t"net/http"\n\t"time"\n\n\t"github.com/gorilla/websocket"\n)\n\nconst (\n\tpath = "wss://open-api-ws.bingx.com/market" // \n\tchannel = "{"id": "test", "reqType": "sub", "dataType": "BTC-USDT@depth"}" // \n)\n\nvar receivedMessage string\nvar conn *websocket.Conn\n\nfunc main() {\n\tinterrupt := make(chan struct{})\n\n\theader := http.Header{}\n\theader.Add("Accept-Encoding", "gzip")\n\n\tconn, _, err := websocket.DefaultDialer.Dial(path, header)\n\tif err != nil {\n\t\tlog.Fatal("WebSocket connection error:", err)\n\t}\n\tdefer conn.Close()\n\n\terr = conn.WriteMessage(websocket.TextMessage, []byte(channel))\n\tif err != nil {\n\t\tlog.Fatal("WebSocket write error:", err)\n\t}\n\n\tgo func() {\n\t\tfor {\n\t\t\tmessageType, message, err := conn.ReadMessage()\n\t\t\tif err != nil {\n\t\t\t\tlog.Println("WebSocket read error:", err)\n\t\t\t\tclose(interrupt)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\thandleMessage(messageType, message)\n\t\t}\n\t}()\n\n\tgo func() {\n\t\tticker := time.NewTicker(5 * time.Second)\n\t\tdefer ticker.Stop()\n\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase <-ticker.C:\n\t\t\t\terr := conn.WriteMessage(websocket.TextMessage, []byte("Ping"))\n\t\t\t\tif err != nil {\n\t\t\t\t\tlog.Println("WebSocket write error:", err)\n\t\t\t\t}\n\t\t\tcase <-interrupt:\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t}()\n\n\t<-interrupt\n}\n\nfunc handleMessage(messageType int, message []byte) {\n\tif messageType == websocket.TextMessage {\n\t\t// \n\t\tfmt.Println(string(message))\n\t} else if messageType == websocket.BinaryMessage {\n\t\t// \n\t\tdecodedMsg, err := decodeGzip(message)\n\t\tif err != nil {\n\t\t\tlog.Println("WebSocket decode error:", err)\n\t\t\treturn\n\t\t}\n\t\tfmt.Println(decodedMsg)\n\t\tif decodedMsg == "Ping" {\n\t\t\terr = conn.WriteMessage(websocket.TextMessage, []byte("Pong"))\n\t\t\tif err != nil {\n\t\t\t\tlog.Println("WebSocket write error:", err)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tfmt.Println("Pong")\n\t\t}\n\t\treceivedMessage = decodedMsg\n\t}\n}\n\nfunc decodeGzip(data []byte) (string, error) {\n\treader, err := gzip.NewReader(bytes.NewReader(data))\n\tif err != nil {\n\t\treturn "", err\n\t}\n\tdefer reader.Close()\n\n\tdecodedMsg, err := ioutil.ReadAll(reader)\n\tif err != nil {\n\t\treturn "", err\n\t}\n\n\treturn string(decodedMsg), nil\n}'},"e+0O":function(e,t){e.exports=[{type:"hash",text:"Get Market Depth"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/depth"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/depth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:20}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:"Trading pair, for example: BTC-USDT, please use capital letters"},{name:"limit",type:"int",required:"no",description:"Default 20, optional value:[5, 10, 20, 50, 100, 500, 1000]"}]},{type:"Response",key:"response",data:[{name:"T",type:"int64",description:"System time, unit: millisecond"},{name:"asks",type:"array",description:"depth of asks. first element price, second element quantity"},{name:"bids",type:"array",description:"Buyer depth. first element price, second element quantity"}]}]}]},e3ud:function(e,t){e.exports=[{type:"hash",text:"Place a New Order"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/trade"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/trade",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",apiKey:"",side:"",entrustPrice:0,entrustVolume:0,tradeType:"",action:"",takerProfitPrice:0,stopLossPrice:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"side",type:"string",required:"yes",description:"(Bid/Ask)"},{name:"entrustPrice",type:"float64",required:"yes",description:"price"},{name:"entrustVolume",type:"float64",required:"yes",description:"quantity"},{name:"tradeType",type:"string",required:"yes",description:"Market/Limit"},{name:"action",type:"string",required:"yes",description:"Open/Close"},{name:"takerProfitPrice",type:"float64",required:"no",description:"Take Profit Price"},{name:"stopLossPrice",type:"float64",required:"no",description:"Stop Loss Price"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"order ID"}]}]}]},e5CW:function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"e",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"f",function(){return p});var i="swap",r="swapV2",o="spot",s="standard",a="common",p=[i,r,o,s,a]},eSSt:function(e,t){e.exports=[{type:"hash",text:"Create sub account apikey"},{type:"normal",text:"Create sub account apikey"},{type:"normal",text:"HTTP request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/create"},{type:"normal",text:"Interface parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"yes",description:"Sub account uid"},{name:"note",type:"string",required:"yes",description:"notes"},{name:"permissions",type:"Array",required:"yes",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",required:"no",description:"IP whitelist"}]},{type:"Response",key:"response",data:[{name:"apiKey",type:"string",description:"apiKey"},{name:"apiSecret",type:"string",description:"apiSecret"},{name:"permissions",type:"Array",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",description:"IP whitelist"},{name:"note",type:"string",description:"notes"}]}]}]},eT6P:function(e,t){e.exports=[{type:"hash",text:"Get Latest Price of a Trading Pair"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getLatestPrice"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getLatestPrice",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"tradePrice",type:"float64",description:"transaction price"},{name:"indexPrice",type:"float64",description:"index price"},{name:"fairPrice",type:"float64",description:"Mark Price"}]}]}]},eXbW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/NavHeader/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"nav-header\"},[_c('img',{staticClass:\"logo\",attrs:{\"src\":require(\"../../../static/logo.svg\"),\"alt\":\"BingX API Docs\"}}),_vm._v(\" \"),_c('el-menu',{staticClass:\"nav-header-menu\",attrs:{\"mode\":\"horizontal\",\"router\":\"\",\"text-color\":\"#999999\",\"active-text-color\":\"#292929\",\"default-active\":_vm.defaultActive}},_vm._l((_vm.menus),function(item){return _c('el-menu-item',{key:item.name,attrs:{\"index\":item.path}},[_vm._v(\"\\n \"+_vm._s(item.label)+\"\\n \")])}),1),_vm._v(\" \"),_c('el-select',{staticClass:\"nav-header-search\",attrs:{\"multiple\":false,\"loading\":_vm.loading,\"remote-method\":_vm.debounceQuery,\"filterable\":\"\",\"remote\":\"\",\"no-data-text\":\"No Data\",\"no-match-text\":\"No Data\",\"loading-text\":\"Loading...\",\"placeholder\":_vm.placeholders[_vm.lang],\"icon\":\"el-icon-search\",\"popper-class\":\"search-results\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('template',{slot:\"prefix\"},[_c('i',{staticClass:\"el-icon-search\"})]),_vm._v(\" \"),_vm._l((_vm.options),function(group){return _c('el-option-group',{key:group.label,attrs:{\"label\":group.label}},_vm._l((group.options),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.label,\"value\":item.value}})}),1)})],2),_vm._v(\" \"),_c('el-dropdown',{staticClass:\"nav-header-lang\",attrs:{\"trigger\":\"click\"}},[_c('span',{staticStyle:{\"cursor\":\"pointer\"}},[_vm._v(\"\\n \"+_vm._s(_vm.langLabel)+\" \"),_c('i',{staticClass:\"el-icon-arrow-down\"})]),_vm._v(\" \"),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},_vm._l((_vm.langs),function(item){return _c('el-dropdown-item',{key:item.value,nativeOn:{\"click\":function($event){return _vm.handleChangeLang(item.value)}}},[_vm._v(\"\\n \"+_vm._s(item.label)+\"\\n \")])}),1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-3b9fa63e\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/NavHeader/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-3b9fa63e\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-3b9fa63e\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-3b9fa63e\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/NavHeader/index.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n// WEBPACK FOOTER //\n// src/Main.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"height\":\"100%\"}},[_c('NavHeader',{attrs:{\"lang\":_vm.currentLang}}),_vm._v(\" \"),_c('router-view',{attrs:{\"lang\":_vm.currentLang}})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-59cd90e0\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/Main.vue\n// module id = null\n// module chunks = ","var normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./Main.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./Main.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-59cd90e0\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./Main.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/Main.vue\n// module id = null\n// module chunks = ","import Vue from 'vue'\nimport Router from 'vue-router'\nimport axios from 'axios'\nimport VueScrollTo from 'vue-scrollto'\nimport VueClipboard from 'vue-clipboard2'\n\nimport hljs from 'highlight.js/lib/core'\nimport 'highlight.js/styles/atom-one-dark.css'\nimport javascript from 'highlight.js/lib/languages/javascript'\nimport json from 'highlight.js/lib/languages/json'\nimport go from 'highlight.js/lib/languages/go'\nimport shell from 'highlight.js/lib/languages/shell'\nimport java from 'highlight.js/lib/languages/java'\nimport python from 'highlight.js/lib/languages/python'\nimport csharp from 'highlight.js/lib/languages/csharp'\n// import no from 'highlight.js/lib/languages/javascript'\nimport php from 'highlight.js/lib/languages/php'\nimport html from 'highlight.js/lib/languages/vbscript-html'\n\nimport Element from 'element-ui'\nimport 'element-ui/lib/theme-chalk/index.css'\n\nimport store from './store'\nimport routes from './router'\nimport Main from './Main.vue'\nimport { CODE_LANG_KEY } from './utils'\n\nhljs.registerLanguage(CODE_LANG_KEY.js, javascript)\nhljs.registerLanguage('json', json)\nhljs.registerLanguage(CODE_LANG_KEY.go, go)\nhljs.registerLanguage(CODE_LANG_KEY.shell, shell)\nhljs.registerLanguage(CODE_LANG_KEY.java, java)\nhljs.registerLanguage(CODE_LANG_KEY.python, python)\nhljs.registerLanguage(CODE_LANG_KEY.csharp, csharp)\nhljs.registerLanguage(CODE_LANG_KEY.php, php)\nhljs.registerLanguage(CODE_LANG_KEY.html, html)\nhljs.registerLanguage(CODE_LANG_KEY.nodejs, javascript)\n\nVue.use(VueScrollTo, {\n container: \"#scroll-container\",\n duration: 500,\n easing: \"ease\",\n offset: 0,\n force: true,\n})\nVue.use(Element)\nVue.use(VueClipboard)\nVue.use(Router)\n\nVue.prototype.$axios = axios\nVue.config.productionTip = false\nVue.prototype.$hljs = hljs\n\nconst router = new Router({\n\tmode: 'hash',\n routes: routes,\n})\n\nrouter.beforeEach((to, from, next) => {\n if(to.meta && to.meta.title) {\n document.title = `${to.meta.title} | BingX API Docs`\n }\n next()\n})\n\nnew Vue({\n el: '#app',\n router,\n store,\n render: h => h(Main),\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询K线最新数据\"},{\"type\":\"normal\",\"text\":\"查询最新成交价格的K线最新数据。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestKline\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestKline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k线类型,参考字段说明,如分钟,小时,周等\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1m一分钟K线\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3m三分钟K线\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"5m五分钟K线\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15m十五分钟K线\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30m三十分钟K线\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1h一小时K线\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2h两小时K线\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4h四小时K线\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6h六小时K线\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12h十二小时K线\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1D日K线\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W周K线\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1M月K线\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"开盘价\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盘价\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高价\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低价\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易数量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"k线时间戳,单位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/07_get_quote_ klines.json\n// module id = NO1N\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询合约未平仓数量\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getOpenPositions\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getOpenPositions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"持仓数量\"},{\"name\":\"unit\",\"type\":\"string\",\"description\":\"持仓数量对应的单位,CONT(张), BTC, ETH, LINK, BCH等等\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/10_get_quote_openInterest.json\n// module id = NpYN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Leverage\"},{\"type\":\"normal\",\"text\":\"Query the opening leverage of the user in the specified symbol contract.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"Long position leverage\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"Short Leverage\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/11_get_trade_leverage.json\n// module id = Nux4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷全部訂單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的全部訂單進行撤銷操作\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/allOpenOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOpenOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"撤銷成功的訂單列表\"},{\"name\":\"failed\",\"type\":\"結构數組\",\"description\":\"撤銷失敗的訂單列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"錯誤信息提示\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"訂單時間,單位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委託數量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交價\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/06_delete_trade_all_order.json\n// module id = Nw8z\n// module chunks = 3","var map = {\n\t\".\": \"NoWp\",\n\t\"./\": \"NoWp\",\n\t\"./01_get_user_balance\": \"DLRo\",\n\t\"./01_get_user_balance.json\": \"DLRo\",\n\t\"./02_get_user_positions\": \"Knhz\",\n\t\"./02_get_user_positions.json\": \"Knhz\",\n\t\"./03_get_user_income\": \"s67u\",\n\t\"./03_get_user_income.json\": \"s67u\",\n\t\"./index\": \"NoWp\",\n\t\"./index.js\": \"NoWp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"O/kc\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/account ^.*$\n// module id = O/kc\n// module chunks = 3","var map = {\n\t\".\": \"MRTk\",\n\t\"./\": \"MRTk\",\n\t\"./01_dept_info\": \"PNFl\",\n\t\"./01_dept_info.json\": \"PNFl\",\n\t\"./02_latest_records\": \"vXfi\",\n\t\"./02_latest_records.json\": \"vXfi\",\n\t\"./03_kline_data\": \"H59N\",\n\t\"./03_kline_data.json\": \"H59N\",\n\t\"./index\": \"MRTk\",\n\t\"./index.js\": \"MRTk\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"O2+o\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/market ^.*$\n// module id = O2+o\n// module chunks = 3","var map = {\n\t\".\": \"+hJF\",\n\t\"./\": \"+hJF\",\n\t\"./01_connect\": \"uUP9\",\n\t\"./01_connect.json\": \"uUP9\",\n\t\"./02_data_compress\": \"ku8a\",\n\t\"./02_data_compress.json\": \"ku8a\",\n\t\"./03_heart_beat\": \"QDPd\",\n\t\"./03_heart_beat.json\": \"QDPd\",\n\t\"./04_subscribe\": \"f4mz\",\n\t\"./04_subscribe.json\": \"f4mz\",\n\t\"./05_cancel_subscribe\": \"IhWV\",\n\t\"./05_cancel_subscribe.json\": \"IhWV\",\n\t\"./index\": \"+hJF\",\n\t\"./index.js\": \"+hJF\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"O2Id\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce ^.*$\n// module id = O2Id\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/basic/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询子账户现货资产\"},{\"type\":\"normal\",\"text\":\"查询子账户现货资产\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/assets\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子账户uid\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"资产名称\"},{\"name\":\"free\",\"type\":\"double\",\"description\":\"可用额度\"},{\"name\":\"locked\",\"type\":\"double\",\"description\":\"锁定资产\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/04_get_sub_account_spot_balance.json\n// module id = OVDJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Deposit History(supporting network)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"coin name\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"status(0:pending,6: credited but cannot withdraw, 1:success)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Starting time1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"End Time 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"no\",\"description\":\"offset default0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size default 1000 cannot exceed 1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Execution window time, cannot be greater than 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp 1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"Recharge amount\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"coin name\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"recharge network\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"Status Status 0-Confirmed-10-To be confirmed (under review) 20-Applied for block 30-Approved and passed 40-Approval failed 50-Exported 60-Preliminary confirmation of recharge (final confirmation becomes 0) 70-Approved failed and returned assets\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"recharge address\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"Remark\"},{\"name\":\"txId\",\"type\":\"LONG\",\"description\":\"transaction id\"},{\"name\":\"insertTime\",\"type\":\"LONG\",\"description\":\"transaction hour\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"Transaction Type 0 = Recharge\"},{\"name\":\"unlockConfirm\",\"type\":\"LONG\",\"description\":\"confirm times for unlocking\"},{\"name\":\"confirmTimes\",\"type\":\"LONG\",\"description\":\"Network confirmation times\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/03_get_deposit_hisrec.json\n// module id = OW9C\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"簽名說明\"},{\"type\":\"normal\",\"text\":\"sign 是對http method,url path,請求參數等按字符串連接之後使用 HMAC SHA256 方法加密而得到的。\",\"children\":[{\"type\":\"normal\",\"text\":\"path 為URL的請求路徑,例如: /api/v1/user/getBalance\"},{\"type\":\"normal\",\"text\":\"method 是請求方法(POST/GET/PUT/DELETE),字母全部大寫。\"},{\"type\":\"normal\",\"text\":\"參數是對 所有參數(含timestamp)按照字典排序之後,按照key1=value1 + key2=value2 ... + Secret Key 字符串(+表示字符串連接)。\"}]},{\"type\":\"html\",\"text\":\"originString = method + path + params sign = HmacSHA256(originString)\"},{\"type\":\"html\",\"text\":\"

    例如:對於如下的請求參數進行簽名

    \"},{\"type\":\"code\",\"text\":\"curl \\\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance\\\"\"},{\"type\":\"html\",\"text\":\"

    通過POST方式獲取獲取用戶某資產餘額信息,以

    \"},{\"type\":\"html\",\"text\":\"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    \"},{\"type\":\"html\",\"text\":\"為例\"},{\"type\":\"html\",\"text\":\"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    \"},{\"type\":\"html\",\"text\":\"請求參數按字典排序之後,為 \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    \"},{\"type\":\"html\",\"text\":\"mothod為POST,path為/api/v1/user/getBalance,生成待簽名的參數字符串如下:\"},{\"type\":\"code\",\"text\":\"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"按算法生成待簽名的字符串\"},{\"type\":\"code\",\"text\":\"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"然後,将待簽名字符串添加私鑰參數生成最终待簽名字符串。例如:\"},{\"type\":\"html\",\"text\":\"

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256(\\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\", \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\")

    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\" | openssl dgst -sha256 -hmac \\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\" -binary | base64 | xargs python2.7 -c 'import sys, urllib;print(urllib.quote(sys.argv[1]))' \"},{\"type\":\"html\",\"text\":\"Signature的結果為S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D,則簽名之後的url query參數為 \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    \"},{\"type\":\"html\",\"text\":\"即最终發送給服務器的API請求應該為:\"},{\"type\":\"code\",\"text\":\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/authentication/04_sign_discription.json\n// module id = OWlA\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swap/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Current optimal listing\"},{\"type\":\"normal\",\"text\":\"Obtain the current optimal order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/bookTicker\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"bid_price\",\"type\":\"float64\",\"description\":\"Optimal purchase price\"},{\"name\":\"bid_qty\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"ask_price\",\"type\":\"float64\",\"description\":\"Best selling price\"},{\"name\":\"ask_qty\",\"type\":\"float64\",\"description\":\"Order quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/20_get_trade_quote_bookTicker.json\n// module id = Oo3B\n// module chunks = 3","var map = {\n\t\"./01_create_sub_accuont.json\": \"Kq29\",\n\t\"./02_post_fetch_uid.json\": \"MZqr\",\n\t\"./03_post_fetch_sub_account_list.json\": \"pZuE\",\n\t\"./04_get_sub_account_spot_balance.json\": \"a8qg\",\n\t\"./05_create_sub_accuont_key.json\": \"sYD+\",\n\t\"./06_get_api_key_info.json\": \"azxt\",\n\t\"./07_post_edit_apikey.json\": \"o4h9\",\n\t\"./08_delete_sub_account_key.json\": \"lRf0\",\n\t\"./09_update_sub_account_status.json\": \"K/yH\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"JAIK\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"zbJw\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Otrz\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount \\.json$\n// module id = Otrz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询账户uid\"},{\"type\":\"normal\",\"text\":\"查询账户uid\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/account/v1/uid\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"用户uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/02_post_fetch_uid.json\n// module id = Ou1A\n// module chunks = 3","var map = {\n\t\".\": \"K9aK\",\n\t\"./\": \"K9aK\",\n\t\"./01_listenKey\": \"o5vU\",\n\t\"./01_listenKey.json\": \"o5vU\",\n\t\"./02_balance\": \"1n2Z\",\n\t\"./02_balance.json\": \"1n2Z\",\n\t\"./03_order\": \"79KP\",\n\t\"./03_order.json\": \"79KP\",\n\t\"./04_setting\": \"tdzN\",\n\t\"./04_setting.json\": \"tdzN\",\n\t\"./index\": \"K9aK\",\n\t\"./index.js\": \"K9aK\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"P/Hf\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/account ^.*$\n// module id = P/Hf\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/api/authentication/index.js","var map = {\n\t\"./01_get_quote_contracts.json\": \"SYVa\",\n\t\"./02_get_quote_price.json\": \"eT6P\",\n\t\"./03_get_quote_depth.json\": \"55v+\",\n\t\"./04_get_quote_ trades.json\": \"w+Dc\",\n\t\"./05_get_quote_ premiumIndex.json\": \"qG6H\",\n\t\"./06_get_quote_ fundingRate.json\": \"2iez\",\n\t\"./07_get_quote_ klines.json\": \"vZVR\",\n\t\"./08_get_quote_ klines_history.json\": \"JZdI\",\n\t\"./09_get_quote_ ticker.json\": \"4AkN\",\n\t\"./10_get_quote_openInterest.json\": \"vVjE\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"PBI8\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market \\.json$\n// module id = PBI8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"獲取充值歷史(支持多網絡)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣的名稱\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"狀態(0:pending,6: credited but cannot withdraw, 1:success)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"開始時間 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"結束時間 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默認0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"頁數量大小 默認1000 不能超過1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"充值金額\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"充值網絡\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"狀態 狀態 0-已確認-10-待確認(審核中) 20-已申請區块 30已審核通過 40審核不通過 50已汇出 60充值初步確認(最终確認變為0) 70審核不通過已退回資產\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"備註\"},{\"name\":\"txId\",\"type\":\"LONG\",\"description\":\"交易id\"},{\"name\":\"insertTime\",\"type\":\"LONG\",\"description\":\"交易時間\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"交易類型0=充值\"},{\"name\":\"unlockConfirm\",\"type\":\"LONG\",\"description\":\"解锁需要的網絡確認次數\"},{\"name\":\"confirmTimes\",\"type\":\"LONG\",\"description\":\"網絡確認次數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/03_get_deposit_hisrec.json\n// module id = PFmh\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱合約交易深度\"},{\"type\":\"normal\",\"text\":\"訂閱合約對盤口深度的數據的推送,此主題發送最新市場深度快照。快照頻率為每秒1次。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 market.depth.$Symbol.$Step.$Level,比如market.depth.BTC-USDT.step0.level5\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合併深度類型,step0,step1,step2,step3,step4,step5\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"是\",\"description\":\"檔數, 如 level5,level10,level20,level50,level100\"}]},{\"type\":\"step\",\"key\":\"key1\",\"data\":[{\"name\":\"step0\",\"type\":\"\",\"description\":\"不合併深度\"},{\"name\":\"step1\",\"type\":\"\",\"description\":\"按價格最小精度乘以10合併深度數據\"},{\"name\":\"step2\",\"type\":\"\",\"description\":\"按價格最小精度乘以100合併深度數據\"},{\"name\":\"step3\",\"type\":\"\",\"description\":\"按價格最小精度乘以1000合併深度數據\"},{\"name\":\"step4\",\"type\":\"\",\"description\":\"按價格最小精度乘以10000合併深度數據\"},{\"name\":\"step5\",\"type\":\"\",\"description\":\"按價格最小精度乘以100000合併深度數據\"}]},{\"type\":\"level\",\"key\":\"key2\",\"data\":[{\"name\":\"level5\",\"type\":\"\",\"description\":\"5檔\"},{\"name\":\"level10\",\"type\":\"\",\"description\":\"10檔\"},{\"name\":\"level20\",\"type\":\"\",\"description\":\"20檔\"},{\"name\":\"level50\",\"type\":\"\",\"description\":\"50檔\"},{\"name\":\"level100\",\"type\":\"\",\"description\":\"100檔\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 market.depth.BTC-USDT.step0.level5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"賣方深度\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"買方深度\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price價格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/market/01_dept_info.json\n// module id = PNFl\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/cancel\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"訂單id\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId,僅支持2個小時的查詢範圍\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下單數量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/02_post_trade_order_cancel.json\n// module id = PO50\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询资金费率历史\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/fundingRate\"},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 都未发送, 返回最近 limit 条数据.
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 之间的数据量大于 limit, 返回 startTime + limit情况下的数据。
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/fundingRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"起始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int32\",\"required\":\"否\",\"description\":\"默认值:100 最大值:1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"fundingRate\",\"type\":\"string\",\"description\":\"资金费率\"},{\"name\":\"fundingTime\",\"type\":\"int64\",\"description\":\"资金费时间:单位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/06_get_quote_ fundingRate.json\n// module id = PQJ1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"变换逐全仓模式\"},{\"type\":\"normal\",\"text\":\"变换用户在指定symbol合约上的保证金模式:逐仓或全仓。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/marginType\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"marginType\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"保证金模式 ISOLATED(逐仓), CROSSED(全仓)\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"}]},{\"type\":\"marginType\",\"key\":\"common\",\"data\":[{\"name\":\"ISOLATED\",\"type\":\"\",\"description\":\"逐仓\"},{\"name\":\"CROSSED\",\"type\":\"\",\"description\":\"全仓\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/10_post_trade_marginType.json\n// module id = PTH3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query sub account spot assets\"},{\"type\":\"normal\",\"text\":\"Query sub account spot assets\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/assets\"},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"Asset Name\"},{\"name\":\"free\",\"type\":\"double\",\"description\":\"Available limit\"},{\"name\":\"locked\",\"type\":\"double\",\"description\":\"Lock in assets\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/04_get_sub_account_spot_balance.json\n// module id = PVSb\n// module chunks = 3","var map = {\n\t\".\": \"X9kl\",\n\t\"./\": \"X9kl\",\n\t\"./2023-06-03\": \"jVl+\",\n\t\"./2023-06-03.json\": \"jVl+\",\n\t\"./2023-07-29\": \"MfXY\",\n\t\"./2023-07-29.json\": \"MfXY\",\n\t\"./index\": \"X9kl\",\n\t\"./index.js\": \"X9kl\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"PWE0\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog ^.*$\n// module id = PWE0\n// module chunks = 3","var map = {\n\t\"./01_get_asset_transfer.json\": \"6y27\",\n\t\"./02_get_asset_transfer2.json\": \"TDIc\",\n\t\"./03_get_deposit_hisrec.json\": \"YAvn\",\n\t\"./04_get_withdraw_history.json\": \"WNKq\",\n\t\"./05_post_wallets_coins.json\": \"7r0K\",\n\t\"./06_post_wallets_withdraw.json\": \"T4Os\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"+HuI\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Par2\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account \\.json$\n// module id = Par2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"The latest Trade of a Trading Pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/trades\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":500}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"default: 500, maximum 1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"transaction time\"},{\"name\":\"isBuyerMaker\",\"type\":\"bool\",\"description\":\"Whether the buyer is the maker of the order (true / false)\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"transaction price\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"transaction quantity\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"turnover\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/04_get_quote_ trades.json\n// module id = PqB/\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用户强平单历史\"},{\"type\":\"normal\",\"text\":\"查询用户强平单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/forceOrders\"},{\"type\":\"html\",\"text\":\"
  • 如果没有传 \\\"autoCloseType\\\", 强平单和ADL减仓单都会被返回
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果没有传\\\"startTime\\\", 只会返回\\\"endTime\\\"之前7天内的数据
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/forceOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"autoCloseType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"\\\"LIQUIDATION\\\":强平单, \\\"ADL\\\":ADL减仓单\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"返回的结果集数量 默认值50,最大值100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/13_get_trade_forceOrders.json\n// module id = PyiJ\n// module chunks = 3","var map = {\n\t\".\": \"336Z\",\n\t\"./\": \"336Z\",\n\t\"./01_listenKey\": \"gOrG\",\n\t\"./01_listenKey.json\": \"gOrG\",\n\t\"./02_balance\": \"Zg2x\",\n\t\"./02_balance.json\": \"Zg2x\",\n\t\"./03_order\": \"4X8p\",\n\t\"./03_order.json\": \"4X8p\",\n\t\"./04_setting\": \"M7Po\",\n\t\"./04_setting.json\": \"M7Po\",\n\t\"./index\": \"336Z\",\n\t\"./index.js\": \"336Z\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Pyy0\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account ^.*$\n// module id = Pyy0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"常见错误码\"},{\"type\":\"html\",\"text\":\"

    常见HTTP错误码:

    \"},{\"type\":\"html\",\"text\":\"
  • 4XX 错误码用于指示错误的请求内容、行为、格式
  • \"},{\"type\":\"html\",\"text\":\"
  • 5XX 错误码用于指示Bingx服务侧的问题
  • \"},{\"type\":\"html\",\"text\":\"

    常见业务错误码:

    \"},{\"type\":\"html\",\"text\":\"
  • 100001 - 签名验证失败
  • \"},{\"type\":\"html\",\"text\":\"
  • 100202 - 余额不足
  • \"},{\"type\":\"html\",\"text\":\"
  • 100400 - 参数错误
  • \"},{\"type\":\"html\",\"text\":\"
  • 100440 - 下单价格跟市场市场价格偏离太远
  • \"},{\"type\":\"html\",\"text\":\"
  • 100500 - 服务器内部错误
  • \"},{\"type\":\"html\",\"text\":\"
  • 100503 - 服务器繁忙
  • \"},{\"type\":\"html\",\"text\":\"

    注意:

    \"},{\"type\":\"html\",\"text\":\"
  • 如果失败,response body 带有错误描述信息
  • \"},{\"type\":\"html\",\"text\":\"
  • 每个接口都有可能抛出异常
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/basic/03_error_code.json\n// module id = Q+zo\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swapV2/websocket/market/index.js","var map = {\n\t\"./01_server_url.json\": \"FVkd\",\n\t\"./02_server_apply.json\": \"GUKh\",\n\t\"./03_error_code.json\": \"uv3h\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Q8gQ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic \\.json$\n// module id = Q8gQ\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/common/api/subAccount/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"心跳信息\"},{\"type\":\"normal\",\"text\":\"當用戶的Websocket客戶端連接到Bingx Websocket服務器後,服務器會定期(當前設為5秒)向其發送心跳字符串Ping\"},{\"type\":\"normal\",\"text\":\"當用戶的Websocket客戶端接收到此心跳消息後,應返回字符串Pong消息\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce/03_heart_beat.json\n// module id = QDPd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整逐倉保證金\"},{\"type\":\"normal\",\"text\":\"針對逐倉模式下的倉位,調整其逐倉保證金資金\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/swap/v2/trade/positionMargin\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"amount\":0,\"type\":0,\"positionSide\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"保證金資金\"},{\"name\":\"type\",\"type\":\"int\",\"required\":\"是\",\"description\":\"調整方向 1: 增加逐倉保證金,2: 減少逐倉保證金\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持倉方向,且僅可選擇 LONG 或 SHORT,默認LONG\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"amount\",\"type\":\"float64\",\"description\":\"保證金資金\"},{\"name\":\"type\",\"type\":\"int\",\"description\":\"調整方向 1: 增加逐倉保證金,2: 減少逐倉保證金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/15_post_trade_positionMargin.json\n// module id = QHIT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量下單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"註意\",\"children\":[{\"type\":\"normal\",\"text\":\"限價單必須傳price參數。\"},{\"type\":\"normal\",\"text\":\"限價單必須傳quantity或quoteOrderQty其中一個,當两個參數同時傳遞時,服務端優先使用參數quantity。\"},{\"type\":\"normal\",\"text\":\"市價買單必須傳quoteOrderQty參數。\"},{\"type\":\"normal\",\"text\":\"市價賣單必須傳quantity參數。\"},{\"type\":\"normal\",\"text\":\"接口創建的訂單在APP和Web頁面不會顯示。\"}]},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"type\":\"\",\"timeInForce\":0,\"quantity\":0,\"quoteOrderQty\":0,\"price\":0,\"recvWindow\":0}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"是\",\"description\":\"下單的request數組\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"IOC, POC\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量, 例如: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單金額, 例如: 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格, 例如: 10000USDT\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId,僅支持2個小時的查詢範圍\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"array\",\"description\":\"單個下單的response數組,限制5個訂單\"}]},{\"type\":\"order\",\"key\":\"key2\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"交易時間戳\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下單數量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/07_post_trade_batchOrders.json\n// module id = QUO8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Margin Mode\"},{\"type\":\"normal\",\"text\":\"Query the user's margin mode on the specified symbol contract: isolated or cross.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/marginType\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"margin mode\"}]},{\"type\":\"marginType\",\"key\":\"common\",\"data\":[{\"name\":\"ISOLATED\",\"type\":\"\",\"description\":\"Isolated Margin\"},{\"name\":\"CROSSED\",\"type\":\"\",\"description\":\"Full position\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/09_get_trade_marginType.json\n// module id = Qa4f\n// module chunks = 3","var map = {\n\t\".\": \"Bo+j\",\n\t\"./\": \"Bo+j\",\n\t\"./01_balance\": \"uiwf\",\n\t\"./01_balance.json\": \"uiwf\",\n\t\"./index\": \"Bo+j\",\n\t\"./index.js\": \"Bo+j\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"QcEA\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/websocket/account ^.*$\n// module id = QcEA\n// module chunks = 3","var map = {\n\t\".\": \"2/Td\",\n\t\"./\": \"2/Td\",\n\t\"./01_error_code\": \"INR5\",\n\t\"./01_error_code.json\": \"INR5\",\n\t\"./02_timestamp\": \"gE9e\",\n\t\"./02_timestamp.json\": \"gE9e\",\n\t\"./03_digital_rule\": \"v0HI\",\n\t\"./03_digital_rule.json\": \"v0HI\",\n\t\"./04_rate_limits\": \"x6dl\",\n\t\"./04_rate_limits.json\": \"x6dl\",\n\t\"./05_system_time\": \"i6gS\",\n\t\"./05_system_time.json\": \"i6gS\",\n\t\"./index\": \"2/Td\",\n\t\"./index.js\": \"2/Td\",\n\t\"./index_share_to_v1\": \"hsbI\",\n\t\"./index_share_to_v1.js\": \"hsbI\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"R20p\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic ^.*$\n// module id = R20p\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/websocket/introduce/index.js","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/listenKey/index.js","var map = {\n\t\".\": \"P462\",\n\t\"./\": \"P462\",\n\t\"./01_create_api\": \"KTad\",\n\t\"./01_create_api.json\": \"KTad\",\n\t\"./03_request_content\": \"YdSN\",\n\t\"./03_request_content.json\": \"YdSN\",\n\t\"./04_sign_discription\": \"XBGg\",\n\t\"./04_sign_discription.json\": \"XBGg\",\n\t\"./05_request\": \"oR0W\",\n\t\"./05_request.json\": \"oR0W\",\n\t\"./index\": \"P462\",\n\t\"./index.js\": \"P462\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"RNZo\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication ^.*$\n// module id = RNZo\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Historical order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/allOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Currency pair, the format is similar: BTC-USDT, must pass\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Order ID, optional\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"start time, optional\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"end time, optional\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"quantity, optional\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"avgPrice\",\"type\":\"number\",\"description\":\"Closing price\"},{\"name\":\"cumQuote\",\"type\":\"number\",\"description\":\"transaction amount\"},{\"name\":\"executedQty\",\"type\":\"number\",\"description\":\"turnover\"},{\"name\":\"orderId\",\"type\":\"number\",\"description\":\"System order number\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, LONG and SHORT\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order Status CLOSED\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Currency pair, the format is similar to:BTC-USDT\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time\"},{\"name\":\"margin\",\"type\":\"number\",\"description\":\"Margin\"},{\"name\":\"leverage\",\"type\":\"number\",\"description\":\"Leverage\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Whether it is isolated margin mode\"},{\"name\":\"closePrice\",\"type\":\"number\",\"description\":\"Closing price\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"Position order number\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/api/trade/02_get_contract_allOrders.json\n// module id = RhU9\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"vDBD\",\n\t\"./02_post_trade_batch_order.json\": \"Crrt\",\n\t\"./03_post_closeAllPositions.json\": \"pKuc\",\n\t\"./04_delete_trade_order.json\": \"9V8o\",\n\t\"./05_delete_trade_batch_order.json\": \"hIfT\",\n\t\"./06_delete_trade_all_order.json\": \"Nw8z\",\n\t\"./07_get_all_openOrders.json\": \"Ewmn\",\n\t\"./08_get_trade_order.json\": \"/1k/\",\n\t\"./09_get_trade_marginType.json\": \"7mzI\",\n\t\"./10_post_trade_marginType.json\": \"WVbz\",\n\t\"./11_get_trade_leverage.json\": \"/Kh3\",\n\t\"./12_post_trade_leverage.json\": \"ZoHP\",\n\t\"./13_get_trade_forceOrders.json\": \"9bR8\",\n\t\"./14_get_trade_allOrders.json\": \"7bgg\",\n\t\"./15_post_trade_positionMargin.json\": \"QHIT\",\n\t\"./16_post_trade_order_test.json\": \"Hhes\",\n\t\"./17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./18_get_trade_income_export.json\": \"TDt4\",\n\t\"./19_get_trade_user_commissionRate.json\": \"x8dX\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"SGv/\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Rqf2\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade \\.json$\n// module id = Rqf2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"extend Listen Key Validity period\"},{\"type\":\"normal\",\"text\":\"The validity period is extended to 60 minutes after this call, and it is recommended to send a ping every 30 minutes.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"PUT /openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl -i -X PUT 'https://open-api.bingx.com/openApi/user/auth/userDataStream?listenKey=d84d39fe78762b39e202ba204bf3f7ebed43bbe7a481299779cb53479ea9677d'\"},{\"type\":\"normal\",\"text\":\"response\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • http status 200 success
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 204 not content
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 404 not find key
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"PUT\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"listenKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"listen Key\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/listenKey/02_put_listenKey.json\n// module id = Rtfu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"設置止盈止損訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/stopOrder\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/stopOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"positionId\":\"\",\"orderId\":\"\",\"stopLossPrice\":0,\"takeProfitPrice\":0,\"entrustVolume\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"持倉id\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"止盈止損訂單id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止損價格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止盈價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"委託數量\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"止盈止損訂單id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/15_post_trade_positionMargin.json\n// module id = RvjO\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢資產\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/account/balance\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求時間戳, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"balances\",\"type\":\"Array\",\"description\":\"資產列表, 元素字段參考下表\"}]},{\"type\":\"balance\",\"key\":\"response1\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"資產名\"},{\"name\":\"free\",\"type\":\"string\",\"description\":\"可用資金\"},{\"name\":\"locked\",\"type\":\"string\",\"description\":\"凍結資金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/06_get_account_balance.json\n// module id = S+dO\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/common/api/subAccount/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查詢成交記录\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/trades\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\",\"limit\":100}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默認100,最多100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"long\",\"description\":\"交易id\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"價格\"},{\"name\":\"qty\",\"type\":\"float64\",\"description\":\"數量\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"時間\"},{\"name\":\"isBuyerMaker\",\"type\":\"boolean\",\"description\":\"是否買方\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/02_get_ market_traders.json\n// module id = SDL0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"當前最優掛單\"},{\"type\":\"normal\",\"text\":\"獲取當前最優掛單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/bookTicker\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"bid_price\",\"type\":\"float64\",\"description\":\"最優買單價\"},{\"name\":\"bid_qty\",\"type\":\"float64\",\"description\":\"掛單量\"},{\"name\":\"ask_price\",\"type\":\"float64\",\"description\":\"最優賣單價\"},{\"name\":\"ask_qty\",\"type\":\"float64\",\"description\":\"掛單量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/20_get_trade_quote_bookTicker.json\n// module id = SGv/\n// module chunks = 3","var map = {\n\t\"./01_create_sub_accuont.json\": \"5mnu\",\n\t\"./02_post_fetch_uid.json\": \"Ou1A\",\n\t\"./03_post_fetch_sub_account_list.json\": \"3YFN\",\n\t\"./04_get_sub_account_spot_balance.json\": \"OVDJ\",\n\t\"./05_create_sub_accuont_key.json\": \"9vIT\",\n\t\"./06_get_api_key_info.json\": \"SwSY\",\n\t\"./07_post_edit_apikey.json\": \"Mwd2\",\n\t\"./08_delete_sub_account_key.json\": \"Y8uX\",\n\t\"./09_update_sub_account_status.json\": \"Tupg\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"YzmL\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"fe6F\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"SIbE\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount \\.json$\n// module id = SIbE\n// module chunks = 3","var map = {\n\t\"./01_get_account_apiRestrictions.json\": \"2ni1\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"SRzp\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/permission \\.json$\n// module id = SRzp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Contract Information\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getAllContracts\"},{\"type\":\"code\",\"text\":\"example: https://api-swap-rest.bingbon.pro/api/v1/market/getAllContracts\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getAllContracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request(null)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"With regards to error messages, 0 means normal, and 1 means error\"},{\"name\":\"msg\",\"type\":\"\",\"description\":\"error message\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Array\"}]},{\"type\":\"Data\",\"key\":\"response1\",\"data\":[{\"name\":\"contractId\",\"type\":\"\",\"description\":\"contract ID\"},{\"name\":\"symbol\",\"type\":\"\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"name\",\"type\":\"\",\"description\":\"The name of the underlying index\"},{\"name\":\"size\",\"type\":\"\",\"description\":\"contract size, such as 0.0001 BTC\"},{\"name\":\"minStep\",\"type\":\"\",\"description\":\"User's step\"},{\"name\":\"volumePrecision\",\"type\":\"\",\"description\":\"transaction quantity precision\"},{\"name\":\"pricePrecision\",\"type\":\"\",\"description\":\"price precision\"},{\"name\":\"quantityPrecision\",\"type\":\"\",\"description\":\"transaction quantity precision\"},{\"name\":\"feeRate\",\"type\":\"\",\"description\":\"transaction fee\"},{\"name\":\"tradeMinLimit\",\"type\":\"\",\"description\":\"The smallest trading unit\"},{\"name\":\"currency\",\"type\":\"\",\"description\":\"settlement and margin currency asset\"},{\"name\":\"asset\",\"type\":\"\",\"description\":\"contract trading asset\"},{\"name\":\"maxLongLeverage\",\"type\":\"\",\"description\":\"The maximum leverage for long transactions\"},{\"name\":\"maxShortLeverage\",\"type\":\"\",\"description\":\"Maximum leverage for short trades\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/01_get_quote_contracts.json\n// module id = SYVa\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询apikey信息\"},{\"type\":\"normal\",\"text\":\"查询apikey信息\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/sub-account/v1/apiKey/query\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/sub-account/v1/apiKey/query\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"用户uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"否\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"description\":\"\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"备注\"},{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"权限,1-现货交易,2-读取,3-专业合约交易,4-万向划转,7-允许子账户内转\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"ip白名单\"},{\"name\":\"createTime\",\"type\":\"long\",\"description\":\"创建时间\"},{\"name\":\"updateTime\",\"type\":\"long\",\"description\":\"更新时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/06_get_api_key_info.json\n// module id = SwSY\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"9f4O\",\n\t\"./02_data_compress.json\": \"yd9p\",\n\t\"./03_heart_beat.json\": \"aeFT\",\n\t\"./04_subscribe.json\": \"KaHo\",\n\t\"./05_cancel_subscribe.json\": \"zovs\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"SxTR\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/introduce \\.json$\n// module id = SxTR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"发起提币\"},{\"type\":\"normal\",\"text\":\"指定用户账户发起提币\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/wallets/v1/capital/withdraw/apply\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"network\":\"ERC20\",\"address\":\"0xxxxxxxxxxxxxx\",\"addressTag\":\"\",\"amount\":20,\"walletType\":1}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"币种名称\"},{\"name\":\"network\",\"type\":\"string\",\"required\":\"否\",\"description\":\"网络名称,不传则使用默认网络\"},{\"name\":\"address\",\"type\":\"string\",\"required\":\"是\",\"description\":\"提币地址\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"提币金额\"},{\"name\":\"walletType\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"账户类型, 1资金账户, 2标合账户, 3永续账户\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"提币记录唯一标识,该字段在提币走内转时不返回\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account/06_post_wallets_withdraw.json\n// module id = T4Os\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询用户万向划转历史\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/asset/transfer\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"startTime\":1658748648396,\"endTime\":1658748648396,\"current\":1,\"size\":10,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"是\",\"description\":\"划转类型\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"开始时间 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"结束时间 1658748648396\"},{\"name\":\"current\",\"type\":\"int\",\"required\":\"否\",\"description\":\"当前页 默认1\"},{\"name\":\"size\",\"type\":\"int\",\"required\":\"否\",\"description\":\"页数量大小 默认10 不能超过100\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"执行窗口时间,不能大于 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"当前时间戳 例如1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"资金账户->标准合约\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"标准合约->资金账户\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"资金账户->永续合约\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"永续合约->资金账户\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"标准合约->永续合约\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"永续合约->标准合约\"},{\"name\":\"FUND_STRADING\",\"type\":\"\",\"description\":\"资金账户 -> 网格\"},{\"name\":\"STRADING_FUND\",\"type\":\"\",\"description\":\"网格 -> 资金账户\"},{\"name\":\"FUND_CTRADING\",\"type\":\"\",\"description\":\"资金账户 -> 跟单\"},{\"name\":\"SFUTURES_CTRADING\",\"type\":\"\",\"description\":\"标准合约账户 -> 跟单\"},{\"name\":\"PFUTURES_CTRADING\",\"type\":\"\",\"description\":\"永续合约账户 -> 跟单\"},{\"name\":\"CTRADING_FUND\",\"type\":\"\",\"description\":\"跟单 -> 资金账户\"},{\"name\":\"CTRADING_SFUTURES\",\"type\":\"\",\"description\":\"跟单 -> 标准合约账户\"},{\"name\":\"CTRADING_PFUTURES\",\"type\":\"\",\"description\":\"跟单 -> 永续合约账户\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"total\",\"type\":\"LONG\",\"description\":\"总数\"},{\"name\":\"rows\",\"type\":\"Array\",\"description\":\"数据Array\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"币的名称\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"币的金额\"},{\"name\":\"type\",\"type\":\"ENUM\",\"description\":\"划转类型\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"CONFIRMED\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"交易ID\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"description\":\"划转的时间戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account/02_get_asset_transfer2.json\n// module id = TDIc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易下单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/trade\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\",\"side\":\"\",\"entrustPrice\":0,\"entrustVolume\":0,\"tradeType\":\"\",\"action\":\"\",\"takerProfitPrice\":0,\"stopLossPrice\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"(Bid/Ask 买/卖)\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"价格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"数量\"},{\"name\":\"tradeType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Market/Limit 市价/限价\"},{\"name\":\"action\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Open/Close 开仓/平仓\"},{\"name\":\"takerProfitPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止盈价格\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止损价格\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/01_post_trade_order.json\n// module id = TDl7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"導出資金流水\"},{\"type\":\"normal\",\"text\":\"導出資金流水\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/income/export\"},{\"type\":\"warning\",\"text\":\"響應: Excel File\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income/export\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"incomeType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"incomeType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"資金流水類型,可選值:TRANSFER REALIZED_PNL FUNDING_FEE TRADING_FEE INSURANCE_CLEAR TRIAL_FUND ADL SYSTEM_DEDUCTION\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"起始時間戳,單位毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間戳,單位毫秒\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"返回的結果集數量 默認值:100 最大值:1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間窗口,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/18_get_trade_income_export.json\n// module id = TDt4\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"tk7z\",\n\t\"./02_kline_data.json\": \"klxE\",\n\t\"./03_depth_info.json\": \"ADmP\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"TUnK\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market \\.json$\n// module id = TUnK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订阅合约k线数据\"},{\"type\":\"normal\",\"text\":\"K线stream逐秒推送所请求的K线种类(最新一根K线)的更新。\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @kline_,比如BTC-USDT@kline_1m\"},{\"type\":\"normal\",\"text\":\"订阅举例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 更多返回错误代码请看首页的错误代码描述
  • \"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称,合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k线类型,交易对, 参考字段说明,如分钟,小时,周等\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"收盘价\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"最高价\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"最低价\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"开盘价\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"成交量\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"一分钟K线\"},{\"name\":\"3m\",\"description\":\"三分钟K线\"},{\"name\":\"5m\",\"description\":\"五分钟K线\"},{\"name\":\"15m\",\"description\":\"十五分钟K线\"},{\"name\":\"30m\",\"description\":\"三十分钟K线\"},{\"name\":\"1h\",\"description\":\"一小时K线\"},{\"name\":\"2h\",\"description\":\"两小时K线\"},{\"name\":\"4h\",\"description\":\"四小时K线\"},{\"name\":\"6h\",\"description\":\"六小时K线\"},{\"name\":\"8h\",\"description\":\"八小时K线\"},{\"name\":\"12h\",\"description\":\"12小时K线\"},{\"name\":\"1d\",\"description\":\"1日K线\"},{\"name\":\"3d\",\"description\":\"3日K线\"},{\"name\":\"1w\",\"description\":\"周K线\"},{\"name\":\"1M\",\"description\":\"月K线\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/market/03_kline_data.json\n// module id = TV6R\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/swap/websocket/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Current Funding Rate\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/premiumIndex\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"lastFundingRate\",\"type\":\"string\",\"description\":\"Last updated funding rate\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"current mark price\"},{\"name\":\"indexPrice\",\"type\":\"string\",\"description\":\"index price\"},{\"name\":\"nextFundingTime\",\"type\":\"int64\",\"description\":\"The remaining time for the next settlement, in milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/05_get_quote_ premiumIndex.json\n// module id = Tk4L\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Leverage\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/getLeverage\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/getLeverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"Long position leverage\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"Short Leverage\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/11_get_trade_leverage.json\n// module id = Toje\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/swapV2/description\",\"name\":\"接口说明\",\"content\":[{\"type\":\"html\",\"text\":\"
  • GET方法的接口, 参数必须在query string中发送.
  • \"},{\"type\":\"html\",\"text\":\"
  • POST, PUT, 和 DELETE 方法的接口, 参数可以在 query string 中发送,也可以在 request body 中发送(content type application/x-www-form-urlencoded)。
    允许混合这两种方式发送参数。但如果同一个参数名在 query string 和 request body 中都有,query string 中的会被优先采用。
  • \"},{\"type\":\"html\",\"text\":\"
  • 对参数的顺序不做要求。
  • \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/2_description.json\n// module id = Tp48\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"深度信息\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/depth\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":20}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默认20,可选值:[5, 10, 20, 50, 100, 500, 1000]\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"系统时间,单位:毫秒\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"卖方深度。第一个元素价格,第二个元素数量\"},{\"name\":\"bids\",\"type\":\"array\",\"description\":\"买方深度。第一个元素价格,第二个元素数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/03_get_quote_depth.json\n// module id = TsMJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"冻结 解冻子账户\"},{\"type\":\"normal\",\"text\":\"冻结 解冻子账户\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/updateStatus\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/updateStatus\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子账户uid\"},{\"name\":\"freeze\",\"type\":\"bool\",\"required\":\"是\",\"description\":\"是否冻结账号\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子账户uid\"},{\"name\":\"freeze\",\"type\":\"bool\",\"description\":\"是否已冻结\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/09_update_sub_account_status.json\n// module id = Tupg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"權限設置\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"normal\",\"text\":\"新創建的API的默認權限是 只讀。\"},{\"type\":\"normal\",\"text\":\"如果需要通過API進行下單交易等寫操作,需要在UI修改為對應權限。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication/02_permission_set.json\n// module id = U3vK\n// module chunks = 3","var map = {\n\t\".\": \"R9OT\",\n\t\"./\": \"R9OT\",\n\t\"./01_create_listenKey\": \"KCrj\",\n\t\"./01_create_listenKey.json\": \"KCrj\",\n\t\"./02_put_listenKey\": \"lKnG\",\n\t\"./02_put_listenKey.json\": \"lKnG\",\n\t\"./03_delete_listenKey\": \"+Xv4\",\n\t\"./03_delete_listenKey.json\": \"+Xv4\",\n\t\"./index\": \"R9OT\",\n\t\"./index.js\": \"R9OT\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"U4UH\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/listenKey ^.*$\n// module id = U4UH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Permission Settings\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"normal\",\"text\":\"The default permission for newly created APIs is read-only.\"},{\"type\":\"normal\",\"text\":\"If you need to perform write operations such as placing an order through the API, you need to modify it to the corresponding permission on the UI.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication/02_permission_set.json\n// module id = UG8z\n// module chunks = 3","var map = {\n\t\".\": \"ohLs\",\n\t\"./\": \"ohLs\",\n\t\"./01_executionReport\": \"pjpR\",\n\t\"./01_executionReport.json\": \"pjpR\",\n\t\"./02_ account_update\": \"5y10\",\n\t\"./02_ account_update.json\": \"5y10\",\n\t\"./index\": \"ohLs\",\n\t\"./index.js\": \"ohLs\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"UGH9\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/account ^.*$\n// module id = UGH9\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/websocket/account/index.js","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"K線數據\"},{\"type\":\"normal\",\"text\":\"查詢成交價格的K線數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/klines\"},{\"type\":\"html\",\"text\":\"
  • 如果未發送 startTime 和 endTime ,默認返回最新的k線數據
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"時間間隔,參考字段說明\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間,單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,單位:毫秒\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"默認值:500 最大值:1440\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"開盤價\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盤價\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高價\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低價\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易數量\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"k線時間戳,單位毫秒\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"一分鐘K線\"},{\"name\":\"3m\",\"description\":\"三分鐘K線\"},{\"name\":\"5m\",\"description\":\"五分鐘K線\"},{\"name\":\"15m\",\"description\":\"十五分鐘K線\"},{\"name\":\"30m\",\"description\":\"三十分鐘K線\"},{\"name\":\"1h\",\"description\":\"一小時K線\"},{\"name\":\"2h\",\"description\":\"两小時K線\"},{\"name\":\"4h\",\"description\":\"四小時K線\"},{\"name\":\"6h\",\"description\":\"六小時K線\"},{\"name\":\"8h\",\"description\":\"八小時K線\"},{\"name\":\"12h\",\"description\":\"12小時K線\"},{\"name\":\"1d\",\"description\":\"1日K線\"},{\"name\":\"3d\",\"description\":\"3日K線\"},{\"name\":\"1w\",\"description\":\"週K線\"},{\"name\":\"1M\",\"description\":\"月K線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/07_get_quote_ klines.json\n// module id = UTAD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询最新成交记录\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getMarketTrades\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getMarketTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"date\",\"description\":\"成交时间\"},{\"name\":\"makerSide\",\"type\":\"string\",\"description\":\"吃单方向(Buy / Sell 买/卖)\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成交价格\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"成交数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/04_get_quote_ trades.json\n// module id = Ua/t\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Query Open Orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/openOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"Order list,max length is 2000, refer to the table below for order fields\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Original quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote asset transacted quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Order timestamp\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Update timestamp\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"Original quote order quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/04_get_trade_open_order.json\n// module id = V7qZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"K线 Streams\"},{\"type\":\"normal\",\"text\":\"K线stream逐秒推送所请求的K线种类(最新一根K线)的更新。\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @kline_,比如BTC-USDT@kline_1min\"},{\"type\":\"normal\",\"text\":\"订阅举例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 目前仅提供一分钟的k线数据
  • \"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称,合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"参考字段说明,K线类型,1min, 5min, 15min, 30min, 60min, 1day\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@kline_1min\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间\"},{\"name\":\"K\",\"type\":\"\",\"description\":\"数据\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"}]},{\"type\":\"K\",\"key\":\"key2\",\"data\":[{\"name\":\"T\",\"type\":\"\",\"description\":\"这根K线的结束时间\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"这根K线期间末一笔成交价\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"这根K线期间最高成交价\"},{\"name\":\"i\",\"type\":\"\",\"description\":\"K线间隔\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"这根K线期间最低成交价\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"这根K线期间成交笔数\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"这根K线期间第一笔成交价\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"这根K线期间成交额\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"},{\"name\":\"t\",\"type\":\"\",\"description\":\"这根K线的起始时间\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"这根K线期间成交量\"}]},{\"type\":\"klineType\",\"key\":\"common\",\"data\":[{\"name\":\"1min\",\"description\":\"1min一分钟K线\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/market/02_kline_data.json\n// module id = VLKD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約24小時價格變動情况\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getTicker\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合約名稱\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"價格變動, 單位是USDT\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"價格變動百分比\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"最新交易價格\"},{\"name\":\"lastVolume\",\"type\":\"string\",\"description\":\"最新交易數量\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"24小時最高價\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"24小時最低價\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"24小時成交量\"},{\"name\":\"dayVolume\",\"type\":\"string\",\"description\":\"24小時成交額, 單位是USDT\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"24小時內第一個價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/09_get_quote_ ticker.json\n// module id = VOPx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Timestamp\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"Unless otherwise specified, all timestamps from the API are returned with millisseconds resolution.\"},{\"type\":\"html\",\"text\":\"The timestamp of the request must be within 5 seconds of the API service time, otherwise the request will be considered expired and rejected. If there is a large deviation between the local server time and the API server time, we recommend that you update the http header by querying the API server time. header。 \"}]},{\"type\":\"html\",\"text\":\"

    Example

    \"},{\"type\":\"code\",\"text\":\"1587091154123\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic/02_timestamp.json\n// module id = VQr5\n// module chunks = 3","var map = {\n\t\".\": \"9GqO\",\n\t\"./\": \"9GqO\",\n\t\"./01_get_common_symbols\": \"o8W7\",\n\t\"./01_get_common_symbols.json\": \"o8W7\",\n\t\"./02_get_ market_traders\": \"SDL0\",\n\t\"./02_get_ market_traders.json\": \"SDL0\",\n\t\"./03_get_market_depth\": \"2qJV\",\n\t\"./03_get_market_depth.json\": \"2qJV\",\n\t\"./04_get_market_klines\": \"/lsz\",\n\t\"./04_get_market_klines.json\": \"/lsz\",\n\t\"./index\": \"9GqO\",\n\t\"./index.js\": \"9GqO\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"VTkR\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market ^.*$\n// module id = VTkR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe the Latest Trade Detail\"},{\"type\":\"normal\",\"text\":\"Subscribe to the trade detail data of a trading pair\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 market.trade.detail.$Symbol,比如market.trade.detail.BTC-USDT\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"With regards to error messages, 0 means normal, and 1 means error\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of data subscribed, such as market.tradeDetail.BTC-USDT\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"trades\",\"type\":\"\",\"description\":\"Deal by deal\"},{\"name\":\"time\",\"type\":\"\",\"description\":\"transaction time\"},{\"name\":\"makerSide\",\"type\":\"\",\"description\":\"Direction ( Bid / Ask)\"},{\"name\":\"price\",\"type\":\"\",\"description\":\"transaction price\"},{\"name\":\"volume\",\"type\":\"\",\"description\":\"Executed quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/websocket/market/02_latest_records.json\n// module id = VUGM\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Withdraw History (supporting network)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/withdraw/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"withdrawOrderId\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"coin name\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom ID, if there is none, this field will not be returned\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Status (0: Confirmation Email has been sent, 2: Waiting for confirmation 3: Rejected 4: Processing 5: Withdrawal transaction failed 6 Withdrawal completed)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Starting time1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"End Time 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"no\",\"description\":\"offset default0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size default 1000 cannot exceed 1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Execution window time, cannot be greater than 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp e.g.1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"address\",\"type\":\"string\",\"description\":\"address\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"Withdrawal amount\"},{\"name\":\"applyTime\",\"type\":\"Date\",\"description\":\"Withdrawal time\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"coin name\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"The id of the withdrawal\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"description\":\"Custom ID, if there is none, this field will not be returned\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Withdrawal network\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"Transaction Type 1 = Withdrawal\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"Status Status 0-Confirmed-10-To be confirmed (under review) 20-Applied for block 30-Approved and passed 40-Approval failed 50-Exported 60-Preliminary confirmation of recharge (final confirmation becomes 0) 70-Approved failed and returned assets\"},{\"name\":\"transactionFee\",\"type\":\"string\",\"description\":\"handling fee\"},{\"name\":\"confirmNo\",\"type\":\"int\",\"description\":\"Withdrawal confirmation times\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"Reason for withdrawal failure\"},{\"name\":\"txId\",\"type\":\"String\",\"description\":\"Withdrawal transaction id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/04_get_withdraw_history.json\n// module id = VVr3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe Market Depth Data\"},{\"type\":\"normal\",\"text\":\"Push limited file depth information every second.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @depth E.g. BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Depth level, such as 5,10,20,50,100\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"With regards to error messages, 0 means normal, and 1 means error\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"Sell side depth\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"Buy side depth\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/01_dept_info.json\n// module id = VbHA\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/websocket/market/index.js","var map = {\n\t\"./01_get_quote_contracts.json\": \"DcMO\",\n\t\"./02_get_quote_price.json\": \"owTM\",\n\t\"./03_get_quote_depth.json\": \"e+0O\",\n\t\"./04_get_quote_ trades.json\": \"PqB/\",\n\t\"./05_get_quote_ premiumIndex.json\": \"Tk4L\",\n\t\"./06_get_quote_ fundingRate.json\": \"YtyA\",\n\t\"./07_get_quote_ klines.json\": \"xU+M\",\n\t\"./08_get_quote_openInterest.json\": \"j4uq\",\n\t\"./09_get_quote_ ticker.json\": \"LWb5\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"VeFC\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market \\.json$\n// module id = VeFC\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < 4; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swapV2/api/basic/index_share_to_v1.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询历史订单列表\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/historyOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"注意\",\"children\":[{\"type\":\"normal\",\"text\":\"如设置 orderId , 订单将 >= orderId。否则将返回最新订单。\"},{\"type\":\"normal\",\"text\":\"如果设置 startTime 和 endTime, orderId 就不需要设置。\"}]},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"pageIndex\":0,\"pageSize\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间戳, 单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间戳, 单位:毫秒\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分页页码,必须大于0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分页数量,必须大于0,最大值为100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求时间戳, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"订单列表,最大长度为2000, 订单字段参考下表\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品种\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下单数量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态, NEW新订单 PENDING委托中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤销 FAILED失败\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型, MARKET市价 LIMIT限价\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易类型, BUY买 SELL卖\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"下单时间戳\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间戳\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"下单金额\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade/05_get_trade_history_order.json\n// module id = Vx5o\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"切換賬戶保證金模式\"},{\"type\":\"normal\",\"text\":\"修改永續合約賬戶的保證金模式,全倉模式或逐倉模式。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/setMarginMode\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/setMarginMode\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"marginMode\":\"\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"marginMode\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Isolated or Cross, 賬戶保證金模式,逐倉或者全倉\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/10_post_trade_marginType.json\n// module id = W+/z\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/common/api/permission/index.js","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = paths.length - 1; i > -1; i--) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/changelog/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Get Perpetual Swap Account Asset Information\"},{\"type\":\"normal\",\"text\":\"Get asset information of user‘s Perpetual Account\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/balance\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"user asset\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"asset balance\"},{\"name\":\"equity\",\"type\":\"string\",\"description\":\"net asset value\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"unrealized profit and loss\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"realized profit and loss\"},{\"name\":\"availableMargin\",\"type\":\"string\",\"description\":\"available margin\"},{\"name\":\"usedMargin\",\"type\":\"string\",\"description\":\"used margin\"},{\"name\":\"freezedMargin\",\"type\":\"string\",\"description\":\"frozen margin\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account/01_get_user_balance.json\n// module id = W4Cx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"賬戶餘額和倉位更新推送\"},{\"type\":\"normal\",\"text\":\"賬戶更新事件的 event type 固定為 ACCOUNT_UPDATE \"},{\"type\":\"normal\",\"text\":\"當賬戶信息有變動時,會推送此事件:\",\"children\":[{\"type\":\"normal\",\"text\":\"僅當賬戶信息有變動時(包括資金、倉位等發生變化),才會推送此事件; 訂單狀態變化沒有引起賬戶和持倉變化的,不會推送此事件;\"},{\"type\":\"normal\",\"text\":\"position 信息:僅當symbol倉位有變動時推送。 \"}]},{\"type\":\"normal\",\"text\":\"\\\"FUNDING FEE\\\" 引起的資金餘額變化,僅推送簡略事件: \",\"children\":[{\"type\":\"normal\",\"text\":\"當用戶某全倉持倉發生\\\"FUNDING FEE\\\"時,事件ACCOUNT_UPDATE将只會推送相關的用戶資產餘額信息B(僅推送FUNDING FEE 發生相關的資產餘額信息),而不會推送任何持倉信息P。 \"},{\"type\":\"normal\",\"text\":\"當用戶某逐倉倉持倉發生\\\"FUNDING FEE\\\"時,事件ACCOUNT_UPDATE将只會推送相關的用戶資產餘額信息B(僅推送\\\"FUNDING FEE\\\"所使用的資產餘額信息),和相關的持倉信息P(僅推送這筆\\\"FUNDING FEE\\\"發生所在的持倉信息),其餘持倉信息不會被推送。 \"}]},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能類型:\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT\"},{\"type\":\"normal\",\"text\":\"WITHDRAW\"},{\"type\":\"normal\",\"text\":\"ORDER\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE\"}]},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型:ACCOUNT_UPDATE\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間:1676603102163\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"1676603102163\"},{\"name\":\"a\",\"type\":\"obj\",\"description\":\"賬戶更新事件\"}]},{\"type\":\"a\",\"key\":\"key1\",\"data\":[{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"數組:餘額信息\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"數組:交易信息\"}]},{\"type\":\"B\",\"key\":\"key2\",\"data\":[{\"name\":\"a\",\"type\":\"\",\"description\":\"資產名稱:USDT\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"钱包餘額:5277.59264687\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"除去逐倉倉位保證金的钱包餘額:5233.21709203\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"钱包餘額改變量:0\"}]},{\"type\":\"P\",\"key\":\"key3\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對:LINK-USDT\"},{\"name\":\"pa\",\"type\":\"\",\"description\":\"倉位:108.84300000\"},{\"name\":\"ep\",\"type\":\"\",\"description\":\"入倉價格:7.25620000\"},{\"name\":\"up\",\"type\":\"\",\"description\":\"持倉未實現盈虧:1.42220000\"},{\"name\":\"mt\",\"type\":\"\",\"description\":\"保證金模式:isolated\"},{\"name\":\"iw\",\"type\":\"\",\"description\":\"若為逐倉,倉位保證金:23.19081642\"},{\"name\":\"ps\",\"type\":\"\",\"description\":\"持倉方向:SHORT\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account/02_balance.json\n// module id = W9nQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Switch Margin Mode\"},{\"type\":\"normal\",\"text\":\"Change the user's margin mode on the specified symbol contract: isolated margin or cross margin.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/marginType\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"marginType\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Margin mode ISOLATED (isolated margin), CROSSED (cross margin)\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"}]},{\"type\":\"marginType\",\"key\":\"common\",\"data\":[{\"name\":\"ISOLATED\",\"type\":\"\",\"description\":\"Isolated Margin\"},{\"name\":\"CROSSED\",\"type\":\"\",\"description\":\"Full position\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/10_post_trade_marginType.json\n// module id = WCFx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷止盈止損訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/cancelStopOrder\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/cancelStopOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"orderId\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"是\",\"description\":\"止盈止損訂單id\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"\"},{\"name\":\"message\",\"type\":\"\",\"description\":\"\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/16_post_trade_order_test.json\n// module id = WKtD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"获取提币历史(支持多网络)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/withdraw/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"withdrawOrderId\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"币的名称\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"自定义ID, 如果没有则不返回该字段\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"状态 (0:已发送确认Email, 2:等待确认 3:被拒绝 4:处理中 5:提现交易失败 6 提现完成)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"开始时间 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"结束时间 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默认0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"页数量大小 默认1000 不能超过1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"执行窗口时间,不能大于 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"当前时间戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"address\",\"type\":\"string\",\"description\":\"地址\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"提现转出金额\"},{\"name\":\"applyTime\",\"type\":\"Date\",\"description\":\"充值时间\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"币名称\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"该笔提现的id\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"description\":\"自定义ID, 如果没有则不返回该字段\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"提现网络\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"交易类型1=提现\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"状态 状态 0-已确认-10-待确认(审核中) 20-已申请区块 30已审核通过 40审核不通过 50已汇出 60充值初步确认(最终确认变为0) 70审核不通过已退回资产\"},{\"name\":\"transactionFee\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"confirmNo\",\"type\":\"int\",\"description\":\"提现确认次数\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"提币失败原因\"},{\"name\":\"txId\",\"type\":\"String\",\"description\":\"提现交易id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account/04_get_withdraw_history.json\n// module id = WNKq\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"變換逐全倉模式\"},{\"type\":\"normal\",\"text\":\"變換用戶在指定symbol合約上的保證金模式:逐倉或全倉。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/marginType\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"marginType\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"保證金模式 ISOLATED(逐倉), CROSSED(全倉)\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"}]},{\"type\":\"marginType\",\"key\":\"common\",\"data\":[{\"name\":\"ISOLATED\",\"type\":\"\",\"description\":\"逐倉\"},{\"name\":\"CROSSED\",\"type\":\"\",\"description\":\"全倉\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/10_post_trade_marginType.json\n// module id = WVbz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱合約k線數據\"},{\"type\":\"normal\",\"text\":\"K線stream逐秒推送所請求的K線種類(最新一根K線)的更新。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @kline_,比如BTC-USDT@kline_1m\"},{\"type\":\"normal\",\"text\":\"訂閱举例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱,合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k線類型,交易對, 參考字段說明,如分鐘,小時,週等\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"收盤價\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"最高價\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"最低價\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"開盤價\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"成交量\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"一分鐘K線\"},{\"name\":\"3m\",\"description\":\"三分鐘K線\"},{\"name\":\"5m\",\"description\":\"五分鐘K線\"},{\"name\":\"15m\",\"description\":\"十五分鐘K線\"},{\"name\":\"30m\",\"description\":\"三十分鐘K線\"},{\"name\":\"1h\",\"description\":\"一小時K線\"},{\"name\":\"2h\",\"description\":\"两小時K線\"},{\"name\":\"4h\",\"description\":\"四小時K線\"},{\"name\":\"6h\",\"description\":\"六小時K線\"},{\"name\":\"8h\",\"description\":\"八小時K線\"},{\"name\":\"12h\",\"description\":\"12小時K線\"},{\"name\":\"1d\",\"description\":\"1日K線\"},{\"name\":\"3d\",\"description\":\"3日K線\"},{\"name\":\"1w\",\"description\":\"週K線\"},{\"name\":\"1M\",\"description\":\"月K線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/03_kline_data.json\n// module id = WbRb\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"uUP9\",\n\t\"./02_data_compress.json\": \"ku8a\",\n\t\"./03_heart_beat.json\": \"QDPd\",\n\t\"./04_subscribe.json\": \"f4mz\",\n\t\"./05_cancel_subscribe.json\": \"IhWV\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Wd1J\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce \\.json$\n// module id = Wd1J\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订阅账户余额推送\"},{\"type\":\"normal\",\"text\":\"订阅类型\"},{\"type\":\"code\",\"text\":\"dataType 为 ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"订阅例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"gdfg2311-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"}\"},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能类型:\"},{\"type\":\"html\",\"text\":\"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    \"},{\"type\":\"html\",\"text\":\"
  • 更多返回错误代码请看首页的错误代码描述
  • \"},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"撮合时间\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"资产名称\"}]},{\"type\":\"a\",\"key\":\"key1\",\"data\":[{\"name\":\"B\",\"type\":\"\",\"description\":\"Array[]\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因 \"}]},{\"type\":\"B\",\"key\":\"key2\",\"data\":[{\"name\":\"a\",\"type\":\"\",\"description\":\"资产名称\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"除去盈亏与交易手续费以外的钱包余额改变量\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"资产名称\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"钱包余额\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/account/02_ account_update.json\n// module id = Wg+8\n// module chunks = 3","var map = {\n\t\"./01_get_quote_contracts.json\": \"lrAs\",\n\t\"./02_get_quote_price.json\": \"r2l6\",\n\t\"./03_get_quote_depth.json\": \"obcS\",\n\t\"./04_get_quote_ trades.json\": \"KY9U\",\n\t\"./05_get_quote_ premiumIndex.json\": \"5xUh\",\n\t\"./06_get_quote_ fundingRate.json\": \"dEdI\",\n\t\"./07_get_quote_ klines.json\": \"UTAD\",\n\t\"./08_get_quote_openInterest.json\": \"0IKX\",\n\t\"./09_get_quote_ ticker.json\": \"Y7KR\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"WnJc\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market \\.json$\n// module id = WnJc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"接入方式\"},{\"type\":\"normal\",\"text\":\"行情Websocket的接入URL:wss://open-api-swap.bingx.com/swap-market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce/01_connect.json\n// module id = X4K5\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = paths.length - 1; i > -1; i--) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/changelog/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"签名说明\"},{\"type\":\"normal\",\"text\":\"sign 是对http method,url path,请求参数等按字符串连接之后使用 HMAC SHA256 方法加密而得到的。\",\"children\":[{\"type\":\"normal\",\"text\":\"path 为URL的请求路径,例如: /api/v1/user/getBalance\"},{\"type\":\"normal\",\"text\":\"method 是请求方法(POST/GET/PUT/DELETE),字母全部大写。\"},{\"type\":\"normal\",\"text\":\"参数是对 所有参数(含timestamp)按照字典排序之后,按照key1=value1 + key2=value2 ... + Secret Key 字符串(+表示字符串连接)。\"}]},{\"type\":\"html\",\"text\":\"originString = method + path + params sign = HmacSHA256(originString)\"},{\"type\":\"html\",\"text\":\"

    例如:对于如下的请求参数进行签名

    \"},{\"type\":\"code\",\"text\":\"curl \\\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance\\\"\"},{\"type\":\"html\",\"text\":\"

    通过POST方式获取获取用户某资产余额信息,以

    \"},{\"type\":\"html\",\"text\":\"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    \"},{\"type\":\"html\",\"text\":\"为例\"},{\"type\":\"html\",\"text\":\"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    \"},{\"type\":\"html\",\"text\":\"请求参数按字典排序之后,为 \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    \"},{\"type\":\"html\",\"text\":\"mothod为POST,path为/api/v1/user/getBalance,生成待签名的参数字符串如下:\"},{\"type\":\"code\",\"text\":\"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"按算法生成待签名的字符串\"},{\"type\":\"code\",\"text\":\"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"然后,将待签名字符串添加私钥参数生成最终待签名字符串。例如:\"},{\"type\":\"html\",\"text\":\"

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256(\\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\", \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\")

    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\" | openssl dgst -sha256 -hmac \\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\" -binary | base64 | xargs python2.7 -c 'import sys, urllib;print(urllib.quote(sys.argv[1]))' \"},{\"type\":\"html\",\"text\":\"Signature的结果为S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D,则签名之后的url query参数为 \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    \"},{\"type\":\"html\",\"text\":\"即最终发送给服务器的API请求应该为:\"},{\"type\":\"code\",\"text\":\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication/04_sign_discription.json\n// module id = XBGg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Access\"},{\"type\":\"normal\",\"text\":\"Market Websocket access URL: wss://open-api-ws.bingx.com/market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce/01_connect.json\n// module id = XKjN\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/spot/websocket/market/index.js","module.exports = \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA4NCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQ4LjQwNzcgNy42NzE3Nkg0NS40NDk3VjE3Ljk3MjhINDguNDA3N1Y3LjY3MTc2WiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTQzLjU0MzcgMTEuODc0OUM0My4yMjUxIDExLjI4OTYgNDIuNzY4OCAxMC43OTAzIDQyLjIxODkgMTAuNDE5OUM0Mi44OTkgOS42NDg4IDQzLjI5OTcgOC42MjQ4OCA0My4yNTA0IDcuNTAzNjNDNDMuMTUwNSA1LjI4MTM3IDQxLjI1MDYgMy41NjQ3MyAzOS4wMjcxIDMuNTY0NzNIMzIuODYwOFYxNy45NzE2SDM5LjkxNTdDNDIuMTk0OSAxNy45NzE2IDQ0LjA0MyAxNi4xMjQ3IDQ0LjA0MyAxMy44NDQzQzQ0LjA0MyAxMy4xMzE0IDQzLjg2MjIgMTIuNDYxNCA0My41NDM3IDExLjg3NDlaTTM5LjQ1NjkgMTUuNTI2OEgzNS44MTc1VjExLjk5MTJIMzkuNDM1NEM0MC4zODYgMTEuOTkxMiA0MS4xODk5IDEyLjc0NTggNDEuMTg5OSAxMy43NTk2QzQxLjE4OTkgMTQuNzYwOCA0MC4zODcyIDE1LjUyNjggMzkuNDU2OSAxNS41MjY4Wk0zOC42ODMyIDkuNTQ2NEgzNS44MTc1VjYuMDEwNzVIMzguNjYxN0MzOS42MTIzIDYuMDEwNzUgNDAuNDE2MyA2Ljc2NTQxIDQwLjQxNjMgNy43NzkyQzQwLjQxNSA4Ljc3OTEgMzkuNjEyMyA5LjU0NjQgMzguNjgzMiA5LjU0NjRaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNODMuMzk5MiAzLjk5MTk5SDc5Ljk5NjNMNzcuMzM5MSA4LjI1MzI0TDc0LjY4MiAzLjk5MTk5SDcxLjI3NzhMNzUuNjM3NyAxMC45ODI0TDcxLjI3NzggMTcuOTcyOEg3NC42ODJMNzcuMzM5MSAxMy43MTE2TDc5Ljk5NjMgMTcuOTcyOEg4My4zOTkyTDc5LjA0MDYgMTAuOTgyNEw4My4zOTkyIDMuOTkxOTlaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNNTguOTU2NiAxMi4yNDI3VjE3Ljk3MTZINTUuOTk5OVYxMS43Mjk1QzU1Ljk5OTkgMTAuODIxOSA1NS4yNTAzIDEwLjA4ODcgNTQuMzM1MSAxMC4xMTUyQzUzLjQ1MjggMTAuMTQxOCA1Mi43NzE0IDEwLjkxMjkgNTIuNzcxNCAxMS43OTY1VjE3Ljk3MDNINDkuODEzNVY3LjY2OTIzSDUyLjc3MTRWOC4xNTk2OUM1My40Mzc2IDcuODQ0OTQgNTQuMTc5NiA3LjY2OTIzIDU0Ljk2NDYgNy42NjkyM0M1NS4zNTc4IDcuNjY5MjMgNTUuNzQwOCA3LjcxMzQ3IDU2LjEwODYgNy43OTY5QzU3Ljc0ODIgOC4xNjk4MSA1OC45MDYxIDkuNjMzNjIgNTguOTQ3OCAxMS4zMTM2QzU4Ljk1NDEgMTEuNjE1NyA1OC45NTY2IDExLjkyNzkgNTguOTU2NiAxMi4yNDI3WiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTQ4LjQwNzcgMy41NjQ3M0g0NS40NDk3VjYuNTIyN0g0OC40MDc3VjMuNTY0NzNaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNNzAuNDg1NCA3LjY3MTc2SDY1LjM4NDhDNjUuMzY4NCA3LjY3MTc2IDY1LjM1MiA3LjY3MDQ5IDY1LjMzNDMgNy42NzA0OUM2Mi40OTAxIDcuNjcwNDkgNjAuMTg0NCA5Ljk3NzQ2IDYwLjE4NDQgMTIuODIxN0M2MC4xODQ0IDE1LjY1MzIgNjIuNDY3MyAxNy45NDg4IDY1LjI5IDE3Ljk3MDNDNjUuMzAyNyAxNy45NzI4IDY1LjMxNzggMTcuOTcyOCA2NS4zMzQzIDE3Ljk3MjhDNjYuNDMxNSAxNy45NzI4IDY3LjUyNzUgMTguMjk1MiA2Ny41Mjc1IDE5LjI0OTZDNjcuNTI3NSAyMC4yMTkxIDY2LjUzNTIgMjEuMDQyIDY1LjMzNDMgMjEuMDQyQzY0LjEyMzMgMjEuMDQyIDYzLjE0MTEgMjAuMDU5OCA2My4xNDExIDE4Ljg0ODhINjAuMTgzMUM2MC4xODMxIDIxLjY5MyA2Mi40OTAxIDI0IDY1LjMzMyAyNEM2OC4xNzg1IDI0IDcwLjQ4MjkgMjEuNjkzIDcwLjQ4MjkgMTguODQ4OEM3MC40ODQyIDE4Ljg0ODggNzAuNTM5OCAxNy4zMTA0IDY5LjIzNTIgMTYuMTg0MUM3MC4wMTUyIDE1LjI4MjggNzAuNDg0MiAxNC4xMDk4IDcwLjQ4NDIgMTIuODIxN0M3MC40ODQyIDExLjgyOTMgNzAuMjAzNSAxMC45MDI4IDY5LjcxNjkgMTAuMTE2NUg3MC40ODU0VjcuNjcxNzZaTTY1LjMzNDMgMTUuMDE0OUM2NC4xMjMzIDE1LjAxNDkgNjMuMTQxMSAxNC4wMzI3IDYzLjE0MTEgMTIuODIxN0M2My4xNDExIDExLjYxMDcgNjQuMTIzMyAxMC42Mjg1IDY1LjMzNDMgMTAuNjI4NUM2Ni41NDUzIDEwLjYyODUgNjcuNTI3NSAxMS42MTA3IDY3LjUyNzUgMTIuODIxN0M2Ny41Mjc1IDE0LjAzMjcgNjYuNTQ1MyAxNS4wMTQ5IDY1LjMzNDMgMTUuMDE0OVoiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0yOC4wMDY1IDBDMjQuODQyNSAwIDIxLjcxMzkgMC44MDAxNyAxOC45NTgyIDIuMzE0NTVDMTcuNDgxNyAzLjEyNjA5IDE2LjExOSA0LjEzMjMxIDE0LjkwOCA1LjMwNjY1QzE0LjYyMzYgNS41ODIyMiAxNC4zNDQzIDUuODcwNDMgMTQuMDc3NSA2LjE2MzdDMTMuMTgzOCA3LjE0ODQyIDEyLjM5MjUgOC4yMjc5NiAxMS43Mjc2IDkuMzczMjJDMTEuNDkxMiA5Ljc4NDA1IDExLjIyOTUgMTAuMTg0OCAxMC45NDg5IDEwLjU2NzhDMTAuOTEyMyAxMC42MTgzIDEwLjg3NjkgMTAuNjY3NyAxMC44Mzc3IDEwLjcxN0M4LjM4Nzg3IDEzLjk1ODEgNC42NTc1NCAxNS44MTYzIDAuNjAxMDc0IDE1LjgxNjNWMjEuODA0M0MzLjc2NTA5IDIxLjgwNDMgNi44OTM3MSAyMS4wMDQxIDkuNjQ5NDMgMTkuNDg5N0MxMS4xMjIxIDE4LjY4MDcgMTIuNDg0OCAxNy42NzMyIDEzLjY5OTYgMTYuNDk3NkMxMy45ODQgMTYuMjIyMSAxNC4yNjM0IDE1LjkzMzggMTQuNTMxMyAxNS42NDA2QzE1LjQyNTEgMTQuNjU1OSAxNi4yMTM4IDEzLjU3NzYgMTYuODc4OCAxMi40MzIzTDE2LjkyMyAxMi4zNTc3QzE3LjE0OCAxMS45NzIyIDE3LjM5NTggMTEuNTk1NSAxNy42NTc0IDExLjIzNzhDMTcuNjk0MSAxMS4xODg1IDE3LjczMDcgMTEuMTM3OSAxNy43Njk5IDExLjA4NjFDMjAuMjE4NSA3Ljg0NjIgMjMuOTUwMSA1Ljk4NjczIDI4LjAwNjUgNS45ODY3M1YwWiIgZmlsbD0iIzJBNTRGRiIvPgo8cGF0aCBvcGFjaXR5PSIwLjMiIGQ9Ik0yOC4wMDY1IDBDMjQuODQyNSAwIDIxLjcxMzkgMC44MDAxNyAxOC45NTgyIDIuMzE0NTVDMTcuNDgxNyAzLjEyNjA5IDE2LjExOSA0LjEzMjMxIDE0LjkwOCA1LjMwNjY1QzE0LjYyMzYgNS41ODIyMiAxNC4zNDQzIDUuODcwNDMgMTQuMDc3NSA2LjE2MzdDMTMuMTgzOCA3LjE0ODQyIDEyLjM5MjUgOC4yMjc5NiAxMS43Mjc2IDkuMzczMjJDMTEuNDkxMiA5Ljc4NDA1IDExLjIyOTUgMTAuMTg0OCAxMC45NDg5IDEwLjU2NzhDMTAuOTEyMyAxMC42MTgzIDEwLjg3NjkgMTAuNjY3NyAxMC44Mzc3IDEwLjcxN0M4LjM4Nzg3IDEzLjk1ODEgNC42NTc1NCAxNS44MTYzIDAuNjAxMDc0IDE1LjgxNjNWMjEuODA0M0MzLjc2NTA5IDIxLjgwNDMgNi44OTM3MSAyMS4wMDQxIDkuNjQ5NDMgMTkuNDg5N0MxMS4xMjIxIDE4LjY4MDcgMTIuNDg0OCAxNy42NzMyIDEzLjY5OTYgMTYuNDk3NkMxMy45ODQgMTYuMjIyMSAxNC4yNjM0IDE1LjkzMzggMTQuNTMxMyAxNS42NDA2QzE1LjQyNTEgMTQuNjU1OSAxNi4yMTM4IDEzLjU3NzYgMTYuODc4OCAxMi40MzIzTDE2LjkyMyAxMi4zNTc3QzE3LjE0OCAxMS45NzIyIDE3LjM5NTggMTEuNTk1NSAxNy42NTc0IDExLjIzNzhDMTcuNjk0MSAxMS4xODg1IDE3LjczMDcgMTEuMTM3OSAxNy43Njk5IDExLjA4NjFDMjAuMjE4NSA3Ljg0NjIgMjMuOTUwMSA1Ljk4NjczIDI4LjAwNjUgNS45ODY3M1YwWiIgZmlsbD0idXJsKCNwYWludDBfcmFkaWFsXzM2OV8xNDM4KSIvPgo8cGF0aCBkPSJNMjguMDA2NSAxNS44MTYzQzIzLjk1MDEgMTUuODE2MyAyMC4yMTg1IDEzLjk1ODEgMTcuNzY4NyAxMC43MTdDMTcuNzMyIDEwLjY2NzcgMTcuNjk0MSAxMC42MTg0IDE3LjY1NzQgMTAuNTY1M0MxNy4zNzgxIDEwLjE4NiAxNy4xMTY0IDkuNzg0MDUgMTYuODggOS4zNzE5NkMxNi4yMTUxIDguMjI3OTYgMTUuNDIzOCA3LjE0ODQyIDE0LjUzMDEgNi4xNjM3QzE0LjI2MzQgNS44NzE2OSAxMy45ODQgNS41ODM0OCAxMy42OTk2IDUuMzA3OTFDMTIuNDg4NiA0LjEzMjMxIDExLjEyNTkgMy4xMjYwOSA5LjY0OTQzIDIuMzE1ODFDNi44OTM3MSAwLjgwMTQzMSAzLjc2NTA5IDAuMDAxMjY0NTcgMC42MDEwNzQgMC4wMDEyNjQ1N1Y1Ljk4OTI1QzQuNjU3NTQgNS45ODkyNSA4LjM4OTEzIDcuODQ3NDcgMTAuODM4OSAxMS4wODg2QzEwLjg3NjkgMTEuMTM3OSAxMC45MTM1IDExLjE4ODUgMTAuOTUwMiAxMS4yMzc4QzExLjIxMzEgMTEuNTk2OCAxMS40NjA5IDExLjk3MzUgMTEuNjgzMyAxMi4zNTUyTDExLjczMDEgMTIuNDMzNkMxMi4zOTM4IDEzLjU3NjMgMTMuMTgzOCAxNC42NTQ2IDE0LjA3NzUgMTUuNjQwNkMxNC4zNDMgMTUuOTMyNiAxNC42MjM2IDE2LjIyMDggMTQuOTA4IDE2LjQ5NjRDMTYuMTIxNiAxNy42NzIgMTcuNDg0MyAxOC42Nzk0IDE4Ljk1ODIgMTkuNDg4NUMyMS43MTM5IDIxLjAwMjggMjQuODQyNSAyMS44MDMgMjguMDA2NSAyMS44MDNWMTUuODE2M1oiIGZpbGw9IiMyQTU0RkYiLz4KPGRlZnM+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQwX3JhZGlhbF8zNjlfMTQzOCIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSgxNC4zMDUgMTAuOTAyMSkgc2NhbGUoOS41OTk5NSkiPgo8c3RvcC8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1vcGFjaXR5PSIwIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./static/logo.svg\n// module id = XmuZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Switch Leverage\"},{\"type\":\"normal\",\"text\":\"Switch the leverage size of a certain trading pair for long or short positions \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/setLeverage\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/setLeverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":\"\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Leverage of Long or Short positions\"},{\"name\":\"leverage\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"leverage\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/12_post_trade_leverage.json\n// module id = XqXJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query user API Key permissions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/v1/account/apiRestrictions\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiRestrictions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp e.g.1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"ipRestrict\",\"type\":\"Boolean\",\"description\":\"Whether to restrict ip access\"},{\"name\":\"createTime\",\"type\":\"Long\",\"description\":\"creation time\"},{\"name\":\"permitsUniversalTransfer\",\"type\":\"Boolean\",\"description\":\"Authorize the key to be used on a dedicated universal transfer interface\"},{\"name\":\"enableReading\",\"type\":\"Boolean\",\"description\":\"Can read\"},{\"name\":\"enableFutures\",\"type\":\"Boolean\",\"description\":\"swap trading authority\"},{\"name\":\"enableSpotAndMarginTrading\",\"type\":\"Boolean\",\"description\":\"Spot authority\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/permission/01_get_account_apiRestrictions.json\n// module id = Xu0+\n// module chunks = 3","var map = {\n\t\".\": \"UNGp\",\n\t\"./\": \"UNGp\",\n\t\"./01_post_trade_order\": \"db2W\",\n\t\"./01_post_trade_order.json\": \"db2W\",\n\t\"./02_post_trade_batch_order\": \"0L/C\",\n\t\"./02_post_trade_batch_order.json\": \"0L/C\",\n\t\"./03_post_closeAllPositions\": \"4yOc\",\n\t\"./03_post_closeAllPositions.json\": \"4yOc\",\n\t\"./04_delete_trade_order\": \"70Y8\",\n\t\"./04_delete_trade_order.json\": \"70Y8\",\n\t\"./05_delete_trade_batch_order\": \"kYAZ\",\n\t\"./05_delete_trade_batch_order.json\": \"kYAZ\",\n\t\"./06_delete_trade_all_order\": \"nfgo\",\n\t\"./06_delete_trade_all_order.json\": \"nfgo\",\n\t\"./07_get_all_openOrders\": \"7rHQ\",\n\t\"./07_get_all_openOrders.json\": \"7rHQ\",\n\t\"./08_get_trade_order\": \"j4v/\",\n\t\"./08_get_trade_order.json\": \"j4v/\",\n\t\"./09_get_trade_marginType\": \"0wg/\",\n\t\"./09_get_trade_marginType.json\": \"0wg/\",\n\t\"./10_post_trade_marginType\": \"PTH3\",\n\t\"./10_post_trade_marginType.json\": \"PTH3\",\n\t\"./11_get_trade_leverage\": \"dLDu\",\n\t\"./11_get_trade_leverage.json\": \"dLDu\",\n\t\"./12_post_trade_leverage\": \"pyFj\",\n\t\"./12_post_trade_leverage.json\": \"pyFj\",\n\t\"./13_get_trade_forceOrders\": \"PyiJ\",\n\t\"./13_get_trade_forceOrders.json\": \"PyiJ\",\n\t\"./14_get_trade_allOrders\": \"fFLq\",\n\t\"./14_get_trade_allOrders.json\": \"fFLq\",\n\t\"./15_post_trade_positionMargin\": \"5DAQ\",\n\t\"./15_post_trade_positionMargin.json\": \"5DAQ\",\n\t\"./16_post_trade_order_test\": \"IdRU\",\n\t\"./16_post_trade_order_test.json\": \"IdRU\",\n\t\"./17_get_trade_allFillOrders\": \"Y5kV\",\n\t\"./17_get_trade_allFillOrders.json\": \"Y5kV\",\n\t\"./18_get_trade_income_export\": \"DLoG\",\n\t\"./18_get_trade_income_export.json\": \"DLoG\",\n\t\"./19_get_trade_user_commissionRate\": \"I7Id\",\n\t\"./19_get_trade_user_commissionRate.json\": \"I7Id\",\n\t\"./20_get_trade_quote_bookTicker\": \"rEFa\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"rEFa\",\n\t\"./index\": \"UNGp\",\n\t\"./index.js\": \"UNGp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Y+at\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade ^.*$\n// module id = Y+at\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询历史成交订单\"},{\"type\":\"normal\",\"text\":\"获取某交易对的成交历史\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/allFillOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allFillOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"tradingUnit\":\"\",\"startTs\":0,\"endTs\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"只返回此orderID及之后的订单,缺省返回最近的订单\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"tradingUnit\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易单位,可选值:COIN、CONT直接表示BTC,ETH等资产,CONT表示合约张数\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"起始时间戳,单位毫秒\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"结束时间戳,单位毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"filledTm\",\"type\":\"string\",\"description\":\"匹配成交的时间,格式为2006-01-02T15:04:05.999Z\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成交价格\"},{\"name\":\"amount\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"资产单位,一般为USDT\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单号\"},{\"name\":\"liquidatedPrice\",\"type\":\"string\",\"description\":\"预估强平价,触发强平时刻的预估强平价,只有强平订单才有\"},{\"name\":\"liquidatedMarginRatio\",\"type\":\"string\",\"description\":\"强平时保证金率,触发强平时刻的强平保证金率,只有强平订单才有\"},{\"name\":\"filledTime\",\"type\":\"string\",\"description\":\"匹配成交的时间,格式为2006-01-02T15:04:05.999+0800\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/17_get_trade_allFillOrders.json\n// module id = Y5kV\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"24小時價格變動情况\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/ticker\"},{\"type\":\"html\",\"text\":\"
  • 不發送交易對參數,則會返回所有交易對信息
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/ticker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"24小時價格變動\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"價格變動百分比\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"最新交易價格\"},{\"name\":\"lastQty\",\"type\":\"string\",\"description\":\"最新交易額\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"24小時最高價\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"24小時最低價\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"24小時成交量\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"24小時成交額, 單位是USDT\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"24小時內第一個價格\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"24小時內,第一筆交易的發生時間\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"description\":\"24小時內,最後一筆交易的發生時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/09_get_quote_ ticker.json\n// module id = Y7KR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"删除子账户apikey\"},{\"type\":\"normal\",\"text\":\"删除子账户apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/del\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/del\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子账户uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/08_delete_sub_account_key.json\n// module id = Y8uX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"获取充值历史(支持多网络)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"币的名称\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"状态(0:pending,6: credited but cannot withdraw, 1:success)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"开始时间 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"结束时间 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默认0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"页数量大小 默认1000 不能超过1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"执行窗口时间,不能大于 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"当前时间戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"充值金额\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"币名称\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"充值网络\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"状态 状态 0-已确认-10-待确认(审核中) 20-已申请区块 30已审核通过 40审核不通过 50已汇出 60充值初步确认(最终确认变为0) 70审核不通过已退回资产\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"备注\"},{\"name\":\"txId\",\"type\":\"LONG\",\"description\":\"交易id\"},{\"name\":\"insertTime\",\"type\":\"LONG\",\"description\":\"交易时间\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"交易类型0=充值\"},{\"name\":\"unlockConfirm\",\"type\":\"LONG\",\"description\":\"解锁需要的网络确认次数\"},{\"name\":\"confirmTimes\",\"type\":\"LONG\",\"description\":\"网络确认次数\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account/03_get_deposit_hisrec.json\n// module id = YAvn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"24小时价格变动情况\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/ticker\"},{\"type\":\"html\",\"text\":\"
  • 不发送交易对参数,则会返回所有交易对信息
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/ticker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"24小时价格变动\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"价格变动百分比\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"最新交易价格\"},{\"name\":\"lastQty\",\"type\":\"string\",\"description\":\"最新交易额\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"24小时最高价\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"24小时最低价\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"24小时成交量\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"24小时成交额, 单位是USDT\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"24小时内第一个价格\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"24小时内,第一笔交易的发生时间\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"description\":\"24小时内,最后一笔交易的发生时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/09_get_quote_ ticker.json\n// module id = YBd1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Trade order\"},{\"type\":\"normal\",\"text\":\"The current account places an order on the specified symbol contract. (Supports limit order, market order, market order for plan entrustment, limit order for plan entrustment, position stop profit and stop loss order, and liquidation for positions)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/order\"},{\"type\":\"warning\",\"text\":\"Depending on the order type, certain parameters are mandatory:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: Mandatory Parameters: quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: Mandatory Parameters: quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: Mandatory Parameters: quantity、stopPrice、price
  • \"},{\"type\":\"html\",\"text\":\"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: Mandatory Parameters: quantity、stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    1. Open/Close: How to use the same endpoint to open (Long/Short) and close (Long/Short) positions? Please refer to the following request payload combination:

    \"},{\"type\":\"html\",\"text\":\"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"MARKET\\\", \\\"quantity\\\": 5}

    \"},{\"type\":\"html\",\"text\":\"

    2. Set take profit and stop loss: This endpoint can also be used to set take profit and stop loss, but the position needs to be opened first;
    The current take profit and stop loss price only supports the default marked price, and currently does not support the latest and index price options

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"quantity\\\": 3, \\\"stopPrice\\\": 31968.0}

    \"},{\"type\":\"warning\",\"text\":\"The triggering of the conditional order must:\"},{\"type\":\"html\",\"text\":\"

    STOP/STOP_MARKET stop loss order:

    \"},{\"type\":\"html\",\"text\":\"
  • The accumulative quantity of the pending stop loss orders cannot be greater than the quantity of open positions
  • \"},{\"type\":\"html\",\"text\":\"
  • Buy: the mark price is higher than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • Sell: the mark price is lower than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    TAKE_PROFIT/TAKE_PROFIT_MARKET take profit order:

    \"},{\"type\":\"html\",\"text\":\"
  • The accumulative quantity of the pending take profit order cannot be greater than the position quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • Buy: the mark price is lower than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • Sell: the mark price is higher than or equal to the trigger price stopPrice
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"type\":\"\",\"side\":\"\",\"positionSide\":\"\",\"price\":0,\"quantity\":0,\"stopPrice\":0,\"recvWindow\":0,\"timeInForce\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"order type LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, and only LONG or SHORT can be selected, the default is LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN not U$: quantity=U$/price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only required for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in Force, currently supports PostOnly, GTC, IOC, and FOK\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/01_post_trade_order.json\n// module id = YLkf\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"TDl7\",\n\t\"./02_post_closeAllPositions.json\": \"o80Q\",\n\t\"./03_post_closeAllPositions.json\": \"nQs3\",\n\t\"./04_delete_trade_order.json\": \"KJWq\",\n\t\"./05_delete_trade_batch_order.json\": \"w9O3\",\n\t\"./06_delete_trade_all_order.json\": \"KZXS\",\n\t\"./07_get_all_openOrders.json\": \"0FzS\",\n\t\"./08_get_trade_order.json\": \"xd76\",\n\t\"./09_get_trade_marginType.json\": \"/RL+\",\n\t\"./10_post_trade_marginType.json\": \"Fg4Y\",\n\t\"./11_get_trade_leverage.json\": \"EtCx\",\n\t\"./12_post_trade_leverage.json\": \"hkx8\",\n\t\"./13_get_trade_forceOrders.json\": \"tc3t\",\n\t\"./14_get_trade_allOrders.json\": \"K+iN\",\n\t\"./15_post_trade_positionMargin.json\": \"vzun\",\n\t\"./16_post_trade_order_test.json\": \"IS5C\",\n\t\"./17_get_trade_allFillOrders.json\": \"Z792\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"2Oo8\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"YOB9\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade \\.json$\n// module id = YOB9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約交易深度\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getMarketDepth\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getMarketDepth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"level\":\"5\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"level\",\"type\":\"int\",\"required\":\"否\",\"description\":\"層數,若為空,則默認返回5層\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息描述\"},{\"name\":\"data\",\"type\":\"array\",\"description\":\"\"}]},{\"type\":\"data\",\"key\":\"response1\",\"data\":[{\"name\":\"asks\",\"type\":\"array[depth]\",\"description\":\"賣方深度\"},{\"name\":\"bids\",\"type\":\"array[depth]\",\"description\":\"買方深度\"}]},{\"type\":\"depth\",\"key\":\"response2\",\"data\":[{\"name\":\"p\",\"type\":\"float64\",\"description\":\"price價格\"},{\"name\":\"v\",\"type\":\"float64\",\"description\":\"volume數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/03_get_quote_depth.json\n// module id = YP5V\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Assets\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/account/balance\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"balances\",\"type\":\"Array\",\"description\":\"Asset list, element fields refer to the following table\"}]},{\"type\":\"balance\",\"key\":\"response1\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"Asset name\"},{\"name\":\"free\",\"type\":\"string\",\"description\":\"Available asset\"},{\"name\":\"locked\",\"type\":\"string\",\"description\":\"Freeze asset\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/06_get_account_balance.json\n// module id = YYU2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"请求内容\"},{\"type\":\"normal\",\"text\":\"所有REST请求都必须包含以下参数:\",\"children\":[{\"type\":\"normal\",\"text\":\"API Key作为一个字符串。\"},{\"type\":\"normal\",\"text\":\"sign 使用一定算法得出的签名(请参阅签名信息)。\"},{\"type\":\"normal\",\"text\":\"timestamp 作为您的请求的时间戳。\"},{\"type\":\"normal\",\"text\":\"所有请求都应该含有application/json类型内容,并且是有效的JSON。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication/03_request_content.json\n// module id = YdSN\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = paths.length - 1; i > -1; i--) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/changelog/index.js","module.exports = [{\"type\":\"normal\",\"text\":\"websocket接口是\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market\"},{\"type\":\"normal\",\"text\":\"订阅账户数据流的stream名称为 /market/\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market/\"},{\"type\":\"normal\",\"text\":\"listenKey 获取方式如下:\"},{\"type\":\"hash\",\"text\":\"生成 Listen Key\"},{\"type\":\"normal\",\"text\":\"listen key的有效时间为1小时\"},{\"type\":\"normal\",\"text\":\"接口\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl -X POST 'https://open-api.bingx.com/openApi/user/auth/userDataStream' --header \\\"X-BX-APIKEY:g6ikQYpMiWLecMQ39DUivd4ENem9ygzAim63xUPFhRtCFBUDNLajRoZNiubPemKT\\\"\"},{\"type\":\"normal\",\"text\":\"响应\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"listenKey\\\":\\\"a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\\\"}\"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Header\",\"key\":\"request\",\"data\":[{\"name\":\"X-BX-APIKEY\",\"type\":\"string\",\"required\":\"否\",\"description\":\"请求的API KEY\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"listenKey\",\"type\":\"string\",\"description\":\"返回的listenKey\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/listenKey/01_create_listenKey.json\n// module id = Yto4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Funding Rate History\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/fundingRate\"},{\"type\":\"html\",\"text\":\"
  • If both startTime and endTime are not sent, return the latest limit data.
  • \"},{\"type\":\"html\",\"text\":\"
  • If the amount of data between startTime and endTime is greater than limit, return the data in the case of startTime + limit.
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/fundingRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: millisecond\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: millisecond\"},{\"name\":\"limit\",\"type\":\"int32\",\"required\":\"no\",\"description\":\"default: 100 maximum: 1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"fundingRate\",\"type\":\"string\",\"description\":\"funding rate\"},{\"name\":\"fundingTime\",\"type\":\"int64\",\"description\":\"Funding time: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/06_get_quote_ fundingRate.json\n// module id = YtyA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"授权子账号内转\"},{\"type\":\"normal\",\"text\":\"主账号授权子账号内转权限(限主账号使用)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"userAccountType\":3,\"userAccount\":\"bran***@**.com\",\"amount\":10,\"walletType\":1,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUids\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用户uid列表, 逗号分隔\"},{\"name\":\"transferable\",\"type\":\"boolean\",\"required\":\"是\",\"description\":\"是否允许, true允许 false禁止\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":\"data\"},{\"name\":\"data\",\"type\":\"boolean\",\"description\":\"授权是否成功\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\n// module id = YzmL\n// module chunks = 3","var map = {\n\t\".\": \"2xjp\",\n\t\"./\": \"2xjp\",\n\t\"./01_post_trade_order\": \"vDBD\",\n\t\"./01_post_trade_order.json\": \"vDBD\",\n\t\"./02_post_trade_batch_order\": \"Crrt\",\n\t\"./02_post_trade_batch_order.json\": \"Crrt\",\n\t\"./03_post_closeAllPositions\": \"pKuc\",\n\t\"./03_post_closeAllPositions.json\": \"pKuc\",\n\t\"./04_delete_trade_order\": \"9V8o\",\n\t\"./04_delete_trade_order.json\": \"9V8o\",\n\t\"./05_delete_trade_batch_order\": \"hIfT\",\n\t\"./05_delete_trade_batch_order.json\": \"hIfT\",\n\t\"./06_delete_trade_all_order\": \"Nw8z\",\n\t\"./06_delete_trade_all_order.json\": \"Nw8z\",\n\t\"./07_get_all_openOrders\": \"Ewmn\",\n\t\"./07_get_all_openOrders.json\": \"Ewmn\",\n\t\"./08_get_trade_order\": \"/1k/\",\n\t\"./08_get_trade_order.json\": \"/1k/\",\n\t\"./09_get_trade_marginType\": \"7mzI\",\n\t\"./09_get_trade_marginType.json\": \"7mzI\",\n\t\"./10_post_trade_marginType\": \"WVbz\",\n\t\"./10_post_trade_marginType.json\": \"WVbz\",\n\t\"./11_get_trade_leverage\": \"/Kh3\",\n\t\"./11_get_trade_leverage.json\": \"/Kh3\",\n\t\"./12_post_trade_leverage\": \"ZoHP\",\n\t\"./12_post_trade_leverage.json\": \"ZoHP\",\n\t\"./13_get_trade_forceOrders\": \"9bR8\",\n\t\"./13_get_trade_forceOrders.json\": \"9bR8\",\n\t\"./14_get_trade_allOrders\": \"7bgg\",\n\t\"./14_get_trade_allOrders.json\": \"7bgg\",\n\t\"./15_post_trade_positionMargin\": \"QHIT\",\n\t\"./15_post_trade_positionMargin.json\": \"QHIT\",\n\t\"./16_post_trade_order_test\": \"Hhes\",\n\t\"./16_post_trade_order_test.json\": \"Hhes\",\n\t\"./17_get_trade_allFillOrders\": \"7iFh\",\n\t\"./17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./18_get_trade_income_export\": \"TDt4\",\n\t\"./18_get_trade_income_export.json\": \"TDt4\",\n\t\"./19_get_trade_user_commissionRate\": \"x8dX\",\n\t\"./19_get_trade_user_commissionRate.json\": \"x8dX\",\n\t\"./20_get_trade_quote_bookTicker\": \"SGv/\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"SGv/\",\n\t\"./index\": \"2xjp\",\n\t\"./index.js\": \"2xjp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Z0gb\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade ^.*$\n// module id = Z0gb\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢當前委託訂單\"},{\"type\":\"normal\",\"text\":\"查詢一段時間週期內賬戶下處於當前委託狀態的訂單詳情。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/pendingOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/pendingOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"訂單委託時間\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向(Bid/Ask 買/賣)\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"委託類型(Market/Limit 市價/限價)\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open/Close 開倉/平倉\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"成交均價\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交數量\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手續費\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"訂單更新時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/07_get_all_openOrders.json\n// module id = Z2yu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询止盈止损订单列表\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/pendingStopOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/pendingStopOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"symbol\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用户id\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单id\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合约名称\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"仓位id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"description\":\"止损价格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"description\":\"止盈价格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委托数量\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid买入, Ask卖出\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"委托时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/17_get_trade_allFillOrders.json\n// module id = Z792\n// module chunks = 3","module.exports = {\"module\":\"swap\",\"path\":\"/swap/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingXAPI. \"},{\"type\":\"normal\",\"text\":\"You can use our API to access market data, trading, and account management endpoints of Perpetual Swap. The market data API is publicly accessible and provides market data such as The Latest Trade of a Trading Pair. The account and trading APIs require authentication with an API Key which allows you to place and cancel orders and enquire order status and account info.\"},{\"type\":\"html\",\"text\":\"USDT-M Perpetual Futures API Reference V2\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/1_introduce.json\n// module id = ZZch\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Account balance and position update push\"},{\"type\":\"normal\",\"text\":\"The event type of the account update event is fixed as ACCOUNT_UPDATE \"},{\"type\":\"normal\",\"text\":\"When the account information changes, this event will be pushed:\",\"children\":[{\"type\":\"normal\",\"text\":\"This event will only be pushed when there is a change in account information (including changes in funds, positions, etc.); This event will not be pushed if the change in the order status does not cause changes in the account and positions;\"},{\"type\":\"normal\",\"text\":\"position information: push only when there is a change in the symbol position. \"}]},{\"type\":\"normal\",\"text\":\"Fund balance changes caused by \\\"FUNDING FEE\\\", only push brief events: \",\"children\":[{\"type\":\"normal\",\"text\":\"When \\\"FUNDING FEE\\\" occurs in a user's cross position, the event ACCOUNT_UPDATE will only push the relevant user's asset balance information B (only push the asset balance information related to the occurrence of FUNDING FEE), and will not push any position information P. \"},{\"type\":\"normal\",\"text\":\"When \\\"FUNDING FEE\\\" occurs in a user's isolated position, the event ACCOUNT_UPDATE will only push the relevant user asset balance information B (only push the asset balance information used by \\\"FUNDING FEE\\\"), and related position information P( Only the position information where this \\\"FUNDING FEE\\\" occurred is pushed), and the rest of the position information will not be pushed. \"}]},{\"type\":\"normal\",\"text\":\"The field \\\"m\\\" represents the reason for the launch of the event, including the following possible types: -DEPOSIT\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT\"},{\"type\":\"normal\",\"text\":\"WITHDRAW\"},{\"type\":\"normal\",\"text\":\"ORDER\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE\"}]},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"event type:ACCOUNT_UPDATE\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"event time:1676603102163\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"1676603102163\"},{\"name\":\"a\",\"type\":\"obj\",\"description\":\"account update event\"}]},{\"type\":\"a\",\"key\":\"key1\",\"data\":[{\"name\":\"m\",\"type\":\"\",\"description\":\"event launch reason\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Array: balance information\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"Array: trade info\"}]},{\"type\":\"B\",\"key\":\"key2\",\"data\":[{\"name\":\"a\",\"type\":\"\",\"description\":\"asset name:USDT\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"wallet balance:5277.59264687\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"Wallet balance excluding isolated margin:5233.21709203\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"wallet balance change amount:0\"}]},{\"type\":\"P\",\"key\":\"key3\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"trading pair:LINK-USDT\"},{\"name\":\"pa\",\"type\":\"\",\"description\":\"position:108.84300000\"},{\"name\":\"ep\",\"type\":\"\",\"description\":\"entry price:7.25620000\"},{\"name\":\"up\",\"type\":\"\",\"description\":\"unrealized profit and loss of positions:1.42220000\"},{\"name\":\"mt\",\"type\":\"\",\"description\":\"margin mode:isolated\"},{\"name\":\"iw\",\"type\":\"\",\"description\":\"If it is an isolated position, the position margin:23.19081642\"},{\"name\":\"ps\",\"type\":\"\",\"description\":\"position direction:SHORT\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account/02_balance.json\n// module id = Zg2x\n// module chunks = 3","var map = {\n\t\".\": \"UJ2F\",\n\t\"./\": \"UJ2F\",\n\t\"./01_balance\": \"p0H6\",\n\t\"./01_balance.json\": \"p0H6\",\n\t\"./index\": \"UJ2F\",\n\t\"./index.js\": \"UJ2F\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Zi0D\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/websocket/account ^.*$\n// module id = Zi0D\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整開倉槓桿\"},{\"type\":\"normal\",\"text\":\"調整用戶在指定symbol合約的開倉槓桿。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"多倉或者空倉的槓桿,LONG表示多倉,SHORT表示空倉\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"leverage\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"槓桿倍數\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"leverage\",\"type\":\"int64\",\"description\":\"槓桿倍數\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/12_post_trade_leverage.json\n// module id = ZoHP\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"itMl\",\n\t\"./02_data_compress.json\": \"yOH9\",\n\t\"./03_heart_beat.json\": \"hrCt\",\n\t\"./04_subscribe.json\": \"jYwr\",\n\t\"./05_cancel_subscribe.json\": \"cspZ\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ZuZg\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce \\.json$\n// module id = ZuZg\n// module chunks = 3","var map = {\n\t\".\": \"otUP\",\n\t\"./\": \"otUP\",\n\t\"./01_create_listenKey\": \"8kVO\",\n\t\"./01_create_listenKey.json\": \"8kVO\",\n\t\"./02_put_listenKey\": \"Rtfu\",\n\t\"./02_put_listenKey.json\": \"Rtfu\",\n\t\"./03_delete_listenKey\": \"LvyQ\",\n\t\"./03_delete_listenKey.json\": \"LvyQ\",\n\t\"./index\": \"otUP\",\n\t\"./index.js\": \"otUP\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ZzgK\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/listenKey ^.*$\n// module id = ZzgK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶現貨資產\"},{\"type\":\"normal\",\"text\":\"查詢子賬戶現貨資產\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/assets\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"資產名稱\"},{\"name\":\"free\",\"type\":\"double\",\"description\":\"可用額度\"},{\"name\":\"locked\",\"type\":\"double\",\"description\":\"鎖定資產\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/04_get_sub_account_spot_balance.json\n// module id = a8qg\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/common/api/permission/index.js","var map = {\n\t\".\": \"0RsY\",\n\t\"./\": \"0RsY\",\n\t\"./01_get_contract_allPosition\": \"Bfwk\",\n\t\"./01_get_contract_allPosition.json\": \"Bfwk\",\n\t\"./02_get_contract_allOrders\": \"HijD\",\n\t\"./02_get_contract_allOrders.json\": \"HijD\",\n\t\"./03_get_contract_balance\": \"+25w\",\n\t\"./03_get_contract_balance.json\": \"+25w\",\n\t\"./index\": \"0RsY\",\n\t\"./index.js\": \"0RsY\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"aXvb\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/standard/api/trade ^.*$\n// module id = aXvb\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"心跳信息\"},{\"type\":\"normal\",\"text\":\"当用户的Websocket客户端连接到Bingx Websocket服务器后,服务器会定期(当前设为5秒)向其发送心跳字符串Ping\"},{\"type\":\"code\",\"text\":\" {\\\"ping\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"},{\"type\":\"normal\",\"text\":\"当用户的Websocket客户端接收到此心跳消息后,应返回字符串Pong消息\"},{\"type\":\"code\",\"text\":\"{\\\"pong\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/introduce/03_heart_beat.json\n// module id = aeFT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢用戶万向劃轉歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/asset/transfer\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"startTime\":1658748648396,\"endTime\":1658748648396,\"current\":1,\"size\":10,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"是\",\"description\":\"劃轉類型\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"開始時間 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"結束時間 1658748648396\"},{\"name\":\"current\",\"type\":\"int\",\"required\":\"否\",\"description\":\"當前頁 默認1\"},{\"name\":\"size\",\"type\":\"int\",\"required\":\"否\",\"description\":\"頁數量大小 默認10 不能超過100\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"資金賬戶->標准合約\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"標准合約->資金賬戶\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"資金賬戶->永續合約\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"永續合約->資金賬戶\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"標准合約->永續合約\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"永續合約->標准合約\"},{\"name\":\"FUND_STRADING\",\"type\":\"\",\"description\":\"資金賬戶 -> 網格\"},{\"name\":\"STRADING_FUND\",\"type\":\"\",\"description\":\"網格 -> 資金賬戶\"},{\"name\":\"FUND_CTRADING\",\"type\":\"\",\"description\":\"資金賬戶 -> 跟單\"},{\"name\":\"SFUTURES_CTRADING\",\"type\":\"\",\"description\":\"標准合約賬戶 -> 跟單\"},{\"name\":\"PFUTURES_CTRADING\",\"type\":\"\",\"description\":\"永續合約賬戶 -> 跟單\"},{\"name\":\"CTRADING_FUND\",\"type\":\"\",\"description\":\"跟單 -> 資金賬戶\"},{\"name\":\"CTRADING_SFUTURES\",\"type\":\"\",\"description\":\"跟單 -> 標准合約賬戶\"},{\"name\":\"CTRADING_PFUTURES\",\"type\":\"\",\"description\":\"跟單 -> 永續合約賬戶\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"total\",\"type\":\"LONG\",\"description\":\"总數\"},{\"name\":\"rows\",\"type\":\"Array\",\"description\":\"數據Array\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"幣的名稱\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"幣的金額\"},{\"name\":\"type\",\"type\":\"ENUM\",\"description\":\"劃轉類型\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"CONFIRMED\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"交易ID\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"description\":\"劃轉的時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/02_get_asset_transfer2.json\n// module id = ah5Z\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"請求交互\"},{\"type\":\"warning\",\"text\":\"REST訪問的根URL: https://api-swap-rest.bingbon.pro\"},{\"type\":\"html\",\"text\":\"所有請求基於Https协议,請求頭信息中Content-Type 需要統一設置為:'application/json’。 \"},{\"type\":\"html\",\"text\":\"請求交互說明\"},{\"type\":\"html\",\"text\":\"
  • 請求參數:根據接口請求參數規定進行參數封装。
  • \"},{\"type\":\"html\",\"text\":\"
  • 提交請求參數:将封装好的請求參數通過POST/GET/DELETE等方式提交至服務器。
  • \"},{\"type\":\"html\",\"text\":\"
  • 服務器響應:服務器首先對用戶請求數據進行參數安全校驗,通過校驗後根據業務邏輯将響應數據以JSON格式返回給用戶。
  • \"},{\"type\":\"html\",\"text\":\"
  • 數據處理:對服務器響應數據進行處理。
  • \"},{\"type\":\"html\",\"text\":\"成功\"},{\"type\":\"html\",\"text\":\"
  • HTTP狀態碼200表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/authentication/05_request.json\n// module id = auLt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢apikey信息\"},{\"type\":\"normal\",\"text\":\"查詢apikey信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/sub-account/v1/apiKey/query\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/sub-account/v1/apiKey/query\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"用戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"否\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"description\":\"\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"備註\"},{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,5-提幣\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"ip白名單\"},{\"name\":\"createTime\",\"type\":\"long\",\"description\":\"創建時間\"},{\"name\":\"updateTime\",\"type\":\"long\",\"description\":\"更新時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/06_get_api_key_info.json\n// module id = azxt\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/common/api/subAccount/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查詢K線最新數據\"},{\"type\":\"normal\",\"text\":\"查詢最新成交價格的K線最新數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestKline\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestKline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k線類型,參考字段說明,如分鐘,小時,週等\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1m一分鐘K線\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3m三分鐘K線\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"5m五分鐘K線\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15m十五分鐘K線\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30m三十分鐘K線\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1h一小時K線\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2h两小時K線\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4h四小時K線\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6h六小時K線\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12h十二小時K線\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1D日K線\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W週K線\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1M月K線\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"開盤價\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盤價\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高價\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低價\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易數量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"k線時間戳,單位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/07_get_quote_ klines.json\n// module id = bDbK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"有限檔深度信息\"},{\"type\":\"normal\",\"text\":\"每秒推送有限檔深度信息。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @depth,比如BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"是\",\"description\":\"檔數, 如 5,10,20,50,100\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"賣方深度\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"買方深度\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price價格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume數量\"}]},{\"type\":\"level\",\"key\":\"common\",\"data\":[{\"name\":\"5\",\"type\":\"\",\"description\":\"5檔\"},{\"name\":\"10\",\"type\":\"\",\"description\":\"10檔\"},{\"name\":\"20\",\"type\":\"\",\"description\":\"20檔\"},{\"name\":\"50\",\"type\":\"\",\"description\":\"50檔\"},{\"name\":\"100\",\"type\":\"\",\"description\":\"100檔\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/01_dept_info.json\n// module id = bFzX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"请求交互\"},{\"type\":\"warning\",\"text\":\"REST访问的根URL: https://open-api.bingx.com\"},{\"type\":\"html\",\"text\":\"请求交互说明\"},{\"type\":\"html\",\"text\":\"
  • 请求参数:根据接口请求参数规定进行参数封装。
  • \"},{\"type\":\"html\",\"text\":\"
  • 提交请求参数:将封装好的请求参数通过POST/GET/DELETE等方式提交至服务器。
  • \"},{\"type\":\"html\",\"text\":\"
  • 服务器响应:服务器首先对用户请求数据进行参数安全校验,通过校验后根据业务逻辑将响应数据以JSON格式返回给用户。
  • \"},{\"type\":\"html\",\"text\":\"
  • 数据处理:对服务器响应数据进行处理。
  • \"},{\"type\":\"html\",\"text\":\"成功\"},{\"type\":\"html\",\"text\":\"
  • HTTP状态码200表示成功响应,并可能包含内容。如果响应含有内容,则将显示在相应的返回内容里面。
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/authentication/05_request.json\n// module id = bIA2\n// module chunks = 3","var map = {\n\t\".\": \"Ob2m\",\n\t\"./\": \"Ob2m\",\n\t\"./01_post_trade_order\": \"e3ud\",\n\t\"./01_post_trade_order.json\": \"e3ud\",\n\t\"./02_post_closeAllPositions\": \"rac6\",\n\t\"./02_post_closeAllPositions.json\": \"rac6\",\n\t\"./03_post_closeAllPositions\": \"ovOx\",\n\t\"./03_post_closeAllPositions.json\": \"ovOx\",\n\t\"./04_delete_trade_order\": \"+Jww\",\n\t\"./04_delete_trade_order.json\": \"+Jww\",\n\t\"./05_delete_trade_batch_order\": \"GLwn\",\n\t\"./05_delete_trade_batch_order.json\": \"GLwn\",\n\t\"./06_delete_trade_all_order\": \"vl+M\",\n\t\"./06_delete_trade_all_order.json\": \"vl+M\",\n\t\"./07_get_all_openOrders\": \"mQAj\",\n\t\"./07_get_all_openOrders.json\": \"mQAj\",\n\t\"./08_get_trade_order\": \"50QL\",\n\t\"./08_get_trade_order.json\": \"50QL\",\n\t\"./09_get_trade_marginType\": \"8FLz\",\n\t\"./09_get_trade_marginType.json\": \"8FLz\",\n\t\"./10_post_trade_marginType\": \"Hwtn\",\n\t\"./10_post_trade_marginType.json\": \"Hwtn\",\n\t\"./11_get_trade_leverage\": \"Toje\",\n\t\"./11_get_trade_leverage.json\": \"Toje\",\n\t\"./12_post_trade_leverage\": \"XqXJ\",\n\t\"./12_post_trade_leverage.json\": \"XqXJ\",\n\t\"./13_get_trade_forceOrders\": \"GZ+E\",\n\t\"./13_get_trade_forceOrders.json\": \"GZ+E\",\n\t\"./14_get_trade_allOrders\": \"JRHj\",\n\t\"./14_get_trade_allOrders.json\": \"JRHj\",\n\t\"./15_post_trade_positionMargin\": \"y7gJ\",\n\t\"./15_post_trade_positionMargin.json\": \"y7gJ\",\n\t\"./16_post_trade_order_test\": \"EhS2\",\n\t\"./16_post_trade_order_test.json\": \"EhS2\",\n\t\"./17_get_trade_allFillOrders\": \"GFCe\",\n\t\"./17_get_trade_allFillOrders.json\": \"GFCe\",\n\t\"./18_get_trade_allFillOrders_history\": \"kyJY\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"kyJY\",\n\t\"./index\": \"Ob2m\",\n\t\"./index.js\": \"Ob2m\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"bMjl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade ^.*$\n// module id = bMjl\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"獲取提幣歷史(支持多網絡)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/withdraw/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"withdrawOrderId\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣的名稱\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"自定義ID, 如果沒有則不返回該字段\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"狀態 (0:已發送確認Email, 2:等待確認 3:被拒絕 4:處理中 5:提現交易失敗 6 提現完成)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"開始時間 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"結束時間 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默認0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"頁數量大小 默認1000 不能超過1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"address\",\"type\":\"string\",\"description\":\"地址\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"提現轉出金額\"},{\"name\":\"applyTime\",\"type\":\"Date\",\"description\":\"充值時間\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣名稱\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"該筆提現的id\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"description\":\"自定義ID, 如果沒有則不返回該字段\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"提現網絡\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"交易類型1=提現\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"狀態 狀態 0-已確認-10-待確認(審核中) 20-已申請區块 30已審核通過 40審核不通過 50已汇出 60充值初步確認(最终確認變為0) 70審核不通過已退回資產\"},{\"name\":\"transactionFee\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"confirmNo\",\"type\":\"int\",\"description\":\"提現確認次數\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"提幣失敗原因\"},{\"name\":\"txId\",\"type\":\"String\",\"description\":\"提現交易id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/04_get_withdraw_history.json\n// module id = bMv0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"User Universal Transfer\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/get/asset/transfer\"},{\"type\":\"code\",\"text\":\"curl --location --request GET 'https://open-api.bingx.com/openApi/api/v3/get/asset/transfer?type=FUND_PFUTURES&asset=USDT&amount=100×tamp=1670215150028&signature=ecc819d72515095039b7b383310f718584af4cf70106b57609bc59473185c9a3'\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"asset\":\"USDT\",\"amount\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"yes\",\"description\":\"transfer tpye\"},{\"name\":\"asset\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"coin name e.g. USDT\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"required\":\"yes\",\"description\":\"amount\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Execution window time, cannot be greater than 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp e.g. 1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"Funding Account->Standard Contract\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"Standard Contract->Funding Account\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"Funding Account->Perpetual Futures\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"Perpetual Futures->Funding Account\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"Standard Contract->Perpetual Futures\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"Perpetual Futures->Standard Contract\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"Transaction ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/01_get_asset_transfer.json\n// module id = bSWG\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/api/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"创建API\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"很多接口需要API Key才可以访问,在对请求进行签名之前,您必须通过
    BingX网站【用户中心】-【API管理】创建一个API key。 创建key后,您将获得2个必须记住的信息: API key和Secret key.\"},{\"type\":\"normal\",\"text\":\"设置API key的同时,为了安全,建议设置IP访问白名单.\"},{\"type\":\"normal\",\"text\":\"永远不要把你的API key/Secret key告诉给任何人.\"}]},{\"type\":\"warning\",\"text\":\"如果不小心泄露了API key,请立刻删除此API key, 并可以另外生产新的API key.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/authentication/01_create_api.json\n// module id = bY49\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱賬戶餘額推送\"},{\"type\":\"normal\",\"text\":\"訂閱類型\"},{\"type\":\"code\",\"text\":\"dataType 為 ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"訂閱例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"gdfg2311-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"}\"},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能類型:\"},{\"type\":\"html\",\"text\":\"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    \"},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"撮合時間\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"資產名稱\"}]},{\"type\":\"a\",\"key\":\"key1\",\"data\":[{\"name\":\"B\",\"type\":\"\",\"description\":\"Array[]\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因 \"}]},{\"type\":\"B\",\"key\":\"key2\",\"data\":[{\"name\":\"a\",\"type\":\"\",\"description\":\"資產名稱\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"除去盈虧與交易手續費以外的钱包餘額改變量\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"資產名稱\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"钱包餘額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/account/02_ account_update.json\n// module id = bZVt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約未平倉數量\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getOpenPositions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getOpenPositions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"持倉數量\"},{\"name\":\"unit\",\"type\":\"string\",\"description\":\"持倉數量對應的單位,CONT(張), BTC, ETH, LINK, BCH等等\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/10_get_quote_openInterest.json\n// module id = baSA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢委託訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/openOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"訂單列表,最大長度為2000, 訂單字段參考下表\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下單數量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"下單時間戳\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間戳\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"下單金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/04_get_trade_open_order.json\n// module id = bfDi\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"YLkf\",\n\t\"./02_post_trade_batch_order.json\": \"/bqr\",\n\t\"./03_post_closeAllPositions.json\": \"jBL/\",\n\t\"./04_delete_trade_order.json\": \"nf3C\",\n\t\"./05_delete_trade_batch_order.json\": \"siG2\",\n\t\"./06_delete_trade_all_order.json\": \"/Fs7\",\n\t\"./07_get_all_openOrders.json\": \"jxdV\",\n\t\"./08_get_trade_order.json\": \"1xud\",\n\t\"./09_get_trade_marginType.json\": \"Qa4f\",\n\t\"./10_post_trade_marginType.json\": \"WCFx\",\n\t\"./11_get_trade_leverage.json\": \"Nux4\",\n\t\"./12_post_trade_leverage.json\": \"j3Xb\",\n\t\"./13_get_trade_forceOrders.json\": \"fUN5\",\n\t\"./14_get_trade_allOrders.json\": \"iu9b\",\n\t\"./15_post_trade_positionMargin.json\": \"i3k4\",\n\t\"./16_post_trade_order_test.json\": \"l8OL\",\n\t\"./17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./18_get_trade_income_export.json\": \"JOGY\",\n\t\"./19_get_trade_user_commissionRate.json\": \"2Faq\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"Oo3B\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"btx7\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade \\.json$\n// module id = btx7\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/spot/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询合约最新价格\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestPrice\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestPrice\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tradePrice\",\"type\":\"float64\",\"description\":\"成交价格\"},{\"name\":\"indexPrice\",\"type\":\"float64\",\"description\":\"指数价格\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"标记价格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/02_get_quote_price.json\n// module id = cR4p\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂單最新成交記录\"},{\"type\":\"normal\",\"text\":\"逐筆交易推送每一筆成交的信息。成交,或者說交易的定義是僅有一個吃單者與一個掛單者相互交易\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @trade,比如BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"成交時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"買方是否是做市方。如true,則此次成交是一個主動賣出單,否則是一個主動買入單。\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price價格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/02_latest_records.json\n// module id = cRtg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"近期成交\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/trades\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":500}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默认:500,最大1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"成交时间\"},{\"name\":\"isBuyerMaker\",\"type\":\"bool\",\"description\":\"买方是否为挂单方(true / false)\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成交价格\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"成交额\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/04_get_quote_ trades.json\n// module id = ceUr\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"獲取賬戶損益資金流水\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約的資金流水。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/income\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 如果startTime 和 endTime 均未發送, 只會返回最近7天的數據。
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果incomeType沒有發送,返回所有類型賬戶損益資金流水。
  • \"},{\"type\":\"html\",\"text\":\"
  • 僅保留最近3個月的數據。
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"incomeType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"incomeType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"收益類型,見上方說明\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"返回的結果集數量 默認值:100 最大值:1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"incomeType\",\"type\":\"string\",\"description\":\"資金流類型\"},{\"name\":\"income\",\"type\":\"string\",\"description\":\"資金流數量,正數代表流入,負數代表流出\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"資產內容\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"備註信息,取决於流水類型\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"時間,單位:毫秒\"},{\"name\":\"tranId\",\"type\":\"string\",\"description\":\"劃轉id\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"引起流水產生的原始交易ID\"}]},{\"type\":\"incomeType\",\"key\":\"common\",\"data\":[{\"name\":\"TRANSFER\",\"type\":\"\",\"description\":\"轉賬\"},{\"name\":\"REALIZED_PNL\",\"type\":\"\",\"description\":\"已實現盈虧\"},{\"name\":\"FUNDING_FEE\",\"type\":\"\",\"description\":\"資金費用\"},{\"name\":\"TRADING_FEE\",\"type\":\"\",\"description\":\"手續費\"},{\"name\":\"INSURANCE_CLEAR\",\"type\":\"\",\"description\":\"強平\"},{\"name\":\"TRIAL_FUND\",\"type\":\"\",\"description\":\"體驗金\"},{\"name\":\"ADL\",\"type\":\"\",\"description\":\"自動減倉\"},{\"name\":\"SYSTEM_DEDUCTION\",\"type\":\"\",\"description\":\"系統扣除\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/account/03_get_user_income.json\n// module id = clol\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"取消訂閱\"},{\"type\":\"normal\",\"text\":\"取消訂閱的格式如下:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"unsub\\\", \\\"dataType\\\": \\\"data to unsub\\\"}\"},{\"type\":\"normal\",\"text\":\"取消訂閱成功確認:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"html\",\"text\":\"

    symbol說明

    \"},{\"type\":\"warning\",\"text\":\"symbol必須全大寫\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/05_cancel_subscribe.json\n// module id = cspZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢資金費率歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/fundingRate\"},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 都未發送, 返回最近 limit 條數據.
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 之間的數據量大於 limit, 返回 startTime + limit情况下的數據。
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/fundingRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"起始時間,單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,單位:毫秒\"},{\"name\":\"limit\",\"type\":\"int32\",\"required\":\"否\",\"description\":\"默認值:100 最大值:1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"fundingRate\",\"type\":\"string\",\"description\":\"資金費率\"},{\"name\":\"fundingTime\",\"type\":\"int64\",\"description\":\"資金費時間:單位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/06_get_quote_ fundingRate.json\n// module id = dEdI\n// module chunks = 3","var map = {\n\t\"./01_dept_info.json\": \"I7QH\",\n\t\"./02_latest_records.json\": \"fkpZ\",\n\t\"./03_kline_data.json\": \"I7+s\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"dJsD\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/websocket/market \\.json$\n// module id = dJsD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询开仓杠杆\"},{\"type\":\"normal\",\"text\":\"查询用户在指定symbol合约的开仓杠杆。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"多仓杠杆倍数\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"空仓杠杆倍数\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/11_get_trade_leverage.json\n// module id = dLDu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易下单\"},{\"type\":\"normal\",\"text\":\"当前账户在指定symbol合约上进行下单操作。(支持限价单、市价单、计划委托市价单、计划委托限价单、仓位止盈止损单、针对仓位平仓)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/order\"},{\"type\":\"warning\",\"text\":\"基于订单 type 不同,强制要求某些参数:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 强制要求参数 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 强制要求参数 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 强制要求参数 quantity、stopPrice、price
  • \"},{\"type\":\"html\",\"text\":\"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 强制要求参数 quantity、stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    1. 开/平仓: 如何使用同一个接口 开仓(多/空),平仓(多/空)?请参考如下request payload组合:

    \"},{\"type\":\"html\",\"text\":\"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"MARKET\\\", \\\"quantity\\\": 5}

    \"},{\"type\":\"html\",\"text\":\"

    2. 设置止盈止损:本接口也可用于设置止盈止损,但需要先开仓; 当前止盈止损价格只支持默认的标记价格,暂不支持最新和指数价格选项

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"quantity\\\": 3, \\\"stopPrice\\\": 31968.0}

    \"},{\"type\":\"warning\",\"text\":\"条件单的触发必须:\"},{\"type\":\"html\",\"text\":\"

    STOP/STOP_MARKET 止损单:

    \"},{\"type\":\"html\",\"text\":\"
  • 已挂止损单累加数量不能大于持仓数量
  • \"},{\"type\":\"html\",\"text\":\"
  • 买入: 标记价格高于等于触发价stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • 卖出: 标记价格低于等于触发价stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈单:

    \"},{\"type\":\"html\",\"text\":\"
  • 已挂止盈单累加数量不能大于持仓数量
  • \"},{\"type\":\"html\",\"text\":\"
  • 买入: 标记价格低于等于触发价stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • 卖出: 标记价格高于等于触发价stopPrice
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"type\":\"\",\"side\":\"\",\"positionSide\":\"\",\"price\":0,\"quantity\":0,\"stopPrice\":0,\"recvWindow\":0,\"timeInForce\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"订单类型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"买卖方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委托价格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下单数量,合约数量,当前只支持以币计的合约数,暂不支持输入U$:quantity=U$/price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,TRIGGER_LIMIT,TRIGGER_MARKET, STOP, TAKE_PROFIT 需要此参数\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位:毫秒\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC和FOK\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/01_post_trade_order.json\n// module id = db2W\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/historyOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"註意\",\"children\":[{\"type\":\"normal\",\"text\":\"如設置 orderId , 訂單将 >= orderId。否則将返回最新訂單。\"},{\"type\":\"normal\",\"text\":\"如果設置 startTime 和 endTime, orderId 就不需要設置。\"}]},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"pageIndex\":0,\"pageSize\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間戳, 單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間戳, 單位:毫秒\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁頁碼,必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁數量,必須大於0,最大值為100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"訂單列表,最大長度為2000, 訂單字段參考下表\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下單數量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"下單時間戳\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間戳\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"下單金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/05_get_trade_history_order.json\n// module id = dcc+\n// module chunks = 3","const golang = `package main\n\nimport (\n\t\"bytes\"\n\t\"compress/gzip\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n\t\"time\"\n\n\t\"github.com/gorilla/websocket\"\n)\n\nconst (\n\tpath = \"wss://open-api-ws.bingx.com/market\" // \n\tchannel = \"{\\\"id\\\": \\\"test\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"BTC-USDT@depth\\\"}\" // \n)\n\nvar receivedMessage string\nvar conn *websocket.Conn\n\nfunc main() {\n\tinterrupt := make(chan struct{})\n\n\theader := http.Header{}\n\theader.Add(\"Accept-Encoding\", \"gzip\")\n\n\tconn, _, err := websocket.DefaultDialer.Dial(path, header)\n\tif err != nil {\n\t\tlog.Fatal(\"WebSocket connection error:\", err)\n\t}\n\tdefer conn.Close()\n\n\terr = conn.WriteMessage(websocket.TextMessage, []byte(channel))\n\tif err != nil {\n\t\tlog.Fatal(\"WebSocket write error:\", err)\n\t}\n\n\tgo func() {\n\t\tfor {\n\t\t\tmessageType, message, err := conn.ReadMessage()\n\t\t\tif err != nil {\n\t\t\t\tlog.Println(\"WebSocket read error:\", err)\n\t\t\t\tclose(interrupt)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\thandleMessage(messageType, message)\n\t\t}\n\t}()\n\n\tgo func() {\n\t\tticker := time.NewTicker(5 * time.Second)\n\t\tdefer ticker.Stop()\n\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase <-ticker.C:\n\t\t\t\terr := conn.WriteMessage(websocket.TextMessage, []byte(\"Ping\"))\n\t\t\t\tif err != nil {\n\t\t\t\t\tlog.Println(\"WebSocket write error:\", err)\n\t\t\t\t}\n\t\t\tcase <-interrupt:\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t}()\n\n\t<-interrupt\n}\n\nfunc handleMessage(messageType int, message []byte) {\n\tif messageType == websocket.TextMessage {\n\t\t// \n\t\tfmt.Println(string(message))\n\t} else if messageType == websocket.BinaryMessage {\n\t\t// \n\t\tdecodedMsg, err := decodeGzip(message)\n\t\tif err != nil {\n\t\t\tlog.Println(\"WebSocket decode error:\", err)\n\t\t\treturn\n\t\t}\n\t\tfmt.Println(decodedMsg)\n\t\tif decodedMsg == \"Ping\" {\n\t\t\terr = conn.WriteMessage(websocket.TextMessage, []byte(\"Pong\"))\n\t\t\tif err != nil {\n\t\t\t\tlog.Println(\"WebSocket write error:\", err)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tfmt.Println(\"Pong\")\n\t\t}\n\t\treceivedMessage = decodedMsg\n\t}\n}\n\nfunc decodeGzip(data []byte) (string, error) {\n\treader, err := gzip.NewReader(bytes.NewReader(data))\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tdefer reader.Close()\n\n\tdecodedMsg, err := ioutil.ReadAll(reader)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\treturn string(decodedMsg), nil\n}`\nexport default golang\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/golang.js","module.exports = [{\"type\":\"hash\",\"text\":\"Get Market Depth\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/depth\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":20}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Default 20, optional value:[5, 10, 20, 50, 100, 500, 1000]\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"System time, unit: millisecond\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"depth of asks. first element price, second element quantity\"},{\"name\":\"bids\",\"type\":\"array\",\"description\":\"Buyer depth. first element price, second element quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/03_get_quote_depth.json\n// module id = e+0O\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place a New Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/trade\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\",\"side\":\"\",\"entrustPrice\":0,\"entrustVolume\":0,\"tradeType\":\"\",\"action\":\"\",\"takerProfitPrice\":0,\"stopLossPrice\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"(Bid/Ask)\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"price\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"quantity\"},{\"name\":\"tradeType\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Market/Limit\"},{\"name\":\"action\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Open/Close\"},{\"name\":\"takerProfitPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Take Profit Price\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Stop Loss Price\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"order ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/01_post_trade_order.json\n// module id = e3ud\n// module chunks = 3","// 模块名称\nexport const SWAP = 'swap' // USDT本位永续合约\nexport const SWAPV2 = 'swapV2' // USDT本位永续合约V2\nexport const SPOT = 'spot' // 现货\nexport const STANDARD = 'standard' // 标准现货\nexport const COMMON = 'common' // 账户与钱包\n\nexport const moduleKeys = [SWAP, SWAPV2, SPOT, STANDARD, COMMON]\n\n\n// WEBPACK FOOTER //\n// ./src/config/modules.js","module.exports = [{\"type\":\"hash\",\"text\":\"Create sub account apikey\"},{\"type\":\"normal\",\"text\":\"Create sub account apikey\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/create\"},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"},{\"name\":\"note\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"notes\"},{\"name\":\"permissions\",\"type\":\"Array\",\"required\":\"yes\",\"description\":\"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"no\",\"description\":\"IP whitelist\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"description\":\"apiKey\"},{\"name\":\"apiSecret\",\"type\":\"string\",\"description\":\"apiSecret\"},{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"IP whitelist\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"notes\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/05_create_sub_accuont_key.json\n// module id = eSSt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Latest Price of a Trading Pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestPrice\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestPrice\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tradePrice\",\"type\":\"float64\",\"description\":\"transaction price\"},{\"name\":\"indexPrice\",\"type\":\"float64\",\"description\":\"index price\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"Mark Price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/02_get_quote_price.json\n// module id = eT6P\n// module chunks = 3","\nconst nodejs = `\n\n`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/html.js","const CACHE_KEY = 'lang'\n\nexport const LANG_KEY = {\n en: 'en-US',\n zh: 'zh-hans',\n tw: 'zh-tw',\n}\n\nexport const CODE_LANG_KEY = {\n js: 'javascript',\n nodejs: 'nodejs',\n go: 'golang',\n shell: 'shell',\n java: 'java',\n python: 'python',\n vue: 'html',\n csharp: 'csharp',\n php: 'php',\n}\n\nexport const codeLangConfig = [{\n label: 'Python',\n value: CODE_LANG_KEY.python,\n},{\n label: 'Golang',\n value: CODE_LANG_KEY.go,\n}, {\n label: 'Nodejs',\n value: CODE_LANG_KEY.js,\n}, {\n label: 'Java',\n value: CODE_LANG_KEY.java,\n},{\n label: 'C#',\n value: CODE_LANG_KEY.csharp,\n},{\n label: 'php',\n value: CODE_LANG_KEY.php,\n}, {\n label: 'Shell',\n value: CODE_LANG_KEY.shell,\n}]\n\nexport const codeLangConfig2 = [{\n label: 'Python',\n value: CODE_LANG_KEY.python,\n},{\n label: 'NodeJS',\n value: CODE_LANG_KEY.nodejs,\n},{\n label: 'Golang',\n value: CODE_LANG_KEY.go,\n}]\n\nexport const defaultLangKey = 'en'\n// 支持的语言\nexport const LANGS = [{\n label: 'English',\n value: LANG_KEY.en,\n}, {\n label: '简体中文',\n value: LANG_KEY.zh,\n}, {\n label: '繁体中文',\n value: LANG_KEY.tw,\n}]\n\nexport const getLang = () => {\n return window.localStorage.getItem(CACHE_KEY) || LANG_KEY[defaultLangKey]\n}\n\nexport const setLang = (lang) => {\n window.localStorage.setItem(CACHE_KEY, lang)\n}\n\nexport const getLangKeyByLang = (lang) => {\n let key = defaultLangKey\n Object.keys(item => {\n if(LANG_KEY[item] === lang) {\n key = item\n }\n })\n return key\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/lang.js","var map = {\n\t\"./01_balance.json\": \"uiwf\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ed62\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/websocket/account \\.json$\n// module id = ed62\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Server Time\"},{\"type\":\"html\",\"text\":\"

    HTTP Request

    \"},{\"type\":\"code\",\"text\":\"POST/GET api/v1/common/server/time\"},{\"type\":\"html\",\"text\":\"

    Parameters: null

    \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/common/server/time\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"currentTime\",\"type\":\"Int64\",\"description\":\"The current time of the system,unit: ms\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/basic/05_system_time.json\n// module id = edi2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢賬戶信息\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約資產的相關信息。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/getBalance\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/getBalance\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"currency\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口秘鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約資產\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用戶ID\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"用戶資產\"},{\"name\":\"balance\",\"type\":\"float64\",\"description\":\"資產餘額\"},{\"name\":\"equity\",\"type\":\"float64\",\"description\":\"資產淨值\"},{\"name\":\"unrealisedPNL\",\"type\":\"float64\",\"description\":\"未實現盈虧\"},{\"name\":\"realisedPNL\",\"type\":\"float64\",\"description\":\"已實現盈虧\"},{\"name\":\"availableMargin\",\"type\":\"float64\",\"description\":\"可用保證金\"},{\"name\":\"usedMargin\",\"type\":\"float64\",\"description\":\"已用保證金\"},{\"name\":\"freezedMargin\",\"type\":\"float64\",\"description\":\"凍結保證金\"},{\"name\":\"longLeverage\",\"type\":\"float64\",\"description\":\"做多槓桿\"},{\"name\":\"shortLeverage\",\"type\":\"float64\",\"description\":\"做空槓桿\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/account/01_post_user_balance.json\n// module id = emHW\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订阅逐笔交易\"},{\"type\":\"normal\",\"text\":\"逐笔交易推送每一笔成交的信息。成交,或者说交易的定义是仅有一个吃单者与一个挂单者相互交易\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @trade,比如BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"订阅例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@trade\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"trade\",\"description\":\"事件类型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件时间\"},{\"name\":\"s\",\"type\":\"BTC-USDT\",\"description\":\"交易对\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"交易ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"成交价格\"},{\"name\":\"q\",\"type\":\"0.007146\",\"description\":\"成交数量\"},{\"name\":\"T\",\"type\":\"1649832413512\",\"description\":\"成交时间\"},{\"name\":\"m\",\"type\":\"true\",\"description\":\"买方是否是做市方。如true,则此次成交是一个主动卖出单,否则是一个主动买入单。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/market/01_trade_info.json\n// module id = eqGc\n// module chunks = 3","var map = {\n\t\".\": \"wbzr\",\n\t\"./\": \"wbzr\",\n\t\"./01_get_contract_allPosition\": \"IW/r\",\n\t\"./01_get_contract_allPosition.json\": \"IW/r\",\n\t\"./02_get_contract_allOrders\": \"y5ws\",\n\t\"./02_get_contract_allOrders.json\": \"y5ws\",\n\t\"./03_get_contract_balance\": \"smla\",\n\t\"./03_get_contract_balance.json\": \"smla\",\n\t\"./index\": \"wbzr\",\n\t\"./index.js\": \"wbzr\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"f1eM\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade ^.*$\n// module id = f1eM\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱方式\"},{\"type\":\"normal\",\"text\":\"成功建立與Websocket服務器的連接後,Websocket客戶端發送如下請求以訂閱特定主題 \"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"data to sub\\\" }\"},{\"type\":\"normal\",\"text\":\"成功訂閱後,Websocket客戶端将收到確認:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"normal\",\"text\":\"之後, 一旦所訂閱的數據有更新,Websocket客戶端将收到服務器推送的更新消息 \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce/04_subscribe.json\n// module id = f4mz\n// module chunks = 3","var map = {\n\t\"./01_dept_info.json\": \"VbHA\",\n\t\"./02_latest_records.json\": \"4L7x\",\n\t\"./03_kline_data.json\": \"zKQU\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"f6o8\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market \\.json$\n// module id = f6o8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询历史订单\"},{\"type\":\"normal\",\"text\":\"查询用户历史订单(订单状态为已成交或已撤销)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/allOrders\"},{\"type\":\"html\",\"text\":\"
  • 查询时间范围最大不得超过7天
  • \"},{\"type\":\"html\",\"text\":\"
  • 默认查询最近7天内的数据
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"只返回此orderID及之后的订单,缺省返回最近的订单\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"是\",\"description\":\"返回的结果集数量 默认值:500 最大值:1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/14_get_trade_allOrders.json\n// module id = fFLq\n// module chunks = 3","var map = {\n\t\".\": \"ByCb\",\n\t\"./\": \"ByCb\",\n\t\"./01_get_quote_contracts\": \"lrAs\",\n\t\"./01_get_quote_contracts.json\": \"lrAs\",\n\t\"./02_get_quote_price\": \"r2l6\",\n\t\"./02_get_quote_price.json\": \"r2l6\",\n\t\"./03_get_quote_depth\": \"obcS\",\n\t\"./03_get_quote_depth.json\": \"obcS\",\n\t\"./04_get_quote_ trades\": \"KY9U\",\n\t\"./04_get_quote_ trades.json\": \"KY9U\",\n\t\"./05_get_quote_ premiumIndex\": \"5xUh\",\n\t\"./05_get_quote_ premiumIndex.json\": \"5xUh\",\n\t\"./06_get_quote_ fundingRate\": \"dEdI\",\n\t\"./06_get_quote_ fundingRate.json\": \"dEdI\",\n\t\"./07_get_quote_ klines\": \"UTAD\",\n\t\"./07_get_quote_ klines.json\": \"UTAD\",\n\t\"./08_get_quote_openInterest\": \"0IKX\",\n\t\"./08_get_quote_openInterest.json\": \"0IKX\",\n\t\"./09_get_quote_ ticker\": \"Y7KR\",\n\t\"./09_get_quote_ ticker.json\": \"Y7KR\",\n\t\"./index\": \"ByCb\",\n\t\"./index.js\": \"ByCb\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"fKdH\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market ^.*$\n// module id = fKdH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"User's Force Orders\"},{\"type\":\"normal\",\"text\":\"Query the user's forced liquidation order.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/forceOrders\"},{\"type\":\"html\",\"text\":\"
  • If \\\"autoCloseType\\\" is not passed, both forced liquidation orders and ADL liquidation orders will be returned
  • \"},{\"type\":\"html\",\"text\":\"
  • If \\\"startTime\\\" is not passed, only the data within 7 days before \\\"endTime\\\" will be returned
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/forceOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"autoCloseType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"\\\"LIQUIDATION\\\":liquidation order, \\\"ADL\\\":ADL liquidation order\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: millisecond\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: millisecond\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"The number of returned result sets The default value is 50, the maximum value is 100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/13_get_trade_forceOrders.json\n// module id = fUN5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"子账户内部转账\"},{\"type\":\"normal\",\"text\":\"用户在bingx平台内互相转账\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subInnerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"userAccountType\":3,\"userAccount\":\"bran***@**.com\",\"amount\":10,\"walletType\":1,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"转账币种名\"},{\"name\":\"userAccountType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"用户账号类型 1=uid 2=手机号 3=邮箱\"},{\"name\":\"userAccount\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用户账户: uid、电话、邮箱\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"转账数额\"},{\"name\":\"callingCode\",\"type\":\"string\",\"required\":\"否\",\"description\":\"电话区号\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"账户类型,1 资金账户;2 标合账户;3 永续账户\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"提币记录唯一标识,该字段在提币走内转时不返回\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/11.post_wallet_subInnerTransfer.json\n// module id = fe6F\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订单最新成交记录\"},{\"type\":\"normal\",\"text\":\"订阅单个合约的逐笔成交明细\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 market.trade.detail.$Symbol,比如market.trade.detail.BTC-USDT\"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称,合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 market.tradeDetail.BTC-USDT\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"trades\",\"type\":\"\",\"description\":\"逐笔成交\"},{\"name\":\"time\",\"type\":\"\",\"description\":\"成交时间\"},{\"name\":\"makerSide\",\"type\":\"\",\"description\":\"吃单方向(Bid / Ask 买/卖)\"},{\"name\":\"price\",\"type\":\"\",\"description\":\"成交价格\"},{\"name\":\"volume\",\"type\":\"\",\"description\":\"成交数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/websocket/market/02_latest_records.json\n// module id = fkpZ\n// module chunks = 3","var map = {\n\t\"./01_dept_info.json\": \"PNFl\",\n\t\"./02_latest_records.json\": \"vXfi\",\n\t\"./03_kline_data.json\": \"H59N\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"fptA\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/market \\.json$\n// module id = fptA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe Market Depth Data\"},{\"type\":\"normal\",\"text\":\"Push limited file depth information every second.By default, there may be less than 20 levels for some small currencies, and 100 levels can be selected\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @depth E.g.BTC-USDT@depth, BTC-USDT@depth20, BTC-USDT@depth100\"},{\"type\":\"normal\",\"text\":\"Subscription example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\" {\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"dataType\\\":\\\"BTC-USDT@depth\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"Change in selling order depth\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"Changing Buying Depth\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/03_depth_info.json\n// module id = fsqo\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/market/index.js","var map = {\n\t\"./01_error_code.json\": \"+lFy\",\n\t\"./02_timestamp.json\": \"VQr5\",\n\t\"./03_digital_rule.json\": \"C2jk\",\n\t\"./04_rate_limits.json\": \"nG30\",\n\t\"./05_system_time.json\": \"zNUa\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"g+/I\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic \\.json$\n// module id = g+/I\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Signature\"},{\"type\":\"normal\",\"text\":\"A “sign” is generated by encrypting the http method, url path, request parameters, etc. concatenated by string based on HMAC SHA256.\",\"children\":[{\"type\":\"normal\",\"text\":\"”Path“ is the request path of URL, e.g. /api/v1/user/getBalance.\"},{\"type\":\"normal\",\"text\":\"The request \\\"method\\\" should be UPPER CASE, i.e. GET, POST, PUT and DELETE.\"},{\"type\":\"normal\",\"text\":\"All “parameters” (including timestamp) are sorted lexicographically as a specific string key1=value1 + key2=value2 ... + Secret Key. (“+” means connection between 2 strings).\"}]},{\"type\":\"html\",\"text\":\"originString = method + path + params sign = HmacSHA256(originString)\"},{\"type\":\"html\",\"text\":\"

    Example: “Sign” the following request

    \"},{\"type\":\"code\",\"text\":\"curl \\\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance\\\"\"},{\"type\":\"html\",\"text\":\"

    “getBalance” refers to Get user's Perpetual Swap Account Asset Information in terms of \\\"POST\\\" requests. Take

    \"},{\"type\":\"html\",\"text\":\"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    \"},{\"type\":\"html\",\"text\":\"example\"},{\"type\":\"html\",\"text\":\"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    \"},{\"type\":\"html\",\"text\":\"The parameters are as follows based on lexicographical sorting. \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    \"},{\"type\":\"html\",\"text\":\"mothod为POST,path为/api/v1/user/getBalance,accordingly a string to be signed is generated as :\"},{\"type\":\"code\",\"text\":\"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"Further generate the string to be signed by algorithm as\"},{\"type\":\"code\",\"text\":\"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"Then, add the Secret Key to the string above to generate the final string. E.g:\"},{\"type\":\"html\",\"text\":\"

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256(\\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\", \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\")

    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\" | openssl dgst -sha256 -hmac \\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\" -binary | base64 | xargs python2.7 -c 'import sys, urllib;print(urllib.quote(sys.argv[1]))' \"},{\"type\":\"html\",\"text\":\"The result of the “Sign” is xi0uYQFvJaMxd1bMVPb0PxSw2Rz46Q1olKzM6mzVu18%3D; the url query parameter should be as follows. \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    \"},{\"type\":\"html\",\"text\":\"The final API request sent to the server should be: \"},{\"type\":\"code\",\"text\":\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/authentication/04_sign_discription.json\n// module id = gBMP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"時間戳規範\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"除非另外指定,API中的所有時間戳均以毫秒為單位返回。\"},{\"type\":\"html\",\"text\":\"請求的時間戳必須在API服務時間的5秒內,否則請求将被视為過期併被拒絕。如果本地服務器時間和API服務器時間之間存在較大的偏差,那麼我们建議您使用通過查詢API服務器時間來更新http header。 \"}]},{\"type\":\"html\",\"text\":\"

    例子

    \"},{\"type\":\"code\",\"text\":\"1587091154123\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/02_timestamp.json\n// module id = gE9e\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"Note that obtaining such information requires websocket authentication, use listenKey, and check the Listen Key\"},{\"type\":\"normal\",\"text\":\"The websocket interface is wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"The stream name of the subscription account data stream is /swap-market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"listenKey expired push\"},{\"type\":\"normal\",\"text\":\"The user data stream will push this event when the valid listenKey used by the current connection expires.\"},{\"type\":\"normal\",\"text\":\"Notice:\",\"children\":[{\"type\":\"normal\",\"text\":\"This event is not necessarily related to the interruption of the websocket connection\"},{\"type\":\"normal\",\"text\":\"This message will only be received when the valid listenKey being connected has expired\"},{\"type\":\"normal\",\"text\":\"After receiving this message, the user data stream will not be updated until the user uses a new and valid listenKey\"}]},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"event type:listenKeyExpired\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"event time:1676964520421\"},{\"name\":\"listenKey\",\"type\":\"\",\"description\":\"invalid listenKey:53c1067059c5401e216ec0562f4e9741f49c3c18239a743653d844a50c4db6c0\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account/01_listenKey.json\n// module id = gOrG\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询深度信息\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/depth\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\",\"limit\":100}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默认20,最多100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"bids\",\"type\":\"array\",\"description\":\"第一个元素价格,第二个元素数量\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"第一个元素价格,第二个元素数量\"},{\"name\":\"ts\",\"type\":\"int\",\"description\":\"深度时间戳,单位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/market/03_get_market_depth.json\n// module id = gUOZ\n// module chunks = 3","var map = {\n\t\"./generate.js\": \"BxwQ\",\n\t\"./golang.js\": \"dsQw\",\n\t\"./html.js\": \"eXbW\",\n\t\"./java.js\": \"80Bj\",\n\t\"./nodejs.js\": \"y8sB\",\n\t\"./python.js\": \"yMq5\",\n\t\"./shell.js\": \"45yt\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"gVVV\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/utils/codeWs ^\\.\\/.*\\.js$\n// module id = gVVV\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"e3ud\",\n\t\"./02_post_closeAllPositions.json\": \"rac6\",\n\t\"./03_post_closeAllPositions.json\": \"ovOx\",\n\t\"./04_delete_trade_order.json\": \"+Jww\",\n\t\"./05_delete_trade_batch_order.json\": \"GLwn\",\n\t\"./06_delete_trade_all_order.json\": \"vl+M\",\n\t\"./07_get_all_openOrders.json\": \"mQAj\",\n\t\"./08_get_trade_order.json\": \"50QL\",\n\t\"./09_get_trade_marginType.json\": \"8FLz\",\n\t\"./10_post_trade_marginType.json\": \"Hwtn\",\n\t\"./11_get_trade_leverage.json\": \"Toje\",\n\t\"./12_post_trade_leverage.json\": \"XqXJ\",\n\t\"./13_get_trade_forceOrders.json\": \"GZ+E\",\n\t\"./14_get_trade_allOrders.json\": \"JRHj\",\n\t\"./15_post_trade_positionMargin.json\": \"y7gJ\",\n\t\"./16_post_trade_order_test.json\": \"EhS2\",\n\t\"./17_get_trade_allFillOrders.json\": \"GFCe\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"kyJY\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"gi0x\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade \\.json$\n// module id = gi0x\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/swapV2/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingXAPI. \"},{\"type\":\"normal\",\"text\":\"You can use our API to access market data, trading, and account management endpoints of Perpetual Swap. The market data API is publicly accessible and provides market data such as The Latest Trade of a Trading Pair. The account and trading APIs require authentication with an API Key which allows you to place and cancel orders and enquire order status and account info.\"},{\"type\":\"html\",\"text\":\"This page presents the USDT-M Perpetual Futures API documentation (V2), which is advised over the V1 version. For V1 version, please refer to USDT-M Perpetual Futures API Reference V1\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/1_introduce.json\n// module id = goAe\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query User Universal Transfer History (USER_DATA)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/asset/transfer\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"startTime\":1658748648396,\"endTime\":1658748648396,\"current\":1,\"size\":10,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"yes\",\"description\":\"transfer tpye\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Starting time1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"End Time 1658748648396\"},{\"name\":\"current\",\"type\":\"int\",\"required\":\"no\",\"description\":\"current page default1\"},{\"name\":\"size\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size default 10 can not exceed 100\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Execution window time, cannot be greater than 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp e.g.1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"Funding Account->Standard Contract\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"Standard Contract->Funding Account\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"Funding Account->Perpetual Futures\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"Perpetual Futures->Funding Account\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"Standard Contract->Perpetual Futures\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"Perpetual Futures->Standard Contract\"},{\"name\":\"FUND_STRADING\",\"type\":\"\",\"description\":\"Funding Account -> Grid Account\"},{\"name\":\"STRADING_FUND\",\"type\":\"\",\"description\":\" Grid Account ->Funding Account\"},{\"name\":\"FUND_CTRADING\",\"type\":\"\",\"description\":\"Funding Account -> Copy Trade Account\"},{\"name\":\"SFUTURES_CTRADING\",\"type\":\"\",\"description\":\"Standard Contract -> Copy Trade Account\"},{\"name\":\"PFUTURES_CTRADING\",\"type\":\"\",\"description\":\"Perpetual Futures -> Copy Trade Account\"},{\"name\":\"CTRADING_FUND\",\"type\":\"\",\"description\":\"Copy Trade Account -> Funding Account\"},{\"name\":\"CTRADING_SFUTURES\",\"type\":\"\",\"description\":\"Copy Trade Account -> Standard Contract\"},{\"name\":\"CTRADING_PFUTURES\",\"type\":\"\",\"description\":\"Copy Trade Account -> Perpetual Futures\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"total\",\"type\":\"LONG\",\"description\":\"total\"},{\"name\":\"rows\",\"type\":\"Array\",\"description\":\"Array\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"coin name\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"coin amount\"},{\"name\":\"type\",\"type\":\"ENUM\",\"description\":\"transfer tpye\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"CONFIRMED\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"Transaction ID\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"description\":\"Transfer time stamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/02_get_asset_transfer2.json\n// module id = gp5h\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"kJLu\",\n\t\"./02_post_closeAllPositions.json\": \"nBfU\",\n\t\"./03_post_closeAllPositions.json\": \"uKtQ\",\n\t\"./04_delete_trade_order.json\": \"t6GP\",\n\t\"./05_delete_trade_batch_order.json\": \"A1ZI\",\n\t\"./06_delete_trade_all_order.json\": \"40ny\",\n\t\"./07_get_all_openOrders.json\": \"Z2yu\",\n\t\"./08_get_trade_order.json\": \"zUzZ\",\n\t\"./09_get_trade_marginType.json\": \"FEZH\",\n\t\"./10_post_trade_marginType.json\": \"W+/z\",\n\t\"./11_get_trade_leverage.json\": \"Latl\",\n\t\"./12_post_trade_leverage.json\": \"5ewk\",\n\t\"./13_get_trade_forceOrders.json\": \"HJU1\",\n\t\"./14_get_trade_allOrders.json\": \"xKz7\",\n\t\"./15_post_trade_positionMargin.json\": \"RvjO\",\n\t\"./16_post_trade_order_test.json\": \"WKtD\",\n\t\"./17_get_trade_allFillOrders.json\": \"o9VI\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"uTRy\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"gz1W\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade \\.json$\n// module id = gz1W\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Account Profit and Loss Fund Flow\"},{\"type\":\"normal\",\"text\":\"Query the capital flow of the perpetual contract under the current account.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/income\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • If neither startTime nor endTime is sent, only the data of the last 7 days will be returned.
  • \"},{\"type\":\"html\",\"text\":\"
  • If the incomeType is not sent, return all types of account profit and loss fund flow.
  • \"},{\"type\":\"html\",\"text\":\"
  • Only keep the last 3 months data.
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"incomeType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"incomeType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Income type, see remarks\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"start time\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"end time\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Number of result sets to return Default: 100 Maximum: 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"incomeType\",\"type\":\"string\",\"description\":\"money flow type\"},{\"name\":\"income\",\"type\":\"string\",\"description\":\"The amount of capital flow, positive numbers represent inflows, negative numbers represent outflows\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"asset content\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"Remarks, depending on the type of stream\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"time, unit: millisecond\"},{\"name\":\"tranId\",\"type\":\"string\",\"description\":\"transfer id\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"The original transaction ID that caused the transaction\"}]},{\"type\":\"incomeType\",\"key\":\"common\",\"data\":[{\"name\":\"TRANSFER\",\"type\":\"\",\"description\":\"Transfer\"},{\"name\":\"REALIZED_PNL\",\"type\":\"\",\"description\":\"realized profit and loss\"},{\"name\":\"FUNDING_FEE\",\"type\":\"\",\"description\":\"Funding Fee\"},{\"name\":\"TRADING_FEE\",\"type\":\"\",\"description\":\"Fee\"},{\"name\":\"INSURANCE_CLEAR\",\"type\":\"\",\"description\":\"Liquidation\"},{\"name\":\"TRIAL_FUND\",\"type\":\"\",\"description\":\"Trial Fund\"},{\"name\":\"ADL\",\"type\":\"\",\"description\":\"Automatic Deleveraging\"},{\"name\":\"SYSTEM_DEDUCTION\",\"type\":\"\",\"description\":\"System deduction\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account/03_get_user_income.json\n// module id = h0vl\n// module chunks = 3","var map = {\n\t\"./01_get_contract_allPosition.json\": \"IW/r\",\n\t\"./02_get_contract_allOrders.json\": \"y5ws\",\n\t\"./03_get_contract_balance.json\": \"smla\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"h5iU\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade \\.json$\n// module id = h5iU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量撤銷訂單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的部分訂單進行批量撤銷操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderIdList\":[0],\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderIdList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"係統訂單號, 最多支持10個訂單[1234567,2345678]\"},{\"name\":\"ClientOrderIDList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,限制字符長度1-40\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"撤銷成功的訂單列表\"},{\"name\":\"failed\",\"type\":\"結构數組\",\"description\":\"撤銷失敗的訂單列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"錯誤信息提示\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"訂單時間,單位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委託數量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交價\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間,單位:毫秒\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/05_delete_trade_batch_order.json\n// module id = hIfT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量下单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"注意\",\"children\":[{\"type\":\"normal\",\"text\":\"限价单必须传price参数。\"},{\"type\":\"normal\",\"text\":\"限价单必须传quantity或quoteOrderQty其中一个,当两个参数同时传递时,服务端优先使用参数quantity。\"},{\"type\":\"normal\",\"text\":\"市价买单必须传quoteOrderQty参数。\"},{\"type\":\"normal\",\"text\":\"市价卖单必须传quantity参数。\"},{\"type\":\"normal\",\"text\":\"接口创建的订单在APP和Web页面不会显示。\"}]},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"type\":\"\",\"timeInForce\":0,\"quantity\":0,\"quoteOrderQty\":0,\"price\":0,\"recvWindow\":0}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"是\",\"description\":\"下单的request数组,限制5个订单\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易类型, BUY=买 SELL=卖\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"订单类型, MARKET=市价 LIMIT=限价\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"IOC=限价ioc单, 立即成交或撤销; POC=限价单, 只做maker\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下单数量, 例如: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下单金额, 例如: 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委托价格, 例如: 10000USDT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId,仅支持2个小时的查询范围\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求时间戳, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"array\",\"description\":\"单个下单的response数组\"}]},{\"type\":\"order\",\"key\":\"key2\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号,请注意精度溢出\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"交易时间戳,单位为毫秒\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下单数量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态, NEW=新订单 PENDING=委托中 PARTIALLY_FILLED=部分成交 FILLED=完全成交 CANCELED=已撤销 FAILED=失败\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型, MARKET=市价 LIMIT=限价\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易类型, BUY=买 SELL=卖\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade/07_post_trade_batchOrders.json\n// module id = hNbe\n// module chunks = 3","var map = {\n\t\"./01_get_account_apiRestrictions.json\": \"l5cf\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"hR1o\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/permission \\.json$\n// module id = hR1o\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Make Requests\"},{\"type\":\"normal\",\"text\":\"All private REST requests must contain the following parameters:\",\"children\":[{\"type\":\"normal\",\"text\":\"Pass the API Key with X-BX-APIKEY on the request header.\"},{\"type\":\"normal\",\"text\":\"The request parameter carries the signature obtained by using the signature algorithm.\"},{\"type\":\"normal\",\"text\":\"timestamp is the timestamp of your request, in milliseconds. When the server receives the request, it will judge the timestamp in the request. If it is sent before 5000 milliseconds, the request will be considered invalid. This time window value can be defined by sending the optional parameter recvWindow.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication/03_request_content.json\n// module id = hS6o\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询资产\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/account/balance\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求时间戳, 单位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"balances\",\"type\":\"Array\",\"description\":\"资产列表, 元素字段参考下表\"}]},{\"type\":\"balance\",\"key\":\"response1\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"资产名\"},{\"name\":\"free\",\"type\":\"string\",\"description\":\"可用资金\"},{\"name\":\"locked\",\"type\":\"string\",\"description\":\"冻结资金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade/06_get_account_balance.json\n// module id = hi8+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"修改杠杆\"},{\"type\":\"normal\",\"text\":\"调整合约多仓或空仓的杠杆倍数。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/setLeverage\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/setLeverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":\"\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"多仓或者空仓的杠杆,Long表示多仓,Short表示空仓\"},{\"name\":\"leverage\",\"type\":\"string\",\"required\":\"是\",\"description\":\"杠杆倍数\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/12_post_trade_leverage.json\n// module id = hkx8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Unsubscribe\"},{\"type\":\"normal\",\"text\":\"The format of unsubscription is as follows:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"unsub\\\", \\\"dataType\\\": \\\"data to unsub\\\"}\"},{\"type\":\"normal\",\"text\":\"Confirmation of Unsubscription:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"html\",\"text\":\"

    Symbol Description

    \"},{\"type\":\"warning\",\"text\":\"Symbol must be fully capitalized\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce/05_cancel_subscribe.json\n// module id = hlb8\n// module chunks = 3","var map = {\n\t\".\": \"kq5u\",\n\t\"./\": \"kq5u\",\n\t\"./01_connect\": \"itMl\",\n\t\"./01_connect.json\": \"itMl\",\n\t\"./02_data_compress\": \"yOH9\",\n\t\"./02_data_compress.json\": \"yOH9\",\n\t\"./03_heart_beat\": \"hrCt\",\n\t\"./03_heart_beat.json\": \"hrCt\",\n\t\"./04_subscribe\": \"jYwr\",\n\t\"./04_subscribe.json\": \"jYwr\",\n\t\"./05_cancel_subscribe\": \"cspZ\",\n\t\"./05_cancel_subscribe.json\": \"cspZ\",\n\t\"./index\": \"kq5u\",\n\t\"./index.js\": \"kq5u\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"hpFp\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce ^.*$\n// module id = hpFp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"心跳信息\"},{\"type\":\"normal\",\"text\":\"當用戶的Websocket客戶端連接到Bingx Websocket服務器後,服務器會定期(當前設為5秒)向其發送心跳字符串Ping\"},{\"type\":\"code\",\"text\":\" {\\\"ping\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"},{\"type\":\"normal\",\"text\":\"當用戶的Websocket客戶端接收到此心跳消息後,應返回字符串Pong消息\"},{\"type\":\"code\",\"text\":\"{\\\"pong\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/03_heart_beat.json\n// module id = hrCt\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"wa9k\",\n\t\"./02_data_compress.json\": \"vuQY\",\n\t\"./03_heart_beat.json\": \"il07\",\n\t\"./04_subscribe.json\": \"n8XW\",\n\t\"./05_cancel_subscribe.json\": \"7k03\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"hrXE\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce \\.json$\n// module id = hrXE\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < 4; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/swapV2/api/basic/index_share_to_v1.js","module.exports = [{\"type\":\"hash\",\"text\":\"簽名說明\"},{\"type\":\"html\",\"text\":\"signature 請求參數使用HMAC SHA256方法加密而得到的。\"},{\"type\":\"html\",\"text\":\"例如:對於調整幣種槓桿請求參數進行簽名\"},{\"type\":\"html\",\"text\":\"
  • 接口參數
  • \"},{\"type\":\"html\",\"text\":\"

    symbol=BTC-USDT
    timestamp=1667872120843
    side=LONG
    leverage=6

    \"},{\"type\":\"html\",\"text\":\"
  • api信息
  • \"},{\"type\":\"html\",\"text\":\"

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    \"},{\"type\":\"html\",\"text\":\"
  • 參數通過query string發送示例
  • \"},{\"type\":\"html\",\"text\":\"1. 對接口參數進行拼接: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6

    2. 對拼接好的參數字符串使用secretKey生成簽名: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 發送請求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'\"},{\"type\":\"html\",\"text\":\"
  • 參數通過request body發送示例
  • \"},{\"type\":\"html\",\"text\":\"1. 對接口參數進行拼接: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6
    2. 對拼接好的參數字符串使用secretKey生成簽名: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 發送請求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage' -d 'symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf' \"},{\"type\":\"html\",\"text\":\"
  • 參數通過query string和request body發送示例
  • \"},{\"type\":\"html\",\"text\":\"queryString: symbol=BTC-USDT×tamp=1668159715051
    requestBody: side=LONG&leverage=6 \"},{\"type\":\"html\",\"text\":\"1. 對接口參數進行拼接: symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6
    2. 對拼接好的參數字符串使用secretKey生成簽名: 8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex\"},{\"type\":\"html\",\"text\":\"3. 發送請求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1668159715051&signature=8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d' -d 'side=LONG&leverage=6' \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication/04_sign_discription.json\n// module id = huDF\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Adjust isolated margin\"},{\"type\":\"normal\",\"text\":\"Adjust the isolated margin funds for the positions in the isolated position mode.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/swap/v2/trade/positionMargin\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"amount\":0,\"type\":0,\"positionSide\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"margin funds\"},{\"name\":\"type\",\"type\":\"int\",\"required\":\"yes\",\"description\":\"adjustment direction 1: increase isolated margin, 2: decrease isolated margin\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, and only LONG or SHORT can be selected, the default is LONG\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"amount\",\"type\":\"float64\",\"description\":\"margin funds\"},{\"name\":\"type\",\"type\":\"int\",\"description\":\"adjustment direction 1: increase isolated margin, 2: decrease isolated margin\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/15_post_trade_positionMargin.json\n// module id = i3k4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢係統時間\"},{\"type\":\"html\",\"text\":\"

    HTTP請求

    \"},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/server/time\"},{\"type\":\"html\",\"text\":\"

    參數: 無

    \"},{\"type\":\"html\",\"text\":\"
  • code - int64 - 錯誤碼,0表示成功,不為0表示異常失敗
  • \"},{\"type\":\"html\",\"text\":\"
  • msg - string - 錯誤信息提示
  • \"},{\"type\":\"html\",\"text\":\"
  • serverTime - int64 - 係統當前時間,單位毫秒
  • \"},{\"type\":\"code\",\"text\":\"{\\\"code\\\": 0,\\\"msg\\\": \\\"\\\",\\\"data\\\": {\\\"serverTime\\\": 1675319535362}}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/05_system_time.json\n// module id = i6gS\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶內部轉賬\"},{\"type\":\"normal\",\"text\":\"用戶在bingx平台內互相轉賬\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/wallets/v1/capital/innerTransfer/apply\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"userAccountType\":3,\"userAccount\":\"bran***@**.com\",\"amount\":10,\"walletType\":1,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"userAccountType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"用戶賬號類型 1=uid 2=手機號 3=郵箱\"},{\"name\":\"userAccount\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用戶賬戶: uid、電話、郵箱\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"轉賬數額\"},{\"name\":\"callingCode\",\"type\":\"string\",\"required\":\"否\",\"description\":\"電話區號\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"賬戶類型,1 資金賬戶;2 標合賬戶;3 永續賬戶\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"提幣記錄唯一標識,該字段在提幣走內轉不返回\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/07_post_capital_innerTransfer_apply.json\n// module id = iYO+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Heartbeats\"},{\"type\":\"normal\",\"text\":\"Once the Websocket Client and Websocket Server get connected, the server will send a heartbeat- Ping message every 5 seconds (the frequency might change).\"},{\"type\":\"normal\",\"text\":\"When the Websocket Client receives this heartbeat message, it should return Pong message.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/03_heart_beat.json\n// module id = il07\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"接入方式\"},{\"type\":\"normal\",\"text\":\"行情Websocket的接入URL:wss://open-api-ws.bingx.com/market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/01_connect.json\n// module id = itMl\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"User's History Orders\"},{\"type\":\"normal\",\"text\":\"Query the user's historical orders (order status is completed or canceled).\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/allOrders\"},{\"type\":\"html\",\"text\":\"
  • The maximum query time range shall not exceed 7 days
  • \"},{\"type\":\"html\",\"text\":\"
  • Query data within the last 7 days by default
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Only return this orderID and subsequent orders, and return the latest order by default\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: millisecond\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: millisecond\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"yes\",\"description\":\"number of result sets to return Default: 500 Maximum: 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/14_get_trade_allOrders.json\n// module id = iu9b\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Switch Leverage\"},{\"type\":\"normal\",\"text\":\"Adjust the user's opening leverage in the specified symbol contract.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Leverage for long or short positions, LONG for long positions, SHORT for short positions\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"leverage\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"leverage\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"leverage\",\"type\":\"int64\",\"description\":\"leverage\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/12_post_trade_leverage.json\n// module id = j3Xb\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Swap Open Positions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/openInterest\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/openInterest\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"openInterest\",\"type\":\"string\",\"description\":\"Position Amount\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"contract name\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"matching engine time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/08_get_quote_openInterest.json\n// module id = j4uq\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询订单\"},{\"type\":\"normal\",\"text\":\"查询订单详情\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\" GET /openApi/swap/v2/trade/order\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"订单号\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]},{\"type\":\"status\",\"key\":\"key1\",\"data\":[{\"name\":\"NEW\",\"type\":\"\",\"required\":\"\",\"description\":\"新建订单\"},{\"name\":\"PARTIALLY_FILLED\",\"type\":\"\",\"required\":\"\",\"description\":\"部分成交\"},{\"name\":\"FILLED\",\"type\":\"\",\"required\":\"\",\"description\":\"全部成交\"},{\"name\":\"CANCELED\",\"type\":\"\",\"required\":\"\",\"description\":\"已撤销\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/08_get_trade_order.json\n// module id = j4v/\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"One-Click Close All Positions\"},{\"type\":\"normal\",\"text\":\"One-click liquidation of all positions under the current account. Note that one-click liquidation is triggered by a market order. \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/closeAllPositions\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"Multiple order numbers generated by all one-click liquidation\"},{\"name\":\"failed\",\"type\":\"array\",\"description\":\"the order number of the failed position closing\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/03_post_closeAllPositions.json\n// module id = jBL/\n// module chunks = 3","var map = {\n\t\".\": \"OKNr\",\n\t\"./\": \"OKNr\",\n\t\"./01_error_code\": \"JIJP\",\n\t\"./01_error_code.json\": \"JIJP\",\n\t\"./02_timestamp\": \"4KP5\",\n\t\"./02_timestamp.json\": \"4KP5\",\n\t\"./03_digital_rule\": \"mcJU\",\n\t\"./03_digital_rule.json\": \"mcJU\",\n\t\"./04_rate_limits\": \"8Dwn\",\n\t\"./04_rate_limits.json\": \"8Dwn\",\n\t\"./05_system_time\": \"CtfW\",\n\t\"./05_system_time.json\": \"CtfW\",\n\t\"./index\": \"OKNr\",\n\t\"./index.js\": \"OKNr\",\n\t\"./index_share_to_v1\": \"pPs/\",\n\t\"./index_share_to_v1.js\": \"pPs/\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"jDgW\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/basic ^.*$\n// module id = jDgW\n// module chunks = 3","var map = {\n\t\".\": \"Q3ZN\",\n\t\"./\": \"Q3ZN\",\n\t\"./01_dept_info\": \"VbHA\",\n\t\"./01_dept_info.json\": \"VbHA\",\n\t\"./02_latest_records\": \"4L7x\",\n\t\"./02_latest_records.json\": \"4L7x\",\n\t\"./03_kline_data\": \"zKQU\",\n\t\"./03_kline_data.json\": \"zKQU\",\n\t\"./index\": \"Q3ZN\",\n\t\"./index.js\": \"Q3ZN\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"jPjn\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market ^.*$\n// module id = jPjn\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-06-03\"},{\"type\":\"normal\",\"text\":\"新版本API文檔網站發佈\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"新版本UI和交互\"},{\"type\":\"normal\",\"text\":\"demo代碼自動生成器,代碼一鍵複製\"},{\"type\":\"normal\",\"text\":\"接口參數表格和JSON之間快速轉換,代碼一鍵全複製,減輕開發者複製API參數的麻煩\"},{\"type\":\"normal\",\"text\":\"新增全文模糊檢索功能\"},{\"type\":\"normal\",\"text\":\"新增郵件訂閱功能,以後有API版本更新會通過郵件通知開發者\"},{\"type\":\"normal\",\"text\":\"新增問題反饋功能,開發者發現API問題可通過本站點直接反饋到BingX team\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-06-03.json\n// module id = jVl+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱方式\"},{\"type\":\"normal\",\"text\":\"成功建立與Websocket服務器的連接後,Websocket客戶端發送如下請求以訂閱特定主題 \"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"data to sub\\\" }\"},{\"type\":\"html\",\"text\":\"
  • id是用戶傳入的唯一id,返回時将返回,用於用戶區分幂等性校驗
  • \"},{\"type\":\"normal\",\"text\":\"成功訂閱後,Websocket客戶端将收到確認:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"normal\",\"text\":\"之後, 一旦所訂閱的數據有更新,Websocket客戶端将收到服務器推送的更新消息\"},{\"type\":\"html\",\"text\":\"
  • code錯誤碼說明
  • \"},{\"type\":\"html\",\"text\":\"

    0:\\\"SUCCESS\\\"
    /**
    * 100xxx為通用狀態碼.
    */
    // 服務器搜索無數據
    100204:\\\"SEARCH_NO_CONTENT\\\"

    // 重複請求
    100205:\\\"REPEAT_REQUEST\\\"

    // 客戶端請求參數錯誤
    100400:\\\"ILLEGAL_ARGUMENT\\\"

    // 客戶端認證失敗
    100401:\\\"AUTHENTICATION_FAIL\\\"

    // 客戶端權限校驗失敗
    100403:\\\"AUTHORIZATION_FAIL\\\"

    // 客戶端請求頻率限制
    100410:\\\"FREQUENCY_LIMIT\\\"

    // 服務器錯誤
    100500:\\\"INTERNAL_SERVER_ERROR\\\"

    // 服務器繁忙
    100503:\\\"SERVER_BUSY\\\"

    \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/04_subscribe.json\n// module id = jYwr\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscription transaction by transaction\"},{\"type\":\"normal\",\"text\":\"Subscribe to the trade detail data of a trading pair\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @trade E.g. BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"Subscription example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The data type of the subscription, for example: BTC-USDT@trade\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"trade\",\"description\":\"Event Type\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"event time\"},{\"name\":\"s\",\"type\":\"BTC-USDT\",\"description\":\"trading pair\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"Transaction ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"transaction price\"},{\"name\":\"q\",\"type\":\"0.007146\",\"description\":\"Executed quantity\"},{\"name\":\"T\",\"type\":\"1649832413512\",\"description\":\"transaction time\"},{\"name\":\"m\",\"type\":\"true\",\"description\":\"Whether the buyer is a market maker. If true, this transaction is an active sell order, otherwise it is an active buy order.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/01_trade_info.json\n// module id = jcbY\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"註意需要獲取此類信息需要 websocket 鑒權,使用 listenKey,詳細方式查看
    Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"訂閱賬戶數據流的stream名稱為 /swap-market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"listenKey過期推送\"},{\"type\":\"normal\",\"text\":\"當前連接使用的有效listenKey過期時,user data stream 将會推送此事件。\"},{\"type\":\"normal\",\"text\":\"註意\",\"children\":[{\"type\":\"normal\",\"text\":\"此事件與websocket連接中斷沒有必然聯係\"},{\"type\":\"normal\",\"text\":\"只有正在連接中的有效listenKey過期時才會收到此消息\"},{\"type\":\"normal\",\"text\":\"收到此消息後user data stream将不再更新,直到用戶使用新的有效的listenKey\"}]},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型:listenKeyExpired\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間:1676964520421\"},{\"name\":\"listenKey\",\"type\":\"\",\"description\":\"失效的listenKey:53c1067059c5401e216ec0562f4e9741f49c3c18239a743653d844a50c4db6c0\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account/01_listenKey.json\n// module id = jg15\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query all current pending orders\"},{\"type\":\"normal\",\"text\":\"Query all orders that the user is currently entrusted with.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/openOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"GET /openApi/swap/v2/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"}]},{\"type\":\"status\",\"key\":\"key1\",\"data\":[{\"name\":\"NEW\",\"type\":\"\",\"required\":\"\",\"description\":\"New Order\"},{\"name\":\"PARTIALLY_FILLED\",\"type\":\"\",\"required\":\"\",\"description\":\"Partial filled\"},{\"name\":\"FILLED\",\"type\":\"\",\"required\":\"\",\"description\":\"all filled\"},{\"name\":\"CANCELED\",\"type\":\"\",\"required\":\"\",\"description\":\"canceled\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/07_get_all_openOrders.json\n// module id = jxdV\n// module chunks = 3","var map = {\n\t\"./01_get_quote_contracts.json\": \"nyHW\",\n\t\"./02_get_quote_price.json\": \"kQ2M\",\n\t\"./03_get_quote_depth.json\": \"YP5V\",\n\t\"./04_get_quote_ trades.json\": \"0TqQ\",\n\t\"./05_get_quote_ premiumIndex.json\": \"+92Z\",\n\t\"./06_get_quote_ fundingRate.json\": \"xDG3\",\n\t\"./07_get_quote_ klines.json\": \"bDbK\",\n\t\"./08_get_quote_ klines_history.json\": \"keYE\",\n\t\"./09_get_quote_ ticker.json\": \"VOPx\",\n\t\"./10_get_quote_openInterest.json\": \"baSA\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"kD9t\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market \\.json$\n// module id = kD9t\n// module chunks = 3","const cURL = `\n# apt install openssl\n# apt install curl\nAPI_KEY=\"\"\nAPI_SECRET=\"\"\nTIMESTAMP=$((^date '+%s'^*1000+^date '+%N'^/1000000))\nPARAMETERS=\"PPAARRAAMMEETTEERRSS\"\nHOST=\"HHOOSSTT\"\nPROTOCOL=\"PPRROOTTOOCCOOLL\"\nMETHOD=\"MMEETTHHOODD\"\nAPI=\"AAPPII\"\n\necho \"API_KEY:\"$API_KEY\necho \"API_SECRET:\"$API_SECRET\necho \"PARAMETERS:\"$PARAMETERS\nPARAMETERS=\"$PARAMETERS×tamp=$TIMESTAMP\"\n\nsign=^echo -n $PARAMETERS | openssl dgst -sha256 -hmac $API_SECRET -hex^\nsign=$\\{sign##* \\}\necho \"sign:\"$sign\nCURL=\"curl --location --request $METHOD --header 'X-BX-APIKEY: $API_KEY' '$PROTOCOL://$HOST$API?$PARAMETERS&signature=$sign'\"\necho \"\"\necho $CURL\necho \"\"\ncurl --location --request $METHOD --header \"X-BX-APIKEY: $API_KEY\" \"$PROTOCOL://$HOST$API?$PARAMETERS&signature=$sign\"\necho \"\"\necho \"\"\n`\nexport default cURL\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/shell.js","module.exports = [{\"type\":\"hash\",\"text\":\"交易下單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/trade\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\",\"side\":\"\",\"entrustPrice\":0,\"entrustVolume\":0,\"tradeType\":\"\",\"action\":\"\",\"takerProfitPrice\":0,\"stopLossPrice\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"(Bid/Ask 買/賣)\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"數量\"},{\"name\":\"tradeType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Market/Limit 市價/限價\"},{\"name\":\"action\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Open/Close 開倉/平倉\"},{\"name\":\"takerProfitPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止盈價格\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止損價格\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/01_post_trade_order.json\n// module id = kJLu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約最新價格\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestPrice\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestPrice\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tradePrice\",\"type\":\"float64\",\"description\":\"成交價格\"},{\"name\":\"indexPrice\",\"type\":\"float64\",\"description\":\"指數價格\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"標記價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/02_get_quote_price.json\n// module id = kQ2M\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询合约基础信息\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/contracts\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"contractId\",\"type\":\"string\",\"description\":\"合约ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"size\",\"type\":\"string\",\"description\":\"合约大小,例如0.0001 BTC\"},{\"name\":\"quantityPrecision\",\"type\":\"int\",\"description\":\"交易数量精度\"},{\"name\":\"pricePrecision\",\"type\":\"int\",\"description\":\"价格精度\"},{\"name\":\"feeRate\",\"type\":\"float64\",\"description\":\"交易手续费\"},{\"name\":\"tradeMinLimit\",\"type\":\"int\",\"description\":\"交易最小单位,单位为张\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"结算和保证金货币资产\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"合约交易资产\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0下线, 1上线\"},{\"name\":\"maxLongLeverage\",\"type\":\"int\",\"description\":\"多头交易的最大杠杆倍数\"},{\"name\":\"maxShortLeverage\",\"type\":\"int\",\"description\":\"空头交易的最大杠杆倍数\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/01_get_quote_contracts.json\n// module id = kQGv\n// module chunks = 3","var map = {\n\t\"./01_get_asset_transfer.json\": \"bSWG\",\n\t\"./02_get_asset_transfer2.json\": \"gp5h\",\n\t\"./03_get_deposit_hisrec.json\": \"OW9C\",\n\t\"./04_get_withdraw_history.json\": \"VVr3\",\n\t\"./05_post_wallets_coins.json\": \"Bxps\",\n\t\"./06_post_wallets_withdraw.json\": \"puhI\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"KPNz\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"kTL7\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account \\.json$\n// module id = kTL7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量撤销订单\"},{\"type\":\"normal\",\"text\":\"将当前账户处于当前委托状态的部分订单进行批量撤销操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderIdList\":[0],\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderIdList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"系统订单号, 最多支持10个订单[1234567,2345678]\"},{\"name\":\"ClientOrderIDList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"用户自定义订单ID,最多支持10个订单[1234567,2345678]\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"撤销成功的订单列表\"},{\"name\":\"failed\",\"type\":\"结构数组\",\"description\":\"撤销失败的订单列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"错误信息提示\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/05_delete_trade_batch_order.json\n// module id = kYAZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢K線歷史數據\"},{\"type\":\"normal\",\"text\":\"查詢一段時間週期內成交價格的K線歷史數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getHistoryKlines\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getHistoryKlines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k線類型,參考字段說明,如分鐘,小時,週等\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"起始時間戳,單位毫秒\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"結束時間戳,單位毫秒\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1m一分鐘K線\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3m三分鐘K線\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"5m五分鐘K線\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15m十五分鐘K線\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30m三十分鐘K線\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1h一小時K線\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2h两小時K線\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4h四小時K線\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6h六小時K線\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12h十二小時K線\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1D日K線\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W週K線\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1M月K線\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"Array\",\"description\":\"K線數據\"},{\"name\":\"open\",\"type\":\"float64\",\"description\":\"開盤價\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盤價\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高價\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低價\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易數量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"k線時間戳,單位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/08_get_quote_ klines_history.json\n// module id = keYE\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Service Application\"},{\"type\":\"normal\",\"text\":\"The API is currently in internal testing, and the application page will be opened soon, please be patient. If you have other needs, please contact customer service.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic/02_server_apply.json\n// module id = kiBh\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"K線 Streams\"},{\"type\":\"normal\",\"text\":\"K線stream逐秒推送所請求的K線種類(最新一根K線)的更新。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @kline_,比如BTC-USDT@kline_1min\"},{\"type\":\"normal\",\"text\":\"訂閱举例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 目前僅提供一分鐘的k線數據
  • \"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱,合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"參考字段說明,K線類型,1min, 5min, 15min, 30min, 60min, 1day\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@kline_1min\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"K\",\"type\":\"\",\"description\":\"數據\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"}]},{\"type\":\"K\",\"key\":\"key2\",\"data\":[{\"name\":\"T\",\"type\":\"\",\"description\":\"這根K線的結束時間\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"這根K線期間末一筆成交價\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"這根K線期間最高成交價\"},{\"name\":\"i\",\"type\":\"\",\"description\":\"K線間隔\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"這根K線期間最低成交價\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"這根K線期間成交筆數\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"這根K線期間第一筆成交價\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"這根K線期間成交額\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"},{\"name\":\"t\",\"type\":\"\",\"description\":\"這根K線的起始時間\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"這根K線期間成交量\"}]},{\"type\":\"klineType\",\"key\":\"common\",\"data\":[{\"name\":\"1min\",\"description\":\"1min一分鐘K線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/02_kline_data.json\n// module id = klxE\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/spot/websocket/introduce/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"數據壓縮\"},{\"type\":\"normal\",\"text\":\"WebSocket 行情接口返回的所有數據都進行了 GZIP 壓縮,需要 client 在收到數據之後解壓。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce/02_data_compress.json\n// module id = ku8a\n// module chunks = 3","var map = {\n\t\"./01_get_common_symbols.json\": \"o8W7\",\n\t\"./02_get_ market_traders.json\": \"SDL0\",\n\t\"./03_get_market_depth.json\": \"2qJV\",\n\t\"./04_get_market_klines.json\": \"/lsz\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"kxYJ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market \\.json$\n// module id = kxYJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query History Stop Orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/historyStopOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/historyStopOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"symbol\":\"\",\"lastOrderId\":0,\"length\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"contract name\"},{\"name\":\"lastOrderId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Used for paging, fill in 0 for the first time; for subsequent requests, fill in the last order id from the previous return results.\"},{\"name\":\"length\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Length per request, max 100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"userId\",\"type\":\"string\",\"description\":\"User ID\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"contract name\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"description\":\"Stop Loss Price\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"description\":\"Take Profit Price\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"Order Amount\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Direction (Bid/Ask)\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"Entrust time of order\"},{\"name\":\"triggerTm\",\"type\":\"string\",\"description\":\"Trigger Time of Order\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/18_get_trade_allFillOrders_history.json\n// module id = kyJY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢用戶API Key權限\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/v1/account/apiRestrictions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiRestrictions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"ipRestrict\",\"type\":\"Boolean\",\"description\":\"是否限制ip訪問\"},{\"name\":\"createTime\",\"type\":\"Long\",\"description\":\"創建時間\"},{\"name\":\"permitsUniversalTransfer\",\"type\":\"Boolean\",\"description\":\"授權該密鑰可用於专用的万向劃轉接口\"},{\"name\":\"enableReading\",\"type\":\"Boolean\",\"description\":\"是否能讀取\"},{\"name\":\"enableFutures\",\"type\":\"Boolean\",\"description\":\"合約交易權限\"},{\"name\":\"enableSpotAndMarginTrading\",\"type\":\"Boolean\",\"description\":\"現货權限\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/permission/01_get_account_apiRestrictions.json\n// module id = l5cf\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Candlestick chart data\"},{\"type\":\"normal\",\"text\":\"Check the candlestick chart data of the filled price\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/kline\"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are not provided, the latest candlestick chart data will be returned by default.
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are provided, the latest candlestick chart data up to endTime will be returned by default.
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime is provided and endTime is not provided, the latest candlestick chart data starting from startTime will be returned by default.
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime is not provided and endTime is provided, the latest candlestick chart data up to endTime will be returned by default.
  • \"},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters.\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Time interval, refer to field description\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Start time, unit: milliseconds\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"End time, unit: milliseconds\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Default value: 500 Maximum value: 1440\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"array\",\"description\":\"Candlestick chart array\"}]},{\"type\":\"The order of the elements in the candlestick chart array [subscript]\",\"key\":\"key5\",\"data\":[{\"name\":\"0\",\"type\":\"\",\"description\":\"Candlestick chart open time\"},{\"name\":\"1\",\"type\":\"\",\"description\":\"Open price\"},{\"name\":\"2\",\"type\":\"\",\"description\":\"Max. price\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"Min. price\"},{\"name\":\"4\",\"type\":\"\",\"description\":\"Close price\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"Filled price\"},{\"name\":\"6\",\"type\":\"\",\"description\":\"Candlestick chart close time\"},{\"name\":\"7\",\"type\":\"\",\"description\":\"Volume\"}]},{\"type\":\"interval\",\"key\":\"key12\",\"data\":[{\"name\":\"1m\",\"description\":\"1-minute candlestick chart\"},{\"name\":\"3m\",\"description\":\"3-minute candlestick chart\"},{\"name\":\"5m\",\"description\":\"5-minute candlestick chart\"},{\"name\":\"15m\",\"description\":\"15-minute candlestick chart\"},{\"name\":\"30m\",\"description\":\"30-minute candlestick chart\"},{\"name\":\"1h\",\"description\":\"1-hour candlestick chart\"},{\"name\":\"2h\",\"description\":\"2-hour candlestick chart\"},{\"name\":\"4h\",\"description\":\"4-hour candlestick chart\"},{\"name\":\"6h\",\"description\":\"6-hour candlestick chart\"},{\"name\":\"8h\",\"description\":\"8-hour candlestick chart\"},{\"name\":\"12h\",\"description\":\"12-hour candlestick chart\"},{\"name\":\"1d\",\"description\":\"1-day candlestick chart\"},{\"name\":\"3d\",\"description\":\"3-day candlestick chart\"},{\"name\":\"1w\",\"description\":\"Weekly candlestick chart\"},{\"name\":\"1M\",\"description\":\"Monthly candlestick chart\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/04_get_market_klines.json\n// module id = l6fp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Trade order test\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/order/test\"},{\"type\":\"warning\",\"text\":\"The participation and return are consistent with the ordering interface, but the actual order will not be placed, only the test results will be returned.The result is a fake order, and your funds will not be deducted. It will not appear on the real transaction panel and is only used to help you practice using the order interface\"},{\"type\":\"warning\",\"text\":\"Depending on the order type, certain parameters are mandatory:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: Mandatory Parameters: quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: Mandatory Parameters: quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: Mandatory Parameters: quantity、stopPrice、price
  • \"},{\"type\":\"html\",\"text\":\"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: Mandatory Parameters: quantity、stopPrice
  • \"},{\"type\":\"warning\",\"text\":\"The triggering of the conditional order must:\"},{\"type\":\"html\",\"text\":\"

    STOP/STOP_MARKET stop loss order:

    \"},{\"type\":\"html\",\"text\":\"
  • The accumulative quantity of the pending stop loss orders cannot be greater than the quantity of open positions
  • \"},{\"type\":\"html\",\"text\":\"
  • Buy: the mark price is higher than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • Sell: the mark price is lower than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    TAKE_PROFIT/TAKE_PROFIT_MARKET take profit order:

    \"},{\"type\":\"html\",\"text\":\"
  • The accumulative quantity of the pending take profit order cannot be greater than the position quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • Buy: the mark price is lower than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • Sell: the mark price is higher than or equal to the trigger price stopPrice
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order/test\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"type\":\"\",\"side\":\"\",\"positionSide\":\"\",\"price\":0,\"quantity\":0,\"stopPrice\":0,\"recvWindow\":0,\"timeInForce\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"order type LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, and only LONG or SHORT can be selected, the default is LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN not U$: quantity=U$/price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only required for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in Force, currently supports PostOnly, GTC, IOC, and FOK\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/16_post_trade_order_test.json\n// module id = l8OL\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"有限档深度信息\"},{\"type\":\"normal\",\"text\":\"每秒推送有限档深度信息。\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @depth,比如BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100\"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"是\",\"description\":\"档数, 如 5,10,20,50,100\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"卖方深度\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"买方深度\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price价格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume数量\"}]},{\"type\":\"level\",\"key\":\"common\",\"data\":[{\"name\":\"5\",\"type\":\"\",\"description\":\"5档\"},{\"name\":\"10\",\"type\":\"\",\"description\":\"10档\"},{\"name\":\"20\",\"type\":\"\",\"description\":\"20档\"},{\"name\":\"50\",\"type\":\"\",\"description\":\"50档\"},{\"name\":\"100\",\"type\":\"\",\"description\":\"100档\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/market/01_dept_info.json\n// module id = lI21\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"延長 Listen Key 有效期\"},{\"type\":\"normal\",\"text\":\"有效期延長至本次調用後60分鐘,建議每30分鐘發送一個 ping 。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"PUT /openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl -i -X PUT 'https://open-api.bingx.com/openApi/user/auth/userDataStream?listenKey=d84d39fe78762b39e202ba204bf3f7ebed43bbe7a481299779cb53479ea9677d'\"},{\"type\":\"normal\",\"text\":\"響應\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • http status 200 成功
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 204 沒有請求參數
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 404 沒有這個listenKey
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"PUT\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"listenKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"返回的listenKey\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/listenKey/02_put_listenKey.json\n// module id = lKnG\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"刪除子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"刪除子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/del\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/del\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/08_delete_sub_account_key.json\n// module id = lRf0\n// module chunks = 3","var map = {\n\t\".\": \"yr2O\",\n\t\"./\": \"yr2O\",\n\t\"./01_server_url\": \"wpxO\",\n\t\"./01_server_url.json\": \"wpxO\",\n\t\"./02_server_apply\": \"zCSH\",\n\t\"./02_server_apply.json\": \"zCSH\",\n\t\"./03_error_code\": \"Q+zo\",\n\t\"./03_error_code.json\": \"Q+zo\",\n\t\"./index\": \"yr2O\",\n\t\"./index.js\": \"yr2O\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"lYwG\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/basic ^.*$\n// module id = lYwG\n// module chunks = 3","var map = {\n\t\"./01_server_url.json\": \"wWlE\",\n\t\"./02_server_apply.json\": \"kiBh\",\n\t\"./03_error_code.json\": \"/sx7\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"lmzL\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic \\.json$\n// module id = lmzL\n// module chunks = 3","var map = {\n\t\".\": \"vfcf\",\n\t\"./\": \"vfcf\",\n\t\"./01_get_asset_transfer\": \"6y27\",\n\t\"./01_get_asset_transfer.json\": \"6y27\",\n\t\"./02_get_asset_transfer2\": \"TDIc\",\n\t\"./02_get_asset_transfer2.json\": \"TDIc\",\n\t\"./03_get_deposit_hisrec\": \"YAvn\",\n\t\"./03_get_deposit_hisrec.json\": \"YAvn\",\n\t\"./04_get_withdraw_history\": \"WNKq\",\n\t\"./04_get_withdraw_history.json\": \"WNKq\",\n\t\"./05_post_wallets_coins\": \"7r0K\",\n\t\"./05_post_wallets_coins.json\": \"7r0K\",\n\t\"./06_post_wallets_withdraw\": \"T4Os\",\n\t\"./06_post_wallets_withdraw.json\": \"T4Os\",\n\t\"./07_post_capital_innerTransfer_apply\": \"+HuI\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"+HuI\",\n\t\"./index\": \"vfcf\",\n\t\"./index.js\": \"vfcf\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"loNz\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account ^.*$\n// module id = loNz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約基礎信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/contracts\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"contractId\",\"type\":\"string\",\"description\":\"合約ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"size\",\"type\":\"string\",\"description\":\"合約大小,例如0.0001 BTC\"},{\"name\":\"quantityPrecision\",\"type\":\"int\",\"description\":\"交易數量精度\"},{\"name\":\"pricePrecision\",\"type\":\"int\",\"description\":\"價格精度\"},{\"name\":\"feeRate\",\"type\":\"float64\",\"description\":\"交易手續費\"},{\"name\":\"tradeMinLimit\",\"type\":\"int\",\"description\":\"交易最小單位,單位為張\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"結算和保證金货幣資產\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"合約交易資產\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0下線, 1上線\"},{\"name\":\"maxLongLeverage\",\"type\":\"int\",\"description\":\"多頭交易的最大槓桿倍數\"},{\"name\":\"maxShortLeverage\",\"type\":\"int\",\"description\":\"空頭交易的最大槓桿倍數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/01_get_quote_contracts.json\n// module id = lrAs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Batch Placing Orders\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"Notes\",\"children\":[{\"type\":\"normal\",\"text\":\"For a limit order, the \\\"price\\\" parameter must be included.\"},{\"type\":\"normal\",\"text\":\"For a limit order, either \\\"quantity\\\" or \\\"quoteOrderQty\\\" must be included. If both parameters are provided, the server will prioritize the \\\"quantity\\\" parameter.\"},{\"type\":\"normal\",\"text\":\"For a market buy order, the \\\"quoteOrderQty\\\" parameter must be included.\"},{\"type\":\"normal\",\"text\":\"For a market sell order, the \\\"quantity\\\" parameter must be included.\"},{\"type\":\"normal\",\"text\":\"Orders created through the interface will not be displayed on the app and web pages.\"}]},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"type\":\"\",\"timeInForce\":0,\"quantity\":0,\"quoteOrderQty\":0,\"price\":0,\"recvWindow\":0}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"Yes\",\"description\":\"The request array for placing orders, limited to 5 orders.\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading symbol, for example: BTC-USDT, please use capital letters.\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Transaction type, BUY = buy SELL = sell\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Order type, MARKET = market price LIMIT = limit price\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"No\",\"description\":\"IOC = Limit IOC order, Immediate or Cancel; POC = Limit order, Post Only\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Order quantity, for example: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Order amount, for example: 100 USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Order price, for example: 10,000 USDT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Request validity time window, unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"array\",\"description\":\"Response array for a single order\"}]},{\"type\":\"order\",\"key\":\"key2\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading symbol, for example: BTC-USDT, please use capital letters.\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order number, please watch out for numeric overflow\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"Transaction timestamp, in milliseconds\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Order price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Order quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Filled amount\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Volume\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status, NEW = New order PENDING = Pending order PARTIALLY_FILLED = Partially filled order FILLED = Fully filled order CANCELED = Canceled order FAILED = Failed order\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type, MARKET = market price LIMIT = limit price\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Transaction type, BUY = buy SELL = sell\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/07_post_trade_batchOrders.json\n// module id = lyLM\n// module chunks = 3","var map = {\n\t\".\": \"tksP\",\n\t\"./\": \"tksP\",\n\t\"./01_post_trade_order\": \"Creq\",\n\t\"./01_post_trade_order.json\": \"Creq\",\n\t\"./02_post_trade_order_cancel\": \"PO50\",\n\t\"./02_post_trade_order_cancel.json\": \"PO50\",\n\t\"./03_get_trade_order\": \"/YEw\",\n\t\"./03_get_trade_order.json\": \"/YEw\",\n\t\"./04_get_trade_open_order\": \"bfDi\",\n\t\"./04_get_trade_open_order.json\": \"bfDi\",\n\t\"./05_get_trade_history_order\": \"dcc+\",\n\t\"./05_get_trade_history_order.json\": \"dcc+\",\n\t\"./06_get_account_balance\": \"S+dO\",\n\t\"./06_get_account_balance.json\": \"S+dO\",\n\t\"./07_post_trade_batchOrders\": \"QUO8\",\n\t\"./07_post_trade_batchOrders.json\": \"QUO8\",\n\t\"./index\": \"tksP\",\n\t\"./index.js\": \"tksP\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"m/B5\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade ^.*$\n// module id = m/B5\n// module chunks = 3","\nconst nodejs = `\n// npm install crypto-js -s \n// npm install axios -s \nimport CryptoJS from \"crypto-js\";\nimport axios from \"axios\";\nconst API_KEY = \"\"\nconst API_SECRET = \"\"\nconst HOST = \"HHOOSSTT\"\nconst api = AAPPII\nasync function main() {\n\n let parameters = \"\"\n for (const key in api.payload) {\n parameters += key+\"=\"+api.payload[key]+\"&\"\n }\n if (parameters) {\n parameters = parameters.substring(0, parameters.length - 1)\n }\n await bingXOpenApiTest(api.protocol, HOST, api.uri, api.method, API_KEY, API_SECRET, parameters)\n}\nmain().catch(console.err);\nasync function bingXOpenApiTest(protocol, host, api, method, API_KEY, API_SECRET, parameters) {\n const timestamp = new Date().getTime()\n if (parameters) {\n parameters = parameters+\"×tamp=\"+timestamp\n }else {\n parameters = \"timestamp=\"+timestamp\n }\n \n const sign = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(parameters, API_SECRET))\n const url = protocol+\"://\"+host+api+\"?\"+parameters+\"&signature=\"+sign\n console.log(\"protocol:\", protocol)\n console.log(\"method:\", method)\n console.log(\"host:\", host)\n console.log(\"api:\", api)\n console.log(\"parameters:\", parameters)\n console.log(\"sign:\", sign)\n console.log(method, url)\n const config = {\n method: method,\n url: url,\n headers: {\n 'X-BX-APIKEY': API_KEY,\n },\n transformResponse : (resp) => {\n return resp;\n }\n };\n const resp = await axios(config);\n console.log(resp.status);\n console.log(resp.data);\n}`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/javascript.js","module.exports = [{\"type\":\"hash\",\"text\":\"Unfilled Order Acquisition\"},{\"type\":\"normal\",\"text\":\"Query the details of unfilled orders within the current account over a certain period of time \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/pendingOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/pendingOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"Trigger time of order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Direction (Bid/Ask)\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"Order Type(Market/Limit)\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open/Close\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"Price\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"Order Amount\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"Ave. Price\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"Executed quantity\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"Fee\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"Update time of order\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/07_get_all_openOrders.json\n// module id = mQAj\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/swap/api/market/index.js","var map = {\n\t\"./01_create_listenKey.json\": \"8kVO\",\n\t\"./02_put_listenKey.json\": \"Rtfu\",\n\t\"./03_delete_listenKey.json\": \"LvyQ\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"mS5s\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/listenKey \\.json$\n// module id = mS5s\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"数字规范\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"为了保持跨平台时精度的完整性,十进制数字作为字符串返回。建议您在发起请求时也将数字转换为字符串以避免截断和精度错误\"},{\"type\":\"html\",\"text\":\"整数(如交易编号和顺序)不加引号\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/basic/03_digital_rule.json\n// module id = mcJU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Perpetual Swap Positions\"},{\"type\":\"normal\",\"text\":\"Retrieve information on users' positions of Perpetual Swap.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/positions\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position direction LONG/SHORT long/short\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Whether it is isolated margin mode, true: isolated margin mode false: cross margin\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"Position Amount\"},{\"name\":\"availableAmt\",\"type\":\"string\",\"description\":\"AvailableAmt Amount\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"unrealized profit and loss\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"realized profit and loss\"},{\"name\":\"initialMargin\",\"type\":\"string\",\"description\":\"Margin\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average opening price\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"leverage\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account/02_get_user_positions.json\n// module id = mp7j\n// module chunks = 3","var map = {\n\t\"./01_listenKey.json\": \"gOrG\",\n\t\"./02_balance.json\": \"Zg2x\",\n\t\"./03_order.json\": \"4X8p\",\n\t\"./04_setting.json\": \"M7Po\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"mzLI\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account \\.json$\n// module id = mzLI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query standard contract balance\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/balance\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/balance\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{}},\"params\":[{\"type\":\"Request(null)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"assets\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"total balance\"},{\"name\":\"crossWalletBalance\",\"type\":\"string\",\"description\":\"Cross position balance\"},{\"name\":\"crossUnPnl\",\"type\":\"string\",\"description\":\"Unrealized profit and loss of cross positions\"},{\"name\":\"availableBalance\",\"type\":\"string\",\"description\":\"Order available balance\"},{\"name\":\"maxWithdrawAmount\",\"type\":\"string\",\"description\":\"Maximum transferable balance\"},{\"name\":\"marginAvailable\",\"type\":\"bool\",\"description\":\"Can it be used as a joint bond\"},{\"name\":\"updateTime\",\"type\":\"number\",\"description\":\"timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/api/trade/03_get_contract_balance.json\n// module id = n0S/\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/swapV2/description\",\"name\":\"接口說明\",\"content\":[{\"type\":\"html\",\"text\":\"
  • GET方法的接口, 參數必須在query string中發送.
  • \"},{\"type\":\"html\",\"text\":\"
  • POST, PUT, 和 DELETE 方法的接口, 參數可以在 query string 中發送,也可以在 request body 中發送(content type application/x-www-form-urlencoded)。
    允许混合這两種方式發送參數。但如果同一個參數名在 query string 和 request body 中都有,query string 中的會被優先採用。
  • \"},{\"type\":\"html\",\"text\":\"
  • 對參數的順序不做要求。
  • \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/2_description.json\n// module id = n5PB\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscriptions\"},{\"type\":\"normal\",\"text\":\"After successfully establishing a connection with the Websocket server, the Websocket client sends the following request to subscribe to a specific topic: \"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"data to sub\\\" }\"},{\"type\":\"normal\",\"text\":\"After a successful subscription, the Websocket client will receive a confirmation message:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"normal\",\"text\":\"After that, once the subscribed data is updated, the Websocket client will receive the update message pushed by the server. \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/04_subscribe.json\n// module id = n8XW\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"一鍵平倉下單\"},{\"type\":\"normal\",\"text\":\"查詢持倉信息後,可根據倉位ID進行一鍵平倉操作。註意,一鍵平倉是以市價委託進行觸發的。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickClosePosition\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickClosePosition\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"positionId\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"一鍵平倉對應的倉位ID\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"一鍵平倉產生的委託訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/02_post_closeAllPositions.json\n// module id = nBfU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Rate Limits\"},{\"type\":\"html\",\"text\":\"If the request is too frequent, the system will automatically restrict the request and recover after a few minutes; Currently, BingX only restricts frequency based on IP, and all interfaces in the following categories share 1 IP frequency limit value\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"
  • Market Interface is the public interface. The rate limit of public interfaces is 60 requests every 1 second at most for each IP.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account Interface and Transaction Interface are private interfaces. Generally, the private interface rate limit is at most 20 requests every 1 second for each UID.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic/04_rate_limits.json\n// module id = nG30\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Freeze Unfreeze Sub Accounts\"},{\"type\":\"normal\",\"text\":\"Freeze/Unfreeze Sub Accounts\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/updateStatus\"},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/updateStatus\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"},{\"name\":\"freeze\",\"type\":\"bool\",\"required\":\"yes\",\"description\":\"Whether to freeze the account\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"Sub account uid\"},{\"name\":\"freeze\",\"type\":\"bool\",\"description\":\"Has it been frozen\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/09_update_sub_account_status.json\n// module id = nHln\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"全部一键平仓下单\"},{\"type\":\"normal\",\"text\":\"将当前账户下所有仓位进行一键平仓操作。注意,一键平仓是以市价委托进行触发的。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickCloseAllPositions\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickCloseAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"全部一键平仓产生的多个委托订单ID\"}]},{\"type\":\"orderId\",\"key\":\"response2\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/03_post_closeAllPositions.json\n// module id = nQs3\n// module chunks = 3","module.exports = [{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"註意需要獲取此類信息需要 websocket 鑒權,使用 listenKey,詳細方式查看 Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-ws-swap.bingbon.pro/ws\"},{\"type\":\"normal\",\"text\":\"訂閱賬戶數據流的stream名稱為 /$listenKey\"}]},{\"type\":\"hash\",\"text\":\"訂閱資產更新數據\"},{\"type\":\"normal\",\"text\":\"訂閱類型\"},{\"type\":\"code\",\"text\":\"dataType 為 ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"訂閱例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"} \"},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能類型:\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT(入金)\"},{\"type\":\"normal\",\"text\":\"WITHDRAW(出金)\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE(資金費用)\"},{\"type\":\"normal\",\"text\":\"ORDER(訂單變更)\"}]},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"數據類型\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賬戶更新事件\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"餘額信息\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"字段\\\"bc\\\"代表了钱包餘額的改變量,即 balance change,但註意其不包含倉位盈虧及交易手續費。\"}]}]},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/account/01_balance.json\n// module id = nWf4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an Order\"},{\"type\":\"normal\",\"text\":\"Cancel an order that the current account is in the current entrusted state.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/order\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/04_delete_trade_order.json\n// module id = nf3C\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤销全部订单\"},{\"type\":\"normal\",\"text\":\"将当前账户处于当前委托状态的全部订单进行撤销操作\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/allOpenOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOpenOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"撤销成功的订单列表\"},{\"name\":\"failed\",\"type\":\"结构数组\",\"description\":\"撤销失败的订单列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"错误信息提示\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/06_delete_trade_all_order.json\n// module id = nfgo\n// module chunks = 3","var map = {\n\t\"./01_create_api.json\": \"uqo+\",\n\t\"./02_permission_set.json\": \"U3vK\",\n\t\"./03_request_content.json\": \"HVe5\",\n\t\"./04_sign_discription.json\": \"huDF\",\n\t\"./05_request.json\": \"2oJ6\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"nhvi\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication \\.json$\n// module id = nhvi\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約基礎信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getAllContracts\"},{\"type\":\"code\",\"text\":\"example: https://api-swap-rest.bingbon.pro/api/v1/market/getAllContracts\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getAllContracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request(無)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"msg\",\"type\":\"\",\"description\":\"錯誤信息描述\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Array\"}]},{\"type\":\"Data\",\"key\":\"response1\",\"data\":[{\"name\":\"contractId\",\"type\":\"\",\"description\":\"合約ID\"},{\"name\":\"symbol\",\"type\":\"\",\"description\":\"合約產品符號,以A_B的形式返回\"},{\"name\":\"name\",\"type\":\"\",\"description\":\"合約產品名字\"},{\"name\":\"size\",\"type\":\"\",\"description\":\"合約大小,例如0.0001 BTC\"},{\"name\":\"minStep\",\"type\":\"\",\"description\":\"用戶輸入步長\"},{\"name\":\"volumePrecision\",\"type\":\"\",\"description\":\"交易數量精度\"},{\"name\":\"pricePrecision\",\"type\":\"\",\"description\":\"價格精度\"},{\"name\":\"quantityPrecision\",\"type\":\"\",\"description\":\"交易數量精度\"},{\"name\":\"feeRate\",\"type\":\"\",\"description\":\"交易手續費\"},{\"name\":\"tradeMinLimit\",\"type\":\"\",\"description\":\"交易最小單位,單位為張\"},{\"name\":\"currency\",\"type\":\"\",\"description\":\"結算和保證金货幣資產\"},{\"name\":\"asset\",\"type\":\"\",\"description\":\"合約交易資產\"},{\"name\":\"maxLongLeverage\",\"type\":\"\",\"description\":\"多頭交易的最大槓桿倍數\"},{\"name\":\"maxShortLeverage\",\"type\":\"\",\"description\":\"空頭交易的最大槓桿倍數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/01_get_quote_contracts.json\n// module id = nyHW\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"X4K5\",\n\t\"./02_data_compress.json\": \"uzUA\",\n\t\"./03_heart_beat.json\": \"JHlj\",\n\t\"./04_subscribe.json\": \"Gx8k\",\n\t\"./05_cancel_subscribe.json\": \"tVMD\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"o+2S\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce \\.json$\n// module id = o+2S\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"編輯子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"編輯子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/edit\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"},{\"name\":\"note\",\"type\":\"string\",\"required\":\"是\",\"description\":\"備註\"},{\"name\":\"permissions\",\"type\":\"Array\",\"required\":\"是\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"否\",\"description\":\"ip白名單\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"ip白名單\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"備註\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/07_post_edit_apikey.json\n// module id = o4h9\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"注意需要获取此类信息需要 websocket 鉴权,使用 listenKey,详细方式查看 Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"订阅账户数据流的stream名称为 /swap-market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"listenKey过期推送\"},{\"type\":\"normal\",\"text\":\"当前连接使用的有效listenKey过期时,user data stream 将会推送此事件。\"},{\"type\":\"normal\",\"text\":\"注意\",\"children\":[{\"type\":\"normal\",\"text\":\"此事件与websocket连接中断没有必然联系\"},{\"type\":\"normal\",\"text\":\"只有正在连接中的有效listenKey过期时才会收到此消息\"},{\"type\":\"normal\",\"text\":\"收到此消息后user data stream将不再更新,直到用户使用新的有效的listenKey\"}]},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型:listenKeyExpired\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间:1676964520421\"},{\"name\":\"listenKey\",\"type\":\"\",\"description\":\"失效的listenKey:53c1067059c5401e216ec0562f4e9741f49c3c18239a743653d844a50c4db6c0\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/account/01_listenKey.json\n// module id = o5vU\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"一键平仓下单\"},{\"type\":\"normal\",\"text\":\"查询持仓信息后,可根据仓位ID进行一键平仓操作。注意,一键平仓是以市价委托进行触发的。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickClosePosition\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickClosePosition\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"positionId\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"一键平仓对应的仓位ID\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"一键平仓产生的委托订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/02_post_closeAllPositions.json\n// module id = o80Q\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢交易品種\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/common/symbols\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/common/symbols\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbols\",\"type\":\"Array\",\"description\":\"品種信息列表, 元素參考下表\"}]},{\"type\":\"symbol\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"tickSize\",\"type\":\"float64\",\"description\":\"價格步長\"},{\"name\":\"stepSize\",\"type\":\"float64\",\"description\":\"數量步長\"},{\"name\":\"minQty\",\"type\":\"float64\",\"description\":\"最小交易數量\"},{\"name\":\"maxQty\",\"type\":\"float64\",\"description\":\"最大交易數量\"},{\"name\":\"minNotional\",\"type\":\"float64\",\"description\":\"最小交易金額\"},{\"name\":\"maxNotional\",\"type\":\"float64\",\"description\":\"最大交易金額\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0下線, 1上線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/01_get_common_symbols.json\n// module id = o8W7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢止盈止損訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/pendingStopOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/pendingStopOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"symbol\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用戶id\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單id\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合約名稱\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"倉位id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"description\":\"止損價格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"description\":\"止盈價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid買入, Ask賣出\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"委託時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/17_get_trade_allFillOrders.json\n// module id = o9VI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"请求交互\"},{\"type\":\"warning\",\"text\":\"REST访问的根URL: https://api-swap-rest.bingbon.pro\"},{\"type\":\"html\",\"text\":\"所有请求基于Https协议,请求头信息中Content-Type 需要统一设置为:'application/json’。 \"},{\"type\":\"html\",\"text\":\"请求交互说明\"},{\"type\":\"html\",\"text\":\"
  • 请求参数:根据接口请求参数规定进行参数封装。
  • \"},{\"type\":\"html\",\"text\":\"
  • 提交请求参数:将封装好的请求参数通过POST/GET/DELETE等方式提交至服务器。
  • \"},{\"type\":\"html\",\"text\":\"
  • 服务器响应:服务器首先对用户请求数据进行参数安全校验,通过校验后根据业务逻辑将响应数据以JSON格式返回给用户。
  • \"},{\"type\":\"html\",\"text\":\"
  • 数据处理:对服务器响应数据进行处理。
  • \"},{\"type\":\"html\",\"text\":\"成功\"},{\"type\":\"html\",\"text\":\"
  • HTTP状态码200表示成功响应,并可能包含内容。如果响应含有内容,则将显示在相应的返回内容里面。
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication/05_request.json\n// module id = oR0W\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"深度信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/depth\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":20}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默認20,可選值:[5, 10, 20, 50, 100, 500, 1000]\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"係統時間,單位:毫秒\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"賣方深度。第一個元素價格,第二個元素數量\"},{\"name\":\"bids\",\"type\":\"array\",\"description\":\"買方深度。第一個元素價格,第二個元素數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/03_get_quote_depth.json\n// module id = obcS\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/spot/websocket/account/index.js","module.exports = {\"module\":\"standard\",\"path\":\"/standard/introduce\",\"name\":\"介紹\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了標准合約交易業務相關API的使用方法介紹。\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/1_introduce.json\n// module id = okpR\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/listenKey/index.js","var map = {\n\t\".\": \"pk3M\",\n\t\"./\": \"pk3M\",\n\t\"./01_post_user_balance\": \"EOtf\",\n\t\"./01_post_user_balance.json\": \"EOtf\",\n\t\"./02_post_user_positions\": \"0EGA\",\n\t\"./02_post_user_positions.json\": \"0EGA\",\n\t\"./index\": \"pk3M\",\n\t\"./index.js\": \"pk3M\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ouvd\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/account ^.*$\n// module id = ouvd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"One-Click Close All Positions\"},{\"type\":\"normal\",\"text\":\"Close all positions within the current account by one click. Please note that the one-click closed positions are traded at market price.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickCloseAllPositions\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickCloseAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"Multiple Order IDs generated by one-click close all\"}]},{\"type\":\"orderId\",\"key\":\"response2\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"order ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/03_post_closeAllPositions.json\n// module id = ovOx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Latest Price of a Trading Pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/price\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT,If no transaction pair parameters are sent, all transaction pair information will be returned\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"price\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"matching engine time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/02_get_quote_price.json\n// module id = owTM\n// module chunks = 3","module.exports = [{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"注意需要获取此类信息需要 websocket 鉴权,使用 listenKey,详细方式查看 Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-ws-swap.bingbon.pro/ws\"},{\"type\":\"normal\",\"text\":\"订阅账户数据流的stream名称为 /$listenKey\"}]},{\"type\":\"hash\",\"text\":\"订阅资产更新数据\"},{\"type\":\"normal\",\"text\":\"订阅类型\"},{\"type\":\"code\",\"text\":\"dataType 为 ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"订阅例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"} \"},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能类型:\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT(入金)\"},{\"type\":\"normal\",\"text\":\"WITHDRAW(出金)\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE(资金费用)\"},{\"type\":\"normal\",\"text\":\"ORDER(订单变更)\"}]},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"数据类型\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"账户更新事件\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"余额信息\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"字段\\\"bc\\\"代表了钱包余额的改变量,即 balance change,但注意其不包含仓位盈亏及交易手续费。\"}]}]},{\"type\":\"html\",\"text\":\"
  • 更多返回错误代码请看首页的错误代码描述
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/websocket/account/01_balance.json\n// module id = p0H6\n// module chunks = 3","var map = {\n\t\".\": \"zOyK\",\n\t\"./\": \"zOyK\",\n\t\"./01_trade_info\": \"eqGc\",\n\t\"./01_trade_info.json\": \"eqGc\",\n\t\"./02_kline_data\": \"VLKD\",\n\t\"./02_kline_data.json\": \"VLKD\",\n\t\"./03_depth_info\": \"9R9w\",\n\t\"./03_depth_info.json\": \"9R9w\",\n\t\"./index\": \"zOyK\",\n\t\"./index.js\": \"zOyK\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"p8mx\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/market ^.*$\n// module id = p8mx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"槓桿倍數和保證金模式等配置更新推送\"},{\"type\":\"normal\",\"text\":\"當賬戶配置發生變化時會推送此類事件類型統一為 ACCOUNT_CONFIG_UPDATE\"},{\"type\":\"normal\",\"text\":\"當交易對槓桿倍數發生變化時推送消息體會包含對象ac表示交易對賬戶配置,其中s代表具體的交易對,l代表多倉槓桿倍數,S代表空倉槓桿倍數,mt代表保證金模式。\"},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型:ACCOUNT_CONFIG_UPDATE\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間:1676603102163\"},{\"name\":\"ac\",\"type\":\"obj\",\"description\":\"交易<對象>\"}]},{\"type\":\"ac\",\"key\":\"common\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對:BTC-USDT\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"多倉槓桿倍數:12\"},{\"name\":\"S\",\"type\":\"\",\"description\":\"空倉槓桿倍數:9\"},{\"name\":\"mt\",\"type\":\"\",\"description\":\"保證金模式:cross\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account/04_setting.json\n// module id = pHnt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"全部一鍵平倉下單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶下所有倉位進行一鍵平倉操作。註意,一鍵平倉是以市價委託進行觸發的。 \"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/closeAllPositions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"全部一鍵平倉產生的多個委託訂單號\"},{\"name\":\"failed\",\"type\":\"結构數組\",\"description\":\"平倉失敗的訂單號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/03_post_closeAllPositions.json\n// module id = pKuc\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < 4; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/basic/index_share_to_v1.js","var map = {\n\t\".\": \"W+Bc\",\n\t\"./\": \"W+Bc\",\n\t\"./01_get_account_apiRestrictions\": \"Xu0+\",\n\t\"./01_get_account_apiRestrictions.json\": \"Xu0+\",\n\t\"./index\": \"W+Bc\",\n\t\"./index.js\": \"W+Bc\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"pYGg\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/permission ^.*$\n// module id = pYGg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶列表\"},{\"type\":\"normal\",\"text\":\"查詢子賬戶列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/list\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/list\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"否\",\"description\":\"子賬戶uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"required\":\"否\",\"description\":\"子賬戶用戶名\"},{\"name\":\"isFeeze\",\"type\":\"bool\",\"required\":\"否\",\"description\":\"是否凍結\"},{\"name\":\"page\",\"type\":\"int\",\"required\":\"是\",\"description\":\"分頁頁碼,啟始為1\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"是\",\"description\":\"分頁大小,最大100\"},{\"name\":\"timestamp\",\"type\":\"long\",\"required\":\"是\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子賬戶uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"description\":\"子賬戶用戶名\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"子賬戶備註信息\"},{\"name\":\"freeze\",\"type\":\"bool\",\"description\":\"是否已經凍結\"},{\"name\":\"createTime\",\"type\":\"long\",\"description\":\"創建時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/03_post_fetch_sub_account_list.json\n// module id = pZuE\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"Note that obtaining such information requires websocket authentication, use listenKey, and check the Listen Key\"},{\"type\":\"normal\",\"text\":\"The websocket interface is wss://open-api-ws.bingx.com/market\"},{\"type\":\"normal\",\"text\":\"The stream name of the subscription account data stream is /market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"Subscription order update data\"},{\"type\":\"normal\",\"text\":\"Subscription Type\"},{\"type\":\"code\",\"text\":\"dataType: spot.executionReport\"},{\"type\":\"normal\",\"text\":\"Subscription example\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The data type of the subscription, for example:spot.executionReport\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"Event Type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"trading pair\"},{\"name\":\"S\",\"type\":\"\",\"description\":\"Order direction\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"order type\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"Order original quantity\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"Original order price\"},{\"name\":\"x\",\"type\":\"\",\"description\":\"Event Type\"},{\"name\":\"X\",\"type\":\"\",\"description\":\"order status\"},{\"name\":\"i\",\"type\":\"\",\"description\":\"Order ID\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Last order transaction volume\"},{\"name\":\"z\",\"type\":\"\",\"description\":\"Accumulated transaction volume of orders\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"Last transaction price of the order\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"Number of handling fees\"},{\"name\":\"N\",\"type\":\"\",\"description\":\"Handling fee asset category\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"transaction time\"},{\"name\":\"t\",\"type\":\"\",\"description\":\"Transaction ID\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"Order creation time\"},{\"name\":\"Z\",\"type\":\"\",\"description\":\"Accumulated transaction amount of orders\"},{\"name\":\"Y\",\"type\":\"\",\"description\":\"Last transaction amount of the order\"},{\"name\":\"Q\",\"type\":\"\",\"description\":\"Original order amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/account/01_executionReport.json\n// module id = pjpR\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swap/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Withdraw\"},{\"type\":\"normal\",\"text\":\"Specify user account to initiate coin withdrawal\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/wallets/v1/capital/withdraw/apply\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"network\":\"ERC20\",\"address\":\"0xxxxxxxxxxxxxx\",\"addressTag\":\"\",\"amount\":20,\"walletType\":1}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Coin name\"},{\"name\":\"network\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Network name, use default network if not transmitted\"},{\"name\":\"address\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Withdrawal address\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Withdrawal amount\"},{\"name\":\"walletType\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Account type: 1 fund account, 2 standard account, 3 perpetual account\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"Unique identifier of the withdrawal record, this field is not returned during internal transfer of withdrawal\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/06_post_wallets_withdraw.json\n// module id = puhI\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/spot/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingXAPI. \"},{\"type\":\"normal\",\"text\":\"You can use our API to access market data endpoints of spot trading. The market data API is publicly accessible and provides market data, statistics, order book depth of a Trading Pair. \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/1_introduce.json\n// module id = puzn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"调整开仓杠杆\"},{\"type\":\"normal\",\"text\":\"调整用户在指定symbol合约的开仓杠杆。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"多仓或者空仓的杠杆,LONG表示多仓,SHORT表示空仓\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"leverage\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"杠杆倍数\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"leverage\",\"type\":\"int64\",\"description\":\"杠杆倍数\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/12_post_trade_leverage.json\n// module id = pyFj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"請求內容\"},{\"type\":\"normal\",\"text\":\"所有REST請求都必須包含以下參數:\",\"children\":[{\"type\":\"normal\",\"text\":\"API Key作為一個字符串。\"},{\"type\":\"normal\",\"text\":\"sign 使用一定算法得出的簽名(請參閱簽名信息)。\"},{\"type\":\"normal\",\"text\":\"timestamp 作為您的請求的時間戳。\"},{\"type\":\"normal\",\"text\":\"所有請求都應該含有application/json類型內容,併且是有效的JSON。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/authentication/03_request_content.json\n// module id = q1lS\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Current Funding Rate\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestFunding\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestFunding\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"fundingRate\",\"type\":\"float64\",\"description\":\"Current Funding Rate\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"current mark price\"},{\"name\":\"leftSeconds\",\"type\":\"float64\",\"description\":\"Time left for the next settlement, in seconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/05_get_quote_ premiumIndex.json\n// module id = qG6H\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Symbols\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/common/symbols\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/common/symbols\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbols\",\"type\":\"Array\",\"description\":\"Symbol list, refer to the table below for order fields\"}]},{\"type\":\"symbol\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"tickSize\",\"type\":\"float64\",\"description\":\"Price step\"},{\"name\":\"stepSize\",\"type\":\"float64\",\"description\":\"Quantity step\"},{\"name\":\"minQty\",\"type\":\"float64\",\"description\":\"Minimum transaction quantity\"},{\"name\":\"maxQty\",\"type\":\"float64\",\"description\":\"Maximum transaction quantity\"},{\"name\":\"minNotional\",\"type\":\"float64\",\"description\":\"Minimum transaction amount\"},{\"name\":\"maxNotional\",\"type\":\"float64\",\"description\":\"Maximum transaction amount\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0 offline, 1 online\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/01_get_common_symbols.json\n// module id = qHSP\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/spot/api/basic/index.js","var map = {\n\t\".\": \"XWMS\",\n\t\"./\": \"XWMS\",\n\t\"./01_trade_info\": \"jcbY\",\n\t\"./01_trade_info.json\": \"jcbY\",\n\t\"./02_kline_data\": \"3EGE\",\n\t\"./02_kline_data.json\": \"3EGE\",\n\t\"./03_depth_info\": \"fsqo\",\n\t\"./03_depth_info.json\": \"fsqo\",\n\t\"./index\": \"XWMS\",\n\t\"./index.js\": \"XWMS\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"qRu6\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market ^.*$\n// module id = qRu6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新價格\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/price\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母,不發送交易對參數,則會返回所有交易對信息\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"價格\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"撮合引擎時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/02_get_quote_price.json\n// module id = r2l6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"当前最优挂单\"},{\"type\":\"normal\",\"text\":\"获取当前最优挂单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/bookTicker\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"bid_price\",\"type\":\"float64\",\"description\":\"最优买单价\"},{\"name\":\"bid_qty\",\"type\":\"float64\",\"description\":\"挂单量\"},{\"name\":\"ask_price\",\"type\":\"float64\",\"description\":\"最优卖单价\"},{\"name\":\"ask_qty\",\"type\":\"float64\",\"description\":\"挂单量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/20_get_trade_quote_bookTicker.json\n// module id = rEFa\n// module chunks = 3","var map = {\n\t\"./01_post_user_balance.json\": \"emHW\",\n\t\"./02_post_user_positions.json\": \"HU7E\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"rORl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/account \\.json$\n// module id = rORl\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"One-Click Close Position\"},{\"type\":\"normal\",\"text\":\"After querying the position information, you can close the position by one-click based on the position ID. Please note that the one-click closed position is traded at market price. \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickClosePosition\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickClosePosition\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"positionId\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"ID of the position needs to be closed with one click\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID generated by one-click close\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/02_post_closeAllPositions.json\n// module id = rac6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"K线数据\"},{\"type\":\"normal\",\"text\":\"查询成交价格的K线数据。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/kline\"},{\"type\":\"html\",\"text\":\"
  • 如果未发送 startTime 和 endTime ,默认返回最新的k线数据
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果发送 startTime 和 endTime ,默认返回截止 endTime 的最新的k线数据
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果发送 startTime 但不发送 endTime ,默认返回 startTime 开始的最新的k线数据
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果不发送 startTime 但发送 endTime ,默认返回截止 endTime 最新的k线数据
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"时间间隔,参考字段说明\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"默认值:500 最大值:1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"array\",\"description\":\"kline数组\"}]},{\"type\":\"kline数组内元素顺序[下标]\",\"key\":\"key5\",\"data\":[{\"name\":\"0\",\"type\":\"\",\"description\":\"K线开盘时间\"},{\"name\":\"1\",\"type\":\"\",\"description\":\"开盘价\"},{\"name\":\"2\",\"type\":\"\",\"description\":\"最高价\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"最低价\"},{\"name\":\"4\",\"type\":\"\",\"description\":\"收盘价\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"成交量\"},{\"name\":\"6\",\"type\":\"\",\"description\":\"K线收盘时间\"},{\"name\":\"7\",\"type\":\"\",\"description\":\"成交额\"}]},{\"type\":\"interval\",\"key\":\"key12\",\"data\":[{\"name\":\"1m\",\"description\":\"一分钟K线\"},{\"name\":\"3m\",\"description\":\"三分钟K线\"},{\"name\":\"5m\",\"description\":\"五分钟K线\"},{\"name\":\"15m\",\"description\":\"十五分钟K线\"},{\"name\":\"30m\",\"description\":\"三十分钟K线\"},{\"name\":\"1h\",\"description\":\"一小时K线\"},{\"name\":\"2h\",\"description\":\"两小时K线\"},{\"name\":\"4h\",\"description\":\"四小时K线\"},{\"name\":\"6h\",\"description\":\"六小时K线\"},{\"name\":\"8h\",\"description\":\"八小时K线\"},{\"name\":\"12h\",\"description\":\"12小时K线\"},{\"name\":\"1d\",\"description\":\"1日K线\"},{\"name\":\"3d\",\"description\":\"3日K线\"},{\"name\":\"1w\",\"description\":\"周K线\"},{\"name\":\"1M\",\"description\":\"月K线\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/market/04_get_market_klines.json\n// module id = rdtp\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"eqGc\",\n\t\"./02_kline_data.json\": \"VLKD\",\n\t\"./03_depth_info.json\": \"9R9w\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"s2uN\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/market \\.json$\n// module id = s2uN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"获取账户损益资金流水\"},{\"type\":\"normal\",\"text\":\"查询当前账户下永续合约的资金流水。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/income\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 如果startTime 和 endTime 均未发送, 只会返回最近7天的数据。
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果incomeType没有发送,返回所有类型账户损益资金流水。
  • \"},{\"type\":\"html\",\"text\":\"
  • 仅保留最近3个月的数据。
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"incomeType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"incomeType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"收益类型,见上方说明\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"返回的结果集数量 默认值:100 最大值:1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"incomeType\",\"type\":\"string\",\"description\":\"资金流类型\"},{\"name\":\"income\",\"type\":\"string\",\"description\":\"资金流数量,正数代表流入,负数代表流出\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"资产内容\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"备注信息,取决于流水类型\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"时间,单位:毫秒\"},{\"name\":\"tranId\",\"type\":\"string\",\"description\":\"划转id\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"引起流水产生的原始交易ID\"}]},{\"type\":\"incomeType\",\"key\":\"common\",\"data\":[{\"name\":\"TRANSFER\",\"type\":\"\",\"description\":\"转账\"},{\"name\":\"REALIZED_PNL\",\"type\":\"\",\"description\":\"已实现盈亏\"},{\"name\":\"FUNDING_FEE\",\"type\":\"\",\"description\":\"资金费用\"},{\"name\":\"TRADING_FEE\",\"type\":\"\",\"description\":\"手续费\"},{\"name\":\"INSURANCE_CLEAR\",\"type\":\"\",\"description\":\"强平\"},{\"name\":\"TRIAL_FUND\",\"type\":\"\",\"description\":\"体验金\"},{\"name\":\"ADL\",\"type\":\"\",\"description\":\"自动减仓\"},{\"name\":\"SYSTEM_DEDUCTION\",\"type\":\"\",\"description\":\"系统扣除\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/account/03_get_user_income.json\n// module id = s67u\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新标记价格和资金费率\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/premiumIndex\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"lastFundingRate\",\"type\":\"string\",\"description\":\"最近更新的资金费率\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"当前的标记价格\"},{\"name\":\"indexPrice\",\"type\":\"string\",\"description\":\"指数价格\"},{\"name\":\"nextFundingTime\",\"type\":\"int64\",\"description\":\"下次结算剩余时间,单位为毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/05_get_quote_ premiumIndex.json\n// module id = s6Wv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Order History\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/historyOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Notice:\",\"children\":[{\"type\":\"normal\",\"text\":\"If orderId is set, orders >= orderId. Otherwise, the most recent orders will be returned.\"},{\"type\":\"normal\",\"text\":\"If startTime and endTime are provided, orderId is not required.\"}]},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"pageIndex\":0,\"pageSize\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start timestamp, Unit: ms\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End timestamp, Unit: ms\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Page number, must greather than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Page size,Max 100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"Order list,max length is 2000, refer to the table below for order fields\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Original quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote asset transacted quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Order timestamp\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Update timestamp\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"Original quote order quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/05_get_trade_history_order.json\n// module id = s6dj\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/spot/api/basic/index.js","var map = {\n\t\"./01_post_trade_order.json\": \"F99G\",\n\t\"./02_post_trade_order_cancel.json\": \"vNX1\",\n\t\"./03_get_trade_order.json\": \"AGDW\",\n\t\"./04_get_trade_open_order.json\": \"HFP1\",\n\t\"./05_get_trade_history_order.json\": \"Vx5o\",\n\t\"./06_get_account_balance.json\": \"hi8+\",\n\t\"./07_post_trade_batchOrders.json\": \"hNbe\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"sHu4\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade \\.json$\n// module id = sHu4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"創建子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"創建子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/create\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"note\",\"type\":\"string\",\"required\":\"是\",\"description\":\"備註\"},{\"name\":\"permissions\",\"type\":\"Array\",\"required\":\"是\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"否\",\"description\":\"ip白名單\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"description\":\"\"},{\"name\":\"apiSecret\",\"type\":\"string\",\"description\":\"api秘鑰\"},{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"ip白名單\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"備註\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/05_create_sub_accuont_key.json\n// module id = sYD+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel a Batch of Orders\"},{\"type\":\"normal\",\"text\":\"Batch cancellation of some of the orders whose current account is in the current entrusted state.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderIdList\":[0],\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderIdList\",\"type\":\"LIST\",\"required\":\"no\",\"description\":\"system order number, up to 10 orders [1234567,2345678]\"},{\"name\":\"ClientOrderIDList\",\"type\":\"LIST\",\"required\":\"no\",\"description\":\"Customized order ID for users, up to 10 orders [1234567,2345678]\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"list of successfully canceled orders\"},{\"name\":\"failed\",\"type\":\"array\",\"description\":\"list of failed orders\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"Error Details Description\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/05_delete_trade_batch_order.json\n// module id = siG2\n// module chunks = 3","var map = {\n\t\"./01_executionReport.json\": \"pjpR\",\n\t\"./02_ account_update.json\": \"5y10\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"smlZ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/account \\.json$\n// module id = smlZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢標准合約餘額\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/balance\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/balance\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{}},\"params\":[{\"type\":\"Request(無)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"資產\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"总餘額\"},{\"name\":\"crossWalletBalance\",\"type\":\"string\",\"description\":\"全倉餘額\"},{\"name\":\"crossUnPnl\",\"type\":\"string\",\"description\":\"全倉持倉未實現盈虧\"},{\"name\":\"availableBalance\",\"type\":\"string\",\"description\":\"下單可用餘額\"},{\"name\":\"maxWithdrawAmount\",\"type\":\"string\",\"description\":\"最大可轉出餘額\"},{\"name\":\"marginAvailable\",\"type\":\"bool\",\"description\":\"是否可用作聯合保證金\"},{\"name\":\"updateTime\",\"type\":\"number\",\"description\":\"時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade/03_get_contract_balance.json\n// module id = smla\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷訂單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的某個訂單進行撤銷操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/cancelOrder\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/cancelOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"\",\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"訂單ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/04_delete_trade_order.json\n// module id = t6GP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"签名说明\"},{\"type\":\"html\",\"text\":\"signature 请求参数使用HMAC SHA256方法加密而得到的。\"},{\"type\":\"html\",\"text\":\"例如:对于调整币种杠杆请求参数进行签名\"},{\"type\":\"html\",\"text\":\"
  • 接口参数
  • \"},{\"type\":\"html\",\"text\":\"

    symbol=BTC-USDT
    timestamp=1667872120843
    side=LONG
    leverage=6

    \"},{\"type\":\"html\",\"text\":\"
  • api信息
  • \"},{\"type\":\"html\",\"text\":\"

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    \"},{\"type\":\"html\",\"text\":\"
  • 参数通过query string发送示例
  • \"},{\"type\":\"html\",\"text\":\"1. 对接口参数进行拼接: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6

    2. 对拼接好的参数字符串使用secretKey生成签名: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 发送请求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'\"},{\"type\":\"html\",\"text\":\"
  • 参数通过request body发送示例
  • \"},{\"type\":\"html\",\"text\":\"1. 对接口参数进行拼接: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6
    2. 对拼接好的参数字符串使用secretKey生成签名: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 发送请求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage' -d 'symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf' \"},{\"type\":\"html\",\"text\":\"
  • 参数通过query string和request body发送示例
  • \"},{\"type\":\"html\",\"text\":\"queryString: symbol=BTC-USDT×tamp=1668159715051
    requestBody: side=LONG&leverage=6 \"},{\"type\":\"html\",\"text\":\"1. 对接口参数进行拼接: symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6
    2. 对拼接好的参数字符串使用secretKey生成签名: 8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex\"},{\"type\":\"html\",\"text\":\"3. 发送请求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1668159715051&signature=8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d' -d 'side=LONG&leverage=6' \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/authentication/04_sign_discription.json\n// module id = t9kx\n// module chunks = 3","var map = {\n\t\"./2023-06-03.json\": \"jVl+\",\n\t\"./2023-07-29.json\": \"MfXY\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"tMb9\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog \\.json$\n// module id = tMb9\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"Creq\",\n\t\"./02_post_trade_order_cancel.json\": \"PO50\",\n\t\"./03_get_trade_order.json\": \"/YEw\",\n\t\"./04_get_trade_open_order.json\": \"bfDi\",\n\t\"./05_get_trade_history_order.json\": \"dcc+\",\n\t\"./06_get_account_balance.json\": \"S+dO\",\n\t\"./07_post_trade_batchOrders.json\": \"QUO8\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"tV9l\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade \\.json$\n// module id = tV9l\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"取消订阅\"},{\"type\":\"normal\",\"text\":\"取消订阅的格式如下:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"unsub\\\", \\\"dataType\\\": \\\"data to unsub\\\"}\"},{\"type\":\"normal\",\"text\":\"取消订阅成功确认:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce/05_cancel_subscribe.json\n// module id = tVMD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"延长 Listen Key 有效期\"},{\"type\":\"normal\",\"text\":\"有效期延长至本次调用后60分钟,建议每30分钟发送一个 ping 。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"PUT /openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl -i -X PUT 'https://open-api.bingx.com/openApi/user/auth/userDataStream?listenKey=d84d39fe78762b39e202ba204bf3f7ebed43bbe7a481299779cb53479ea9677d'\"},{\"type\":\"normal\",\"text\":\"响应\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • http status 200 成功
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 204 没有请求参数
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 404 没有这个listenKey
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"PUT\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"listenKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"返回的listenKey\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/listenKey/02_put_listenKey.json\n// module id = tXGI\n// module chunks = 3","var map = {\n\t\".\": \"ftyM\",\n\t\"./\": \"ftyM\",\n\t\"./01_get_quote_contracts\": \"kQGv\",\n\t\"./01_get_quote_contracts.json\": \"kQGv\",\n\t\"./02_get_quote_price\": \"wZoS\",\n\t\"./02_get_quote_price.json\": \"wZoS\",\n\t\"./03_get_quote_depth\": \"TsMJ\",\n\t\"./03_get_quote_depth.json\": \"TsMJ\",\n\t\"./04_get_quote_ trades\": \"ceUr\",\n\t\"./04_get_quote_ trades.json\": \"ceUr\",\n\t\"./05_get_quote_ premiumIndex\": \"s6Wv\",\n\t\"./05_get_quote_ premiumIndex.json\": \"s6Wv\",\n\t\"./06_get_quote_ fundingRate\": \"PQJ1\",\n\t\"./06_get_quote_ fundingRate.json\": \"PQJ1\",\n\t\"./07_get_quote_ klines\": \"MMY+\",\n\t\"./07_get_quote_ klines.json\": \"MMY+\",\n\t\"./08_get_quote_openInterest\": \"FnYD\",\n\t\"./08_get_quote_openInterest.json\": \"FnYD\",\n\t\"./09_get_quote_ ticker\": \"YBd1\",\n\t\"./09_get_quote_ ticker.json\": \"YBd1\",\n\t\"./index\": \"ftyM\",\n\t\"./index.js\": \"ftyM\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"taDK\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market ^.*$\n// module id = taDK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询强平订单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/forceOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/forceOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"autoCloseType\":\"\",\"lastOrderId\":\"\",\"length\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Liquidation 表示强平订单, ADL 表示减仓订单\"},{\"name\":\"lastOrderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"用于分页, 第一次填写0, 后续填写前一次返回结果里面的最后一个订单id\"},{\"name\":\"length\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每次请求的长度, 最大值为100\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合约名称\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"订单类型, Limit是限价单, Market是市价单\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Liquidation 表示强平订单, ADL 表示减仓订单\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"破产价格\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"成交时间\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交数量\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单id\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid买入, Ask卖出\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手续费\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/13_get_trade_forceOrders.json\n// module id = tc3t\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/api/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"杠杆倍数和保证金模式等配置更新推送\"},{\"type\":\"normal\",\"text\":\"当账户配置发生变化时会推送此类事件类型统一为 ACCOUNT_CONFIG_UPDATE\"},{\"type\":\"normal\",\"text\":\"当交易对杠杆倍数发生变化时推送消息体会包含对象ac表示交易对账户配置,其中s代表具体的交易对,l代表多仓杠杆倍数,S代表空仓杠杆倍数,mt代表保证金模式。\"},{\"type\":\"html\",\"text\":\"
  • 更多返回错误代码请看首页的错误代码描述
  • \"},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型:ACCOUNT_CONFIG_UPDATE\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间:1676603102163\"},{\"name\":\"ac\",\"type\":\"obj\",\"description\":\"交易<对象>\"}]},{\"type\":\"ac\",\"key\":\"common\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对:BTC-USDT\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"多仓杠杆倍数:12\"},{\"name\":\"S\",\"type\":\"\",\"description\":\"空仓杠杆倍数:9\"},{\"name\":\"mt\",\"type\":\"\",\"description\":\"保证金模式:cross\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/account/04_setting.json\n// module id = tdzN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询账户信息\"},{\"type\":\"normal\",\"text\":\"查询当前账户下永续合约资产的相关信息。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/getBalance\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/getBalance\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"currency\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口秘钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约资产\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用户ID\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"用户资产\"},{\"name\":\"balance\",\"type\":\"float64\",\"description\":\"资产余额\"},{\"name\":\"equity\",\"type\":\"float64\",\"description\":\"资产净值\"},{\"name\":\"unrealisedPNL\",\"type\":\"float64\",\"description\":\"未实现盈亏\"},{\"name\":\"realisedPNL\",\"type\":\"float64\",\"description\":\"已实现盈亏\"},{\"name\":\"availableMargin\",\"type\":\"float64\",\"description\":\"可用保证金\"},{\"name\":\"usedMargin\",\"type\":\"float64\",\"description\":\"已用保证金\"},{\"name\":\"freezedMargin\",\"type\":\"float64\",\"description\":\"冻结保证金\"},{\"name\":\"longLeverage\",\"type\":\"float64\",\"description\":\"做多杠杆\"},{\"name\":\"shortLeverage\",\"type\":\"float64\",\"description\":\"做空杠杆\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/account/01_post_user_balance.json\n// module id = tiO5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱逐筆交易\"},{\"type\":\"normal\",\"text\":\"逐筆交易推送每一筆成交的信息。成交,或者說交易的定義是僅有一個吃單者與一個掛單者相互交易\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @trade,比如BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@trade\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"trade\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"BTC-USDT\",\"description\":\"交易對\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"交易ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"成交價格\"},{\"name\":\"q\",\"type\":\"0.007146\",\"description\":\"成交數量\"},{\"name\":\"T\",\"type\":\"1649832413512\",\"description\":\"成交時間\"},{\"name\":\"m\",\"type\":\"true\",\"description\":\"買方是否是做市方。如true,則此次成交是一個主動賣出單,否則是一個主動買入單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/01_trade_info.json\n// module id = tk7z\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/spot/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"position\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/allPosition\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/allPosition\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"request(null)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"initialMargin\",\"type\":\"number\",\"description\":\"Margin\"},{\"name\":\"leverage\",\"type\":\"number\",\"description\":\"Leverage\"},{\"name\":\"unrealizedProfit\",\"type\":\"number\",\"description\":\"Position unrealized profit and loss\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Whether it is isolated margin mode\"},{\"name\":\"entryPrice\",\"type\":\"number\",\"description\":\"Holding cost price\"},{\"name\":\"positionSide\",\"type\":\"number\",\"description\":\"Position direction, LONG and SHORT\"},{\"name\":\"positionAmt\",\"type\":\"number\",\"description\":\"Transaction data\"},{\"name\":\"currentPrice\",\"type\":\"number\",\"description\":\"Current price. When there is no closing price, the current price will be returned\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"opening time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/api/trade/01_get_contract_allPosition.json\n// module id = ttu5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订单最新成交记录\"},{\"type\":\"normal\",\"text\":\"逐笔交易推送每一笔成交的信息。成交,或者说交易的定义是仅有一个吃单者与一个挂单者相互交易\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @trade,比如BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"成交时间\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"买方是否是做市方。如true,则此次成交是一个主动卖出单,否则是一个主动买入单。\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price价格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/market/02_latest_records.json\n// module id = u+VH\n// module chunks = 3","var map = {\n\t\".\": \"F5V+\",\n\t\"./\": \"F5V+\",\n\t\"./01_create_api\": \"KMXO\",\n\t\"./01_create_api.json\": \"KMXO\",\n\t\"./03_request_content\": \"DZHm\",\n\t\"./03_request_content.json\": \"DZHm\",\n\t\"./04_sign_discription\": \"gBMP\",\n\t\"./04_sign_discription.json\": \"gBMP\",\n\t\"./05_request\": \"4UQG\",\n\t\"./05_request.json\": \"4UQG\",\n\t\"./index\": \"F5V+\",\n\t\"./index.js\": \"F5V+\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"u4hn\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/authentication ^.*$\n// module id = u4hn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query transaction records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/trades\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\",\"limit\":100}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"default 100, max 100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"long\",\"description\":\"transaction id\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"price\"},{\"name\":\"qty\",\"type\":\"float64\",\"description\":\"quantity\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"time\"},{\"name\":\"isBuyerMaker\",\"type\":\"boolean\",\"description\":\"Buyer or not\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/02_get_ market_traders.json\n// module id = u7QQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢持倉信息\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約的持倉信息與盈虧情况。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/positions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"倉位ID\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"倉位方向 LONG/SHORT 多/空\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"是否是逐倉模式, true:逐倉模式 false:全倉\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"持倉數量\"},{\"name\":\"availableAmt\",\"type\":\"string\",\"description\":\"可平倉數量\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"未實現盈虧\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"已實現盈虧\"},{\"name\":\"initialMargin\",\"type\":\"string\",\"description\":\"保證金\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"開倉均價\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"槓桿\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/account/02_get_user_positions.json\n// module id = uAAZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"全部一鍵平倉下單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶下所有倉位進行一鍵平倉操作。註意,一鍵平倉是以市價委託進行觸發的。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickCloseAllPositions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickCloseAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"全部一鍵平倉產生的多個委託訂單ID\"}]},{\"type\":\"orderId\",\"key\":\"response2\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/03_post_closeAllPositions.json\n// module id = uKtQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Requests\"},{\"type\":\"warning\",\"text\":\"Root URL for REST access: https://open-api.bingx.com\"},{\"type\":\"html\",\"text\":\"Request Description\"},{\"type\":\"html\",\"text\":\"
  • Request parameter: Parameter encapsulation is performed according to the interface request parameter specification.
  • \"},{\"type\":\"html\",\"text\":\"
  • Submit request parameters: Submit the encapsulated request parameters to the server through POST/GET/DELETE, etc.
  • \"},{\"type\":\"html\",\"text\":\"
  • Server response: The server first performs parameter security verification on the user request data, and returns the response data to the user in JSON format after passing the verification according to the business logic.
  • \"},{\"type\":\"html\",\"text\":\"
  • Data processing: process the server response data.
  • \"},{\"type\":\"html\",\"text\":\"Success\"},{\"type\":\"html\",\"text\":\"
  • A successful response is indicated by HTTP status code 200 and may optionally contain a body. If the response has a body, it will be included under each resource below.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication/05_request.json\n// module id = uSYo\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢止盈止損歷史訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/historyStopOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/historyStopOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"symbol\":\"\",\"lastOrderId\":0,\"length\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱\"},{\"name\":\"lastOrderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"用於分頁, 第一次填寫0, 後續填寫前一次返回結果裡面的最後一個訂單id\"},{\"name\":\"length\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每次請求的長度, 最大值為100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用戶id\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單id\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合約名稱\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"倉位id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"description\":\"止損價格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"description\":\"止盈價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid買入, Ask賣出\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"訂單狀態\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"委託時間\"},{\"name\":\"triggerTm\",\"type\":\"string\",\"description\":\"觸發時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/18_get_trade_allFillOrders_history.json\n// module id = uTRy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"接入方式\"},{\"type\":\"normal\",\"text\":\"行情Websocket的接入URL:wss://open-api-swap.bingx.com/swap-market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce/01_connect.json\n// module id = uUP9\n// module chunks = 3","module.exports = {\"module\":\"standard\",\"path\":\"/standard/introduce\",\"name\":\"介绍\",\"content\":[{\"type\":\"html\",\"text\":\"欢迎使用BingX开发者文档。\"},{\"type\":\"normal\",\"text\":\"本文档提供了标准合约交易业务相关API的使用方法介绍。\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/standard/1_introduce.json\n// module id = uXeI\n// module chunks = 3","module.exports = [{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"Note that obtaining such information requires websocket authentication, use listenKey, and check the Listen Key\"},{\"type\":\"normal\",\"text\":\"The websocket interface is wss://open-ws-swap.bingbon.pro/ws\"},{\"type\":\"normal\",\"text\":\"The stream name of the subscription account data stream is /$listenKey\"}]},{\"type\":\"hash\",\"text\":\"Subscribe to account balance push\"},{\"type\":\"normal\",\"text\":\"Subscription Type\"},{\"type\":\"code\",\"text\":\"dataType is ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"Subscription Example\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"} \"},{\"type\":\"normal\",\"text\":\"The field \\\"m\\\" represents the reason for the launch of the event, including the following possible types: -DEPOSIT\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT\"},{\"type\":\"normal\",\"text\":\"WITHDRAW\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE\"},{\"type\":\"normal\",\"text\":\"ORDER\"}]},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Data Type\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event Time\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event Type\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"account update event\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"event launch reason\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"Balance Change except PnL and Commission\"}]}]},{\"type\":\"html\",\"text\":\"
  • For more about return error codes, please see the error code description on the homepage.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/websocket/account/01_balance.json\n// module id = uiwf\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"創建API\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"很多接口需要API Key才可以訪問,在對請求進行簽名之前,您必須通過BingX網站【用戶中心】-【API管理】創建一個API key。 創建key後,您將獲得2個必須記住的信息: API key和Secret key.\"},{\"type\":\"normal\",\"text\":\"設置API key的同時,為了安全,建議設置IP訪問白名單.\"},{\"type\":\"normal\",\"text\":\"永遠不要把你的API key/Secret key告訴給任何人.\"}]},{\"type\":\"warning\",\"text\":\"如果不小心洩露了API key,請立刻删除此API key, 併可以另外生產新的API key.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication/01_create_api.json\n// module id = uqo+\n// module chunks = 3","var map = {\n\t\".\": \"R86N\",\n\t\"./\": \"R86N\",\n\t\"./01_connect\": \"X4K5\",\n\t\"./01_connect.json\": \"X4K5\",\n\t\"./02_data_compress\": \"uzUA\",\n\t\"./02_data_compress.json\": \"uzUA\",\n\t\"./03_heart_beat\": \"JHlj\",\n\t\"./03_heart_beat.json\": \"JHlj\",\n\t\"./04_subscribe\": \"Gx8k\",\n\t\"./04_subscribe.json\": \"Gx8k\",\n\t\"./05_cancel_subscribe\": \"tVMD\",\n\t\"./05_cancel_subscribe.json\": \"tVMD\",\n\t\"./index\": \"R86N\",\n\t\"./index.js\": \"R86N\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"uuCY\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce ^.*$\n// module id = uuCY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query sub account list\"},{\"type\":\"normal\",\"text\":\"Query sub account list\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/list\"},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/list\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Sub account uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Sub account username\"},{\"name\":\"isFeeze\",\"type\":\"bool\",\"required\":\"no\",\"description\":\"Freeze or not\"},{\"name\":\"page\",\"type\":\"int\",\"required\":\"yes\",\"description\":\"Page number, starting with 1\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"yes\",\"description\":\"Paging size, maximum 100\"},{\"name\":\"timestamp\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"Sub account uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"description\":\"Sub account username\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"Sub account note information\"},{\"name\":\"freeze\",\"type\":\"bool\",\"description\":\"Has it been frozen\"},{\"name\":\"createTime\",\"type\":\"long\",\"description\":\"Creation time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/03_post_fetch_sub_account_list.json\n// module id = uuPR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"常見錯誤碼\"},{\"type\":\"html\",\"text\":\"

    常見HTTP錯誤碼:

    \"},{\"type\":\"html\",\"text\":\"
  • 4XX 錯誤碼用於指示錯誤的請求內容、行為、格式
  • \"},{\"type\":\"html\",\"text\":\"
  • 5XX 錯誤碼用於指示Bingx服務側的問題
  • \"},{\"type\":\"html\",\"text\":\"

    常見業務錯誤碼:

    \"},{\"type\":\"html\",\"text\":\"
  • 100001 - 簽名驗證失敗
  • \"},{\"type\":\"html\",\"text\":\"
  • 100202 - 餘額不足
  • \"},{\"type\":\"html\",\"text\":\"
  • 100400 - 參數錯誤
  • \"},{\"type\":\"html\",\"text\":\"
  • 100440 - 下單價格跟市場市場價格偏离太远
  • \"},{\"type\":\"html\",\"text\":\"
  • 100500 - 服務器內部錯誤
  • \"},{\"type\":\"html\",\"text\":\"
  • 100503 - 服務器繁忙
  • \"},{\"type\":\"html\",\"text\":\"

    註意:

    \"},{\"type\":\"html\",\"text\":\"
  • 如果失敗,response body 帶有錯誤描述信息
  • \"},{\"type\":\"html\",\"text\":\"
  • 每個接口都有可能抛出異常
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic/03_error_code.json\n// module id = uv3h\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"数据压缩\"},{\"type\":\"normal\",\"text\":\"WebSocket 行情接口返回的所有数据都进行了 GZIP 压缩,需要 client 在收到数据之后解压。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce/02_data_compress.json\n// module id = uzUA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"數字規範\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"為了保持跨平台時精度的完整性,十進制數字作為字符串返回。建議您在發起請求時也将數字轉換為字符串以避免截斷和精度錯誤\"},{\"type\":\"html\",\"text\":\"整數(如交易編號和順序)不加引號\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/03_digital_rule.json\n// module id = v0HI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易下單\"},{\"type\":\"normal\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/order\"},{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 強制要求參數 quantity、stopPrice、price
  • \"},{\"type\":\"html\",\"text\":\"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 強制要求參數 quantity、stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    1. 開/平倉:如何使用同一個接口 開倉(多/空),平倉(多/空)?請參考如下request payload組合:

    \"},{\"type\":\"html\",\"text\":\"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"MARKET\\\", \\\"quantity\\\": 5}

    \"},{\"type\":\"html\",\"text\":\"

    2. 設置止盈止損:本接口也可用於設置止盈止損,但需要先開倉; 當前止盈止損價格只支持默認的標記價格,暫不支持最新和指數價格選項

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"quantity\\\": 3, \\\"stopPrice\\\": 31968.0}

    \"},{\"type\":\"warning\",\"text\":\"條件單的觸發必須:\"},{\"type\":\"html\",\"text\":\"

    STOP/STOP_MARKET 止損單:

    \"},{\"type\":\"html\",\"text\":\"
  • 已掛止損單累加數量不能大於持倉數量
  • \"},{\"type\":\"html\",\"text\":\"
  • 買入: 標記價格高於等於觸發價stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • 賣出: 標記價格低於等於觸發價stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈單:

    \"},{\"type\":\"html\",\"text\":\"
  • 已掛止盈單累加數量不能大於持倉數量
  • \"},{\"type\":\"html\",\"text\":\"
  • 買入: 標記價格低於等於觸發價stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • 賣出: 標記價格高於等於觸發價stopPrice
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"type\":\"\",\"side\":\"\",\"positionSide\":\"\",\"price\":0,\"quantity\":0,\"stopPrice\":0,\"recvWindow\":0,\"timeInForce\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"訂單類型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持倉方向,且僅可選擇 LONG 或 SHORT,默認LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持輸入U$:quantity=U$/price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC和FOK\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/01_post_trade_order.json\n// module id = vDBD\n// module chunks = 3","var map = {\n\t\".\": \"B9Yr\",\n\t\"./\": \"B9Yr\",\n\t\"./01_post_trade_order\": \"TDl7\",\n\t\"./01_post_trade_order.json\": \"TDl7\",\n\t\"./02_post_closeAllPositions\": \"o80Q\",\n\t\"./02_post_closeAllPositions.json\": \"o80Q\",\n\t\"./03_post_closeAllPositions\": \"nQs3\",\n\t\"./03_post_closeAllPositions.json\": \"nQs3\",\n\t\"./04_delete_trade_order\": \"KJWq\",\n\t\"./04_delete_trade_order.json\": \"KJWq\",\n\t\"./05_delete_trade_batch_order\": \"w9O3\",\n\t\"./05_delete_trade_batch_order.json\": \"w9O3\",\n\t\"./06_delete_trade_all_order\": \"KZXS\",\n\t\"./06_delete_trade_all_order.json\": \"KZXS\",\n\t\"./07_get_all_openOrders\": \"0FzS\",\n\t\"./07_get_all_openOrders.json\": \"0FzS\",\n\t\"./08_get_trade_order\": \"xd76\",\n\t\"./08_get_trade_order.json\": \"xd76\",\n\t\"./09_get_trade_marginType\": \"/RL+\",\n\t\"./09_get_trade_marginType.json\": \"/RL+\",\n\t\"./10_post_trade_marginType\": \"Fg4Y\",\n\t\"./10_post_trade_marginType.json\": \"Fg4Y\",\n\t\"./11_get_trade_leverage\": \"EtCx\",\n\t\"./11_get_trade_leverage.json\": \"EtCx\",\n\t\"./12_post_trade_leverage\": \"hkx8\",\n\t\"./12_post_trade_leverage.json\": \"hkx8\",\n\t\"./13_get_trade_forceOrders\": \"tc3t\",\n\t\"./13_get_trade_forceOrders.json\": \"tc3t\",\n\t\"./14_get_trade_allOrders\": \"K+iN\",\n\t\"./14_get_trade_allOrders.json\": \"K+iN\",\n\t\"./15_post_trade_positionMargin\": \"vzun\",\n\t\"./15_post_trade_positionMargin.json\": \"vzun\",\n\t\"./16_post_trade_order_test\": \"IS5C\",\n\t\"./16_post_trade_order_test.json\": \"IS5C\",\n\t\"./17_get_trade_allFillOrders\": \"Z792\",\n\t\"./17_get_trade_allFillOrders.json\": \"Z792\",\n\t\"./18_get_trade_allFillOrders_history\": \"2Oo8\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"2Oo8\",\n\t\"./index\": \"B9Yr\",\n\t\"./index.js\": \"B9Yr\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"vMU+\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade ^.*$\n// module id = vMU+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/cancel\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"订单id\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId,仅支持2个小时的查询范围\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求时间戳, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品种\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下单数量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态, NEW新订单 PENDING委托中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤销 FAILED失败\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型, MARKET市价 LIMIT限价\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易类型, BUY买 SELL卖\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade/02_post_trade_order_cancel.json\n// module id = vNX1\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swapV2/api/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Get Ticker\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getTicker\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair symbol,There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair symbol\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"Price change, in USDT\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"Price change expressed as a percentage\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"The price for the last trade\"},{\"name\":\"lastVolume\",\"type\":\"string\",\"description\":\"The volume for the last trade\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"Highest price during 24h\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"Volume during last 24h in base currency\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Volume during last 24h, in USDT\"},{\"name\":\"dayVolume\",\"type\":\"string\",\"description\":\"24-hour turnover, the unit is USDT\"},{\"name\":\"openPrice\",\"type\":\"int64\",\"description\":\"24h open price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/10_get_quote_openInterest.json\n// module id = vVjE\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/authentication/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"訂單最新成交記录\"},{\"type\":\"normal\",\"text\":\"訂閱單個合約的逐筆成交明細\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 market.trade.detail.$Symbol,比如market.trade.detail.BTC-USDT\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱,合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 market.tradeDetail.BTC-USDT\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"trades\",\"type\":\"\",\"description\":\"逐筆成交\"},{\"name\":\"time\",\"type\":\"\",\"description\":\"成交時間\"},{\"name\":\"makerSide\",\"type\":\"\",\"description\":\"吃單方向(Bid / Ask 買/賣)\"},{\"name\":\"price\",\"type\":\"\",\"description\":\"成交價格\"},{\"name\":\"volume\",\"type\":\"\",\"description\":\"成交數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/market/02_latest_records.json\n// module id = vXfi\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get K-Line Data\"},{\"type\":\"normal\",\"text\":\"Get the latest Kline Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestKline\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestKline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The type of K-Line (minutes, hours, weeks etc.)\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1min Kline\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3 min Kline\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"m5 min Kline\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15 min Kline\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30 min Kline\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1-hour Kline\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2-hour Kline\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4-hour Kline\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6-hour Kline\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12-hour Kline\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1DKline\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W Kline\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1-Month Kline\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"Opening Price\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"Closing Price\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"High Price\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"Low Price\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"transaction volume\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"The timestamp of K-Line,Unit: ms\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/07_get_quote_ klines.json\n// module id = vZVR\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/api/account/index.js","var map = {\n\t\"./01_post_trade_order.json\": \"db2W\",\n\t\"./02_post_trade_batch_order.json\": \"0L/C\",\n\t\"./03_post_closeAllPositions.json\": \"4yOc\",\n\t\"./04_delete_trade_order.json\": \"70Y8\",\n\t\"./05_delete_trade_batch_order.json\": \"kYAZ\",\n\t\"./06_delete_trade_all_order.json\": \"nfgo\",\n\t\"./07_get_all_openOrders.json\": \"7rHQ\",\n\t\"./08_get_trade_order.json\": \"j4v/\",\n\t\"./09_get_trade_marginType.json\": \"0wg/\",\n\t\"./10_post_trade_marginType.json\": \"PTH3\",\n\t\"./11_get_trade_leverage.json\": \"dLDu\",\n\t\"./12_post_trade_leverage.json\": \"pyFj\",\n\t\"./13_get_trade_forceOrders.json\": \"PyiJ\",\n\t\"./14_get_trade_allOrders.json\": \"fFLq\",\n\t\"./15_post_trade_positionMargin.json\": \"5DAQ\",\n\t\"./16_post_trade_order_test.json\": \"IdRU\",\n\t\"./17_get_trade_allFillOrders.json\": \"Y5kV\",\n\t\"./18_get_trade_income_export.json\": \"DLoG\",\n\t\"./19_get_trade_user_commissionRate.json\": \"I7Id\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"rEFa\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"vhCT\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade \\.json$\n// module id = vhCT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel All Orders\"},{\"type\":\"normal\",\"text\":\"Cancel all orders that are currently in a unfilled state\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/cancelAll\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/cancelAll\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/06_delete_trade_all_order.json\n// module id = vl+M\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Data Compression\"},{\"type\":\"normal\",\"text\":\"All response data from Websocket server are compressed into GZIP format. Clients have to decompress them for further use.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/02_data_compress.json\n// module id = vuQY\n// module chunks = 3","var map = {\n\t\"./01_dept_info.json\": \"bFzX\",\n\t\"./02_latest_records.json\": \"cRtg\",\n\t\"./03_kline_data.json\": \"WbRb\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"vwsV\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market \\.json$\n// module id = vwsV\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"设置止盈止损订单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/stopOrder\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/stopOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"positionId\":\"\",\"orderId\":\"\",\"stopLossPrice\":0,\"takeProfitPrice\":0,\"entrustVolume\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"持仓id\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"止盈止损订单id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止损价格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止盈价格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"委托数量\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"止盈止损订单id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/15_post_trade_positionMargin.json\n// module id = vzun\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询持仓信息\"},{\"type\":\"normal\",\"text\":\"查询当前账户下永续合约的持仓信息与盈亏情况。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/getPositions\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/getPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"currency\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合约品种\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"资产类型\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"仓位ID\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"仓位方向 LONG/SHORT 多/空\"},{\"name\":\"marginMode\",\"type\":\"string\",\"description\":\"保证金模式 Cross/Isolated 全仓/逐仓\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"持仓数量\"},{\"name\":\"availableVolume\",\"type\":\"float64\",\"description\":\"可平仓数量\"},{\"name\":\"unrealisedPNL\",\"type\":\"float64\",\"description\":\"未实现盈亏\"},{\"name\":\"realisedPNL\",\"type\":\"float64\",\"description\":\"已实现盈亏\"},{\"name\":\"margin\",\"type\":\"float64\",\"description\":\"保证金\"},{\"name\":\"avgPrice\",\"type\":\"float64\",\"description\":\"开仓均价\"},{\"name\":\"liquidatedPrice\",\"type\":\"float64\",\"description\":\"预估强平价\"},{\"name\":\"leverage\",\"type\":\"float64\",\"description\":\"杠杆\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/account/02_post_user_positions.json\n// module id = w+Bj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"The latest Trade of a Trading Pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getMarketTrades\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getMarketTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"date\",\"description\":\"transaction time\"},{\"name\":\"makerSide\",\"type\":\"string\",\"description\":\"Direction (Buy / Sell)\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"transaction price\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Executed quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/04_get_quote_ trades.json\n// module id = w+Dc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量撤销订单\"},{\"type\":\"normal\",\"text\":\"将当前账户处于当前委托状态的部分订单进行批量撤销操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/batchCancelOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/batchCancelOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"oids\":\"\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"oids\",\"type\":\"string\",\"required\":\"是\",\"description\":\"订单ID列表,多个订单id用逗号进行分隔\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"Success\",\"type\":\"Array\",\"description\":\"撤销成功的订单ID列表\"},{\"name\":\"Failed\",\"type\":\"结构数组\",\"description\":\"撤销失败的订单列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单ID\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"错误信息提示\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/05_delete_trade_batch_order.json\n// module id = w9O3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Service Address\"},{\"type\":\"code\",\"text\":\"https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 200 status code indicates a successful response. The response body might contain a message which will be displayed accordingly.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic/01_server_url.json\n// module id = wWlE\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swap/websocket/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"最新价格\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/price\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母,不发送交易对参数,则会返回所有交易对信息\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"价格\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"撮合引擎时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/02_get_quote_price.json\n// module id = wZoS\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Access\"},{\"type\":\"normal\",\"text\":\"the base URL of Websocket Market Data :wss://open-api-swap.bingx.com/swap-market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/01_connect.json\n// module id = wa9k\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/standard/api/trade/index.js","var map = {\n\t\".\": \"W/J5\",\n\t\"./\": \"W/J5\",\n\t\"./2023-06-03\": \"/bR7\",\n\t\"./2023-06-03.json\": \"/bR7\",\n\t\"./2023-07-29\": \"IOcs\",\n\t\"./2023-07-29.json\": \"IOcs\",\n\t\"./index\": \"W/J5\",\n\t\"./index.js\": \"W/J5\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"wcqk\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog ^.*$\n// module id = wcqk\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Create an Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/order\"},{\"type\":\"normal\",\"text\":\"Notice:\",\"children\":[{\"type\":\"normal\",\"text\":\"For limit orders, price is required.\"},{\"type\":\"normal\",\"text\":\"or limit orders, either quantity or quoteOrderQty is required. When two parameters are passed at the same time, the server uses the parameter quantity first.\"},{\"type\":\"normal\",\"text\":\"For buy-side market orders, quoteOrderQty is required.\"},{\"type\":\"normal\",\"text\":\"For sell-side market orders, quantity is required.\"},{\"type\":\"normal\",\"text\":\"Orders created by the interface will not be displayed on the APP and web pages.\"}]},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"type\":\"\",\"timeInForce\":0,\"quantity\":0,\"quoteOrderQty\":0,\"price\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"BUY/SELL\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"IOC, POC\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, e.g., 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Quote order quantity, e.g., 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, e.g., 10000USDT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"Transaction timestamp\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Original quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote asset transacted quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/01_post_trade_order.json\n// module id = wpBa\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"服务地址\"},{\"type\":\"code\",\"text\":\"https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP状态码200表示成功响应,并可能包含内容。如果响应含有内容,则将显示在相应的返回内容里面。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/basic/01_server_url.json\n// module id = wpxO\n// module chunks = 3","var map = {\n\t\".\": \"bShK\",\n\t\"./\": \"bShK\",\n\t\"./01_get_quote_contracts\": \"54oK\",\n\t\"./01_get_quote_contracts.json\": \"54oK\",\n\t\"./02_get_quote_price\": \"cR4p\",\n\t\"./02_get_quote_price.json\": \"cR4p\",\n\t\"./03_get_quote_depth\": \"xUQL\",\n\t\"./03_get_quote_depth.json\": \"xUQL\",\n\t\"./04_get_quote_ trades\": \"Ua/t\",\n\t\"./04_get_quote_ trades.json\": \"Ua/t\",\n\t\"./05_get_quote_ premiumIndex\": \"LmIK\",\n\t\"./05_get_quote_ premiumIndex.json\": \"LmIK\",\n\t\"./06_get_quote_ fundingRate\": \"4uFH\",\n\t\"./06_get_quote_ fundingRate.json\": \"4uFH\",\n\t\"./07_get_quote_ klines\": \"NO1N\",\n\t\"./07_get_quote_ klines.json\": \"NO1N\",\n\t\"./08_get_quote_ klines_history\": \"yHie\",\n\t\"./08_get_quote_ klines_history.json\": \"yHie\",\n\t\"./09_get_quote_ ticker\": \"FICX\",\n\t\"./09_get_quote_ ticker.json\": \"FICX\",\n\t\"./10_get_quote_openInterest\": \"NpYN\",\n\t\"./10_get_quote_openInterest.json\": \"NpYN\",\n\t\"./index\": \"bShK\",\n\t\"./index.js\": \"bShK\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"wsrT\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market ^.*$\n// module id = wsrT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"頻率限制\"},{\"type\":\"html\",\"text\":\"如果請求過於頻繁係統将自動限制請求,幾分鐘後,會自動恢復;當前BingX只根據IP進行頻率限制,以下分類的所有接口共享一個IP頻率限制值\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"
  • 行情接口:通過IP限制公共接口的調用,每1秒最多60個請求。
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬戶和交易接口:通過用戶ID限制私人接口的調用,每1秒最多20個請求。
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/04_rate_limits.json\n// module id = x6dl\n// module chunks = 3","var map = {\n\t\".\": \"o7Jb\",\n\t\"./\": \"o7Jb\",\n\t\"./01_post_user_balance\": \"tiO5\",\n\t\"./01_post_user_balance.json\": \"tiO5\",\n\t\"./02_post_user_positions\": \"w+Bj\",\n\t\"./02_post_user_positions.json\": \"w+Bj\",\n\t\"./index\": \"o7Jb\",\n\t\"./index.js\": \"o7Jb\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"x724\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/account ^.*$\n// module id = x724\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶手續費率\"},{\"type\":\"normal\",\"text\":\"獲取當前用戶的手續費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/commissionRate\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"takerCommissionRate\",\"type\":\"float64\",\"description\":\"吃單手續費率\"},{\"name\":\"makerCommissionRate\",\"type\":\"float64\",\"description\":\"掛單手續費率\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/19_get_trade_user_commissionRate.json\n// module id = x8dX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscriptions\"},{\"type\":\"normal\",\"text\":\"After successfully establishing a connection with the Websocket server, the Websocket client sends the following request to subscribe to a specific topic: \"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"data to sub\\\" }\"},{\"type\":\"html\",\"text\":\"
  • ID is the unique ID passed in by the user, which will be returned when returned, used for distinguishing idempotence checks by the user
  • \"},{\"type\":\"normal\",\"text\":\"After a successful subscription, the Websocket client will receive a confirmation message:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"normal\",\"text\":\"After that, once the subscribed data is updated, the Websocket client will receive the update message pushed by the server.\"},{\"type\":\"html\",\"text\":\"
  • Code Error Code Description
  • \"},{\"type\":\"html\",\"text\":\"

    0:\\\"SUCCESS\\\"
    /**
    * 100xxx is a universal status code.
    */
    // No data found in server search
    100204:\\\"SEARCH_NO_CONTENT\\\"

    // Duplicate Request
    100205:\\\"REPEAT_REQUEST\\\"

    // Client request parameter error
    100400:\\\"ILLEGAL_ARGUMENT\\\"

    // Client authentication failed
    100401:\\\"AUTHENTICATION_FAIL\\\"

    // Client permission verification failed
    100403:\\\"AUTHORIZATION_FAIL\\\"

    // Client request frequency limit
    100410:\\\"FREQUENCY_LIMIT\\\"

    // Server error
    100500:\\\"INTERNAL_SERVER_ERROR\\\"

    // Server Busy
    100503:\\\"SERVER_BUSY\\\"

    \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce/04_subscribe.json\n// module id = xBhx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢資金費率歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getHistoryFunding\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getHistoryFunding\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"historyId\",\"type\":\"string\",\"description\":\"歷史ID號\"},{\"name\":\"fundingRate\",\"type\":\"float64\",\"description\":\"資金費率\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"標記價格\"},{\"name\":\"interval\",\"type\":\"string\",\"description\":\"資金費率結算週期,單位:小時\"},{\"name\":\"time\",\"type\":\"date\",\"description\":\"結算時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/06_get_quote_ fundingRate.json\n// module id = xDG3\n// module chunks = 3","var map = {\n\t\"./01_listenKey.json\": \"jg15\",\n\t\"./02_balance.json\": \"W9nQ\",\n\t\"./03_order.json\": \"/xkA\",\n\t\"./04_setting.json\": \"pHnt\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"xE4z\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account \\.json$\n// module id = xE4z\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/historyOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/historyOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"lastOrderId\":\"\",\"length\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"lastOrderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"用於分頁, 第一次填寫0, 後續填寫前一次返回結果裡面的最後一個訂單id\"},{\"name\":\"length\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每次請求的長度, 最大值為100\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單id\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid買入, Ask賣出\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open表示開倉, Close表示平倉, ADL表示自動減倉, Liquidation表示爆倉強平\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"訂單類型, Limit是限價單, Market是市價單\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交數量\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"成交價格\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手續費\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"訂單狀態(Filled or PartiallyFilled, Pending, Cancelled, Failed)\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"委託時間\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"更新時間\"}]},{\"type\":\"OrderStatus\",\"key\":\"key1\",\"data\":[{\"name\":\"Pending\",\"type\":\"\",\"description\":\"尚未成交\"},{\"name\":\"PartiallyFilled\",\"type\":\"\",\"description\":\"部分成交\"},{\"name\":\"Cancelled\",\"type\":\"\",\"description\":\"已撤銷\"},{\"name\":\"Filled\",\"type\":\"\",\"description\":\"已完成\"},{\"name\":\"Failed\",\"type\":\"\",\"description\":\"失敗\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/14_get_trade_allOrders.json\n// module id = xKz7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/cancel\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Original quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote asset transacted quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/02_post_trade_order_cancel.json\n// module id = xNnB\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/spot/introduce\",\"name\":\"介绍\",\"content\":[{\"type\":\"html\",\"text\":\"欢迎使用BingX开发者文档。\"},{\"type\":\"normal\",\"text\":\"本文档提供了现货交易业务的账户管理、行情查询、交易功能等相关API的使用方法介绍。 行情API提供市场的公开的行情数据接口,账户和交易API需要身份验证,提供下单、撤单,查询订单和帐户信息等功能。 \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/1_introduce.json\n// module id = xTSi\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\" K-Line Data\"},{\"type\":\"normal\",\"text\":\"Get the latest Kline Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/klines\"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are not sent, the latest k-line data will be returned by default
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"time interval, refer to field description\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: millisecond\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: millisecond\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"default: 500 maximum: 1440\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"Opening Price\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"Closing Price\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"High Price\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"Low Price\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"transaction volume\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"k-line time stamp, unit milliseconds\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"1 min Kline\"},{\"name\":\"3m\",\"description\":\"3 min Kline\"},{\"name\":\"5m\",\"description\":\"5 min Kline\"},{\"name\":\"15m\",\"description\":\"15 min Kline\"},{\"name\":\"30m\",\"description\":\"30 min Kline\"},{\"name\":\"1h\",\"description\":\"1-hour Kline\"},{\"name\":\"2h\",\"description\":\"2-hour Kline\"},{\"name\":\"4h\",\"description\":\"4-hour Kline\"},{\"name\":\"6h\",\"description\":\"6-hour Kline\"},{\"name\":\"8h\",\"description\":\"8-hour Kline\"},{\"name\":\"12h\",\"description\":\"12-hour Kline\"},{\"name\":\"1d\",\"description\":\"1-Day Kline\"},{\"name\":\"3d\",\"description\":\"3-Day Kline\"},{\"name\":\"1w\",\"description\":\"1-Week Kline\"},{\"name\":\"1M\",\"description\":\"1-Month Kline\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/07_get_quote_ klines.json\n// module id = xU+M\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询合约交易深度\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getMarketDepth\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getMarketDepth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"level\":\"5\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"level\",\"type\":\"int\",\"required\":\"否\",\"description\":\"层数,若为空,则默认返回5层\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息描述\"},{\"name\":\"data\",\"type\":\"array\",\"description\":\"\"}]},{\"type\":\"data\",\"key\":\"response1\",\"data\":[{\"name\":\"asks\",\"type\":\"array[depth]\",\"description\":\"卖方深度\"},{\"name\":\"bids\",\"type\":\"array[depth]\",\"description\":\"买方深度\"}]},{\"type\":\"depth\",\"key\":\"response2\",\"data\":[{\"name\":\"p\",\"type\":\"float64\",\"description\":\"price价格\"},{\"name\":\"v\",\"type\":\"float64\",\"description\":\"volume数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/03_get_quote_depth.json\n// module id = xUQL\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"请求内容\"},{\"type\":\"normal\",\"text\":\"请求需要鉴权的接口必须包含以下信息:\",\"children\":[{\"type\":\"normal\",\"text\":\"请求头带上 X-BX-APIKEY 传递 API Key。\"},{\"type\":\"normal\",\"text\":\"请求参数带上 signature 使用签名算法得出的签名。\"},{\"type\":\"normal\",\"text\":\"timestamp 作为您的请求的时间戳,单位是毫秒。服务器收到请求时会判断请求中的时间戳,如果是5000毫秒之前发出的,则请求会被认为无效。这个时间空窗值可以通过发送可选参数recvWindow来定义。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/authentication/03_request_content.json\n// module id = xXiq\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query depth information\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/depth\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\",\"limit\":100}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"default 20, max 100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"bids\",\"type\":\"array\",\"description\":\"first element price, second element quantity\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"first element price, second element quantity\"},{\"name\":\"ts\",\"type\":\"int\",\"description\":\"Timestamp of depth, Unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/03_get_market_depth.json\n// module id = xaTv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询订单详情\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/queryOrderStatus\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/queryOrderStatus\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"\",\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"订单ID\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"订单委托时间\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向(Bid/Ask 买/卖)\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"委托类型(Market/Limit 市价/限价)\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open/Close 开仓/平仓\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"委托价格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委托数量\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"成交均价\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交数量\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单号\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态(Filled or PartiallyFilled, Pending, Cancelled, Failed)\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手续费\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"订单更新时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/08_get_trade_order.json\n// module id = xd76\n// module chunks = 3","var map = {\n\t\"./01_create_api.json\": \"KTad\",\n\t\"./03_request_content.json\": \"YdSN\",\n\t\"./04_sign_discription.json\": \"XBGg\",\n\t\"./05_request.json\": \"oR0W\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"xdDZ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication \\.json$\n// module id = xdDZ\n// module chunks = 3","var map = {\n\t\".\": \"yjnE\",\n\t\"./\": \"yjnE\",\n\t\"./01_create_api\": \"uqo+\",\n\t\"./01_create_api.json\": \"uqo+\",\n\t\"./02_permission_set\": \"U3vK\",\n\t\"./02_permission_set.json\": \"U3vK\",\n\t\"./03_request_content\": \"HVe5\",\n\t\"./03_request_content.json\": \"HVe5\",\n\t\"./04_sign_discription\": \"huDF\",\n\t\"./04_sign_discription.json\": \"huDF\",\n\t\"./05_request\": \"2oJ6\",\n\t\"./05_request.json\": \"2oJ6\",\n\t\"./index\": \"yjnE\",\n\t\"./index.js\": \"yjnE\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"xp0F\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication ^.*$\n// module id = xp0F\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query account uid\"},{\"type\":\"normal\",\"text\":\"Query account uid\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/account/v1/uid\"},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/02_post_fetch_uid.json\n// module id = xx9R\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/spot/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingXAPI. \"},{\"type\":\"normal\",\"text\":\"You can use our API to access market data endpoints of spot trading. The market data API is publicly accessible and provides market data, statistics, order book depth of a Trading Pair. \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/1_introduce.json\n// module id = y1S6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"歷史訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/allOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對,格式類似:BTC-USDT,必傳\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"訂單ID,選填\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間,選填\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,選填\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"數量,選填\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"avgPrice\",\"type\":\"number\",\"description\":\"平倉價\"},{\"name\":\"cumQuote\",\"type\":\"number\",\"description\":\"交易額\"},{\"name\":\"executedQty\",\"type\":\"number\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"number\",\"description\":\"係統訂單號\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向,LONG 和 SHORT\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態 CLOSED\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"幣對,格式類似:BTC-USDT\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"訂單時間\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間\"},{\"name\":\"margin\",\"type\":\"number\",\"description\":\"保證金\"},{\"name\":\"leverage\",\"type\":\"number\",\"description\":\"槓桿數\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"是否是逐倉模式\"},{\"name\":\"closePrice\",\"type\":\"number\",\"description\":\"平倉價\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"持倉訂單號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade/02_get_contract_allOrders.json\n// module id = y5ws\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place a Stop Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/stopOrder\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/stopOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"positionId\":\"\",\"orderId\":\"\",\"stopLossPrice\":0,\"takeProfitPrice\":0,\"entrustVolume\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Position ID\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Stop Order ID\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Stop Loss Price\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Take Profit Price\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Order Amount\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Stop Order ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/15_post_trade_positionMargin.json\n// module id = y7gJ\n// module chunks = 3","const nodejs = `const WebSocket = require('ws');\nconst zlib = require('zlib');\n\nconst path = \"wss://open-api-ws.bingx.com/market\"; \nconst CHANNEL = { \"id\": \"test\", \"reqType\": \"sub\", \"dataType\": \"BTC-USDT@depth\" }; \n\nlet socket;\nlet receivedMessage = \"\";\n\nfunction init() {\n socket = new WebSocket(path);\n socket.on('open', onOpen);\n socket.on('message', onMessage);\n socket.on('error', onError);\n // socket.on('close', onClose);\n}\n\nfunction onOpen() {\n console.log(\"WebSocket connected\");\n socket.send(JSON.stringify(CHANNEL));\n}\n\nfunction onError(error) {\n console.log(\"WebSocket error:\", error);\n}\n\nfunction onMessage(message) {\n const buf = Buffer.from(message);\n const decodedMsg = zlib.gunzipSync(buf).toString('utf-8');\n console.log(decodedMsg);\n if (decodedMsg === \"Ping\") {\n socket.send('Pong');\n console.log('Pong');\n }\n receivedMessage = decodedMsg;\n}\n\n// function onClose() {\n// console.log(\"WebSocket closed\");\n// }\n\ninit();`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/nodejs.js","var map = {\n\t\"./2023-06-03.json\": \"/bR7\",\n\t\"./2023-07-29.json\": \"IOcs\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yEDo\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog \\.json$\n// module id = yEDo\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询K线历史数据\"},{\"type\":\"normal\",\"text\":\"查询一段时间周期内成交价格的K线历史数据。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getHistoryKlines\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getHistoryKlines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k线类型,参考字段说明,如分钟,小时,周等\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"起始时间戳,单位毫秒\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"结束时间戳,单位毫秒\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1m一分钟K线\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3m三分钟K线\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"5m五分钟K线\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15m十五分钟K线\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30m三十分钟K线\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1h一小时K线\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2h两小时K线\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4h四小时K线\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6h六小时K线\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12h十二小时K线\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1D日K线\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W周K线\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1M月K线\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"Array\",\"description\":\"K线数据\"},{\"name\":\"open\",\"type\":\"float64\",\"description\":\"开盘价\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盘价\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高价\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低价\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易数量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"k线时间戳,单位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/08_get_quote_ klines_history.json\n// module id = yHie\n// module chunks = 3","var map = {\n\t\".\": \"Ygbz\",\n\t\"./\": \"Ygbz\",\n\t\"./2023-06-03\": \"N36O\",\n\t\"./2023-06-03.json\": \"N36O\",\n\t\"./2023-07-29\": \"L1Q8\",\n\t\"./2023-07-29.json\": \"L1Q8\",\n\t\"./index\": \"Ygbz\",\n\t\"./index.js\": \"Ygbz\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yIQg\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/changelog ^.*$\n// module id = yIQg\n// module chunks = 3","var map = {\n\t\".\": \"NGON\",\n\t\"./\": \"NGON\",\n\t\"./01_post_user_balance\": \"emHW\",\n\t\"./01_post_user_balance.json\": \"emHW\",\n\t\"./02_post_user_positions\": \"HU7E\",\n\t\"./02_post_user_positions.json\": \"HU7E\",\n\t\"./index\": \"NGON\",\n\t\"./index.js\": \"NGON\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yJKW\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/account ^.*$\n// module id = yJKW\n// module chunks = 3","var map = {\n\t\"./01_get_common_symbols.json\": \"qHSP\",\n\t\"./02_get_ market_traders.json\": \"u7QQ\",\n\t\"./03_get_market_depth.json\": \"xaTv\",\n\t\"./04_get_market_klines.json\": \"l6fp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yKUo\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market \\.json$\n// module id = yKUo\n// module chunks = 3","\nconst python = `\nimport json\nimport websocket\nimport gzip\nimport io\nURL=\"wss://open-api-ws.bingx.com/market\" # replace a correct url you need in here \nCHANNEL= {\"id\":\"24dd0e35-56a4-4f7a-af8a-394c7060909c\",\"dataType\":\"BTC-USDT@trade\"} # this is just a demo channel, replace your topic you need in here \nclass Feed(object):\n\n def __init__(self):\n self.url = URL \n self.ws = None\n\n def on_open(self, ws):\n print('WebSocket connected')\n subStr = json.dumps(CHANNEL)\n ws.send(subStr)\n print(\"Subscribed to :\",subStr)\n\n def on_data(self, ws, string, type, continue_flag):\n compressed_data = gzip.GzipFile(fileobj=io.BytesIO(string), mode='rb')\n decompressed_data = compressed_data.read()\n utf8_data = decompressed_data.decode('utf-8')\n print(utf8_data)\n\n def on_message(self, ws, message):\n compressed_data = gzip.GzipFile(fileobj=io.BytesIO(message), mode='rb')\n decompressed_data = compressed_data.read()\n utf8_data = decompressed_data.decode('utf-8')\n print(utf8_data) #this is the message you need \n if utf8_data == \"Ping\": # this is very important , if you receive 'Ping' you need to send 'Pong' \n ws.send(\"Pong\")\n\n def on_error(self, ws, error):\n print(error)\n\n def on_close(self, ws, close_status_code, close_msg):\n print('The connection is closed!')\n\n def start(self):\n self.ws = websocket.WebSocketApp(\n self.url,\n on_open=self.on_open,\n on_message=self.on_message,\n # on_data=self.on_data,\n on_error=self.on_error,\n on_close=self.on_close,\n )\n self.ws.run_forever()\n\n\nif __name__ == \"__main__\":\n feed = Feed()\n feed.start()`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/python.js","module.exports = [{\"type\":\"hash\",\"text\":\"數據壓縮\"},{\"type\":\"normal\",\"text\":\"WebSocket 行情接口返回的所有數據都進行了 GZIP 壓縮,需要 client 在收到數據之後解壓。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/02_data_compress.json\n// module id = yOH9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"数据压缩\"},{\"type\":\"normal\",\"text\":\"WebSocket 行情接口返回的所有数据都进行了 GZIP 压缩,需要 client 在收到数据之后解压。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/introduce/02_data_compress.json\n// module id = yd9p\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/authentication/index.js","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/api/basic/index.js","var map = {\n\t\"./01_post_trade_order.json\": \"wpBa\",\n\t\"./02_post_trade_order_cancel.json\": \"xNnB\",\n\t\"./03_get_trade_order.json\": \"EDR3\",\n\t\"./04_get_trade_open_order.json\": \"V7qZ\",\n\t\"./05_get_trade_history_order.json\": \"s6dj\",\n\t\"./06_get_account_balance.json\": \"YYU2\",\n\t\"./07_post_trade_batchOrders.json\": \"lyLM\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ysN2\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade \\.json$\n// module id = ysN2\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swapV2/api/account/index.js","var map = {\n\t\"./01_connect.json\": \"XKjN\",\n\t\"./02_data_compress.json\": \"0Ts9\",\n\t\"./03_heart_beat.json\": \"Bdxm\",\n\t\"./04_subscribe.json\": \"xBhx\",\n\t\"./05_cancel_subscribe.json\": \"hlb8\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yx4H\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce \\.json$\n// module id = yx4H\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"注意需要获取此类信息需要 websocket 鉴权,使用 listenKey,详细方式查看 Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-api-ws.bingx.com/market\"},{\"type\":\"normal\",\"text\":\"订阅账户数据流的stream名称为 /market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"订阅订单更新数据\"},{\"type\":\"normal\",\"text\":\"订阅类型\"},{\"type\":\"code\",\"text\":\"dataType 为 spot.executionReport\"},{\"type\":\"normal\",\"text\":\"订阅例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型, 例如: spot.executionReport\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"},{\"name\":\"S\",\"type\":\"\",\"description\":\"订单方向\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"订单类型\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"订单原始数量\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"订单原始价格\"},{\"name\":\"x\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"X\",\"type\":\"\",\"description\":\"订单状态\"},{\"name\":\"i\",\"type\":\"\",\"description\":\"订单id\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"订单末次成交量\"},{\"name\":\"z\",\"type\":\"\",\"description\":\"订单累计已成交量\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"订单末次成交价格\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"手续费数量\"},{\"name\":\"N\",\"type\":\"\",\"description\":\"手续费资产类别\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"成交时间\"},{\"name\":\"t\",\"type\":\"\",\"description\":\"成交ID\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"订单创建时间\"},{\"name\":\"Z\",\"type\":\"\",\"description\":\"订单累计已成交金额\"},{\"name\":\"Y\",\"type\":\"\",\"description\":\"订单末次成交金额\"},{\"name\":\"Q\",\"type\":\"\",\"description\":\"订单原始金额\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/account/01_executionReport.json\n// module id = yydQ\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/spot/introduce\",\"name\":\"介紹\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/1_introduce.json\n// module id = z74M\n// module chunks = 3","var map = {\n\t\".\": \"3Fwp\",\n\t\"./\": \"3Fwp\",\n\t\"./01_listenKey\": \"jg15\",\n\t\"./01_listenKey.json\": \"jg15\",\n\t\"./02_balance\": \"W9nQ\",\n\t\"./02_balance.json\": \"W9nQ\",\n\t\"./03_order\": \"/xkA\",\n\t\"./03_order.json\": \"/xkA\",\n\t\"./04_setting\": \"pHnt\",\n\t\"./04_setting.json\": \"pHnt\",\n\t\"./index\": \"3Fwp\",\n\t\"./index.js\": \"3Fwp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"z9PL\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account ^.*$\n// module id = z9PL\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"服务申请\"},{\"type\":\"normal\",\"text\":\"目前API内测中,申请页面即将开放,请耐心等待。如有其他需求,欢迎联系客服。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/basic/02_server_apply.json\n// module id = zCSH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe K-Line Data\"},{\"type\":\"normal\",\"text\":\"Subscribe to market k-line data of one trading pair\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @kline_ E.g. BTC-USDT@kline_1m\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • For more about return error codes, please see the error code description on the homepage.
  • \"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The type of K-Line ( minutes, hours, weeks etc.)\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"With regards to error messages, 0 means normal, and 1 means error\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"Closing Price\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"High Price\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Low Price\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"Opening Price\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"trading pair\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"1 min Kline\"},{\"name\":\"3m\",\"description\":\"3 min Kline\"},{\"name\":\"5m\",\"description\":\"5 min Kline\"},{\"name\":\"15m\",\"description\":\"15 min Kline\"},{\"name\":\"30m\",\"description\":\"30 min Kline\"},{\"name\":\"1h\",\"description\":\"1-hour Kline\"},{\"name\":\"2h\",\"description\":\"2-hour Kline\"},{\"name\":\"4h\",\"description\":\"4-hour Kline\"},{\"name\":\"6h\",\"description\":\"6-hour Kline\"},{\"name\":\"8h\",\"description\":\"8-hour Kline\"},{\"name\":\"12h\",\"description\":\"12-hour Kline\"},{\"name\":\"1d\",\"description\":\"1-Day Kline\"},{\"name\":\"3d\",\"description\":\"3-Day Kline\"},{\"name\":\"1w\",\"description\":\"1-Week Kline\"},{\"name\":\"1M\",\"description\":\"1-Month Kline\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/03_kline_data.json\n// module id = zKQU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢賬戶信息\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約資產的相關信息。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/balance\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"用戶資產\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"資產餘額\"},{\"name\":\"equity\",\"type\":\"string\",\"description\":\"資產淨值\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"未實現盈虧\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"已實現盈虧\"},{\"name\":\"availableMargin\",\"type\":\"string\",\"description\":\"可用保證金\"},{\"name\":\"usedMargin\",\"type\":\"string\",\"description\":\"已用保證金\"},{\"name\":\"freezedMargin\",\"type\":\"string\",\"description\":\"凍結保證金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/account/01_get_user_balance.json\n// module id = zKw2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Server Time\"},{\"type\":\"html\",\"text\":\"

    HTTP Request

    \"},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/server/time\"},{\"type\":\"html\",\"text\":\"

    Parameters: null

    \"},{\"type\":\"html\",\"text\":\"
  • code - int64 - error code, 0 means successfully response, others means response failure
  • \"},{\"type\":\"html\",\"text\":\"
  • msg - string - Error Details Description
  • \"},{\"type\":\"html\",\"text\":\"
  • serverTime - int64 - The current time of the system,unit: ms
  • \"},{\"type\":\"code\",\"text\":\"{\\\"code\\\": 0,\\\"msg\\\": \\\"\\\",\\\"data\\\": {\\\"serverTime\\\": 1675319535362}}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic/05_system_time.json\n// module id = zNUa\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/websocket/market/index.js","var map = {\n\t\"./en-US/authentication/01_create_api.json\": \"+Rge\",\n\t\"./en-US/authentication/02_permission_set.json\": \"UG8z\",\n\t\"./en-US/authentication/03_request_content.json\": \"hS6o\",\n\t\"./en-US/authentication/04_sign_discription.json\": \"9KKA\",\n\t\"./en-US/authentication/05_request.json\": \"uSYo\",\n\t\"./en-US/changelog/2023-06-03.json\": \"/bR7\",\n\t\"./en-US/changelog/2023-07-29.json\": \"IOcs\",\n\t\"./en-US/common/1_introduce.json\": \"puzn\",\n\t\"./en-US/common/api/permission/01_get_account_apiRestrictions.json\": \"Xu0+\",\n\t\"./en-US/common/api/subAccount/01_create_sub_accuont.json\": \"+6hF\",\n\t\"./en-US/common/api/subAccount/02_post_fetch_uid.json\": \"xx9R\",\n\t\"./en-US/common/api/subAccount/03_post_fetch_sub_account_list.json\": \"uuPR\",\n\t\"./en-US/common/api/subAccount/04_get_sub_account_spot_balance.json\": \"PVSb\",\n\t\"./en-US/common/api/subAccount/05_create_sub_accuont_key.json\": \"eSSt\",\n\t\"./en-US/common/api/subAccount/06_get_api_key_info.json\": \"MQqI\",\n\t\"./en-US/common/api/subAccount/07_post_edit_apikey.json\": \"Jwag\",\n\t\"./en-US/common/api/subAccount/08_delete_sub_account_key.json\": \"J2bY\",\n\t\"./en-US/common/api/subAccount/09_update_sub_account_status.json\": \"nHln\",\n\t\"./en-US/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\": \"HQ8m\",\n\t\"./en-US/common/api/subAccount/11.post_wallet_subInnerTransfer.json\": \"+W0b\",\n\t\"./en-US/listenKey/01_create_listenKey.json\": \"8kVO\",\n\t\"./en-US/listenKey/02_put_listenKey.json\": \"Rtfu\",\n\t\"./en-US/listenKey/03_delete_listenKey.json\": \"LvyQ\",\n\t\"./en-US/spot/1_introduce.json\": \"y1S6\",\n\t\"./en-US/spot/api/account/01_get_asset_transfer.json\": \"bSWG\",\n\t\"./en-US/spot/api/account/02_get_asset_transfer2.json\": \"gp5h\",\n\t\"./en-US/spot/api/account/03_get_deposit_hisrec.json\": \"OW9C\",\n\t\"./en-US/spot/api/account/04_get_withdraw_history.json\": \"VVr3\",\n\t\"./en-US/spot/api/account/05_post_wallets_coins.json\": \"Bxps\",\n\t\"./en-US/spot/api/account/06_post_wallets_withdraw.json\": \"puhI\",\n\t\"./en-US/spot/api/account/07_post_capital_innerTransfer_apply.json\": \"KPNz\",\n\t\"./en-US/spot/api/basic/01_server_url.json\": \"wWlE\",\n\t\"./en-US/spot/api/basic/02_server_apply.json\": \"kiBh\",\n\t\"./en-US/spot/api/basic/03_error_code.json\": \"/sx7\",\n\t\"./en-US/spot/api/market/01_get_common_symbols.json\": \"qHSP\",\n\t\"./en-US/spot/api/market/02_get_ market_traders.json\": \"u7QQ\",\n\t\"./en-US/spot/api/market/03_get_market_depth.json\": \"xaTv\",\n\t\"./en-US/spot/api/market/04_get_market_klines.json\": \"l6fp\",\n\t\"./en-US/spot/api/trade/01_post_trade_order.json\": \"wpBa\",\n\t\"./en-US/spot/api/trade/02_post_trade_order_cancel.json\": \"xNnB\",\n\t\"./en-US/spot/api/trade/03_get_trade_order.json\": \"EDR3\",\n\t\"./en-US/spot/api/trade/04_get_trade_open_order.json\": \"V7qZ\",\n\t\"./en-US/spot/api/trade/05_get_trade_history_order.json\": \"s6dj\",\n\t\"./en-US/spot/api/trade/06_get_account_balance.json\": \"YYU2\",\n\t\"./en-US/spot/api/trade/07_post_trade_batchOrders.json\": \"lyLM\",\n\t\"./en-US/spot/websocket/account/01_executionReport.json\": \"pjpR\",\n\t\"./en-US/spot/websocket/account/02_ account_update.json\": \"5y10\",\n\t\"./en-US/spot/websocket/introduce/01_connect.json\": \"XKjN\",\n\t\"./en-US/spot/websocket/introduce/02_data_compress.json\": \"0Ts9\",\n\t\"./en-US/spot/websocket/introduce/03_heart_beat.json\": \"Bdxm\",\n\t\"./en-US/spot/websocket/introduce/04_subscribe.json\": \"xBhx\",\n\t\"./en-US/spot/websocket/introduce/05_cancel_subscribe.json\": \"hlb8\",\n\t\"./en-US/spot/websocket/market/01_trade_info.json\": \"jcbY\",\n\t\"./en-US/spot/websocket/market/02_kline_data.json\": \"3EGE\",\n\t\"./en-US/spot/websocket/market/03_depth_info.json\": \"fsqo\",\n\t\"./en-US/standard/1_introduce.json\": \"HGsQ\",\n\t\"./en-US/standard/api/trade/01_get_contract_allPosition.json\": \"ttu5\",\n\t\"./en-US/standard/api/trade/02_get_contract_allOrders.json\": \"RhU9\",\n\t\"./en-US/standard/api/trade/03_get_contract_balance.json\": \"n0S/\",\n\t\"./en-US/swap/1_introduce.json\": \"ZZch\",\n\t\"./en-US/swap/api/account/01_post_user_balance.json\": \"EOtf\",\n\t\"./en-US/swap/api/account/02_post_user_positions.json\": \"0EGA\",\n\t\"./en-US/swap/api/authentication/01_create_api.json\": \"KMXO\",\n\t\"./en-US/swap/api/authentication/03_request_content.json\": \"DZHm\",\n\t\"./en-US/swap/api/authentication/04_sign_discription.json\": \"gBMP\",\n\t\"./en-US/swap/api/authentication/05_request.json\": \"4UQG\",\n\t\"./en-US/swap/api/basic/05_system_time.json\": \"edi2\",\n\t\"./en-US/swap/api/market/01_get_quote_contracts.json\": \"SYVa\",\n\t\"./en-US/swap/api/market/02_get_quote_price.json\": \"eT6P\",\n\t\"./en-US/swap/api/market/03_get_quote_depth.json\": \"55v+\",\n\t\"./en-US/swap/api/market/04_get_quote_ trades.json\": \"w+Dc\",\n\t\"./en-US/swap/api/market/05_get_quote_ premiumIndex.json\": \"qG6H\",\n\t\"./en-US/swap/api/market/06_get_quote_ fundingRate.json\": \"2iez\",\n\t\"./en-US/swap/api/market/07_get_quote_ klines.json\": \"vZVR\",\n\t\"./en-US/swap/api/market/08_get_quote_ klines_history.json\": \"JZdI\",\n\t\"./en-US/swap/api/market/09_get_quote_ ticker.json\": \"4AkN\",\n\t\"./en-US/swap/api/market/10_get_quote_openInterest.json\": \"vVjE\",\n\t\"./en-US/swap/api/trade/01_post_trade_order.json\": \"e3ud\",\n\t\"./en-US/swap/api/trade/02_post_closeAllPositions.json\": \"rac6\",\n\t\"./en-US/swap/api/trade/03_post_closeAllPositions.json\": \"ovOx\",\n\t\"./en-US/swap/api/trade/04_delete_trade_order.json\": \"+Jww\",\n\t\"./en-US/swap/api/trade/05_delete_trade_batch_order.json\": \"GLwn\",\n\t\"./en-US/swap/api/trade/06_delete_trade_all_order.json\": \"vl+M\",\n\t\"./en-US/swap/api/trade/07_get_all_openOrders.json\": \"mQAj\",\n\t\"./en-US/swap/api/trade/08_get_trade_order.json\": \"50QL\",\n\t\"./en-US/swap/api/trade/09_get_trade_marginType.json\": \"8FLz\",\n\t\"./en-US/swap/api/trade/10_post_trade_marginType.json\": \"Hwtn\",\n\t\"./en-US/swap/api/trade/11_get_trade_leverage.json\": \"Toje\",\n\t\"./en-US/swap/api/trade/12_post_trade_leverage.json\": \"XqXJ\",\n\t\"./en-US/swap/api/trade/13_get_trade_forceOrders.json\": \"GZ+E\",\n\t\"./en-US/swap/api/trade/14_get_trade_allOrders.json\": \"JRHj\",\n\t\"./en-US/swap/api/trade/15_post_trade_positionMargin.json\": \"y7gJ\",\n\t\"./en-US/swap/api/trade/16_post_trade_order_test.json\": \"EhS2\",\n\t\"./en-US/swap/api/trade/17_get_trade_allFillOrders.json\": \"GFCe\",\n\t\"./en-US/swap/api/trade/18_get_trade_allFillOrders_history.json\": \"kyJY\",\n\t\"./en-US/swap/websocket/account/01_balance.json\": \"uiwf\",\n\t\"./en-US/swap/websocket/market/01_dept_info.json\": \"/s4V\",\n\t\"./en-US/swap/websocket/market/02_latest_records.json\": \"VUGM\",\n\t\"./en-US/swap/websocket/market/03_kline_data.json\": \"3Jmd\",\n\t\"./en-US/swapV2/1_introduce.json\": \"goAe\",\n\t\"./en-US/swapV2/2_description.json\": \"5MML\",\n\t\"./en-US/swapV2/api/account/01_get_user_balance.json\": \"W4Cx\",\n\t\"./en-US/swapV2/api/account/02_get_user_positions.json\": \"mp7j\",\n\t\"./en-US/swapV2/api/account/03_get_user_income.json\": \"h0vl\",\n\t\"./en-US/swapV2/api/basic/01_error_code.json\": \"+lFy\",\n\t\"./en-US/swapV2/api/basic/02_timestamp.json\": \"VQr5\",\n\t\"./en-US/swapV2/api/basic/03_digital_rule.json\": \"C2jk\",\n\t\"./en-US/swapV2/api/basic/04_rate_limits.json\": \"nG30\",\n\t\"./en-US/swapV2/api/basic/05_system_time.json\": \"zNUa\",\n\t\"./en-US/swapV2/api/market/01_get_quote_contracts.json\": \"DcMO\",\n\t\"./en-US/swapV2/api/market/02_get_quote_price.json\": \"owTM\",\n\t\"./en-US/swapV2/api/market/03_get_quote_depth.json\": \"e+0O\",\n\t\"./en-US/swapV2/api/market/04_get_quote_ trades.json\": \"PqB/\",\n\t\"./en-US/swapV2/api/market/05_get_quote_ premiumIndex.json\": \"Tk4L\",\n\t\"./en-US/swapV2/api/market/06_get_quote_ fundingRate.json\": \"YtyA\",\n\t\"./en-US/swapV2/api/market/07_get_quote_ klines.json\": \"xU+M\",\n\t\"./en-US/swapV2/api/market/08_get_quote_openInterest.json\": \"j4uq\",\n\t\"./en-US/swapV2/api/market/09_get_quote_ ticker.json\": \"LWb5\",\n\t\"./en-US/swapV2/api/trade/01_post_trade_order.json\": \"YLkf\",\n\t\"./en-US/swapV2/api/trade/02_post_trade_batch_order.json\": \"/bqr\",\n\t\"./en-US/swapV2/api/trade/03_post_closeAllPositions.json\": \"jBL/\",\n\t\"./en-US/swapV2/api/trade/04_delete_trade_order.json\": \"nf3C\",\n\t\"./en-US/swapV2/api/trade/05_delete_trade_batch_order.json\": \"siG2\",\n\t\"./en-US/swapV2/api/trade/06_delete_trade_all_order.json\": \"/Fs7\",\n\t\"./en-US/swapV2/api/trade/07_get_all_openOrders.json\": \"jxdV\",\n\t\"./en-US/swapV2/api/trade/08_get_trade_order.json\": \"1xud\",\n\t\"./en-US/swapV2/api/trade/09_get_trade_marginType.json\": \"Qa4f\",\n\t\"./en-US/swapV2/api/trade/10_post_trade_marginType.json\": \"WCFx\",\n\t\"./en-US/swapV2/api/trade/11_get_trade_leverage.json\": \"Nux4\",\n\t\"./en-US/swapV2/api/trade/12_post_trade_leverage.json\": \"j3Xb\",\n\t\"./en-US/swapV2/api/trade/13_get_trade_forceOrders.json\": \"fUN5\",\n\t\"./en-US/swapV2/api/trade/14_get_trade_allOrders.json\": \"iu9b\",\n\t\"./en-US/swapV2/api/trade/15_post_trade_positionMargin.json\": \"i3k4\",\n\t\"./en-US/swapV2/api/trade/16_post_trade_order_test.json\": \"l8OL\",\n\t\"./en-US/swapV2/api/trade/17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./en-US/swapV2/api/trade/18_get_trade_income_export.json\": \"JOGY\",\n\t\"./en-US/swapV2/api/trade/19_get_trade_user_commissionRate.json\": \"2Faq\",\n\t\"./en-US/swapV2/api/trade/20_get_trade_quote_bookTicker.json\": \"Oo3B\",\n\t\"./en-US/swapV2/websocket/account/01_listenKey.json\": \"gOrG\",\n\t\"./en-US/swapV2/websocket/account/02_balance.json\": \"Zg2x\",\n\t\"./en-US/swapV2/websocket/account/03_order.json\": \"4X8p\",\n\t\"./en-US/swapV2/websocket/account/04_setting.json\": \"M7Po\",\n\t\"./en-US/swapV2/websocket/introduce/01_connect.json\": \"wa9k\",\n\t\"./en-US/swapV2/websocket/introduce/02_data_compress.json\": \"vuQY\",\n\t\"./en-US/swapV2/websocket/introduce/03_heart_beat.json\": \"il07\",\n\t\"./en-US/swapV2/websocket/introduce/04_subscribe.json\": \"n8XW\",\n\t\"./en-US/swapV2/websocket/introduce/05_cancel_subscribe.json\": \"7k03\",\n\t\"./en-US/swapV2/websocket/market/01_dept_info.json\": \"VbHA\",\n\t\"./en-US/swapV2/websocket/market/02_latest_records.json\": \"4L7x\",\n\t\"./en-US/swapV2/websocket/market/03_kline_data.json\": \"zKQU\",\n\t\"./zh-hans/authentication/01_create_api.json\": \"bY49\",\n\t\"./zh-hans/authentication/02_permission_set.json\": \"44OD\",\n\t\"./zh-hans/authentication/03_request_content.json\": \"xXiq\",\n\t\"./zh-hans/authentication/04_sign_discription.json\": \"t9kx\",\n\t\"./zh-hans/authentication/05_request.json\": \"bIA2\",\n\t\"./zh-hans/changelog/2023-06-03.json\": \"N36O\",\n\t\"./zh-hans/changelog/2023-07-29.json\": \"L1Q8\",\n\t\"./zh-hans/common/1_introduce.json\": \"L7p1\",\n\t\"./zh-hans/common/api/permission/01_get_account_apiRestrictions.json\": \"2ni1\",\n\t\"./zh-hans/common/api/subAccount/01_create_sub_accuont.json\": \"5mnu\",\n\t\"./zh-hans/common/api/subAccount/02_post_fetch_uid.json\": \"Ou1A\",\n\t\"./zh-hans/common/api/subAccount/03_post_fetch_sub_account_list.json\": \"3YFN\",\n\t\"./zh-hans/common/api/subAccount/04_get_sub_account_spot_balance.json\": \"OVDJ\",\n\t\"./zh-hans/common/api/subAccount/05_create_sub_accuont_key.json\": \"9vIT\",\n\t\"./zh-hans/common/api/subAccount/06_get_api_key_info.json\": \"SwSY\",\n\t\"./zh-hans/common/api/subAccount/07_post_edit_apikey.json\": \"Mwd2\",\n\t\"./zh-hans/common/api/subAccount/08_delete_sub_account_key.json\": \"Y8uX\",\n\t\"./zh-hans/common/api/subAccount/09_update_sub_account_status.json\": \"Tupg\",\n\t\"./zh-hans/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\": \"YzmL\",\n\t\"./zh-hans/common/api/subAccount/11.post_wallet_subInnerTransfer.json\": \"fe6F\",\n\t\"./zh-hans/listenKey/01_create_listenKey.json\": \"Yto4\",\n\t\"./zh-hans/listenKey/02_put_listenKey.json\": \"tXGI\",\n\t\"./zh-hans/listenKey/03_delete_listenKey.json\": \"BnJY\",\n\t\"./zh-hans/spot/1_introduce.json\": \"xTSi\",\n\t\"./zh-hans/spot/api/account/01_get_asset_transfer.json\": \"6y27\",\n\t\"./zh-hans/spot/api/account/02_get_asset_transfer2.json\": \"TDIc\",\n\t\"./zh-hans/spot/api/account/03_get_deposit_hisrec.json\": \"YAvn\",\n\t\"./zh-hans/spot/api/account/04_get_withdraw_history.json\": \"WNKq\",\n\t\"./zh-hans/spot/api/account/05_post_wallets_coins.json\": \"7r0K\",\n\t\"./zh-hans/spot/api/account/06_post_wallets_withdraw.json\": \"T4Os\",\n\t\"./zh-hans/spot/api/account/07_post_capital_innerTransfer_apply.json\": \"+HuI\",\n\t\"./zh-hans/spot/api/basic/01_server_url.json\": \"wpxO\",\n\t\"./zh-hans/spot/api/basic/02_server_apply.json\": \"zCSH\",\n\t\"./zh-hans/spot/api/basic/03_error_code.json\": \"Q+zo\",\n\t\"./zh-hans/spot/api/market/01_get_common_symbols.json\": \"HzkI\",\n\t\"./zh-hans/spot/api/market/02_get_ market_traders.json\": \"CPhe\",\n\t\"./zh-hans/spot/api/market/03_get_market_depth.json\": \"gUOZ\",\n\t\"./zh-hans/spot/api/market/04_get_market_klines.json\": \"rdtp\",\n\t\"./zh-hans/spot/api/trade/01_post_trade_order.json\": \"F99G\",\n\t\"./zh-hans/spot/api/trade/02_post_trade_order_cancel.json\": \"vNX1\",\n\t\"./zh-hans/spot/api/trade/03_get_trade_order.json\": \"AGDW\",\n\t\"./zh-hans/spot/api/trade/04_get_trade_open_order.json\": \"HFP1\",\n\t\"./zh-hans/spot/api/trade/05_get_trade_history_order.json\": \"Vx5o\",\n\t\"./zh-hans/spot/api/trade/06_get_account_balance.json\": \"hi8+\",\n\t\"./zh-hans/spot/api/trade/07_post_trade_batchOrders.json\": \"hNbe\",\n\t\"./zh-hans/spot/websocket/account/01_executionReport.json\": \"yydQ\",\n\t\"./zh-hans/spot/websocket/account/02_ account_update.json\": \"Wg+8\",\n\t\"./zh-hans/spot/websocket/introduce/01_connect.json\": \"9f4O\",\n\t\"./zh-hans/spot/websocket/introduce/02_data_compress.json\": \"yd9p\",\n\t\"./zh-hans/spot/websocket/introduce/03_heart_beat.json\": \"aeFT\",\n\t\"./zh-hans/spot/websocket/introduce/04_subscribe.json\": \"KaHo\",\n\t\"./zh-hans/spot/websocket/introduce/05_cancel_subscribe.json\": \"zovs\",\n\t\"./zh-hans/spot/websocket/market/01_trade_info.json\": \"eqGc\",\n\t\"./zh-hans/spot/websocket/market/02_kline_data.json\": \"VLKD\",\n\t\"./zh-hans/spot/websocket/market/03_depth_info.json\": \"9R9w\",\n\t\"./zh-hans/standard/1_introduce.json\": \"uXeI\",\n\t\"./zh-hans/standard/api/trade/01_get_contract_allPosition.json\": \"Bfwk\",\n\t\"./zh-hans/standard/api/trade/02_get_contract_allOrders.json\": \"HijD\",\n\t\"./zh-hans/standard/api/trade/03_get_contract_balance.json\": \"+25w\",\n\t\"./zh-hans/swap/1_introduce.json\": \"Agv/\",\n\t\"./zh-hans/swap/api/account/01_post_user_balance.json\": \"tiO5\",\n\t\"./zh-hans/swap/api/account/02_post_user_positions.json\": \"w+Bj\",\n\t\"./zh-hans/swap/api/authentication/01_create_api.json\": \"KTad\",\n\t\"./zh-hans/swap/api/authentication/03_request_content.json\": \"YdSN\",\n\t\"./zh-hans/swap/api/authentication/04_sign_discription.json\": \"XBGg\",\n\t\"./zh-hans/swap/api/authentication/05_request.json\": \"oR0W\",\n\t\"./zh-hans/swap/api/basic/05_system_time.json\": \"JLZd\",\n\t\"./zh-hans/swap/api/market/01_get_quote_contracts.json\": \"54oK\",\n\t\"./zh-hans/swap/api/market/02_get_quote_price.json\": \"cR4p\",\n\t\"./zh-hans/swap/api/market/03_get_quote_depth.json\": \"xUQL\",\n\t\"./zh-hans/swap/api/market/04_get_quote_ trades.json\": \"Ua/t\",\n\t\"./zh-hans/swap/api/market/05_get_quote_ premiumIndex.json\": \"LmIK\",\n\t\"./zh-hans/swap/api/market/06_get_quote_ fundingRate.json\": \"4uFH\",\n\t\"./zh-hans/swap/api/market/07_get_quote_ klines.json\": \"NO1N\",\n\t\"./zh-hans/swap/api/market/08_get_quote_ klines_history.json\": \"yHie\",\n\t\"./zh-hans/swap/api/market/09_get_quote_ ticker.json\": \"FICX\",\n\t\"./zh-hans/swap/api/market/10_get_quote_openInterest.json\": \"NpYN\",\n\t\"./zh-hans/swap/api/trade/01_post_trade_order.json\": \"TDl7\",\n\t\"./zh-hans/swap/api/trade/02_post_closeAllPositions.json\": \"o80Q\",\n\t\"./zh-hans/swap/api/trade/03_post_closeAllPositions.json\": \"nQs3\",\n\t\"./zh-hans/swap/api/trade/04_delete_trade_order.json\": \"KJWq\",\n\t\"./zh-hans/swap/api/trade/05_delete_trade_batch_order.json\": \"w9O3\",\n\t\"./zh-hans/swap/api/trade/06_delete_trade_all_order.json\": \"KZXS\",\n\t\"./zh-hans/swap/api/trade/07_get_all_openOrders.json\": \"0FzS\",\n\t\"./zh-hans/swap/api/trade/08_get_trade_order.json\": \"xd76\",\n\t\"./zh-hans/swap/api/trade/09_get_trade_marginType.json\": \"/RL+\",\n\t\"./zh-hans/swap/api/trade/10_post_trade_marginType.json\": \"Fg4Y\",\n\t\"./zh-hans/swap/api/trade/11_get_trade_leverage.json\": \"EtCx\",\n\t\"./zh-hans/swap/api/trade/12_post_trade_leverage.json\": \"hkx8\",\n\t\"./zh-hans/swap/api/trade/13_get_trade_forceOrders.json\": \"tc3t\",\n\t\"./zh-hans/swap/api/trade/14_get_trade_allOrders.json\": \"K+iN\",\n\t\"./zh-hans/swap/api/trade/15_post_trade_positionMargin.json\": \"vzun\",\n\t\"./zh-hans/swap/api/trade/16_post_trade_order_test.json\": \"IS5C\",\n\t\"./zh-hans/swap/api/trade/17_get_trade_allFillOrders.json\": \"Z792\",\n\t\"./zh-hans/swap/api/trade/18_get_trade_allFillOrders_history.json\": \"2Oo8\",\n\t\"./zh-hans/swap/websocket/account/01_balance.json\": \"p0H6\",\n\t\"./zh-hans/swap/websocket/market/01_dept_info.json\": \"I7QH\",\n\t\"./zh-hans/swap/websocket/market/02_latest_records.json\": \"fkpZ\",\n\t\"./zh-hans/swap/websocket/market/03_kline_data.json\": \"I7+s\",\n\t\"./zh-hans/swapV2/1_introduce.json\": \"IEXP\",\n\t\"./zh-hans/swapV2/2_description.json\": \"Tp48\",\n\t\"./zh-hans/swapV2/api/account/01_get_user_balance.json\": \"DLRo\",\n\t\"./zh-hans/swapV2/api/account/02_get_user_positions.json\": \"Knhz\",\n\t\"./zh-hans/swapV2/api/account/03_get_user_income.json\": \"s67u\",\n\t\"./zh-hans/swapV2/api/basic/01_error_code.json\": \"JIJP\",\n\t\"./zh-hans/swapV2/api/basic/02_timestamp.json\": \"4KP5\",\n\t\"./zh-hans/swapV2/api/basic/03_digital_rule.json\": \"mcJU\",\n\t\"./zh-hans/swapV2/api/basic/04_rate_limits.json\": \"8Dwn\",\n\t\"./zh-hans/swapV2/api/basic/05_system_time.json\": \"CtfW\",\n\t\"./zh-hans/swapV2/api/market/01_get_quote_contracts.json\": \"kQGv\",\n\t\"./zh-hans/swapV2/api/market/02_get_quote_price.json\": \"wZoS\",\n\t\"./zh-hans/swapV2/api/market/03_get_quote_depth.json\": \"TsMJ\",\n\t\"./zh-hans/swapV2/api/market/04_get_quote_ trades.json\": \"ceUr\",\n\t\"./zh-hans/swapV2/api/market/05_get_quote_ premiumIndex.json\": \"s6Wv\",\n\t\"./zh-hans/swapV2/api/market/06_get_quote_ fundingRate.json\": \"PQJ1\",\n\t\"./zh-hans/swapV2/api/market/07_get_quote_ klines.json\": \"MMY+\",\n\t\"./zh-hans/swapV2/api/market/08_get_quote_openInterest.json\": \"FnYD\",\n\t\"./zh-hans/swapV2/api/market/09_get_quote_ ticker.json\": \"YBd1\",\n\t\"./zh-hans/swapV2/api/trade/01_post_trade_order.json\": \"db2W\",\n\t\"./zh-hans/swapV2/api/trade/02_post_trade_batch_order.json\": \"0L/C\",\n\t\"./zh-hans/swapV2/api/trade/03_post_closeAllPositions.json\": \"4yOc\",\n\t\"./zh-hans/swapV2/api/trade/04_delete_trade_order.json\": \"70Y8\",\n\t\"./zh-hans/swapV2/api/trade/05_delete_trade_batch_order.json\": \"kYAZ\",\n\t\"./zh-hans/swapV2/api/trade/06_delete_trade_all_order.json\": \"nfgo\",\n\t\"./zh-hans/swapV2/api/trade/07_get_all_openOrders.json\": \"7rHQ\",\n\t\"./zh-hans/swapV2/api/trade/08_get_trade_order.json\": \"j4v/\",\n\t\"./zh-hans/swapV2/api/trade/09_get_trade_marginType.json\": \"0wg/\",\n\t\"./zh-hans/swapV2/api/trade/10_post_trade_marginType.json\": \"PTH3\",\n\t\"./zh-hans/swapV2/api/trade/11_get_trade_leverage.json\": \"dLDu\",\n\t\"./zh-hans/swapV2/api/trade/12_post_trade_leverage.json\": \"pyFj\",\n\t\"./zh-hans/swapV2/api/trade/13_get_trade_forceOrders.json\": \"PyiJ\",\n\t\"./zh-hans/swapV2/api/trade/14_get_trade_allOrders.json\": \"fFLq\",\n\t\"./zh-hans/swapV2/api/trade/15_post_trade_positionMargin.json\": \"5DAQ\",\n\t\"./zh-hans/swapV2/api/trade/16_post_trade_order_test.json\": \"IdRU\",\n\t\"./zh-hans/swapV2/api/trade/17_get_trade_allFillOrders.json\": \"Y5kV\",\n\t\"./zh-hans/swapV2/api/trade/18_get_trade_income_export.json\": \"DLoG\",\n\t\"./zh-hans/swapV2/api/trade/19_get_trade_user_commissionRate.json\": \"I7Id\",\n\t\"./zh-hans/swapV2/api/trade/20_get_trade_quote_bookTicker.json\": \"rEFa\",\n\t\"./zh-hans/swapV2/websocket/account/01_listenKey.json\": \"o5vU\",\n\t\"./zh-hans/swapV2/websocket/account/02_balance.json\": \"1n2Z\",\n\t\"./zh-hans/swapV2/websocket/account/03_order.json\": \"79KP\",\n\t\"./zh-hans/swapV2/websocket/account/04_setting.json\": \"tdzN\",\n\t\"./zh-hans/swapV2/websocket/introduce/01_connect.json\": \"X4K5\",\n\t\"./zh-hans/swapV2/websocket/introduce/02_data_compress.json\": \"uzUA\",\n\t\"./zh-hans/swapV2/websocket/introduce/03_heart_beat.json\": \"JHlj\",\n\t\"./zh-hans/swapV2/websocket/introduce/04_subscribe.json\": \"Gx8k\",\n\t\"./zh-hans/swapV2/websocket/introduce/05_cancel_subscribe.json\": \"tVMD\",\n\t\"./zh-hans/swapV2/websocket/market/01_dept_info.json\": \"lI21\",\n\t\"./zh-hans/swapV2/websocket/market/02_latest_records.json\": \"u+VH\",\n\t\"./zh-hans/swapV2/websocket/market/03_kline_data.json\": \"TV6R\",\n\t\"./zh-tw/authentication/01_create_api.json\": \"uqo+\",\n\t\"./zh-tw/authentication/02_permission_set.json\": \"U3vK\",\n\t\"./zh-tw/authentication/03_request_content.json\": \"HVe5\",\n\t\"./zh-tw/authentication/04_sign_discription.json\": \"huDF\",\n\t\"./zh-tw/authentication/05_request.json\": \"2oJ6\",\n\t\"./zh-tw/changelog/2023-06-03.json\": \"jVl+\",\n\t\"./zh-tw/changelog/2023-07-29.json\": \"MfXY\",\n\t\"./zh-tw/common/1_introduce.json\": \"+Vb3\",\n\t\"./zh-tw/common/api/permission/01_get_account_apiRestrictions.json\": \"l5cf\",\n\t\"./zh-tw/common/api/subAccount/01_create_sub_accuont.json\": \"Kq29\",\n\t\"./zh-tw/common/api/subAccount/02_post_fetch_uid.json\": \"MZqr\",\n\t\"./zh-tw/common/api/subAccount/03_post_fetch_sub_account_list.json\": \"pZuE\",\n\t\"./zh-tw/common/api/subAccount/04_get_sub_account_spot_balance.json\": \"a8qg\",\n\t\"./zh-tw/common/api/subAccount/05_create_sub_accuont_key.json\": \"sYD+\",\n\t\"./zh-tw/common/api/subAccount/06_get_api_key_info.json\": \"azxt\",\n\t\"./zh-tw/common/api/subAccount/07_post_edit_apikey.json\": \"o4h9\",\n\t\"./zh-tw/common/api/subAccount/08_delete_sub_account_key.json\": \"lRf0\",\n\t\"./zh-tw/common/api/subAccount/09_update_sub_account_status.json\": \"K/yH\",\n\t\"./zh-tw/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\": \"JAIK\",\n\t\"./zh-tw/common/api/subAccount/11.post_wallet_subInnerTransfer.json\": \"zbJw\",\n\t\"./zh-tw/listenKey/01_create_listenKey.json\": \"KCrj\",\n\t\"./zh-tw/listenKey/02_put_listenKey.json\": \"lKnG\",\n\t\"./zh-tw/listenKey/03_delete_listenKey.json\": \"+Xv4\",\n\t\"./zh-tw/spot/1_introduce.json\": \"z74M\",\n\t\"./zh-tw/spot/api/account/01_get_asset_transfer.json\": \"zvGN\",\n\t\"./zh-tw/spot/api/account/02_get_asset_transfer2.json\": \"ah5Z\",\n\t\"./zh-tw/spot/api/account/03_get_deposit_hisrec.json\": \"PFmh\",\n\t\"./zh-tw/spot/api/account/04_get_withdraw_history.json\": \"bMv0\",\n\t\"./zh-tw/spot/api/account/05_post_wallets_coins.json\": \"Dy32\",\n\t\"./zh-tw/spot/api/account/06_post_wallets_withdraw.json\": \"KB+u\",\n\t\"./zh-tw/spot/api/account/07_post_capital_innerTransfer_apply.json\": \"iYO+\",\n\t\"./zh-tw/spot/api/basic/01_server_url.json\": \"FVkd\",\n\t\"./zh-tw/spot/api/basic/02_server_apply.json\": \"GUKh\",\n\t\"./zh-tw/spot/api/basic/03_error_code.json\": \"uv3h\",\n\t\"./zh-tw/spot/api/market/01_get_common_symbols.json\": \"o8W7\",\n\t\"./zh-tw/spot/api/market/02_get_ market_traders.json\": \"SDL0\",\n\t\"./zh-tw/spot/api/market/03_get_market_depth.json\": \"2qJV\",\n\t\"./zh-tw/spot/api/market/04_get_market_klines.json\": \"/lsz\",\n\t\"./zh-tw/spot/api/trade/01_post_trade_order.json\": \"Creq\",\n\t\"./zh-tw/spot/api/trade/02_post_trade_order_cancel.json\": \"PO50\",\n\t\"./zh-tw/spot/api/trade/03_get_trade_order.json\": \"/YEw\",\n\t\"./zh-tw/spot/api/trade/04_get_trade_open_order.json\": \"bfDi\",\n\t\"./zh-tw/spot/api/trade/05_get_trade_history_order.json\": \"dcc+\",\n\t\"./zh-tw/spot/api/trade/06_get_account_balance.json\": \"S+dO\",\n\t\"./zh-tw/spot/api/trade/07_post_trade_batchOrders.json\": \"QUO8\",\n\t\"./zh-tw/spot/websocket/account/01_executionReport.json\": \"H6dO\",\n\t\"./zh-tw/spot/websocket/account/02_ account_update.json\": \"bZVt\",\n\t\"./zh-tw/spot/websocket/introduce/01_connect.json\": \"itMl\",\n\t\"./zh-tw/spot/websocket/introduce/02_data_compress.json\": \"yOH9\",\n\t\"./zh-tw/spot/websocket/introduce/03_heart_beat.json\": \"hrCt\",\n\t\"./zh-tw/spot/websocket/introduce/04_subscribe.json\": \"jYwr\",\n\t\"./zh-tw/spot/websocket/introduce/05_cancel_subscribe.json\": \"cspZ\",\n\t\"./zh-tw/spot/websocket/market/01_trade_info.json\": \"tk7z\",\n\t\"./zh-tw/spot/websocket/market/02_kline_data.json\": \"klxE\",\n\t\"./zh-tw/spot/websocket/market/03_depth_info.json\": \"ADmP\",\n\t\"./zh-tw/standard/1_introduce.json\": \"okpR\",\n\t\"./zh-tw/standard/api/trade/01_get_contract_allPosition.json\": \"IW/r\",\n\t\"./zh-tw/standard/api/trade/02_get_contract_allOrders.json\": \"y5ws\",\n\t\"./zh-tw/standard/api/trade/03_get_contract_balance.json\": \"smla\",\n\t\"./zh-tw/swap/1_introduce.json\": \"JXoq\",\n\t\"./zh-tw/swap/api/account/01_post_user_balance.json\": \"emHW\",\n\t\"./zh-tw/swap/api/account/02_post_user_positions.json\": \"HU7E\",\n\t\"./zh-tw/swap/api/authentication/01_create_api.json\": \"KHR7\",\n\t\"./zh-tw/swap/api/authentication/03_request_content.json\": \"q1lS\",\n\t\"./zh-tw/swap/api/authentication/04_sign_discription.json\": \"OWlA\",\n\t\"./zh-tw/swap/api/authentication/05_request.json\": \"auLt\",\n\t\"./zh-tw/swap/api/basic/05_system_time.json\": \"14TU\",\n\t\"./zh-tw/swap/api/market/01_get_quote_contracts.json\": \"nyHW\",\n\t\"./zh-tw/swap/api/market/02_get_quote_price.json\": \"kQ2M\",\n\t\"./zh-tw/swap/api/market/03_get_quote_depth.json\": \"YP5V\",\n\t\"./zh-tw/swap/api/market/04_get_quote_ trades.json\": \"0TqQ\",\n\t\"./zh-tw/swap/api/market/05_get_quote_ premiumIndex.json\": \"+92Z\",\n\t\"./zh-tw/swap/api/market/06_get_quote_ fundingRate.json\": \"xDG3\",\n\t\"./zh-tw/swap/api/market/07_get_quote_ klines.json\": \"bDbK\",\n\t\"./zh-tw/swap/api/market/08_get_quote_ klines_history.json\": \"keYE\",\n\t\"./zh-tw/swap/api/market/09_get_quote_ ticker.json\": \"VOPx\",\n\t\"./zh-tw/swap/api/market/10_get_quote_openInterest.json\": \"baSA\",\n\t\"./zh-tw/swap/api/trade/01_post_trade_order.json\": \"kJLu\",\n\t\"./zh-tw/swap/api/trade/02_post_closeAllPositions.json\": \"nBfU\",\n\t\"./zh-tw/swap/api/trade/03_post_closeAllPositions.json\": \"uKtQ\",\n\t\"./zh-tw/swap/api/trade/04_delete_trade_order.json\": \"t6GP\",\n\t\"./zh-tw/swap/api/trade/05_delete_trade_batch_order.json\": \"A1ZI\",\n\t\"./zh-tw/swap/api/trade/06_delete_trade_all_order.json\": \"40ny\",\n\t\"./zh-tw/swap/api/trade/07_get_all_openOrders.json\": \"Z2yu\",\n\t\"./zh-tw/swap/api/trade/08_get_trade_order.json\": \"zUzZ\",\n\t\"./zh-tw/swap/api/trade/09_get_trade_marginType.json\": \"FEZH\",\n\t\"./zh-tw/swap/api/trade/10_post_trade_marginType.json\": \"W+/z\",\n\t\"./zh-tw/swap/api/trade/11_get_trade_leverage.json\": \"Latl\",\n\t\"./zh-tw/swap/api/trade/12_post_trade_leverage.json\": \"5ewk\",\n\t\"./zh-tw/swap/api/trade/13_get_trade_forceOrders.json\": \"HJU1\",\n\t\"./zh-tw/swap/api/trade/14_get_trade_allOrders.json\": \"xKz7\",\n\t\"./zh-tw/swap/api/trade/15_post_trade_positionMargin.json\": \"RvjO\",\n\t\"./zh-tw/swap/api/trade/16_post_trade_order_test.json\": \"WKtD\",\n\t\"./zh-tw/swap/api/trade/17_get_trade_allFillOrders.json\": \"o9VI\",\n\t\"./zh-tw/swap/api/trade/18_get_trade_allFillOrders_history.json\": \"uTRy\",\n\t\"./zh-tw/swap/websocket/account/01_balance.json\": \"nWf4\",\n\t\"./zh-tw/swap/websocket/market/01_dept_info.json\": \"PNFl\",\n\t\"./zh-tw/swap/websocket/market/02_latest_records.json\": \"vXfi\",\n\t\"./zh-tw/swap/websocket/market/03_kline_data.json\": \"H59N\",\n\t\"./zh-tw/swapV2/1_introduce.json\": \"5GrR\",\n\t\"./zh-tw/swapV2/2_description.json\": \"n5PB\",\n\t\"./zh-tw/swapV2/api/account/01_get_user_balance.json\": \"zKw2\",\n\t\"./zh-tw/swapV2/api/account/02_get_user_positions.json\": \"uAAZ\",\n\t\"./zh-tw/swapV2/api/account/03_get_user_income.json\": \"clol\",\n\t\"./zh-tw/swapV2/api/basic/01_error_code.json\": \"INR5\",\n\t\"./zh-tw/swapV2/api/basic/02_timestamp.json\": \"gE9e\",\n\t\"./zh-tw/swapV2/api/basic/03_digital_rule.json\": \"v0HI\",\n\t\"./zh-tw/swapV2/api/basic/04_rate_limits.json\": \"x6dl\",\n\t\"./zh-tw/swapV2/api/basic/05_system_time.json\": \"i6gS\",\n\t\"./zh-tw/swapV2/api/market/01_get_quote_contracts.json\": \"lrAs\",\n\t\"./zh-tw/swapV2/api/market/02_get_quote_price.json\": \"r2l6\",\n\t\"./zh-tw/swapV2/api/market/03_get_quote_depth.json\": \"obcS\",\n\t\"./zh-tw/swapV2/api/market/04_get_quote_ trades.json\": \"KY9U\",\n\t\"./zh-tw/swapV2/api/market/05_get_quote_ premiumIndex.json\": \"5xUh\",\n\t\"./zh-tw/swapV2/api/market/06_get_quote_ fundingRate.json\": \"dEdI\",\n\t\"./zh-tw/swapV2/api/market/07_get_quote_ klines.json\": \"UTAD\",\n\t\"./zh-tw/swapV2/api/market/08_get_quote_openInterest.json\": \"0IKX\",\n\t\"./zh-tw/swapV2/api/market/09_get_quote_ ticker.json\": \"Y7KR\",\n\t\"./zh-tw/swapV2/api/trade/01_post_trade_order.json\": \"vDBD\",\n\t\"./zh-tw/swapV2/api/trade/02_post_trade_batch_order.json\": \"Crrt\",\n\t\"./zh-tw/swapV2/api/trade/03_post_closeAllPositions.json\": \"pKuc\",\n\t\"./zh-tw/swapV2/api/trade/04_delete_trade_order.json\": \"9V8o\",\n\t\"./zh-tw/swapV2/api/trade/05_delete_trade_batch_order.json\": \"hIfT\",\n\t\"./zh-tw/swapV2/api/trade/06_delete_trade_all_order.json\": \"Nw8z\",\n\t\"./zh-tw/swapV2/api/trade/07_get_all_openOrders.json\": \"Ewmn\",\n\t\"./zh-tw/swapV2/api/trade/08_get_trade_order.json\": \"/1k/\",\n\t\"./zh-tw/swapV2/api/trade/09_get_trade_marginType.json\": \"7mzI\",\n\t\"./zh-tw/swapV2/api/trade/10_post_trade_marginType.json\": \"WVbz\",\n\t\"./zh-tw/swapV2/api/trade/11_get_trade_leverage.json\": \"/Kh3\",\n\t\"./zh-tw/swapV2/api/trade/12_post_trade_leverage.json\": \"ZoHP\",\n\t\"./zh-tw/swapV2/api/trade/13_get_trade_forceOrders.json\": \"9bR8\",\n\t\"./zh-tw/swapV2/api/trade/14_get_trade_allOrders.json\": \"7bgg\",\n\t\"./zh-tw/swapV2/api/trade/15_post_trade_positionMargin.json\": \"QHIT\",\n\t\"./zh-tw/swapV2/api/trade/16_post_trade_order_test.json\": \"Hhes\",\n\t\"./zh-tw/swapV2/api/trade/17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./zh-tw/swapV2/api/trade/18_get_trade_income_export.json\": \"TDt4\",\n\t\"./zh-tw/swapV2/api/trade/19_get_trade_user_commissionRate.json\": \"x8dX\",\n\t\"./zh-tw/swapV2/api/trade/20_get_trade_quote_bookTicker.json\": \"SGv/\",\n\t\"./zh-tw/swapV2/websocket/account/01_listenKey.json\": \"jg15\",\n\t\"./zh-tw/swapV2/websocket/account/02_balance.json\": \"W9nQ\",\n\t\"./zh-tw/swapV2/websocket/account/03_order.json\": \"/xkA\",\n\t\"./zh-tw/swapV2/websocket/account/04_setting.json\": \"pHnt\",\n\t\"./zh-tw/swapV2/websocket/introduce/01_connect.json\": \"uUP9\",\n\t\"./zh-tw/swapV2/websocket/introduce/02_data_compress.json\": \"ku8a\",\n\t\"./zh-tw/swapV2/websocket/introduce/03_heart_beat.json\": \"QDPd\",\n\t\"./zh-tw/swapV2/websocket/introduce/04_subscribe.json\": \"f4mz\",\n\t\"./zh-tw/swapV2/websocket/introduce/05_cancel_subscribe.json\": \"IhWV\",\n\t\"./zh-tw/swapV2/websocket/market/01_dept_info.json\": \"bFzX\",\n\t\"./zh-tw/swapV2/websocket/market/02_latest_records.json\": \"cRtg\",\n\t\"./zh-tw/swapV2/websocket/market/03_kline_data.json\": \"WbRb\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"zQIm\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config \\.json$\n// module id = zQIm\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢訂單詳情\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/queryOrderStatus\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/queryOrderStatus\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"\",\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"訂單ID\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"訂單委託時間\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向(Bid/Ask 買/賣)\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"委託類型(Market/Limit 市價/限價)\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open/Close 開倉/平倉\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"成交均價\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交數量\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態(Filled or PartiallyFilled, Pending, Cancelled, Failed)\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手續費\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"訂單更新時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/08_get_trade_order.json\n// module id = zUzZ\n// module chunks = 3","const php = `php\n \"AAPPII\",\n \"method\" => \"MMEETTHHOODD\",\n // \"payload\" => [\n // \"symbol\" => \"BTC-USDT\"\n // ],\n \"payload\" => [\n \"example_parameter\" => \"\"\n ],\n \"protocol\" => \"https\"\n ];\n\n doRequest($api[\"protocol\"], $HOST, $api[\"uri\"], $api[\"method\"], $API_KEY, $API_SECRET, $api[\"payload\"]);\n}\n\nfunction doRequest($protocol, $host, $api, $method, $API_KEY, $API_SECRET, $payload)\n{\n $timestamp = round(microtime(true) * 1000);\n $parameters = \"timestamp=\" . $timestamp;\n\n if ($payload != null) {\n foreach ($payload as $key => $value) {\n $parameters .= \"&$key=$value\";\n }\n }\n\n $sign = calculateHmacSha256($parameters, $API_SECRET);\n $url = \"{$protocol}://{$host}{$api}?{$parameters}&signature={$sign}\";\n\n echo \"protocol: {$protocol}\\n\";\n echo \"method: {$method}\\n\";\n echo \"host: {$host}\\n\";\n echo \"api: {$api}\\n\";\n echo \"parameters: {$parameters}\\n\";\n echo \"sign: {$sign}\\n\";\n echo \"{$method} {$url}\\n\";\n\n $options = [\n \"http\" => [\n \"header\" => \"X-BX-APIKEY: {$API_KEY}\\r\\n\"\n ],\n \"ssl\" => [\n \"verify_peer\" => false,\n \"verify_peer_name\" => false\n ]\n ];\n\n $context = stream_context_create($options);\n $response = file_get_contents($url, false, $context);\n\n echo \"Response body: {$response}\\n\";\n}\n\nfunction calculateHmacSha256($input, $key)\n{\n $hash = hash_hmac(\"sha256\", $input, $key, true);\n $hashHex = bin2hex($hash);\n return strtolower($hashHex);\n}\n\nmain();`\nexport default php\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/php.js","module.exports = [{\"type\":\"hash\",\"text\":\"子賬戶內部轉賬\"},{\"type\":\"normal\",\"text\":\"同一主賬戶下子賬戶在bingx平台內互相轉賬,子子內轉、子母內轉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subInnerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"userAccountType\":3,\"userAccount\":\"bran***@**.com\",\"amount\":10,\"walletType\":1,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"userAccountType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"用戶賬號類型 1=uid 2=手機號 3=郵箱\"},{\"name\":\"userAccount\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用戶賬戶: uid、電話、郵箱\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"轉賬數額\"},{\"name\":\"callingCode\",\"type\":\"string\",\"required\":\"否\",\"description\":\"電話區號\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"賬戶類型,1 資金賬戶;2 標合賬戶;3 永續賬戶\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"提幣記錄唯一標識,該字段在提幣走內轉時不返回\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/11.post_wallet_subInnerTransfer.json\n// module id = zbJw\n// module chunks = 3","var map = {\n\t\".\": \"b9rl\",\n\t\"./\": \"b9rl\",\n\t\"./01_create_sub_accuont\": \"Kq29\",\n\t\"./01_create_sub_accuont.json\": \"Kq29\",\n\t\"./02_post_fetch_uid\": \"MZqr\",\n\t\"./02_post_fetch_uid.json\": \"MZqr\",\n\t\"./03_post_fetch_sub_account_list\": \"pZuE\",\n\t\"./03_post_fetch_sub_account_list.json\": \"pZuE\",\n\t\"./04_get_sub_account_spot_balance\": \"a8qg\",\n\t\"./04_get_sub_account_spot_balance.json\": \"a8qg\",\n\t\"./05_create_sub_accuont_key\": \"sYD+\",\n\t\"./05_create_sub_accuont_key.json\": \"sYD+\",\n\t\"./06_get_api_key_info\": \"azxt\",\n\t\"./06_get_api_key_info.json\": \"azxt\",\n\t\"./07_post_edit_apikey\": \"o4h9\",\n\t\"./07_post_edit_apikey.json\": \"o4h9\",\n\t\"./08_delete_sub_account_key\": \"lRf0\",\n\t\"./08_delete_sub_account_key.json\": \"lRf0\",\n\t\"./09_update_sub_account_status\": \"K/yH\",\n\t\"./09_update_sub_account_status.json\": \"K/yH\",\n\t\"./10.post_wallet_authorize_innerTransfer\": \"JAIK\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"JAIK\",\n\t\"./11.post_wallet_subInnerTransfer\": \"zbJw\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"zbJw\",\n\t\"./index\": \"b9rl\",\n\t\"./index.js\": \"b9rl\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"zol2\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount ^.*$\n// module id = zol2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"取消订阅\"},{\"type\":\"normal\",\"text\":\"取消订阅的格式如下:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"unsub\\\", \\\"dataType\\\": \\\"data to unsub\\\"}\"},{\"type\":\"normal\",\"text\":\"取消订阅成功确认:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"html\",\"text\":\"

    symbol说明

    \"},{\"type\":\"warning\",\"text\":\"symbol必须全大写\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/introduce/05_cancel_subscribe.json\n// module id = zovs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶万向劃轉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/get/asset/transfer\"},{\"type\":\"code\",\"text\":\"curl --location --request GET 'https://open-api.bingx.com/openApi/api/v3/get/asset/transfer?type=FUND_PFUTURES&asset=USDT&amount=100×tamp=1670215150028&signature=ecc819d72515095039b7b383310f718584af4cf70106b57609bc59473185c9a3'\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"asset\":\"USDT\",\"amount\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"是\",\"description\":\"劃轉類型\"},{\"name\":\"asset\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣的名稱 例如USDT\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"required\":\"是\",\"description\":\"交易金額\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"資金賬戶->標准合約\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"標准合約->資金賬戶\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"資金賬戶->永續合約\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"永續合約->資金賬戶\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"標准合約->永續合約\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"永續合約->標准合約\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"交易ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/01_get_asset_transfer.json\n// module id = zvGN\n// module chunks = 3"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/app.6912524a2d80e98b52e0.js b/static/js/app.6912524a2d80e98b52e0.js new file mode 100644 index 00000000..3ccae6a6 --- /dev/null +++ b/static/js/app.6912524a2d80e98b52e0.js @@ -0,0 +1,2 @@ +webpackJsonp([3],{"+25w":function(e,t){e.exports=[{type:"hash",text:"查询标准合约余额"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/contract/v1/balance"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/contract/v1/balance",protocol:"https",method:"DELETE",payload:{}},params:[{type:"Request(无)",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"asset",type:"string",description:"资产"},{name:"balance",type:"string",description:"总余额"},{name:"crossWalletBalance",type:"string",description:"全仓余额"},{name:"crossUnPnl",type:"string",description:"全仓持仓未实现盈亏"},{name:"availableBalance",type:"string",description:"下单可用余额"},{name:"maxWithdrawAmount",type:"string",description:"最大可转出余额"},{name:"marginAvailable",type:"bool",description:"是否可用作联合保证金"},{name:"updateTime",type:"number",description:"时间戳"}]}]}]},"+6hF":function(e,t){e.exports=[{type:"hash",text:"Create sub account"},{type:"normal",text:"Create sub account"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/create"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subAccountString",type:"string",required:"yes",description:"Sub account username"},{name:"note",type:"string",required:"no",description:"notes"},{name:"recvWindow",type:"long",required:"yes",description:""},{name:"timestamp",type:"long",required:"yes",description:""}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"Sub account uid"},{name:"subAccountString",type:"string",description:"Sub account username"},{name:"note",type:"string",description:"Sub account note information"}]}]}]},"+92Z":function(e,t){e.exports=[{type:"hash",text:"查詢最新資金費率"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getLatestFunding"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getLatestFunding",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"fundingRate",type:"float64",description:"當前資金費率"},{name:"fairPrice",type:"float64",description:"當前的標記價格"},{name:"leftSeconds",type:"float64",description:"下次結算剩餘時間,單位為秒"}]}]}]},"+HuI":function(e,t){e.exports=[{type:"hash",text:"用户内部转账"},{type:"normal",text:"用户在bingx平台内互相转账"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/wallets/v1/capital/innerTransfer/apply"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/innerTransfer/apply",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"是",description:"转账币种名"},{name:"userAccountType",type:"int",required:"是",description:"用户账号类型 1=uid 2=手机号 3=邮箱"},{name:"userAccount",type:"string",required:"是",description:"用户账户: uid、电话、邮箱"},{name:"amount",type:"float64",required:"是",description:"转账数额"},{name:"callingCode",type:"string",required:"否",description:"电话区号"},{name:"walletType",type:"int",required:"是",description:"账户类型,1 资金账户;2 标合账户;3 永续账户"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"id",type:"string",description:"提币记录唯一标识,该字段在提币走内转时不返回"}]}]}]},"+Jww":function(e,t){e.exports=[{type:"hash",text:"Cancel an Order"},{type:"normal",text:"Cancel an order that the current account is in the current entrusted state."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelOrder"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelOrder",protocol:"https",method:"POST",payload:{orderId:"",symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"yes",description:"order ID"},{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"order ID"}]}]}]},"+LWv":function(e,t,n){var i={".":"vVqC","./":"vVqC","./01_create_api":"bY49","./01_create_api.json":"bY49","./02_permission_set":"44OD","./02_permission_set.json":"44OD","./03_request_content":"xXiq","./03_request_content.json":"xXiq","./04_sign_discription":"t9kx","./04_sign_discription.json":"t9kx","./05_request":"bIA2","./05_request.json":"bIA2","./index":"vVqC","./index.js":"vVqC"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="+LWv"},"+Rge":function(e,t){e.exports=[{type:"hash",text:"Generate an API Key"},{type:"normal",text:"",children:[{type:"html",text:"Before being able to sign any requests, you must create an API Key at the API Management page onBingXUpon creating a key you will have 2 pieces of information which you should remember:API key and Secret key."},{type:"normal",text:"While setting the API key, it is recommended to set the IP access whitelist for security reasons"},{type:"normal",text:"Never tell anyone your API key/Secret key"}]},{type:"warning",text:"If the API key is accidentally leaked, please delete it immediately and produce a new API key"}]},"+Vb3":function(e,t){e.exports={module:"spot",path:"/spot/introduce",name:"介紹",content:[{type:"html",text:"歡迎使用BingX開發者文檔。"},{type:"normal",text:"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 "}]}},"+W0b":function(e,t){e.exports=[{type:"hash",text:"Internal transfer of sub accounts"},{type:"normal",text:"Users transfer funds to each other within the bingx platform"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/subInnerTransfer/apply",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,timestamp:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"yes",description:"Transfer currency name"},{name:"userAccountType",type:"int",required:"yes",description:"User account type 1=uid 2=phone number 3=email"},{name:"userAccount",type:"string",required:"yes",description:"User account: uid, phone, email"},{name:"amount",type:"float64",required:"yes",description:"Transfer amount"},{name:"callingCode",type:"string",required:"no",description:"Area Code"},{name:"walletType",type:"int",required:"yes",description:"Account type, 1 fund account; 2. Standard account; 3 perpetual accounts"},{name:"timestamp",type:"int64",required:"yes",description:"The timestamp of the request, in milliseconds"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time empty window value, in milliseconds"}]},{type:"Response",key:"response",data:[{name:"id",type:"string",description:"Unique identifier of the withdrawal record, this field is not returned during internal transfer of withdrawal"}]}]}]},"+Xv4":function(e,t){e.exports=[{type:"hash",text:"關閉 Listen Key"},{type:"normal",text:"關閉用戶數據流。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"DELETE /openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"code",text:"curl -i -X DELETE 'https://open-api.bingx.com/openApi/user/auth/userDataStream?listenKey=d84d39fe78762b39e202ba204bf3f7ebed43bbe7a481299779cb53479ea9677d'"},{type:"normal",text:"響應",style:{"font-weight":"bold"}},{type:"html",text:"
  • http status 200 成功
  • "},{type:"html",text:"
  • http status 204 沒有請求參數
  • "},{type:"html",text:"
  • http status 404 沒有這個listenKey
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"DELETE",payload:{}},params:[{type:"Request",key:"request",data:[{name:"listenKey",type:"string",required:"是",description:"返回的listenKey"}]}]}]},"+hJF":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Wd1J").keys(),r=[],o=0;oTypes:

    "},{type:"html",text:"
  • 4XX error codes are used to indicate wrong request content, behavior, format.
  • "},{type:"html",text:"
  • 5XX error codes are used to indicate problems with the Bingx service.
  • "},{type:"html",text:"

    Error Codes:

    "},{type:"html",text:"
  • 400 Bad Request – Invalid request format Invalid request format
  • "},{type:"html",text:"
  • 401 Unauthorized – Invalid API Key Invalid API Key
  • "},{type:"html",text:"
  • 403 Forbidden – You do not have access to the requested resource
  • "},{type:"html",text:"
  • 404 - Not Found
  • "},{type:"html",text:"
  • 429 - Too Many Requests Return code is used when breaking a request rate limit.
  • "},{type:"html",text:"
  • 418 - return code is used when an IP has been auto-banned for continuing to send requests after receiving 429 codes.
  • "},{type:"html",text:"
  • 500 - Internal Server Error – We had a problem with our server We had a problem with our server
  • "},{type:"html",text:"
  • 504 - return code means that the API server has submitted a request to the service center but failed to get a response. It should be noted that the 504 return code does not mean that the request failed. It refers to an unknown status. The request may have been executed, or it may have failed. Further confirmation is required.
  • "},{type:"html",text:"

    Common business error codes:

    "},{type:"html",text:"
  • 100001 - signature verification failed#
  • "},{type:"html",text:"
  • 100500 - Internal system error
  • "},{type:"html",text:"
  • 80001 - request failed
  • "},{type:"html",text:"
  • 80012 - service unavailable
  • "},{type:"html",text:"
  • 80014 - Invalid parameter
  • "},{type:"html",text:"
  • 80016 - Order does not exist
  • "},{type:"html",text:"
  • 80017 - position does not exist
  • "},{type:"html",text:"

    Notes:

    "},{type:"html",text:"
  • If it fails, there will be an error description included in the response body.
  • "},{type:"html",text:"
  • Errors may be thrown from every interface.
  • "}]},"/1k/":function(e,t){e.exports=[{type:"hash",text:"查詢訂單"},{type:"normal",text:"查詢訂單詳情"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:" GET /openApi/swap/v2/trade/order"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"orderId",type:"int64",required:"否",description:"訂單號"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID"}]},{type:"status",key:"key1",data:[{name:"NEW",type:"",required:"",description:"新建訂單"},{name:"PARTIALLY_FILLED",type:"",required:"",description:"部分成交"},{name:"FILLED",type:"",required:"",description:"全部成交"},{name:"CANCELED",type:"",required:"",description:"已撤銷"}]}]}]},"/Fs7":function(e,t){e.exports=[{type:"hash",text:"Cancel All Orders"},{type:"normal",text:"Cancel all orders in the current entrusted state of the current account."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"DELETE /openApi/swap/v2/trade/allOpenOrders"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allOpenOrders",protocol:"https",method:"DELETE",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp in milliseconds"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"success",type:"LIST",description:"list of successfully canceled orders"},{name:"failed",type:"array",description:"list of failed orders"},{name:"orderId",type:"int64",description:"Order ID"},{name:"errorCode",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"errorMessage",type:"string",description:"Error Details Description"}]},{type:"Order",key:"order",data:[{name:"time",type:"int64",description:"order time, unit: millisecond"},{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"side",type:"string",description:"buying and selling direction"},{name:"type",type:"string",description:"order type"},{name:"positionSide",type:"string",description:"position side"},{name:"cumQuote",type:"string",description:"transaction amount"},{name:"status",type:"string",description:"order status"},{name:"stopPrice",type:"string",description:"Trigger price"},{name:"price",type:"string",description:"Price"},{name:"origQty",type:"string",description:"original order quantity"},{name:"avgPrice",type:"string",description:"average transaction price"},{name:"executedQty",type:"string",description:"volume"},{name:"orderId",type:"int64",description:"Order ID"},{name:"profit",type:"string",description:"profit and loss"},{name:"commission",type:"string",description:"Fee"},{name:"updateTime",type:"int64",description:"update time, unit: millisecond"}]}]}]},"/Kh3":function(e,t){e.exports=[{type:"hash",text:"查詢開倉槓桿"},{type:"normal",text:"查詢用戶在指定symbol合約的開倉槓桿。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/leverage"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/leverage",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"longLeverage",type:"int64",description:"多倉槓桿倍數"},{name:"shortLeverage",type:"int64",description:"空倉槓桿倍數"}]}]}]},"/RL+":function(e,t){e.exports=[{type:"hash",text:"查询账户保证金模式"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getMarginMode"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getMarginMode",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"marginMode",type:"string",description:"保证金模式"}]},{type:"marginMode",key:"common",data:[{name:"Isolated",type:"",description:"逐仓"},{name:"Cross",type:"",description:"全仓"}]}]}]},"/YEw":function(e,t){e.exports=[{type:"hash",text:"查詢訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/query"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/query",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"orderId",type:"int64",required:"是",description:"訂單id"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId,僅支持2個小時的查詢範圍"},{name:"recvWindow",type:"float64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求時間戳, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易品種"},{name:"orderId",type:"int64",description:"訂單號"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"下單數量"},{name:"executedQty",type:"string",description:"成交數量"},{name:"cummulativeQuoteQty",type:"string",description:"成交額"},{name:"status",type:"string",description:"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗"},{name:"type",type:"string",description:"訂單類型, MARKET市價 LIMIT限價"},{name:"side",type:"string",description:"交易類型, BUY買 SELL賣"},{name:"time",type:"int64",description:"下單時間戳"},{name:"updateTime",type:"int64",description:"更新時間戳"},{name:"origQuoteOrderQty",type:"string",description:"下單金額"},{name:"fee",type:"string",description:"手續費"},{name:"feeAsset",type:"string",description:"手續費資產類型"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID"}]}]}]},"/Z+/":function(e,t,n){var i={".":"cId4","./":"cId4","./01_get_asset_transfer":"bSWG","./01_get_asset_transfer.json":"bSWG","./02_get_asset_transfer2":"gp5h","./02_get_asset_transfer2.json":"gp5h","./03_get_deposit_hisrec":"OW9C","./03_get_deposit_hisrec.json":"OW9C","./04_get_withdraw_history":"VVr3","./04_get_withdraw_history.json":"VVr3","./05_post_wallets_coins":"Bxps","./05_post_wallets_coins.json":"Bxps","./06_post_wallets_withdraw":"puhI","./06_post_wallets_withdraw.json":"puhI","./07_post_capital_innerTransfer_apply":"KPNz","./07_post_capital_innerTransfer_apply.json":"KPNz","./index":"cId4","./index.js":"cId4"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="/Z+/"},"/bR7":function(e,t){e.exports=[{type:"title",text:"2023-06-03"},{type:"normal",text:"New version API document website release",style:{"font-weight":"bold"},children:[{type:"normal",text:"New version UI and interaction"},{type:"normal",text:"Demo code is automatically generated and copied with one click"},{type:"normal",text:"Fast conversion between interface parameter tables and JSON, one click full code copying, reducing the workload for developers to copy API parameters"},{type:"normal",text:"Add full-text fuzzy search function"},{type:"normal",text:"Add email subscription function, and notify developers via email if there are API version updates in the future"},{type:"normal",text:"Added issue feedback function, developers can directly feedback API issues to the BingX team through this website"}]}]},"/bqr":function(e,t){e.exports=[{type:"hash",text:"Bulk order"},{type:"normal",text:"The current account performs batch order operations on the specified symbol contract."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/batchOrders"},{type:"html",text:"
  • Specific order conditions and rules are consistent with ordinary orders
  • "},{type:"html",text:"
  • BatchOrders is an array, using Python as an example
  • "},{type:"code",text:'{"batchOrders" : "[{\\"symbol\\": \\"ETH-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 1},{\\"symbol\\": \\"BTC-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 0.001}]"}'},{type:"html",text:"
  • The actual HTTP URL request parameters sent are as follows
  • "},{type:"code",text:'https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=[{"symbol": "ETH-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 1},{"symbol": "BTC-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 0.001}]×tamp=1691312510782&signature=a7bd3f4ebf3321c1e3c9d2305584e0f28a70766340b79cca29f0a8428d5bbd7f'},{type:"warning",text:"Batch orders are processed concurrently, and order matching order is not guaranteed"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/batchOrders",protocol:"https",method:"POST",payload:{batchOrders:[{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}],recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"batchOrders",type:"LIST",required:"yes",description:"Order list, supporting up to 5 orders, with Order objects referencing transactions to place orders"},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp, unit: millisecond"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Order",key:"key1",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"type",type:"string",required:"yes",description:"order type LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"yes",description:"buying and selling direction SELL, BUY"},{name:"positionSide",type:"string",required:"no",description:"Position direction, and only LONG or SHORT can be selected, the default is LONG"},{name:"price",type:"float64",required:"no",description:"Price"},{name:"quantity",type:"float64",required:"no",description:"Original quantity, only support units by COIN not U$: quantity=U$/price"},{name:"stopPrice",type:"float64",required:"no",description:"Trigger price, only required for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp, unit: millisecond"},{name:"clientOrderID",type:"string",required:"no",description:"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderID"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"},{name:"timeInForce",type:"string",required:"no",description:"Time in Force, currently supports PostOnly, GTC, IOC, and FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"side",type:"string",description:"buying and selling direction"},{name:"type",type:"string",description:"order type"},{name:"positionSide",type:"string",description:"position side"},{name:"orderId",type:"int64",description:"Order ID"},{name:"clientOrderID",type:"string",required:"no",description:"Customized order ID for users"}]}]}]},"/jWt":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("6wHN").keys(),r=[],o=0;o如果未發送startTime 和 endTime ,默認返回最新的K線數據"},{type:"html",text:"
  • 如果發送 startTime 和 endTime ,默認返回截止 endTime 的最新的K線數據
  • "},{type:"html",text:"
  • 如果發送 startTime 但不發送 endTime ,默認返回 startTime 開始的最新的K線數據
  • "},{type:"html",text:"
  • 如果不發送 startTime 但發送 endTime ,默認返回截止 endTime 最新的K線數據
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/market/kline",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",interval:"",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"interval",type:"string",required:"是",description:"時間間隔,參考字段說明"},{name:"startTime",type:"int64",required:"否",description:"開始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int64",required:"否",description:"默認值:500 最大值:1440"}]},{type:"Response",key:"response",data:[{name:"klines",type:"array",description:"kline數組"}]},{type:"kline數組內元素順序[下標]",key:"key5",data:[{name:"0",type:"",description:"K線開盤時間"},{name:"1",type:"",description:"開盤價"},{name:"2",type:"",description:"最高價"},{name:"3",type:"",description:"最低價"},{name:"4",type:"",description:"收盤價"},{name:"5",type:"",description:"成交價"},{name:"6",type:"",description:"K線收盤時間"},{name:"7",type:"",description:"成交額"}]},{type:"interval",key:"key12",data:[{name:"1m",description:"一分鐘K線"},{name:"3m",description:"三分鐘K線"},{name:"5m",description:"五分鐘K線"},{name:"15m",description:"十五分鐘K線"},{name:"30m",description:"三十分鐘K線"},{name:"1h",description:"一小時K線"},{name:"2h",description:"两小時K線"},{name:"4h",description:"四小時K線"},{name:"6h",description:"六小時K線"},{name:"8h",description:"八小時K線"},{name:"12h",description:"12小時K線"},{name:"1d",description:"1日K線"},{name:"3d",description:"3日K線"},{name:"1w",description:"週K線"},{name:"1M",description:"月K線"}]}]}]},"/nlw":function(e,t,n){var i={"./01_get_contract_allPosition.json":"ttu5","./02_get_contract_allOrders.json":"RhU9","./03_get_contract_balance.json":"n0S/"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="/nlw"},"/s4V":function(e,t){e.exports=[{type:"hash",text:"Subscribe Market Depth Data"},{type:"normal",text:"Subscribe to the push of a certain trading pair's market depth data; this topic sends the latest market depth as a snapshot. Snapshots are sent at a frequency of once every 1 second. "},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 market.depth.$Symbol.$Step.$Level,比如market.depth.BTC-USDT.step0.level5"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"level",type:"string",required:"yes",description:"Depth level, such as level5,level10,level20,level50,level100"},{name:"level",type:"string",required:"yes",description:"Depth level, such as level5,level10,level20,level50,level100"}]},{type:"step",key:"key1",data:[{name:"step0",type:"",description:"Depth data will not be merged."},{name:"step1",type:"",description:"Multiply the minimum precision of the price by 10 to merge the depth data"},{name:"step2",type:"",description:"Multiply the minimum precision of the price by 100 to merge the depth data"},{name:"step3",type:"",description:"Multiply the minimum precision of the price by 1,000 to merge the depth data"},{name:"step4",type:"",description:"Multiply the minimum precision of the price by 10,000 to merge the depth data"},{name:"step5",type:"",description:"Multiply the minimum precision of the price by 100,000 to merge the depth data"}]},{type:"level",key:"key2",data:[{name:"level5",type:"",description:"level 5"},{name:"level10",type:"",description:"level 10"},{name:"level20",type:"",description:"level 20"},{name:"level50",type:"",description:"level 50"},{name:"level100",type:"",description:"level 100"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"dataType",type:"",description:"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5"},{name:"data",type:"",description:"Push Data"},{name:"asks",type:"",description:"Sell side depth"},{name:"bids",type:"",description:"Buy side depth"},{name:"p",type:"",description:"price"},{name:"v",type:"",description:"volume"}]}]}]},"/sx7":function(e,t){e.exports=[{type:"hash",text:"Common Error Codes"},{type:"html",text:"

    Types:

    "},{type:"html",text:"
  • 4XX error codes are used to indicate wrong request content, behavior, format.
  • "},{type:"html",text:"
  • 5XX error codes are used to indicate problems with the Bingx service.
  • "},{type:"html",text:"

    Common business error codes:

    "},{type:"html",text:"
  • 100001 - signature verification failed#
  • "},{type:"html",text:"
  • 100202 - Insufficient balance
  • "},{type:"html",text:"
  • 100400 - Invalid parameter
  • "},{type:"html",text:"
  • 100440 - Order price deviates greatly from the market price
  • "},{type:"html",text:"
  • 100500 - We had a problem with our server
  • "},{type:"html",text:"
  • 100503 - Server busy
  • "},{type:"html",text:"

    Notes:

    "},{type:"html",text:"
  • If it fails, there will be an error description included in the response body.
  • "},{type:"html",text:"
  • Errors may be thrown from every interface.
  • "}]},"/vH4":function(e,t){},"/xkA":function(e,t){e.exports=[{type:"hash",text:"訂單更新推送"},{type:"normal",text:"當有新訂單創建、訂單有新成交或者新的狀態變化時會推送此類事件 事件類型統一為 ORDER_TRADE_UPDATE "},{type:"normal",text:"訂單方向",children:[{type:"normal",text:"BUY 買入"},{type:"normal",text:"SELL 賣出"}]},{type:"normal",text:"訂單類型",children:[{type:"normal",text:"MARKET 市價單"},{type:"normal",text:"LIMIT 限價單"},{type:"normal",text:"STOP 止損單"},{type:"normal",text:"TAKE_PROFIT 止盈單"},{type:"normal",text:"LIQUIDATION 強平單"}]},{type:"normal",text:"本次事件的具體執行類型",children:[{type:"normal",text:"NEW"},{type:"normal",text:"CANCELED 已撤"},{type:"normal",text:"CALCULATED 訂單ADL或爆倉 "},{type:"normal",text:"EXPIRED 訂單失效 "},{type:"normal",text:"TRADE 交易 "}]},{type:"normal",text:"訂單狀態",children:[{type:"normal",text:"NEW"},{type:"normal",text:"PARTIALLY_FILLED"},{type:"normal",text:"FILLED"},{type:"normal",text:"CANCELED "},{type:"normal",text:"EXPIRED "}]},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件類型:ORDER_TRADE_UPDATE"},{name:"E",type:"",description:"事件時間:1676603102163"},{name:"o",type:"obj",description:"訂單<對象>"}]},{type:"o",key:"common",data:[{name:"s",type:"",description:"交易對:LINK-USDT"},{name:"c",type:"",description:"客戶端自定訂單ID"},{name:"i",type:"",description:"訂單ID:1627970445070303232"},{name:"S",type:"",description:"訂單方向:SELL"},{name:"o",type:"",description:"訂單類型:MARKET"},{name:"q",type:"",description:"訂單委託數量:5.00000000"},{name:"p",type:"",description:"訂單委託價格:7.82700000"},{name:"ap",type:"",description:"訂單平均價格:7.82690000"},{name:"x",type:"",description:"本次事件的具體執行類型:TRADE"},{name:"X",type:"",description:"訂單的當前狀態:FILLED"},{name:"N",type:"",description:"手續費資產類型:USDT"},{name:"n",type:"",description:"手續費:-0.01369708"},{name:"T",type:"",description:"成交時間:1676973375149"},{name:"wt",type:"",description:"觸發價類型:MARK_PRICE 標記價格,CONTRACT_PRICE 最新價格,INDEX_PRICE 指數價格"},{name:"ps",type:"",description:"持倉方向:LONG or SHORT"},{name:"rp",type:"",description:"該交易實現盈虧: 0.00000000"},{name:"z",type:"",description:"訂單累計已成交量: 0.00000000"}]}]}]},"0EGA":function(e,t){e.exports=[{type:"hash",text:"Perpetual Swap Positions"},{type:"normal",text:"Retrieve information on users' positions of Perpetual Swap."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getPositions"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getPositions",protocol:"https",method:"POST",payload:{apiKey:"",currency:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"apiKey",type:"string",required:"yes",description:""},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"},{name:"symbol",type:"string",description:"Trading pair symbol"},{name:"currency",type:"string",description:"Asset Type"},{name:"positionId",type:"string",description:"Position ID"},{name:"positionSide",type:"string",description:"position direction LONG/SHORT long/short"},{name:"marginMode",type:"string",description:"margin mode Cross/Isolated"},{name:"volume",type:"float64",description:"Position Amount"},{name:"availableVolume",type:"float64",description:"AvailableAmt Amount"},{name:"unrealisedPNL",type:"float64",description:"unrealized profit and loss"},{name:"realisedPNL",type:"float64",description:"realized profit and loss"},{name:"margin",type:"float64",description:"Margin"},{name:"avgPrice",type:"float64",description:"Average opening price"},{name:"liquidatedPrice",type:"float64",description:"Estimated Liquidation Price"},{name:"leverage",type:"float64",description:"leverage"}]}]}]},"0FzS":function(e,t){e.exports=[{type:"hash",text:"查询当前委托订单"},{type:"normal",text:"查询一段时间周期内账户下处于当前委托状态的订单详情。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/pendingOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/pendingOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:""},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"}]},{type:"Response",key:"response",data:[{name:"entrustTm",type:"string",description:"订单委托时间"},{name:"side",type:"string",description:"交易方向(Bid/Ask 买/卖)"},{name:"tradeType",type:"string",description:"委托类型(Market/Limit 市价/限价)"},{name:"action",type:"string",description:"Open/Close 开仓/平仓"},{name:"entrustPrice",type:"float64",description:"委托价格"},{name:"entrustVolume",type:"float64",description:"委托数量"},{name:"avgFilledPrice",type:"float64",description:"成交均价"},{name:"filledVolume",type:"float64",description:"成交数量"},{name:"orderId",type:"string",description:"订单号"},{name:"profit",type:"float64",description:"盈亏"},{name:"commission",type:"float64",description:"手续费"},{name:"updateTm",type:"string",description:"订单更新时间"}]}]}]},"0IKX":function(e,t){e.exports=[{type:"hash",text:"獲取合約未平倉數"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/openInterest"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/openInterest",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"}]},{type:"Response",key:"response",data:[{name:"openInterest",type:"string",description:"持倉數量"},{name:"symbol",type:"string",description:"合約名稱"},{name:"time",type:"int64",description:"撮合引擎時間"}]}]}]},"0L/C":function(e,t){e.exports=[{type:"hash",text:"批量下单"},{type:"normal",text:"当前账户在指定symbol合约上进行批量下单操作。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/batchOrders"},{type:"html",text:"
  • 具体订单条件规则,与普通下单一致
  • "},{type:"html",text:"
  • batchOrders是数组,以Python 举例
  • "},{type:"code",text:'{"batchOrders" : "[{\\"symbol\\": \\"ETH-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 1},{\\"symbol\\": \\"BTC-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 0.001}]"}'},{type:"html",text:"
  • 真实发出去的http url请求参数参考如下
  • "},{type:"code",text:'https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=[{"symbol": "ETH-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 1},{"symbol": "BTC-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 0.001}]×tamp=1691312510782&signature=a7bd3f4ebf3321c1e3c9d2305584e0f28a70766340b79cca29f0a8428d5bbd7f'},{type:"warning",text:"批量下单采取并发处理,不保证订单撮合顺序"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/batchOrders",protocol:"https",method:"POST",payload:{batchOrders:[{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}],recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"batchOrders",type:"LIST",required:"是",description:"订单列表,最多支持5个订单,Order对象参考交易下单"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Order",key:"key1",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"type",type:"string",required:"是",description:"订单类型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"买卖方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG"},{name:"price",type:"float64",required:"否",description:"委托价格"},{name:"quantity",type:"float64",required:"否",description:"下单数量,合约数量,当前只支持以币计的合约数,暂不支持输入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,TRIGGER_LIMIT,TRIGGER_MARKET, STOP, TAKE_PROFIT 需要此参数"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"orderId",type:"int64",description:"订单号"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},"0RsY":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("2LhZ").keys(),r=[],o=0;oHTTP請求

    "},{type:"code",text:"POST/GET api/v1/common/server/time"},{type:"html",text:"

    參數: 無

    "},{type:"demo",api:{uri:"/api/v1/common/server/time",protocol:"https",method:"GET",payload:{}},params:[{type:"Response",key:"response",data:[{name:"code",type:"Int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"},{name:"currentTime",type:"Int64",description:"係統當前時間,單位毫秒"}]}]}]},"1A8u":function(e,t){e.exports=[{type:"hash",text:"Query historical transaction orders"},{type:"normal",text:"Obtain the transaction history of a certain transaction pair"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/allFillOrders"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allFillOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,tradingUnit:"",startTs:0,endTs:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"no",description:"Only return this orderID and subsequent orders, default to returning the most recent order"},{name:"symbol",type:"string",required:"yes",description:"trading pair, for example: BTC-USDT"},{name:"tradingUnit",type:"string",required:"yes",description:"Trading unit, optional values: COIN, CONT directly represent assets such as BTC and ETH, and CONT represents the number of contract sheets"},{name:"startTs",type:"int64",required:"yes",description:"Starting timestamp in milliseconds"},{name:"endTs",type:"int64",required:"yes",description:"End timestamp in milliseconds"},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp, unit: millisecond"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"filledTm",type:"string",description:"Match the transaction time in the format of 2006-01-02T15:04:05.999Z"},{name:"volume",type:"string",description:"Transaction quantity"},{name:"price",type:"string",description:"Transaction price"},{name:"amount",type:"string",description:"Transaction amount"},{name:"commission",type:"string",description:"commission"},{name:"currency",type:"string",description:"Asset unit, usually USDT"},{name:"orderId",type:"string",description:"order id"},{name:"liquidatedPrice",type:"string",description:"Estimating strong parity, triggering the estimated strong parity at the time of strong parity, only available for strong parity orders"},{name:"liquidatedMarginRatio",type:"string",description:"Strong average margin rate, which triggers the strong average margin rate at the time of strong average, only available for strong average orders"},{name:"filledTime",type:"string",description:"Match the transaction time in the format of 2006-01-02T15:04:05.999+0800"}]}]}]},"1F8u":function(e,t,n){var i={"./01_server_url.json":"wpxO","./02_server_apply.json":"zCSH","./03_error_code.json":"Q+zo"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="1F8u"},"1MWL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("SxTR").keys(),r=[],o=0;o請求交互說明"},{type:"html",text:"
  • 請求參數:根據接口請求參數規定進行參數封装。
  • "},{type:"html",text:"
  • 提交請求參數:将封装好的請求參數通過POST/GET/DELETE等方式提交至服務器。
  • "},{type:"html",text:"
  • 服務器響應:服務器首先對用戶請求數據進行參數安全校驗,通過校驗後根據業務邏輯将響應數據以JSON格式返回給用戶。
  • "},{type:"html",text:"
  • 數據處理:對服務器響應數據進行處理。
  • "},{type:"html",text:"成功"},{type:"html",text:"
  • HTTP狀態碼200表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。
  • "}]},"2qJV":function(e,t){e.exports=[{type:"hash",text:"查詢深度信息"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/market/depth"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/market/depth",protocol:"https",method:"GET",payload:{symbol:"",limit:100}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"limit",type:"int",required:"否",description:"默認20,最多100"}]},{type:"Response",key:"response",data:[{name:"bids",type:"array",description:"第一個元素價格,第二個元素數量"},{name:"asks",type:"array",description:"第一個元素價格,第二個元素數量"},{name:"ts",type:"int",description:"深度時間戳,單位毫秒"}]}]}]},"2uFj":function(e,t,n){"use strict";var i=n("bOdI"),r=n.n(i),o=n("e5CW"),s=n("mvHQ"),a=n.n(s),p=n("W/J5"),d=n("otUP"),c=n("Vl00"),y=n("ZZch"),m=n.n(y),l=n("F5V+"),u=n("pk3M"),h=n("Ob2m"),g=n("L6ds"),_=n("edi2"),T=n.n(_),f=n("C8jp"),x=n("wX2Q"),b=n("Bo+j"),w={path:"market.html",name:"Websocket Market Data",content:x.Data},q={path:"account.html",name:"Websocket Account Data",content:b.Data},v={module:"swap",path:"/swap/socket",name:"Socket API Reference",children:[{path:"",name:"Introduction",content:JSON.parse(a()(f.Data).replaceAll("wss://open-api-swap.bingx.com/swap-market","wss://open-ws-swap.bingbon.pro/ws"))},w,q]},k={module:"swap",path:"/swap/changelog",name:"Change log",content:p.Data},S={module:"swap",path:"/swap/trade-api.html",name:"Trade Interface",content:h.Data},D={module:"swap",path:"/swap/authentication.html",name:"Authentication",content:l.Data},O={module:"swap",path:"/swap/base-info.html",name:"Basic Information",content:c.Data};O.content=O.content.concat(T.a);var A={module:"swap",path:"/swap/account-api.html",name:"Account Interface",content:u.Data},j=a()(d.Data).replaceAll("/openApi/user/auth/userDataStream","/api/v1/user/auth/userDataStream");j=j.replaceAll("open-api.bingx.com","api-swap-rest.bingbon.pro");var E={module:"swap",path:"/swap/listen-key.html",name:"Listen Key",content:JSON.parse(j)},P={module:"swap",path:"/swap/market-api.html",name:"Market Interface",content:g.Data},I=[m.a,k,D,O,P,A,S,E,v],R=n("/jWt"),U=n("XWMS"),C=n("ohLs"),M=n("BJ4d"),L={path:"market.html",name:"Websocket Market Data",content:U.Data},K={path:"account.html",name:"Websocket Account Data",content:C.Data},N=[{path:"",name:"Introduction",content:M.Data},L,K],B=n("sHXP"),G=n("cId4"),z=n("puzn"),H=n.n(z),F=n("W+Bc"),W=n("S9BK"),Q=a()(d.Data);Q=(Q=Q.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var V={module:"common",path:"/common/changelog",name:"Change log",content:p.Data},Y={module:"common",path:"/common/sub-account",name:"sub-account",content:W.Data},Z={module:"common",path:"/common/authentication.html",name:"Authentication",content:R.Data},X={module:"common",path:"/common/base-info.html",name:"Basic Information",content:B.Data},J={module:"common",path:"/common/account-api.html",name:"User Universal Transfer Interface",content:G.Data},$={module:"common",path:"/common/permission-interface.html",name:"permission interface",content:F.Data},ee={module:"common",path:"/common/authentication-interface.html",name:"Authentication Interface",content:JSON.parse(Q)},te=[H.a,V,X,Z,$,J,Y,ee],ne=n("y1S6"),ie=n.n(ne),re=n("2ggw"),oe=n("BbCp"),se={module:"spot",path:"/spot/socket",name:"Socket API Reference",children:N},ae={module:"spot",path:"/spot/changelog",name:"Change log",content:p.Data},pe={module:"spot",path:"/spot/trade-api.html",name:"Trade Interface",content:re.Data},de={module:"spot",path:"/spot/authentication.html",name:"Authentication",content:R.Data},ce={module:"spot",path:"/spot/base-info.html",name:"Basic Information",content:B.Data},ye={module:"spot",path:"/spot/account-api.html",name:"User Universal Transfer Interface",content:G.Data},me={module:"spot",path:"/spot/market-api.html",name:"Market Interface",content:oe.Data},le={module:"spot",path:"/spot/listen-key.html",name:"Listen Key",content:d.Data},ue=[ie.a,ae,ce,de,pe,me,ye,le,se],he=n("CSFx"),ge=n("HGsQ"),_e=n.n(ge),Te={module:"standard",path:"/standard/socket",name:"Socket API Reference",children:N},fe={module:"standard",path:"/standard/changelog",name:"Change log",content:p.Data},xe={module:"standard",path:"/standard/contract-interface.html",name:"Standard Contract Interface",content:he.Data},be={module:"standard",path:"/standard/authentication.html",name:"Authentication",content:R.Data},we={module:"standard",path:"/standard/base-info.html",name:"Basic Information",content:B.Data},qe=[_e.a,fe,we,be,xe,Te],ve=n("yse3"),ke=n("5ECq"),Se=n("vVGz"),De=n("2KwY"),Oe=n("goAe"),Ae=n.n(Oe),je=n("5MML"),Ee=n.n(je),Pe=n("Q3ZN"),Ie=n("336Z"),Re={path:"market.html",name:"Websocket Market Data",content:Pe.Data},Ue={path:"account.html",name:"Websocket Account Data",content:Ie.Data},Ce=[{path:"",name:"Introduction",content:f.Data},Re,Ue],Me=a()(d.Data).replaceAll("/market/","/swap-market?");Me=(Me=(Me=(Me=Me.replaceAll("/market","/swap-market")).replaceAll("open-api-ws.bingx.com","open-api-swap.bingx.com")).replaceAll("/swap-market?","/swap-market?listenKey=")).replaceAll("wss://open-api-swap.bingx.com/swap-market?listenKey=","wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Le,Ke,Ne={module:"swapV2",path:"/swapV2/socket",name:"Socket API Reference",children:Ce},Be={module:"swapV2",path:"/swapV2/changelog",name:"Change log",content:p.Data},Ge={module:"swapV2",path:"/swapV2/trade-api.html",name:"Trade Interface",content:ke.Data},ze={module:"swapV2",path:"/swapV2/authentication.html",name:"Authentication",content:R.Data},He={module:"swapV2",path:"/swapV2/base-info.html",name:"Basic Information",content:De.Data},Fe={module:"swapV2",path:"/swapV2/account-api.html",name:"Account Interface",content:ve.Data},We={module:"swapV2",path:"/swapV2/listen-key.html",name:"Listen Key",content:JSON.parse(Me)},Qe={module:"swapV2",path:"/swapV2/market-api.html",name:"Market Interface",content:Se.Data},Ve=[Ae.a,Be,Ee.a,ze,He,Qe,Fe,Ge,We,Ne],Ye=(Le={},r()(Le,o.e,"Perpetual Futures API Reference V2"),r()(Le,o.b,"Spot"),r()(Le,o.c,"Standard Contract"),r()(Le,o.a,"Account & Wallet"),Le),Ze=(Ke={},r()(Ke,o.d,I),r()(Ke,o.e,Ve),r()(Ke,o.a,te),r()(Ke,o.b,ue),r()(Ke,o.c,qe),Ke),Xe=n("Ygbz"),Je=n("HD5E"),$e=n("pPs/"),et=n("Agv/"),tt=n.n(et),nt=n("P462"),it=n("o7Jb"),rt=n("B9Yr"),ot=n("bShK"),st=n("JLZd"),at=n.n(st),pt=n("R86N"),dt=n("Vcuj"),ct=n("UJ2F"),yt={path:"market.html",name:"Websocket 行情推送",content:dt.Data},mt={path:"account.html",name:"Websocket 账户信息推送",content:ct.Data},lt={module:"swap",path:"/swap/socket",name:"Socket 文档",children:[{path:"",name:"介绍",content:JSON.parse(a()(pt.Data).replaceAll("wss://open-api-swap.bingx.com/swap-market","wss://open-ws-swap.bingbon.pro/ws"))},yt,mt]},ut={module:"swap",path:"/swap/changelog",name:"变更日志",content:Xe.Data},ht={module:"swap",path:"/swap/trade-api.html",name:"交易接口",content:rt.Data},gt={module:"swap",path:"/swap/authentication.html",name:"签名认证",content:nt.Data},_t={module:"swap",path:"/swap/base-info.html",name:"基础信息",content:$e.Data};_t.content=_t.content.concat(at.a);var Tt={module:"swap",path:"/swap/account-api.html",name:"账户接口",content:it.Data},ft=a()(Je.Data).replaceAll("/openApi/user/auth/userDataStream","/api/v1/user/auth/userDataStream");ft=ft.replaceAll("open-api.bingx.com","api-swap-rest.bingbon.pro");var xt={module:"swap",path:"/swap/listen-key.html",name:"Listen Key",content:JSON.parse(ft)},bt={module:"swap",path:"/swap/market-api.html",name:"行情接口",content:ot.Data},wt=[tt.a,ut,gt,_t,bt,Tt,ht,xt,lt],qt=n("vVqC"),vt=n("zOyK"),kt=n("JNoc"),St=n("1MWL"),Dt={path:"market.html",name:"Websocket 行情推送",content:vt.Data},Ot={path:"account.html",name:"Websocket 账户信息推送",content:kt.Data},At=[{path:"",name:"介绍",content:St.Data},Dt,Ot],jt=n("yr2O"),Et=n("vfcf"),Pt=n("L7p1"),It=n.n(Pt),Rt=n("aR+m"),Ut=n("QCBJ"),Ct=a()(Je.Data);Ct=(Ct=Ct.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Mt={module:"common",path:"/common/changelog",name:"变更日志",content:Xe.Data},Lt={module:"common",path:"/common/sub-account",name:"子账户",content:Ut.Data},Kt={module:"common",path:"/common/authentication.html",name:"签名认证",content:qt.Data},Nt={module:"common",path:"/common/base-info.html",name:"基础信息",content:jt.Data},Bt={module:"common",path:"/common/account-api.html",name:"用户划转和充值和提币接口",content:Et.Data},Gt={module:"common",path:"/common/permission-interface.html",name:"权限接口",content:Rt.Data},zt={module:"common",path:"/common/authentication-interface.html",name:"鉴权服务",content:JSON.parse(Ct)},Ht=[It.a,Mt,Nt,Kt,Gt,Bt,Lt,zt],Ft=n("xTSi"),Wt=n.n(Ft),Qt=n("UdzQ"),Vt=n("tcKi"),Yt={module:"spot",path:"/spot/socket",name:"Socket 文档",children:At},Zt={module:"spot",path:"/spot/changelog",name:"变更日志",content:Xe.Data},Xt={module:"spot",path:"/spot/trade-api.html",name:"交易接口",content:Qt.Data},Jt={module:"spot",path:"/spot/authentication.html",name:"签名认证",content:qt.Data},$t={module:"spot",path:"/spot/base-info.html",name:"基础信息",content:jt.Data},en={module:"spot",path:"/spot/account-api.html",name:"用户划转和充值和提币接口",content:Et.Data},tn={module:"spot",path:"/spot/market-api.html",name:"行情接口",content:Vt.Data},nn={module:"spot",path:"/spot/listen-key.html",name:"Listen Key",content:Je.Data},rn=[Wt.a,Zt,$t,Jt,Xt,tn,en,nn,Yt],on=n("0RsY"),sn=n("uXeI"),an=n.n(sn),pn={module:"standard",path:"/standard/socket",name:"Socket 文档",children:At},dn={module:"standard",path:"/standard/changelog",name:"变更日志",content:Xe.Data},cn={module:"standard",path:"/standard/contract-interface.html",name:"标准合约接口",content:on.Data},yn={module:"standard",path:"/standard/authentication.html",name:"签名认证",content:qt.Data},mn={module:"standard",path:"/standard/base-info.html",name:"基础信息",content:jt.Data},ln=[an.a,dn,mn,yn,cn,pn],un=n("NoWp"),hn=n("UNGp"),gn=n("ftyM"),_n=n("OKNr"),Tn=n("IEXP"),fn=n.n(Tn),xn=n("Tp48"),bn=n.n(xn),wn=n("+hzZ"),qn=n("K9aK"),vn={path:"market.html",name:"Websocket 行情推送",content:wn.Data},kn={path:"account.html",name:"Websocket 账户信息推送",content:qn.Data},Sn=[{path:"",name:"介绍",content:pt.Data},vn,kn],Dn=a()(Je.Data).replaceAll("/market/","/swap-market?");Dn=(Dn=(Dn=(Dn=Dn.replaceAll("/market","/swap-market")).replaceAll("open-api-ws.bingx.com","open-api-swap.bingx.com")).replaceAll("/swap-market?","/swap-market?listenKey=")).replaceAll("wss://open-api-swap.bingx.com/swap-market?listenKey=","wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var On,An,jn={module:"swapV2",path:"/swapV2/socket",name:"Socket 文档",children:Sn},En={module:"swapV2",path:"/swapV2/changelog",name:"变更日志",content:Xe.Data},Pn={module:"swapV2",path:"/swapV2/trade-api.html",name:"交易接口",content:hn.Data},In={module:"swapV2",path:"/swapV2/authentication.html",name:"签名认证",content:qt.Data},Rn={module:"swapV2",path:"/swapV2/base-info.html",name:"基础信息",content:_n.Data},Un={module:"swapV2",path:"/swapV2/account-api.html",name:"账户接口",content:un.Data},Cn={module:"swapV2",path:"/swapV2/listen-key.html",name:"Listen Key",content:JSON.parse(Dn)},Mn={module:"swapV2",path:"/swapV2/market-api.html",name:"行情接口",content:gn.Data},Ln=[fn.a,En,bn.a,In,Rn,Mn,Un,Pn,Cn,jn],Kn=(On={},r()(On,o.e,"USDT本位永续合约V2"),r()(On,o.b,"现货"),r()(On,o.c,"标准合约"),r()(On,o.a,"账户与钱包"),On),Nn=(An={},r()(An,o.d,wt),r()(An,o.e,Ln),r()(An,o.a,Ht),r()(An,o.b,rn),r()(An,o.c,ln),An),Bn=n("X9kl"),Gn=n("R9OT"),zn=n("hsbI"),Hn=n("JXoq"),Fn=n.n(Hn),Wn=n("8gCM"),Qn=n("NGON"),Vn=n("L4P3"),Yn=n("mROX"),Zn=n("14TU"),Xn=n.n(Zn),Jn=n("+hJF"),$n=n("MRTk"),ei=n("TcGk"),ti={path:"market.html",name:"Websocket 行情推送",content:$n.Data},ni={path:"account.html",name:"Websocket 賬戶信息推送",content:ei.Data},ii={module:"swap",path:"/swap/socket",name:"Socket 文檔",children:[{path:"",name:"介紹",content:JSON.parse(a()(Jn.Data).replaceAll("wss://open-api-swap.bingx.com/swap-market","wss://open-ws-swap.bingbon.pro/ws"))},ti,ni]},ri={module:"swap",path:"/swap/changelog",name:"變更日誌",content:Bn.Data},oi={module:"swap",path:"/swap/trade-api.html",name:"交易接口",content:Vn.Data},si={module:"swap",path:"/swap/authentication.html",name:"簽名認證",content:Wn.Data},ai={module:"swap",path:"/swap/base-info.html",name:"基礎信息",content:zn.Data};ai.content=ai.content.concat(Xn.a);var pi={module:"swap",path:"/swap/account-api.html",name:"賬戶接口",content:Qn.Data},di=a()(Gn.Data).replaceAll("/openApi/user/auth/userDataStream","/api/v1/user/auth/userDataStream");di=di.replaceAll("open-api.bingx.com","api-swap-rest.bingbon.pro");var ci={module:"swap",path:"/swap/listen-key.html",name:"Listen Key",content:JSON.parse(di)},yi={module:"swap",path:"/swap/market-api.html",name:"行情接口",content:Yn.Data},mi=[Fn.a,ri,si,ai,yi,pi,oi,ci,ii],li=n("yjnE"),ui=n("FZvV"),hi=n("KsRT"),gi=n("kq5u"),_i={path:"market.html",name:"Websocket 行情推送",content:ui.Data},Ti={path:"account.html",name:"Websocket 賬戶信息推送",content:hi.Data},fi=[{path:"",name:"介紹",content:gi.Data},_i,Ti],xi=n("qM4I"),bi=n("LuFD"),wi=n("+Vb3"),qi=n.n(wi),vi=n("8e1X"),ki=n("b9rl"),Si=a()(Gn.Data);Si=(Si=Si.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Di={module:"common",path:"/common/sub-account",name:"子賬戶",content:ki.Data},Oi={module:"common",path:"/common/changelog",name:"變更日誌",content:Bn.Data},Ai={module:"common",path:"/common/authentication.html",name:"簽名認證",content:li.Data},ji={module:"common",path:"/common/base-info.html",name:"基礎信息",content:xi.Data},Ei={module:"common",path:"/common/account-api.html",name:"用戶劃轉和充值和提幣接口",content:bi.Data},Pi={module:"common",path:"/common/permission-interface.html",name:"權限接口",content:vi.Data},Ii={module:"common",path:"/common/authentication-interface.html",name:"鑒權服務",content:JSON.parse(Si)},Ri=[qi.a,Oi,ji,Ai,Pi,Ei,Di,Ii],Ui=n("z74M"),Ci=n.n(Ui),Mi=n("tksP"),Li=n("9GqO"),Ki={module:"spot",path:"/spot/socket",name:"Socket 文檔",children:fi},Ni={module:"spot",path:"/spot/changelog",name:"變更日誌",content:Bn.Data},Bi={module:"spot",path:"/spot/trade-api.html",name:"交易接口",content:Mi.Data},Gi={module:"spot",path:"/spot/authentication.html",name:"簽名認證",content:li.Data},zi={module:"spot",path:"/spot/base-info.html",name:"基礎信息",content:xi.Data},Hi={module:"spot",path:"/spot/account-api.html",name:"用戶劃轉和充值和提幣接口",content:bi.Data},Fi={module:"spot",path:"/spot/market-api.html",name:"行情接口",content:Li.Data},Wi={module:"spot",path:"/spot/listen-key.html",name:"Listen Key",content:Gn.Data},Qi=[Ci.a,Ni,zi,Gi,Bi,Fi,Hi,Wi,Ki],Vi=n("wbzr"),Yi=n("okpR"),Zi=n.n(Yi),Xi={module:"standard",path:"/standard/socket",name:"Socket 文檔",children:fi},Ji={module:"standard",path:"/standard/changelog",name:"變更日誌",content:Bn.Data},$i={module:"standard",path:"/standard/contract-interface.html",name:"標准合約接口",content:Vi.Data},er={module:"standard",path:"/standard/authentication.html",name:"簽名認證",content:li.Data},tr={module:"standard",path:"/standard/base-info.html",name:"基礎信息",content:xi.Data},nr=[Zi.a,Ji,tr,er,$i,Xi],ir=n("KJg6"),rr=n("2xjp"),or=n("ByCb"),sr=n("2/Td"),ar=n("5GrR"),pr=n.n(ar),dr=n("n5PB"),cr=n.n(dr),yr=n("B7jJ"),mr=n("3Fwp"),lr={path:"market.html",name:"Websocket 行情推送",content:yr.Data},ur={path:"account.html",name:"Websocket 賬戶信息推送",content:mr.Data},hr=[{path:"",name:"介紹",content:Jn.Data},lr,ur],gr=a()(Gn.Data).replaceAll("/market/","/swap-market?");gr=(gr=(gr=(gr=gr.replaceAll("/market","/swap-market")).replaceAll("open-api-ws.bingx.com","open-api-swap.bingx.com")).replaceAll("/swap-market?","/swap-market?listenKey=")).replaceAll("wss://open-api-swap.bingx.com/swap-market?listenKey=","wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var _r,Tr,fr,xr,br={module:"swapV2",path:"/swapV2/socket",name:"Socket 文檔",children:hr},wr={module:"swapV2",path:"/swapV2/changelog",name:"變更日誌",content:Bn.Data},qr={module:"swapV2",path:"/swapV2/trade-api.html",name:"交易接口",content:rr.Data},vr={module:"swapV2",path:"/swapV2/authentication.html",name:"簽名認證",content:li.Data},kr={module:"swapV2",path:"/swapV2/base-info.html",name:"基礎信息",content:sr.Data},Sr={module:"swapV2",path:"/swapV2/account-api.html",name:"賬戶接口",content:ir.Data},Dr={module:"swapV2",path:"/swapV2/listen-key.html",name:"Listen Key",content:JSON.parse(gr)},Or={module:"swapV2",path:"/swapV2/market-api.html",name:"行情接口",content:or.Data},Ar=[pr.a,wr,cr.a,vr,kr,Or,Sr,qr,Dr,br],jr=(_r={},r()(_r,o.e,"USDT本位永續合約V2"),r()(_r,o.b,"現貨"),r()(_r,o.c,"標準合約"),r()(_r,o.a,"賬戶與錢包"),_r),Er=(Tr={},r()(Tr,o.d,mi),r()(Tr,o.e,Ar),r()(Tr,o.a,Ri),r()(Tr,o.b,Qi),r()(Tr,o.c,nr),Tr),Pr=n("0xDb");n.d(t,"a",function(){return Mr}),n.d(t,"b",function(){return Lr});var Ir=Ye,Rr=Ze,Ur=(fr={},r()(fr,Pr.c.en,Ye),r()(fr,Pr.c.zh,Kn),r()(fr,Pr.c.tw,jr),fr),Cr=(xr={},r()(xr,Pr.c.en,Ze),r()(xr,Pr.c.zh,Nn),r()(xr,Pr.c.tw,Er),xr),Mr=function(e){return Ur[e]||Ir},Lr=function(e){return Cr[e]||Rr}},"2xjp":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Rqf2").keys(),r=[],o=0;o@kline_ E.g.BTC-USDT@kline_1min"},{type:"normal",text:"Subscription Example",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"BTC-USDT@kline_1m"}'},{type:"html",text:"
  • Currently, only one minute of K-line data is available
  • "},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"interval",type:"string",required:"yes",description:"Reference field description, K-line type:,1min, 5min, 15min, 30min, 60min, 1day"}]},{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"The data type of the subscription, for example:BTC-USDT@kline_1min"},{name:"data",type:"",description:"Push Data"}]},{type:"data",key:"key1",data:[{name:"E",type:"",description:"event time"},{name:"K",type:"",description:"data"},{name:"e",type:"",description:"Event Type"},{name:"s",type:"",description:"trading pair"}]},{type:"K",key:"key2",data:[{name:"T",type:"",description:"The end time of this K-line"},{name:"c",type:"",description:"The last transaction price during this K-line period"},{name:"h",type:"",description:"The highest transaction price during this K-line period"},{name:"i",type:"",description:"K-line interval"},{name:"l",type:"",description:"The lowest transaction price during this K-line period"},{name:"n",type:"",description:"Number of transactions during this K-line period"},{name:"o",type:"",description:"The first transaction price during this K-line period"},{name:"q",type:"",description:"Transaction volume during this K-line period"},{name:"s",type:"",description:"trading pair"},{name:"t",type:"",description:"The starting time of this K-line"},{name:"v",type:"",description:"Trading volume during this K-line period"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"1-minute K-line"}]}]}]},"3Fwp":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("xE4z").keys(),r=[],o=0;oFor more about return error codes, please see the error code description on the homepage."},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"klineType",type:"string",required:"yes",description:"The type of K-Line (minutes, hours, weeks etc.)"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"data",type:"",description:"Push Data"},{name:"dataType",type:"",description:"Data Type"},{name:"klineInfosVo",type:"",description:"K-Line data"},{name:"close",type:"",description:"Closing Price"},{name:"high",type:"",description:"High Price"},{name:"low",type:"",description:"Low Price"},{name:"open",type:"",description:"Opening Price"},{name:"statDate",type:"",description:"Kline Date"},{name:"time",type:"",description:"The timestamp of K-Line,Unit: ms"},{name:"volume",type:"",description:"Volume"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"1 min Kline"},{name:"3min",description:"3 min Kline"},{name:"5min",description:"5 min Kline"},{name:"15min",description:"十5 min Kline"},{name:"30min",description:"30 min Kline"},{name:"1hour",description:"1-hour Kline"},{name:"2hour",description:"2-hour Kline"},{name:"4hour",description:"4-hour Kline"},{name:"6hour",description:"6-hour Kline"},{name:"8hour",description:"8-hour Kline"},{name:"12hour",description:"12-hour Kline"},{name:"1day",description:"1-Day Kline"},{name:"1week",description:"1-Week Kline"},{name:"1month",description:"1-Month Kline"}]}]}]},"3Obf":function(e,t,n){var i={"./01_executionReport.json":"H6dO","./02_ account_update.json":"bZVt"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="3Obf"},"3YFN":function(e,t){e.exports=[{type:"hash",text:"查询子账户列表"},{type:"normal",text:"查询子账户列表"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/subAccount/v1/list"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/list",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"否",description:"子账户uid"},{name:"subAccountString",type:"string",required:"否",description:"子账户用户名"},{name:"isFeeze",type:"bool",required:"否",description:"是否冻结"},{name:"page",type:"int",required:"是",description:"分页页码,启始为1"},{name:"limit",type:"int",required:"是",description:"分页大小,最大100"},{name:"timestamp",type:"long",required:"是",description:""}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子账户uid"},{name:"subAccountString",type:"string",description:"子账户用户名"},{name:"note",type:"string",description:"子账户备注信息"},{name:"freeze",type:"bool",description:"是否已经冻结"},{name:"createTime",type:"long",description:"创建时间"}]}]}]},"4/D+":function(e,t,n){var i={".":"aR+m","./":"aR+m","./01_get_account_apiRestrictions":"2ni1","./01_get_account_apiRestrictions.json":"2ni1","./index":"aR+m","./index.js":"aR+m"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4/D+"},"40ny":function(e,t){e.exports=[{type:"hash",text:"撤銷全部訂單"},{type:"normal",text:"将賬戶下處於當前委託狀態的全部訂單進行撤銷操作。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelAll"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelAll",protocol:"https",method:"POST",payload:{apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"}]}]}]},"44OD":function(e,t){e.exports=[{type:"hash",text:"权限设置"},{type:"normal",text:"",children:[{type:"normal",text:"新创建的API的默认权限是 只读。"},{type:"normal",text:"如果需要通过API进行下单交易等写操作,需要在UI修改为对应权限。"}]}]},"45yt":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\n# apt install openssl\n# apt install curl\nAPI_KEY=""\nAPI_SECRET=""\nTIMESTAMP=$((^date \'+%s\'^*1000+^date \'+%N\'^/1000000))\nPARAMETERS="PPAARRAAMMEETTEERRSS"\nHOST="HHOOSSTT"\nPROTOCOL="PPRROOTTOOCCOOLL"\nMETHOD="MMEETTHHOODD"\nAPI="AAPPII"\n\necho "API_KEY:"$API_KEY\necho "API_SECRET:"$API_SECRET\necho "PARAMETERS:"$PARAMETERS\nPARAMETERS="$PARAMETERS×tamp=$TIMESTAMP"\n\nsign=^echo -n $PARAMETERS | openssl dgst -sha256 -hmac $API_SECRET -hex^\nsign=${sign##* }\necho "sign:"$sign\nCURL="curl --location --request $METHOD --header \'X-BX-APIKEY: $API_KEY\' \'$PROTOCOL://$HOST$API?$PARAMETERS&signature=$sign\'"\necho ""\necho $CURL\necho ""\ncurl --location --request $METHOD --header "X-BX-APIKEY: $API_KEY" "$PROTOCOL://$HOST$API?$PARAMETERS&signature=$sign"\necho ""\necho ""\n'},"4AkN":function(e,t){e.exports=[{type:"hash",text:"Get Swap Open Positions"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getOpenPositions"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getOpenPositions",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"volume",type:"float64",description:"Volume of opened positions"},{name:"unit",type:"string",description:"The unit corresponding to the Volume of opened positions, CONT. - BTC, ETH, LINK, BCH, etc."}]}]}]},"4KP5":function(e,t){e.exports=[{type:"hash",text:"时间戳规范"},{type:"normal",text:"",children:[{type:"html",text:"除非另外指定,API中的所有时间戳均以毫秒为单位返回。"},{type:"html",text:"请求的时间戳必须在API服务时间的5秒内,否则请求将被视为过期并被拒绝。如果本地服务器时间和API服务器时间之间存在较大的偏差,那么我们建议您使用通过查询API服务器时间来更新http header。 "}]},{type:"html",text:"

    例子

    "},{type:"code",text:"1587091154123"}]},"4L7x":function(e,t){e.exports=[{type:"hash",text:"Subscribe the Latest Trade Detail"},{type:"normal",text:"Subscribe to the trade detail data of a trading pair"},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"The dataType is @trade E.g. BTC-USDT@trade ETH-USDT@trade"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"dataType",type:"",description:"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5"},{name:"data",type:"",description:"Push Data"},{name:"T",type:"",description:"transaction time"},{name:"s",type:"",description:"trading pair"},{name:"m",type:"",description:"Whether the buyer is a market maker. If true, this transaction is an active sell order, otherwise it is an active buy order."},{name:"p",type:"",description:"price"},{name:"v",type:"",description:"volume"}]}]}]},"4TeI":function(e,t,n){var i={"./01_get_user_balance.json":"zKw2","./02_get_user_positions.json":"uAAZ","./03_get_user_income.json":"clol"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4TeI"},"4UQG":function(e,t){e.exports=[{type:"hash",text:"Requests"},{type:"warning",text:"Root URL for REST access: https://api-swap-rest.bingbon.pro"},{type:"html",text:"All requests are HTTPS-based. The Content-Type in the request header should be set as “application/json”. "},{type:"html",text:"Request Description"},{type:"html",text:"
  • Request Parameters: Encapsulate the request parameters according to the parameter requirements of the specific endpoint request.
  • "},{type:"html",text:"
  • Submit Request Parameters: Submit the encapsulated request parameters to the server via POST/GET/DELETE, etc.
  • "},{type:"html",text:"
  • Server Response: The server first performs parameter security verification on the user request data. When the verification is completed, the response data will be returned to the user in JSON format according to the service logic.
  • "},{type:"html",text:"
  • Data Processing: Process the response data from the server.
  • "},{type:"html",text:"Success"},{type:"html",text:"
  • A successful response is indicated by HTTP status code 200 and may optionally contain a body. If the response has a body, it will be included under each resource below.
  • "}]},"4X8p":function(e,t){e.exports=[{type:"hash",text:"Order update push"},{type:"normal",text:"This type of event will be pushed when a new order is created, an order has a new deal, or a new status change. The event type is unified as ORDER_TRADE_UPDATE "},{type:"normal",text:"order direction",children:[{type:"normal",text:"BUY buy"},{type:"normal",text:"SELL sell"}]},{type:"normal",text:"Order Type",children:[{type:"normal",text:"MARKET market order"},{type:"normal",text:"LIMIT limit order"},{type:"normal",text:"STOP stop loss order"},{type:"normal",text:"TAKE_PROFIT take profit order"},{type:"normal",text:"LIQUIDATION strong liquidation order"}]},{type:"normal",text:"The specific execution type of this event",children:[{type:"normal",text:"NEW"},{type:"normal",text:"CANCELED removed"},{type:"normal",text:"CALCULATED order ADL or liquidation "},{type:"normal",text:"EXPIRED order lapsed "},{type:"normal",text:"TRADE transaction "}]},{type:"normal",text:"Order Status",children:[{type:"normal",text:"NEW"},{type:"normal",text:"PARTIALLY_FILLED"},{type:"normal",text:"FILLED"},{type:"normal",text:"CANCELED "},{type:"normal",text:"EXPIRED "}]},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"event type:ORDER_TRADE_UPDATE"},{name:"E",type:"",description:"event time:1676603102163"},{name:"o",type:"obj",description:"order"}]},{type:"o",key:"common",data:[{name:"s",type:"",description:"trading pair:LINK-USDT"},{name:"c",type:"",description:" client custom order ID"},{name:"i",type:"",description:"Order ID:1627970445070303232"},{name:"S",type:"",description:" order direction:SELL"},{name:"o",type:"",description:"order type:MARKET"},{name:"q",type:"",description:"order quantity:5.00000000"},{name:"p",type:"",description:"order price:7.82700000"},{name:"ap",type:"",description:"order average price:7.82690000"},{name:"x",type:"",description:"The specific execution type of this event:TRADE"},{name:"X",type:"",description:"current status of the order:FILLED"},{name:"N",type:"",description:"Fee asset type:USDT"},{name:"n",type:"",description:" handling fee:-0.01369708"},{name:"T",type:"",description:" transaction time:1676973375149"},{name:"wt",type:"",description:" trigger price type: MARK_PRICE mark price, CONTRACT_PRICE latest price, INDEX_PRICE index price"},{name:"ps",type:"",description:"Position direction: LONG or SHORT"},{name:"rp",type:"",description:"The transaction achieves profit and loss: 0.00000000"},{name:"z",type:"",description:"Order Filled Accumulated Quantity: 0.00000000"}]}]}]},"4b0F":function(e,t,n){var i={"./01_error_code.json":"INR5","./02_timestamp.json":"gE9e","./03_digital_rule.json":"v0HI","./04_rate_limits.json":"x6dl","./05_system_time.json":"i6gS"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4b0F"},"4iqa":function(e,t,n){var i={"./01_create_api.json":"KHR7","./03_request_content.json":"q1lS","./04_sign_discription.json":"OWlA","./05_request.json":"auLt"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4iqa"},"4izq":function(e,t,n){var i={"./01_get_asset_transfer.json":"zvGN","./02_get_asset_transfer2.json":"ah5Z","./03_get_deposit_hisrec.json":"PFmh","./04_get_withdraw_history.json":"bMv0","./05_post_wallets_coins.json":"Dy32","./06_post_wallets_withdraw.json":"KB+u","./07_post_capital_innerTransfer_apply.json":"iYO+"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="4izq"},"4uFH":function(e,t){e.exports=[{type:"hash",text:"查询资金费率历史"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getHistoryFunding"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getHistoryFunding",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"historyId",type:"string",description:"历史ID号"},{name:"fundingRate",type:"float64",description:"资金费率"},{name:"fairPrice",type:"float64",description:"标记价格"},{name:"interval",type:"string",description:"资金费率结算周期,单位:小时"},{name:"time",type:"date",description:"结算时间"}]}]}]},"4yOc":function(e,t){e.exports=[{type:"hash",text:"全部一键平仓下单"},{type:"normal",text:"将当前账户下所有仓位进行一键平仓操作。注意,一键平仓是以市价委托进行触发的。 "},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/closeAllPositions"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/closeAllPositions",protocol:"https",method:"POST",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"success",type:"LIST",description:"全部一键平仓产生的多个委托订单号"},{name:"failed",type:"结构数组",description:"平仓失败的订单号"}]}]}]},"50QL":function(e,t){e.exports=[{type:"hash",text:"Query order details"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/queryOrderStatus"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/queryOrderStatus",protocol:"https",method:"POST",payload:{orderId:"",symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"orderId",type:"int64",required:"yes",description:"order ID"}]},{type:"Response",key:"response",data:[{name:"entrustTm",type:"string",description:"Order Time"},{name:"side",type:"string",description:"Direction (Bid/Ask)"},{name:"tradeType",type:"string",description:"Order Type(Market/Limit)"},{name:"action",type:"string",description:"Open/Close"},{name:"entrustPrice",type:"float64",description:"Price"},{name:"entrustVolume",type:"float64",description:"Order Amount"},{name:"avgFilledPrice",type:"float64",description:"Ave. Price"},{name:"filledVolume",type:"float64",description:"Executed quantity"},{name:"orderId",type:"string",description:"Order ID"},{name:"status",type:"string",description:"The status of Order (Filled or PartiallyFilled, Pending, Cancelled, Failed)"},{name:"profit",type:"float64",description:"profit and loss"},{name:"commission",type:"float64",description:"Fee"},{name:"updateTm",type:"string",description:"Update time of order"}]}]}]},"54oK":function(e,t){e.exports=[{type:"hash",text:"查询合约基础信息"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getAllContracts"},{type:"code",text:"example: https://api-swap-rest.bingbon.pro/api/v1/market/getAllContracts"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getAllContracts",protocol:"https",method:"GET",payload:{}},params:[{type:"Request(无)",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"code",type:"",description:"是否有错误信息,0为正常,1为有错误"},{name:"msg",type:"",description:"错误信息描述"},{name:"data",type:"",description:"Array"}]},{type:"Data",key:"response1",data:[{name:"contractId",type:"",description:"合约ID"},{name:"symbol",type:"",description:"合约产品符号,以A_B的形式返回"},{name:"name",type:"",description:"合约产品名字"},{name:"size",type:"",description:"合约大小,例如0.0001 BTC"},{name:"minStep",type:"",description:"用户输入步长"},{name:"volumePrecision",type:"",description:"交易数量精度"},{name:"pricePrecision",type:"",description:"价格精度"},{name:"quantityPrecision",type:"",description:"交易数量精度"},{name:"feeRate",type:"",description:"交易手续费"},{name:"tradeMinLimit",type:"",description:"交易最小单位,单位为张"},{name:"currency",type:"",description:"结算和保证金货币资产"},{name:"asset",type:"",description:"合约交易资产"},{name:"maxLongLeverage",type:"",description:"多头交易的最大杠杆倍数"},{name:"maxShortLeverage",type:"",description:"空头交易的最大杠杆倍数"}]}]}]},"55v+":function(e,t){e.exports=[{type:"hash",text:"Get Market Depth"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getMarketDepth"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getMarketDepth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",level:"5"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'Trading pair symbol,There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"level",type:"int",required:"no",description:"Number of levels,If it is empty, it will return 5 levels of data by default."}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"msg",type:"string",description:"error message"},{name:"data",type:"array",description:""}]},{type:"data",key:"response1",data:[{name:"asks",type:"array[depth]",description:"Sell side depth"},{name:"bids",type:"array[depth]",description:"Buy side depth"}]},{type:"depth",key:"response2",data:[{name:"p",type:"float64",description:"price"},{name:"v",type:"float64",description:"volume"}]}]}]},"5BSP":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\npackage main\n\nimport (\n\t"encoding/json"\n\t"crypto/hmac"\n\t"fmt"\n\t"time"\n\t"net/http"\n\t"io/ioutil"\n\t"crypto/sha256"\n\t"encoding/hex"\n)\nconst HOST = "HHOOSSTT"\nconst API_KEY = ""\nconst API_SECRET = ""\nfunc main() {\n\n dataStr := ^AAPPII^\n payload := ^PPAAYYLLOOAADD^\n apiMap := getParameters(dataStr, payload)\n sign := computeHmac256(fmt.Sprintf("%v",apiMap["parameters"]), API_SECRET)\n parameters := fmt.Sprintf("%v&signature=%s",apiMap["parameters"], sign)\n url := fmt.Sprintf("%v://%s%v?%s",apiMap["protocol"],HOST,apiMap["uri"],parameters)\n method := fmt.Sprintf("%v",apiMap["method"])\n client := &http.Client {}\n fmt.Println("parameters:",parameters)\n fmt.Println("sign:",sign)\n fmt.Println("url:",url)\n fmt.Println("method:",method)\n req, err := http.NewRequest(method, url, nil)\n\n if err != nil {\n fmt.Println(err)\n return\n }\n req.Header.Add("X-BX-APIKEY", API_KEY)\n res, err := client.Do(req)\n if err != nil {\n fmt.Println(err)\n return\n }\n defer res.Body.Close()\n\n body, err := ioutil.ReadAll(res.Body)\n if err != nil {\n fmt.Println(err)\n return\n }\n fmt.Println(string(body))\n}\n\nfunc computeHmac256(strMessage string, strSecret string) string {\n\tkey := []byte(strSecret)\n\th := hmac.New(sha256.New, key)\n\th.Write([]byte(strMessage))\n\treturn hex.EncodeToString(h.Sum(nil))\n}\nfunc getParameters(dataStr string , payload string) map[string]interface{}{\n\t TIMESTAMP := time.Now().UnixNano()\n\t TIMESTAMP = TIMESTAMP/1e6\n\tvar apiMap map[string]interface{}\n\tvar payloadMap map[string]interface{}\n\terr := json.Unmarshal([]byte(dataStr), &apiMap)\n\tif err != nil {\n\t fmt.Printf("json to map error,err:%s\\n", err)\n\t return apiMap\n\t}\n\terr = json.Unmarshal([]byte(payload), &payloadMap)\n\tif err != nil {\n\t fmt.Printf("json to map error,err:%s\\n", err)\n\t return apiMap\n\t}\n\tparameters := ""\n\tfor key, value := range payloadMap {\n parameters = parameters + key+"="+fmt.Sprintf("%v",value)+"&"\n }\n\tparameters +="timestamp="+fmt.Sprintf("%d",TIMESTAMP)\n\tapiMap["parameters"]=fmt.Sprintf("%v",parameters)\n\treturn apiMap\n}'},"5DAQ":function(e,t){e.exports=[{type:"hash",text:"调整逐仓保证金"},{type:"normal",text:"针对逐仓模式下的仓位,调整其逐仓保证金资金"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/swap/v2/trade/positionMargin"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/positionMargin",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",amount:0,type:0,positionSide:"",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"amount",type:"float64",required:"是",description:"保证金资金"},{name:"type",type:"int",required:"是",description:"调整方向 1: 增加逐仓保证金,2: 减少逐仓保证金"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"错误码,0表示成功,不为0表示异常失败"},{name:"msg",type:"string",description:"错误信息提示"},{name:"amount",type:"float64",description:"保证金资金"},{name:"type",type:"int",description:"调整方向 1: 增加逐仓保证金,2: 减少逐仓保证金"}]}]}]},"5ECq":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("btx7").keys(),r=[],o=0;oBingX開發者文檔。"},{type:"normal",text:"本文檔提供了永續合約交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。"},{type:"html",text:"此頁面為永續合約V2版本的開發者文檔,推薦使用。如需查看V1版本的介面說明,可訪問:USDT本位永續合約V1"}]}},"5H3S":function(e,t,n){var i={".":"2ggw","./":"2ggw","./01_post_trade_order":"wpBa","./01_post_trade_order.json":"wpBa","./02_post_trade_order_cancel":"xNnB","./02_post_trade_order_cancel.json":"xNnB","./03_get_trade_order":"EDR3","./03_get_trade_order.json":"EDR3","./04_get_trade_open_order":"V7qZ","./04_get_trade_open_order.json":"V7qZ","./05_get_trade_history_order":"s6dj","./05_get_trade_history_order.json":"s6dj","./06_get_account_balance":"YYU2","./06_get_account_balance.json":"YYU2","./07_post_trade_batchOrders":"lyLM","./07_post_trade_batchOrders.json":"lyLM","./index":"2ggw","./index.js":"2ggw"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="5H3S"},"5KDU":function(e,t,n){var i={"./01_error_code.json":"JIJP","./02_timestamp.json":"4KP5","./03_digital_rule.json":"mcJU","./04_rate_limits.json":"8Dwn","./05_system_time.json":"CtfW"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="5KDU"},"5MML":function(e,t){e.exports={module:"swapV2",path:"/swapV2/description",name:"interface",content:[{type:"html",text:"
  • The interface of the GET method, parameters must be sent in the query string.
  • "},{type:"html",text:"
  • Interface for POST, PUT, and DELETE methods, parameters can be sent in query string or request body (content type application/x-www-form-urlencoded). It is allowed to mix these two ways to send parameters. But if the same parameter name exists in both query string and request body, the one in query string will be used first.
  • "},{type:"html",text:"
  • The order of parameters is not required.
  • "}]}},"5ewk":function(e,t){e.exports=[{type:"hash",text:"修改槓桿"},{type:"normal",text:"調整合約多倉或空倉的槓桿倍數。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/setLeverage"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/setLeverage",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",side:"",leverage:"",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"side",type:"string",required:"是",description:"多倉或者空倉的槓桿,Long表示多倉,Short表示空倉"},{name:"leverage",type:"string",required:"是",description:"槓桿倍數"},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"}]}]}]},"5k3C":function(e,t,n){var i={"./2023-06-03.json":"N36O","./2023-07-29.json":"L1Q8"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="5k3C"},"5mnu":function(e,t){e.exports=[{type:"hash",text:"创建子账户"},{type:"normal",text:"创建子账户"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/create"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subAccountString",type:"string",required:"是",description:"子账户用户名"},{name:"note",type:"string",required:"否",description:"备注"},{name:"recvWindow",type:"long",required:"是",description:""},{name:"timestamp",type:"long",required:"是",description:""}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子账户uid"},{name:"subAccountString",type:"string",description:"子账户用户名"},{name:"note",type:"string",description:"子账户备注信息"}]}]}]},"5xUh":function(e,t){e.exports=[{type:"hash",text:"最新標記價格和資金費率"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/premiumIndex"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/premiumIndex",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"lastFundingRate",type:"string",description:"最近更新的資金費率"},{name:"markPrice",type:"string",description:"當前的標記價格"},{name:"indexPrice",type:"string",description:"指數價格"},{name:"nextFundingTime",type:"int64",description:"下次結算剩餘時間,單位為毫秒"}]}]}]},"5y10":function(e,t){e.exports=[{type:"hash",text:"Subscription account balance push"},{type:"normal",text:"Subscription Type"},{type:"code",text:"dataType: ACCOUNT_UPDATE"},{type:"normal",text:"Subscription example"},{type:"code",text:'{"id":"gdfg2311-d0f6-4a70-8d5a-043e4c741b40","dataType":"ACCOUNT_UPDATE"}'},{type:"normal",text:'The field "m" represents the reason for the launch of the event, including the following possible types: -DEPOSIT'},{type:"html",text:"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    "},{type:"html",text:"
  • For more about return error codes, please see the error code description on the homepage.
  • "},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"Event Type"},{name:"E",type:"",description:"event time"},{name:"T",type:"",description:"Matching time"},{name:"a",type:"",description:"Asset Name"}]},{type:"a",key:"key1",data:[{name:"B",type:"",description:"Array[]"},{name:"m",type:"",description:"event launch reason "}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"Asset Name"},{name:"bc",type:"",description:"Change in wallet balance excluding profit and loss and transaction fees"},{name:"cw",type:"",description:"Asset Name"},{name:"wb",type:"",description:"Wallet balance"}]}]}]},"6DOK":function(e,t,n){var i={".":"LuFD","./":"LuFD","./01_get_asset_transfer":"zvGN","./01_get_asset_transfer.json":"zvGN","./02_get_asset_transfer2":"ah5Z","./02_get_asset_transfer2.json":"ah5Z","./03_get_deposit_hisrec":"PFmh","./03_get_deposit_hisrec.json":"PFmh","./04_get_withdraw_history":"bMv0","./04_get_withdraw_history.json":"bMv0","./05_post_wallets_coins":"Dy32","./05_post_wallets_coins.json":"Dy32","./06_post_wallets_withdraw":"KB+u","./06_post_wallets_withdraw.json":"KB+u","./07_post_capital_innerTransfer_apply":"iYO+","./07_post_capital_innerTransfer_apply.json":"iYO+","./index":"LuFD","./index.js":"LuFD"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="6DOK"},"6wHN":function(e,t,n){var i={"./01_create_api.json":"+Rge","./02_permission_set.json":"UG8z","./03_request_content.json":"hS6o","./04_sign_discription.json":"9KKA","./05_request.json":"uSYo"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="6wHN"},"6y27":function(e,t){e.exports=[{type:"hash",text:"用户万向划转"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/get/asset/transfer"},{type:"code",text:"curl --location --request GET 'https://open-api.bingx.com/openApi/api/v3/get/asset/transfer?type=FUND_PFUTURES&asset=USDT&amount=100×tamp=1670215150028&signature=ecc819d72515095039b7b383310f718584af4cf70106b57609bc59473185c9a3'"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/get/asset/transfer",protocol:"https",method:"GET",payload:{type:"FUND_SFUTURES",asset:"USDT",amount:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"type",type:"ENUM",required:"是",description:"划转类型"},{name:"asset",type:"string",required:"是",description:"币的名称 例如USDT"},{name:"amount",type:"DECIMAL",required:"是",description:"交易金额"},{name:"recvWindow",type:"LONG",required:"否",description:"执行窗口时间,不能大于 60000"},{name:"timestamp",type:"LONG",required:"是",description:"当前时间戳 例如1658748648396"}]},{type:"type",key:"key1",data:[{name:"FUND_SFUTURES",type:"",description:"资金账户->标准合约"},{name:"SFUTURES_FUND",type:"",description:"标准合约->资金账户"},{name:"FUND_PFUTURES",type:"",description:"资金账户->永续合约"},{name:"PFUTURES_FUND",type:"",description:"永续合约->资金账户"},{name:"SFUTURES_PFUTURES",type:"",description:"标准合约->永续合约"},{name:"PFUTURES_SFUTURES",type:"",description:"永续合约->标准合约"}]},{type:"Response",key:"response",data:[{name:"tranId",type:"LONG",description:"交易ID"}]}]}]},"70Q9":function(e,t,n){var i={".":"mROX","./":"mROX","./01_get_quote_contracts":"nyHW","./01_get_quote_contracts.json":"nyHW","./02_get_quote_price":"kQ2M","./02_get_quote_price.json":"kQ2M","./03_get_quote_depth":"YP5V","./03_get_quote_depth.json":"YP5V","./04_get_quote_ trades":"0TqQ","./04_get_quote_ trades.json":"0TqQ","./05_get_quote_ premiumIndex":"+92Z","./05_get_quote_ premiumIndex.json":"+92Z","./06_get_quote_ fundingRate":"xDG3","./06_get_quote_ fundingRate.json":"xDG3","./07_get_quote_ klines":"bDbK","./07_get_quote_ klines.json":"bDbK","./08_get_quote_ klines_history":"keYE","./08_get_quote_ klines_history.json":"keYE","./09_get_quote_ ticker":"VOPx","./09_get_quote_ ticker.json":"VOPx","./10_get_quote_openInterest":"baSA","./10_get_quote_openInterest.json":"baSA","./index":"mROX","./index.js":"mROX"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="70Q9"},"70Y8":function(e,t){e.exports=[{type:"hash",text:"撤销订单"},{type:"normal",text:"将当前账户处于当前委托状态的某个订单进行撤销操作。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"DELETE /openApi/swap/v2/trade/order"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"DELETE",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"否",description:"订单号"},{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"clientOrderId",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"订单时间,单位:毫秒"},{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"cumQuote",type:"string",description:"成交金额"},{name:"status",type:"string",description:"订单状态"},{name:"stopPrice",type:"string",description:"触发价"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"原始委托数量"},{name:"avgPrice",type:"string",description:"平均成交价"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"订单号"},{name:"profit",type:"string",description:"盈亏"},{name:"commission",type:"string",description:"手续费"},{name:"updateTime",type:"int64",description:"更新时间,单位:毫秒"},{name:"clientOrderId",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},"733f":function(e,t,n){var i={".":"5ECq","./":"5ECq","./01_post_trade_order":"YLkf","./01_post_trade_order.json":"YLkf","./02_post_trade_batch_order":"/bqr","./02_post_trade_batch_order.json":"/bqr","./03_post_closeAllPositions":"jBL/","./03_post_closeAllPositions.json":"jBL/","./04_delete_trade_order":"nf3C","./04_delete_trade_order.json":"nf3C","./05_delete_trade_batch_order":"siG2","./05_delete_trade_batch_order.json":"siG2","./06_delete_trade_all_order":"/Fs7","./06_delete_trade_all_order.json":"/Fs7","./07_get_all_openOrders":"jxdV","./07_get_all_openOrders.json":"jxdV","./08_get_trade_order":"1xud","./08_get_trade_order.json":"1xud","./09_get_trade_marginType":"Qa4f","./09_get_trade_marginType.json":"Qa4f","./10_post_trade_marginType":"WCFx","./10_post_trade_marginType.json":"WCFx","./11_get_trade_leverage":"Nux4","./11_get_trade_leverage.json":"Nux4","./12_post_trade_leverage":"j3Xb","./12_post_trade_leverage.json":"j3Xb","./13_get_trade_forceOrders":"fUN5","./13_get_trade_forceOrders.json":"fUN5","./14_get_trade_allOrders":"iu9b","./14_get_trade_allOrders.json":"iu9b","./15_post_trade_positionMargin":"i3k4","./15_post_trade_positionMargin.json":"i3k4","./16_post_trade_order_test":"l8OL","./16_post_trade_order_test.json":"l8OL","./17_get_trade_allFillOrders":"1A8u","./17_get_trade_allFillOrders.json":"1A8u","./18_get_trade_income_export":"JOGY","./18_get_trade_income_export.json":"JOGY","./19_get_trade_user_commissionRate":"2Faq","./19_get_trade_user_commissionRate.json":"2Faq","./20_get_trade_quote_bookTicker":"Oo3B","./20_get_trade_quote_bookTicker.json":"Oo3B","./index":"5ECq","./index.js":"5ECq"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="733f"},"75l9":function(e,t){e.exports={_from:"axios@^0.21.1",_id:"axios@0.21.4",_inBundle:!1,_integrity:"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",_location:"/axios",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"axios@^0.21.1",name:"axios",escapedName:"axios",rawSpec:"^0.21.1",saveSpec:null,fetchSpec:"^0.21.1"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",_shasum:"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575",_spec:"axios@^0.21.1",_where:"/Users/admin/code/bingx-api-docs",author:{name:"Matt Zabriskie"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},bugs:{url:"https://github.com/axios/axios/issues"},bundleDependencies:!1,bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}],dependencies:{"follow-redirects":"^1.14.0"},deprecated:!1,description:"Promise based HTTP client for the browser and node.js",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},homepage:"https://axios-http.com",jsdelivr:"dist/axios.min.js",keywords:["xhr","http","ajax","promise","node"],license:"MIT",main:"index.js",name:"axios",repository:{type:"git",url:"git+https://github.com/axios/axios.git"},scripts:{build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},typings:"./index.d.ts",unpkg:"dist/axios.min.js",version:"0.21.4"}},"76pZ":function(e,t,n){var i={"./01_listenKey.json":"o5vU","./02_balance.json":"1n2Z","./03_order.json":"79KP","./04_setting.json":"tdzN"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="76pZ"},"79KP":function(e,t){e.exports=[{type:"hash",text:"订单更新推送"},{type:"normal",text:"当有新订单创建、订单有新成交或者新的状态变化时会推送此类事件 事件类型统一为 ORDER_TRADE_UPDATE "},{type:"normal",text:"订单方向",children:[{type:"normal",text:"BUY 买入"},{type:"normal",text:"SELL 卖出"}]},{type:"normal",text:"订单类型",children:[{type:"normal",text:"MARKET 市价单"},{type:"normal",text:"LIMIT 限价单"},{type:"normal",text:"STOP 止损单"},{type:"normal",text:"TAKE_PROFIT 止盈单"},{type:"normal",text:"LIQUIDATION 强平单"}]},{type:"normal",text:"本次事件的具体执行类型",children:[{type:"normal",text:"NEW"},{type:"normal",text:"CANCELED 已撤"},{type:"normal",text:"CALCULATED 订单ADL或爆仓 "},{type:"normal",text:"EXPIRED 订单失效 "},{type:"normal",text:"TRADE 交易 "}]},{type:"normal",text:"订单状态",children:[{type:"normal",text:"NEW"},{type:"normal",text:"PARTIALLY_FILLED"},{type:"normal",text:"FILLED"},{type:"normal",text:"CANCELED "},{type:"normal",text:"EXPIRED "}]},{type:"normal",text:"推送数据",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件类型:ORDER_TRADE_UPDATE"},{name:"E",type:"",description:"事件时间:1676603102163"},{name:"o",type:"obj",description:"订单<对象>"}]},{type:"o",key:"common",data:[{name:"s",type:"",description:"交易对:LINK-USDT"},{name:"c",type:"",description:"客户端自定订单ID"},{name:"i",type:"",description:"订单ID:1627970445070303232"},{name:"S",type:"",description:"订单方向:SELL"},{name:"o",type:"",description:"订单类型:MARKET"},{name:"q",type:"",description:"订单委托数量:5.00000000"},{name:"p",type:"",description:"订单委托价格:7.82700000"},{name:"ap",type:"",description:"订单平均价格:7.82690000"},{name:"x",type:"",description:"本次事件的具体执行类型:TRADE"},{name:"X",type:"",description:"订单的当前状态:FILLED"},{name:"N",type:"",description:"手续费资产类型:USDT"},{name:"n",type:"",description:"手续费:-0.01369708"},{name:"T",type:"",description:"成交时间:1676973375149"},{name:"wt",type:"",description:"触发价类型:MARK_PRICE 标记价格,CONTRACT_PRICE 最新价格,INDEX_PRICE 指数价格"},{name:"ps",type:"",description:"持仓方向:LONG or SHORT"},{name:"rp",type:"",description:"该交易实现盈亏: 0.00000000"},{name:"z",type:"",description:"订单累计已成交量: 0.00000000"}]}]}]},"7I4l":function(e,t,n){var i={"./01_create_sub_accuont.json":"+6hF","./02_post_fetch_uid.json":"xx9R","./03_post_fetch_sub_account_list.json":"uuPR","./04_get_sub_account_spot_balance.json":"PVSb","./05_create_sub_accuont_key.json":"eSSt","./06_get_api_key_info.json":"MQqI","./07_post_edit_apikey.json":"Jwag","./08_delete_sub_account_key.json":"J2bY","./09_update_sub_account_status.json":"nHln","./10.post_wallet_authorize_innerTransfer.json":"HQ8m","./11.post_wallet_subInnerTransfer.json":"+W0b"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="7I4l"},"7Opx":function(e,t,n){var i={".":"tcKi","./":"tcKi","./01_get_common_symbols":"HzkI","./01_get_common_symbols.json":"HzkI","./02_get_ market_traders":"CPhe","./02_get_ market_traders.json":"CPhe","./03_get_market_depth":"gUOZ","./03_get_market_depth.json":"gUOZ","./04_get_market_klines":"rdtp","./04_get_market_klines.json":"rdtp","./index":"tcKi","./index.js":"tcKi"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="7Opx"},"7bgg":function(e,t){e.exports=[{type:"hash",text:"查詢歷史訂單"},{type:"normal",text:"查詢用戶歷史訂單(訂單狀態為已成交或已撤銷)"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/allOrders"},{type:"html",text:"
  • 查詢時間範圍最大不得超過7天
  • "},{type:"html",text:"
  • 默認查詢最近7天內的數據
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"orderId",type:"int64",required:"否",description:"只返回此orderID及之後的訂單,缺省返回最近的訂單"},{name:"startTime",type:"int64",required:"否",description:"開始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int",required:"是",description:"返回的結果集數量 默認值:500 最大值:1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"}]}]}]},"7iFh":function(e,t){e.exports=[{type:"hash",text:"查詢歷史成交訂單"},{type:"normal",text:"獲取某交易對的成交歷史"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/allFillOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allFillOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,tradingUnit:"",startTs:0,endTs:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"否",description:"只返回此orderID及之後的訂單,缺省返回最近的訂單"},{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"tradingUnit",type:"string",required:"是",description:"交易單位,可選值:COIN、CONT直接表示BTC,ETH等資產,CONT表示合約張數"},{name:"startTs",type:"int64",required:"是",description:"起始時間戳,單位毫秒"},{name:"endTs",type:"int64",required:"是",description:"結束時間戳,單位毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"filledTm",type:"string",description:"匹配成交的時間,格式為2006-01-02T15:04:05.999Z"},{name:"volume",type:"string",description:"成交數量"},{name:"price",type:"string",description:"成交價格"},{name:"amount",type:"string",description:"成交金額"},{name:"commission",type:"string",description:"手續費"},{name:"currency",type:"string",description:"資產單位,一般為USDT"},{name:"orderId",type:"string",description:"訂單號"},{name:"liquidatedPrice",type:"string",description:"预估強平價,觸發強平時刻的预估強平價,只有強平訂單才有"},{name:"liquidatedMarginRatio",type:"string",description:"強平時保證金率,觸發強平時刻的強平保證金率,只有強平訂單才有"},{name:"filledTime",type:"string",description:"匹配成交的時間,格式為2006-01-02T15:04:05.999+0800"}]}]}]},"7k03":function(e,t){e.exports=[{type:"hash",text:"Unsubscribe"},{type:"normal",text:"The format of unsubscription is as follows:"},{type:"code",text:'{ "id": "id1", "reqType": "unsub", "dataType": "data to unsub"}'},{type:"normal",text:"Confirmation of Unsubscription:"},{type:"code",text:'{ "id": "id1", "code": 0, "msg": "" }'}]},"7mzI":function(e,t){e.exports=[{type:"hash",text:"查詢逐全倉模式"},{type:"normal",text:"查詢用戶在指定symbol合約上的保證金模式:逐倉或全倉。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/marginType"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/marginType",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"marginType",type:"string",description:"保證金模式"}]},{type:"marginType",key:"common",data:[{name:"ISOLATED",type:"",description:"逐倉"},{name:"CROSSED",type:"",description:"全倉"}]}]}]},"7r0K":function(e,t){e.exports=[{type:"hash",text:"查询所有的币种"},{type:"normal",text:"查询所有的币种,并且查询该币种对应的限额"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/wallets/v1/capital/config/getall"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/config/getall",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"coin",type:"string",description:"币种标识"},{name:"name",type:"string",description:"币种名称"},{name:"networkList",type:"Network",description:"网络信息"}]},{type:"Network",key:"key1",data:[{name:"name",type:"string",description:"网络名"},{name:"network",type:"string",description:"网络标识"},{name:"minConfirm",type:"int64",description:"最小确认块数"},{name:"isDefault",type:"boolean",description:"是否为默认网络"},{name:"withdrawEnable",type:"boolean",description:"该币种是否开放提币"},{name:"withdrawFee",type:"float64",description:"提币手续费"},{name:"withdrawMax",type:"float64",description:"最大提币额(提币限额)"},{name:"withdrawMin",type:"float64",description:"最小提币额"},{name:"withdrawDesc",type:"string",description:"提币描述"}]}]}]},"7rHQ":function(e,t){e.exports=[{type:"hash",text:"查询当前全部挂单"},{type:"normal",text:"查询用户当前处于委托状态的全部订单。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/openOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"GET /openApi/swap/v2/trade/openOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"订单时间,单位:毫秒"},{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"cumQuote",type:"string",description:"成交金额"},{name:"status",type:"string",description:"订单状态"},{name:"stopPrice",type:"string",description:"触发价"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"原始委托数量"},{name:"avgPrice",type:"string",description:"平均成交价"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"订单号"},{name:"profit",type:"string",description:"盈亏"},{name:"commission",type:"string",description:"手续费"},{name:"updateTime",type:"int64",description:"更新时间,单位:毫秒"}]},{type:"status",key:"key1",data:[{name:"NEW",type:"",required:"",description:"新建订单"},{name:"PARTIALLY_FILLED",type:"",required:"",description:"部分成交"},{name:"FILLED",type:"",required:"",description:"全部成交"},{name:"CANCELED",type:"",required:"",description:"已撤销"}]}]}]},"80Bj":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\npackage com.bingx.tools.utils;\n\nimport javax.crypto.Mac;\nimport javax.crypto.spec.SecretKeySpec;\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.net.HttpURLConnection;\nimport java.net.URL;\nimport java.net.URLConnection;\nimport java.security.InvalidKeyException;\nimport java.security.NoSuchAlgorithmException;\nimport java.sql.Timestamp;\nimport java.util.HashMap;\nimport java.util.Map;\nimport java.util.TreeMap;\n\npublic class TradeDemo {\n\n String url = "PPRROOTTOOCCOOLL://HHOOSSTT";\n String apiKey = "";\n String secretKey = "";\n\n private static final char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray();\n\n public static void main(String[] args) {\n TradeDemo h = new TradeDemo();\n String method = "MMEETTHHOODD";\n String path = "AAPPII";\n String timestamp = "" + new Timestamp(System.currentTimeMillis()).getTime();\n TreeMap parameters = new TreeMap();\n PPAAYYLLOOAADD\n String valueToDigest = getMessageToDigest(method, path, parameters);\n String messageDigest = generateHmac256(valueToDigest);\n String parametersString = valueToDigest + "&signature=" + messageDigest;\n String requestUrl = getRequestUrl(path, parametersString);\n execute(requestUrl, method);\n }\n public static String bytesToHex(byte[] bytes) {\n char[] hexChars = new char[bytes.length * 2];\n for (int j = 0; j < bytes.length; j++) {\n int v = bytes[j] & 0xFF;\n hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n }\n return new String(hexChars);\n }\n\n byte[] hmac(String algorithm, byte[] key, byte[] message) throws NoSuchAlgorithmException, InvalidKeyException {\n Mac mac = Mac.getInstance(algorithm);\n mac.init(new SecretKeySpec(key, algorithm));\n return mac.doFinal(message);\n }\n\n\n String generateHmac256(String message) {\n try {\n byte[] bytes = hmac("HmacSHA256", secretKey.getBytes(), message.getBytes());\n return bytesToHex(bytes);\n } catch (Exception e) {\n System.out.println("generateHmac256 expection:" + e);\n }\n return "";\n }\n\n\n String getMessageToDigest(String method, String path, TreeMap parameters) {\n Boolean first = true;\n String valueToDigest = "";\n for (Map.Entry e : parameters.entrySet()) {\n if (!first) {\n valueToDigest += "&";\n }\n first = false;\n valueToDigest += e.getKey() + "=" + e.getValue();\n }\n return valueToDigest;\n }\n\n String getRequestUrl(String path, String parameters) {\n String urlStr = url + path + "?" + parameters;\n return urlStr;\n }\n\n void execute(String requestUrl, String method) {\n try {\n URL url = new URL(requestUrl);\n URLConnection conn = url.openConnection();\n HttpURLConnection http = (HttpURLConnection) conn;\n http.setRequestMethod(method); // PUT is another valid option\n http.addRequestProperty("X-BX-APIKEY", apiKey);\n http.addRequestProperty("User-Agent","Mozilla/5.0");\n http.setDoOutput(true);\n conn.setDoOutput(true);\n conn.setDoInput(true);\n\n String result = "";\n String line = "";\n BufferedReader in = new BufferedReader(\n new InputStreamReader(conn.getInputStream()));\n while ((line = in.readLine()) != null) {\n result += line;\n }\n\n System.out.println("\t" + result);\n\n } catch (Exception e) {\n System.out.println("expection:" + e);\n }\n } \n}\n'},"8Dwn":function(e,t){e.exports=[{type:"hash",text:"频率限制"},{type:"html",text:"如果请求过于频繁系统将自动限制请求,几分钟后,会自动恢复;当前BingX只根据IP进行频率限制,以下分类的所有接口共享一个IP频率限制值"},{type:"html",text:"

    REST API

    "},{type:"html",text:"
  • 行情接口:通过IP限制公共接口的调用,每1秒最多60个请求。
  • "},{type:"html",text:"
  • 账户和交易接口:通过用户ID限制私人接口的调用,每1秒最多20个请求。
  • "}]},"8Evh":function(e,t,n){var i={"./01_create_api.json":"bY49","./02_permission_set.json":"44OD","./03_request_content.json":"xXiq","./04_sign_discription.json":"t9kx","./05_request.json":"bIA2"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="8Evh"},"8FLz":function(e,t){e.exports=[{type:"hash",text:"Query Margin Mode"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getMarginMode"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getMarginMode",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"marginMode",type:"string",description:"margin mode"}]},{type:"marginMode",key:"common",data:[{name:"Isolated",type:"",description:"Isolated Margin"},{name:"Cross",type:"",description:"Full position"}]}]}]},"8e1X":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("hR1o").keys(),r=[],o=0;o"},{type:"code",text:"wss://open-api-ws.bingx.com/market/"},{type:"hash",text:"generate Listen Key"},{type:"normal",text:"listen key Valid for 1 hour"},{type:"normal",text:"interface",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"code",text:"curl -X POST 'https://open-api.bingx.com/openApi/user/auth/userDataStream' --header \"X-BX-APIKEY:g6ikQYpMiWLecMQ39DUivd4ENem9ygzAim63xUPFhRtCFBUDNLajRoZNiubPemKT\""},{type:"normal",text:"response",style:{"font-weight":"bold"}},{type:"code",text:'{"listenKey":"a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7"}'},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"POST",payload:{}},params:[{type:"Header",key:"request",data:[{name:"X-BX-APIKEY",type:"string",required:"no",description:"API KEY"}]},{type:"Response",key:"response",data:[{name:"listenKey",type:"string",description:"listen Key"}]}]}]},"9GqO":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("kxYJ").keys(),r=[],o=0;osignature The signature request parameter is encrypted using the HMAC SHA256 method"},{type:"html",text:"Example: Signature for adjusting currency leverage request parameters"},{type:"html",text:"
  • request parameters:
  • "},{type:"html",text:"

    symbol=BTC-USDT
    timestamp=1667872120843
    side=LONG
    leverage=6

    "},{type:"html",text:"
  • api information:
  • "},{type:"html",text:"

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    "},{type:"html",text:"
  • Parameters sent via query string example
  • "},{type:"html",text:"1. Splicing interface parameters: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6

    2. Use secretKey to generate a signature for the concatenated parameter string: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    "},{type:"code",text:' echo -n "symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6" | openssl dgst -sha256 -hmac "mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w" -hex '},{type:"html",text:"3. Send request"},{type:"code",text:"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'"},{type:"html",text:"
  • Parameters are sent through the request body example
  • "},{type:"html",text:"1. Splicing interface parameters: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6
    2. Use secretKey to generate a signature for the concatenated parameter string: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    "},{type:"code",text:' echo -n "symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6" | openssl dgst -sha256 -hmac "mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w" -hex '},{type:"html",text:"3. Send request"},{type:"code",text:"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage' -d 'symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf' "},{type:"html",text:"
  • Parameters sent through query string and request body example
  • "},{type:"html",text:"queryString: symbol=BTC-USDT×tamp=1668159715051
    requestBody: side=LONG&leverage=6 "},{type:"html",text:"1. Splicing interface parameters: symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6
    2. Use secretKey to generate a signature for the concatenated parameter string: 8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d
    "},{type:"code",text:' echo -n "symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6" | openssl dgst -sha256 -hmac "mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w" -hex'},{type:"html",text:"3. Send request"},{type:"code",text:"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1668159715051&signature=8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d' -d 'side=LONG&leverage=6' "}]},"9R9w":function(e,t){e.exports=[{type:"hash",text:"有限档深度信息"},{type:"normal",text:"每秒推送有限档深度信息。默认20档,某些小币种可能不足20档,可以选择100档"},{type:"normal",text:"订阅类型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 @depth,比如BTC-USDT@depth, BTC-USDT@depth20, BTC-USDT@depth100"},{type:"normal",text:"订阅例子",style:{"font-weight":"bold"}},{type:"code",text:' {"id":"975f7385-7f28-4ef1-93af-df01cb9ebb53","dataType":"BTC-USDT@depth"}'},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"订阅的数据类型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送内容"},{name:"asks",type:"",description:"变动的卖单深度"},{name:"bids",type:"",description:"变动的买单深度"}]}]}]},"9V8o":function(e,t){e.exports=[{type:"hash",text:"撤銷訂單"},{type:"normal",text:"将當前賬戶處於當前委託狀態的某個訂單進行撤銷操作。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"DELETE /openApi/swap/v2/trade/order"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"DELETE",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"否",description:"訂單號"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId"},{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID"}]}]}]},"9bR8":function(e,t){e.exports=[{type:"hash",text:"用戶強平單歷史"},{type:"normal",text:"查詢用戶強平單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/forceOrders"},{type:"html",text:'
  • 如果沒有傳 "autoCloseType", 強平單和ADL減倉單都會被返回
  • '},{type:"html",text:'
  • 如果沒有傳"startTime", 只會返回"endTime"之前7天內的數據
  • '},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/forceOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",autoCloseType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"autoCloseType",type:"string",required:"否",description:'"LIQUIDATION":強平單, "ADL":ADL減倉單'},{name:"startTime",type:"int64",required:"否",description:"開始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int",required:"否",description:"返回的結果集數量 默認值50,最大值100"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"}]}]}]},"9f4O":function(e,t){e.exports=[{type:"hash",text:"接入方式"},{type:"normal",text:"行情Websocket的接入URL:wss://open-api-ws.bingx.com/market"}]},"9vIT":function(e,t){e.exports=[{type:"hash",text:"创建子账户apikey"},{type:"normal",text:"创建子账户apikey"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/create"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子账户uid"},{name:"note",type:"string",required:"是",description:"备注"},{name:"permissions",type:"Array",required:"是",description:"权限,1-现货交易,2-读取,3-专业合约交易,4-万向划转,7-允许子账户内转"},{name:"ipAddresses",type:"Array",required:"否",description:"ip白名单"}]},{type:"Response",key:"response",data:[{name:"apiKey",type:"string",description:""},{name:"apiSecret",type:"string",description:"api密钥"},{name:"permissions",type:"Array",description:"权限,1-现货交易,2-读取,3-专业合约交易,4-万向划转,7-允许子账户内转"},{name:"ipAddresses",type:"Array",description:"ip白名单"},{name:"note",type:"string",description:"备注"}]}]}]},A1ZI:function(e,t){e.exports=[{type:"hash",text:"批量撤銷訂單"},{type:"normal",text:"将當前賬戶處於當前委託狀態的部分訂單進行批量撤銷操作。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/batchCancelOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/batchCancelOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",oids:"",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"oids",type:"string",required:"是",description:"訂單ID列表,多個訂單id用逗號進行分隔"},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"},{name:"Success",type:"Array",description:"撤銷成功的訂單ID列表"},{name:"Failed",type:"結构數組",description:"撤銷失敗的訂單列表"},{name:"orderId",type:"int64",description:"訂單ID"},{name:"errorCode",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"errorMessage",type:"string",description:"錯誤信息提示"}]}]}]},ADmP:function(e,t){e.exports=[{type:"hash",text:"有限檔深度信息"},{type:"normal",text:"每秒推送有限檔深度信息。默認20檔,某些小幣種可能不足20檔,可以選擇100檔"},{type:"normal",text:"訂閱類型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 為 @depth,比如BTC-USDT@depth, BTC-USDT@depth20, BTC-USDT@depth100"},{type:"normal",text:"訂閱例子",style:{"font-weight":"bold"}},{type:"code",text:' {"id":"975f7385-7f28-4ef1-93af-df01cb9ebb53","dataType":"BTC-USDT@depth"}'},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'}]},{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"訂閱的數據類型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送內容"},{name:"asks",type:"",description:"變動的賣單深度"},{name:"bids",type:"",description:"變動的買單深度"}]}]}]},AGDW:function(e,t){e.exports=[{type:"hash",text:"查询订单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/query"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/query",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品种, 例如: BTC-USDT, 请使用大写字母"},{name:"orderId",type:"int64",required:"是",description:"订单id"},{name:"clientOrderId",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId,仅支持2个小时的查询范围"},{name:"recvWindow",type:"float64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"请求时间戳, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易品种"},{name:"orderId",type:"int64",description:"订单号"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"下单数量"},{name:"executedQty",type:"string",description:"成交数量"},{name:"cummulativeQuoteQty",type:"string",description:"成交额"},{name:"status",type:"string",description:"订单状态, NEW新订单 PENDING委托中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤销 FAILED失败"},{name:"type",type:"string",description:"订单类型, MARKET市价 LIMIT限价"},{name:"side",type:"string",description:"交易类型, BUY买 SELL卖"},{name:"time",type:"int64",description:"下单时间戳"},{name:"updateTime",type:"int64",description:"更新时间戳"},{name:"origQuoteOrderQty",type:"string",description:"下单金额"},{name:"fee",type:"string",description:"手续费"},{name:"feeAsset",type:"string",description:"手续费资产类型"},{name:"clientOrderId",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},ATrJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\nimport time\nimport requests\nimport hmac\nfrom hashlib import sha256\n\nAPIURL = "PPRROOTTOOCCOOLL://HHOOSSTT";\nAPIKEY = ""\nSECRETKEY = ""\n\ndef demo():\n payload = {}\n path = \'AAPPII\'\n method = "MMEETTHHOODD"\n paramsMap = PPAAYYLLOOAADD\n paramsStr = praseParam(paramsMap)\n return send_request(method, path, paramsStr, payload)\n\ndef get_sign(api_secret, payload):\n signature = hmac.new(api_secret.encode("utf-8"), payload.encode("utf-8"), digestmod=sha256).hexdigest()\n print("sign=" + signature)\n return signature\n\n\ndef send_request(method, path, urlpa, payload):\n url = "%s%s?%s&signature=%s" % (APIURL, path, urlpa, get_sign(SECRETKEY, urlpa))\n print(url)\n headers = {\n \'X-BX-APIKEY\': APIKEY,\n }\n response = requests.request(method, url, headers=headers, data=payload)\n return response.text\n\ndef praseParam(paramsMap):\n sortedKeys = sorted(paramsMap)\n paramsStr = "&".join(["%s=%s" % (x, paramsMap[x]) for x in sortedKeys])\n return paramsStr+"×tamp="+str(int(time.time() * 1000))\n\n\nif __name__ == \'__main__\':\n print("demo:", demo())\n'},"Agv/":function(e,t){e.exports={module:"swap",path:"/swap/introduce",name:"介绍",content:[{type:"html",text:"欢迎使用
    BingX开发者文档。"},{type:"normal",text:"本文档提供了永续合约交易业务的账户管理、行情查询、交易功能等相关API的使用方法介绍。 行情API提供市场的公开的行情数据接口,账户和交易API需要身份验证,提供下单、撤单,查询订单和帐户信息等功能。"},{type:"html",text:"USDT本位永续合约V2"}]}},B7jJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("vwsV").keys(),r=[],o=0;ohttp status 200 成功"},{type:"html",text:"
  • http status 204 没有请求参数
  • "},{type:"html",text:"
  • http status 404 没有这个listenKey
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"DELETE",payload:{}},params:[{type:"Request",key:"request",data:[{name:"listenKey",type:"string",required:"是",description:"返回的listenKey"}]}]}]},"Bo+j":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("ed62").keys(),r=[],o=0;o具體訂單條件規則,與普通下單一致"},{type:"html",text:"
  • batchOrders是數組
  • "},{type:"html",text:"
  • batchOrders是數組,以Python 舉例
  • "},{type:"code",text:'{"batchOrders" : "[{\\"symbol\\": \\"ETH-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 1},{\\"symbol\\": \\"BTC-USDT\\",\\"type\\": \\"MARKET\\",\\"side\\": \\"BUY\\",\\"positionSide\\": \\"LONG\\",\\"quantity\\": 0.001}]"}'},{type:"html",text:"
  • 真實發出去的http url請求參數參考如下
  • "},{type:"code",text:'https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=[{"symbol": "ETH-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 1},{"symbol": "BTC-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 0.001}]×tamp=1691312510782&signature=a7bd3f4ebf3321c1e3c9d2305584e0f28a70766340b79cca29f0a8428d5bbd7f'},{type:"warning",text:"批量下單採取併發處理,不保證訂單撮合順序"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/batchOrders",protocol:"https",method:"POST",payload:{batchOrders:[{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}],recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"batchOrders",type:"LIST",required:"是",description:"訂單列表,最多支持5个訂單,Order對象參考單個交易下單"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Order",key:"key1",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"type",type:"string",required:"是",description:"訂單類型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持倉方向,且僅可選擇 LONG 或 SHORT,默認LONG"},{name:"price",type:"float64",required:"否",description:"委託價格"},{name:"quantity",type:"float64",required:"否",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持輸入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"orderId",type:"int64",description:"訂單號"},{name:"clientOrderID",type:"string",description:"用戶自定義訂單ID"}]}]}]},CtfW:function(e,t){e.exports=[{type:"hash",text:"查询系统时间"},{type:"html",text:"

    HTTP请求

    "},{type:"code",text:"GET /openApi/swap/v2/server/time"},{type:"html",text:"

    参数: 无

    "},{type:"html",text:"
  • code - int64 - 错误码,0表示成功,不为0表示异常失败
  • "},{type:"html",text:"
  • msg - string - 错误信息提示
  • "},{type:"html",text:"
  • serverTime - int64 - 系统当前时间,单位毫秒
  • "},{type:"code",text:'{"code": 0,"msg": "","data": {"serverTime": 1675319535362}}'}]},DLRo:function(e,t){e.exports=[{type:"hash",text:"查询账户信息"},{type:"normal",text:"查询当前账户下永续合约资产的相关信息。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/balance"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/balance",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"错误码,0表示成功,不为0表示异常失败"},{name:"msg",type:"string",description:"错误信息提示"},{name:"asset",type:"string",description:"用户资产"},{name:"balance",type:"string",description:"资产余额"},{name:"equity",type:"string",description:"资产净值"},{name:"unrealizedProfit",type:"string",description:"未实现盈亏"},{name:"realisedProfit",type:"string",description:"已实现盈亏"},{name:"availableMargin",type:"string",description:"可用保证金"},{name:"usedMargin",type:"string",description:"已用保证金"},{name:"freezedMargin",type:"string",description:"冻结保证金"}]}]}]},DLoG:function(e,t){e.exports=[{type:"hash",text:"导出资金流水"},{type:"normal",text:"导出资金流水"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/income/export"},{type:"warning",text:"响应: Excel File"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/income/export",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",incomeType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"incomeType",type:"string",required:"否",description:"资金流水类型,可选值:TRANSFER REALIZED_PNL FUNDING_FEE TRADING_FEE INSURANCE_CLEAR TRIAL_FUND ADL SYSTEM_DEDUCTION"},{name:"startTime",type:"int64",required:"否",description:"起始时间戳,单位毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间戳,单位毫秒"},{name:"limit",type:"int",required:"否",description:"返回的结果集数量 默认值:100 最大值:1000"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间窗口,单位:毫秒"}]}]}]},DWTp:function(e,t,n){var i={"./01_get_user_balance.json":"DLRo","./02_get_user_positions.json":"Knhz","./03_get_user_income.json":"s67u"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="DWTp"},DZHm:function(e,t){e.exports=[{type:"hash",text:"Make Requests"},{type:"normal",text:"All private REST requests must contain the following parameters:",children:[{type:"normal",text:"API Key - as a string"},{type:"normal",text:"Sign - a signature computed based on HMAC SHA256 (see Signature subsection for details)."},{type:"normal",text:"Timestamp - the timestamp of your request."},{type:"normal",text:"Request bodies are expected to have content type application/json and are in valid JSON format."}]}]},DcMO:function(e,t){e.exports=[{type:"hash",text:"Contract Information"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/contracts"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/contracts",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"contractId",type:"string",description:"contract ID"},{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"size",type:"string",description:"contract size, such as 0.0001 BTC"},{name:"quantityPrecision",type:"int",description:"transaction quantity precision"},{name:"pricePrecision",type:"int",description:"price precision"},{name:"feeRate",type:"float64",description:"transaction fee"},{name:"tradeMinLimit",type:"int",description:"The smallest trading unit"},{name:"currency",type:"string",description:"settlement and margin currency asset"},{name:"asset",type:"string",description:"contract trading asset"},{name:"status",type:"int",description:"0 offline, 1 online"},{name:"maxLongLeverage",type:"int",description:"The maximum leverage for long transactions"},{name:"maxShortLeverage",type:"int",description:"Maximum leverage for short trades"}]}]}]},Di51:function(e,t,n){var i={"./01_get_quote_contracts.json":"kQGv","./02_get_quote_price.json":"wZoS","./03_get_quote_depth.json":"TsMJ","./04_get_quote_ trades.json":"ceUr","./05_get_quote_ premiumIndex.json":"s6Wv","./06_get_quote_ fundingRate.json":"PQJ1","./07_get_quote_ klines.json":"MMY+","./08_get_quote_openInterest.json":"FnYD","./09_get_quote_ ticker.json":"YBd1"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Di51"},Dsow:function(e,t,n){var i={".":"vVGz","./":"vVGz","./01_get_quote_contracts":"DcMO","./01_get_quote_contracts.json":"DcMO","./02_get_quote_price":"owTM","./02_get_quote_price.json":"owTM","./03_get_quote_depth":"e+0O","./03_get_quote_depth.json":"e+0O","./04_get_quote_ trades":"PqB/","./04_get_quote_ trades.json":"PqB/","./05_get_quote_ premiumIndex":"Tk4L","./05_get_quote_ premiumIndex.json":"Tk4L","./06_get_quote_ fundingRate":"YtyA","./06_get_quote_ fundingRate.json":"YtyA","./07_get_quote_ klines":"xU+M","./07_get_quote_ klines.json":"xU+M","./08_get_quote_openInterest":"j4uq","./08_get_quote_openInterest.json":"j4uq","./09_get_quote_ ticker":"LWb5","./09_get_quote_ ticker.json":"LWb5","./index":"vVGz","./index.js":"vVGz"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Dsow"},Dy32:function(e,t){e.exports=[{type:"hash",text:"查詢所有幣種"},{type:"normal",text:"查詢所有的幣種,並且查詢該幣種對應的限額"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/wallets/v1/capital/config/getall"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/config/getall",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"coin",type:"string",description:"幣種標誌"},{name:"name",type:"string",description:"幣種名稱"},{name:"networkList",type:"Network",description:"網絡信息"}]},{type:"Network",key:"key1",data:[{name:"name",type:"string",description:"網絡名"},{name:"network",type:"string",description:"網絡標識"},{name:"minConfirm",type:"int64",description:"最小確認塊數"},{name:"isDefault",type:"boolean",description:"是否為默認網絡"},{name:"withdrawEnable",type:"boolean",description:"該幣種是否開放提幣"},{name:"withdrawFee",type:"float64",description:"提幣手續費"},{name:"withdrawMax",type:"float64",description:"最大提幣額(提幣限額)"},{name:"withdrawMin",type:"float64",description:"最小提幣額"},{name:"withdrawDesc",type:"string",description:"提幣描述"}]}]}]},EA8X:function(e,t,n){var i={".":"BbCp","./":"BbCp","./01_get_common_symbols":"qHSP","./01_get_common_symbols.json":"qHSP","./02_get_ market_traders":"u7QQ","./02_get_ market_traders.json":"u7QQ","./03_get_market_depth":"xaTv","./03_get_market_depth.json":"xaTv","./04_get_market_klines":"l6fp","./04_get_market_klines.json":"l6fp","./index":"BbCp","./index.js":"BbCp"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="EA8X"},EDR3:function(e,t){e.exports=[{type:"hash",text:"Query Orders"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/query"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/query",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:"Trading pair, e.g., BTC-USDT"},{name:"orderId",type:"int64",required:"yes",description:"Order ID"},{name:"clientOrderId",type:"string",required:"no",description:"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId,Only supports a query range of 2 hours"},{name:"recvWindow",type:"float64",required:"no",description:"Request valid time window value, Unit: milliseconds"},{name:"timestamp",type:"int64",required:"yes",description:"Timestamp of initiating the request, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"Trading pair"},{name:"orderId",type:"int64",description:"Order ID"},{name:"price",type:"string",description:"Price"},{name:"origQty",type:"string",description:"Original quantity"},{name:"executedQty",type:"string",description:"Executed quantity"},{name:"cummulativeQuoteQty",type:"string",description:"Cumulative quote asset transacted quantity"},{name:"status",type:"string",description:"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED"},{name:"type",type:"string",description:"MARKET/LIMIT"},{name:"side",type:"string",description:"BUY/SELL"},{name:"time",type:"int64",description:"Order timestamp"},{name:"updateTime",type:"int64",description:"Update timestamp"},{name:"origQuoteOrderQty",type:"string",description:"Original quote order quantity"},{name:"fee",type:"string",description:"Fee"},{name:"feeAsset",type:"string",description:"Fee asset"},{name:"clientOrderId",type:"string",required:"no",description:"Customized order ID for users"}]}]}]},ELvl:function(e,t,n){var i={".":"KsRT","./":"KsRT","./01_executionReport":"H6dO","./01_executionReport.json":"H6dO","./02_ account_update":"bZVt","./02_ account_update.json":"bZVt","./index":"KsRT","./index.js":"KsRT"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="ELvl"},EOtf:function(e,t){e.exports=[{type:"hash",text:"Get Perpetual Swap Account Asset Information"},{type:"normal",text:"Get asset information of user‘s Perpetual Account"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getBalance"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getBalance",protocol:"https",method:"POST",payload:{apiKey:"",currency:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"currency",type:"string",required:"yes",description:"Account Asset"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"},{name:"userId",type:"string",description:"User ID"},{name:"currency",type:"string",description:"user asset"},{name:"balance",type:"float64",description:"asset balance"},{name:"equity",type:"float64",description:"net asset value"},{name:"unrealisedPNL",type:"float64",description:"unrealized profit and loss"},{name:"realisedPNL",type:"float64",description:"realized profit and loss"},{name:"availableMargin",type:"float64",description:"available margin"},{name:"usedMargin",type:"float64",description:"used margin"},{name:"freezedMargin",type:"float64",description:"frozen margin"},{name:"longLeverage",type:"float64",description:"long Leverage"},{name:"shortLeverage",type:"float64",description:"short Leverage"}]}]}]},EhCT:function(e,t,n){var i={"./01_create_api.json":"KMXO","./03_request_content.json":"DZHm","./04_sign_discription.json":"gBMP","./05_request.json":"4UQG"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="EhCT"},EhS2:function(e,t){e.exports=[{type:"hash",text:"Cancel Stop Order"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelStopOrder"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelStopOrder",protocol:"https",method:"POST",payload:{apiKey:"",orderId:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"orderId",type:"string",required:"yes",description:"Stop Order ID"}]},{type:"Response",key:"response",data:[{name:"code",type:"",description:""},{name:"message",type:"",description:""}]}]}]},Eq96:function(e,t,n){var i={"./01_create_listenKey.json":"Yto4","./02_put_listenKey.json":"tXGI","./03_delete_listenKey.json":"BnJY"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Eq96"},EtCx:function(e,t){e.exports=[{type:"hash",text:"查询杠杆"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getLeverage"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getLeverage",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"}]},{type:"Response",key:"response",data:[{name:"longLeverage",type:"int64",description:"多仓杠杆倍数"},{name:"shortLeverage",type:"int64",description:"空仓杠杆倍数"}]}]}]},Ewmn:function(e,t){e.exports=[{type:"hash",text:"查詢當前全部掛單"},{type:"normal",text:"查詢用戶當前處於委託狀態的全部訂單。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/openOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"GET /openApi/swap/v2/trade/openOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"}]},{type:"status",key:"key1",data:[{name:"NEW",type:"",required:"",description:"新建訂單"},{name:"PARTIALLY_FILLED",type:"",required:"",description:"部分成交"},{name:"FILLED",type:"",required:"",description:"全部成交"},{name:"CANCELED",type:"",required:"",description:"已撤銷"}]}]}]},"F5V+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("EhCT").keys(),r=[],o=0;o更多返回錯誤代碼請看首頁的錯誤代碼描述"},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱,合約名稱中需有"-",如BTC-USDT'},{name:"klineType",type:"string",required:"是",description:"k線類型,參考字段說明,如分鐘,小時,週等"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"data",type:"",description:"推送內容"},{name:"dataType",type:"",description:"數據類型"},{name:"klineInfosVo",type:"",description:"K線數據"},{name:"close",type:"",description:"收盤價"},{name:"high",type:"",description:"最高價"},{name:"low",type:"",description:"最低價"},{name:"open",type:"",description:"開盤價"},{name:"statDate",type:"",description:"k線時間"},{name:"time",type:"",description:"k線時間戳,單位是毫秒"},{name:"volume",type:"",description:"成交量"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"一分鐘K線"},{name:"3min",description:"三分鐘K線"},{name:"5min",description:"五分鐘K線"},{name:"15min",description:"十五分鐘K線"},{name:"30min",description:"三十分鐘K線"},{name:"1hour",description:"一小時K線"},{name:"2hour",description:"两小時K線"},{name:"4hour",description:"四小時K線"},{name:"6hour",description:"六小時K線"},{name:"8hour",description:"八小時K線"},{name:"12hour",description:"12小時K線"},{name:"1day",description:"1日K線"},{name:"1week",description:"週K線"},{name:"1month",description:"月K線"}]}]}]},H6dO:function(e,t){e.exports=[{type:"html",text:"註意需要獲取此類信息需要 websocket 鑒權,使用 listenKey,詳細方式查看
    Listen Key"},{type:"normal",text:"websocket接口是 wss://open-api-ws.bingx.com/market"},{type:"normal",text:"訂閱賬戶數據流的stream名稱為 /market?listenKey="},{type:"code",text:"wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7"},{type:"hash",text:"訂閱訂單更新數據"},{type:"normal",text:"訂閱類型"},{type:"code",text:"dataType 為 spot.executionReport"},{type:"normal",text:"訂閱例子"},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"spot.executionReport"}'},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"訂閱的數據類型, 例如: spot.executionReport"},{name:"data",type:"",description:"推送內容"}]},{type:"data",key:"key1",data:[{name:"e",type:"",description:"事件類型"},{name:"E",type:"",description:"事件時間"},{name:"s",type:"",description:"交易對"},{name:"S",type:"",description:"訂單方向"},{name:"o",type:"",description:"訂單類型"},{name:"q",type:"",description:"訂單原始數量"},{name:"p",type:"",description:"訂單原始價格"},{name:"x",type:"",description:"事件類型"},{name:"X",type:"",description:"訂單狀態"},{name:"i",type:"",description:"訂單id"},{name:"l",type:"",description:"訂單末次成交量"},{name:"z",type:"",description:"訂單累計已成交量"},{name:"L",type:"",description:"訂單末次成交價格"},{name:"n",type:"",description:"手續費數量"},{name:"N",type:"",description:"手續費資產類别"},{name:"T",type:"",description:"成交時間"},{name:"t",type:"",description:"成交ID"},{name:"O",type:"",description:"訂單創建時間"},{name:"Z",type:"",description:"訂單累計已成交金額"},{name:"Y",type:"",description:"訂單末次成交金額"},{name:"Q",type:"",description:"訂單原始金額"}]}]}]},H6na:function(e,t,n){var i={".":"JNoc","./":"JNoc","./01_executionReport":"yydQ","./01_executionReport.json":"yydQ","./02_ account_update":"Wg+8","./02_ account_update.json":"Wg+8","./index":"JNoc","./index.js":"JNoc"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="H6na"},HD5E:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Eq96").keys(),r=[],o=0;oBingXAPI. "},{type:"normal",text:"You can use our API to access market data endpoints of Standard contract. The market data API is publicly accessible and provides market data, statistics, order book depth of a Trading Pair."}]}},HJU1:function(e,t){e.exports=[{type:"hash",text:"查詢強平訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/forceOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/forceOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",autoCloseType:"",lastOrderId:"",length:0,apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"autoCloseType",type:"string",required:"是",description:"Liquidation 表示強平訂單, ADL 表示減倉訂單"},{name:"lastOrderId",type:"int64",required:"是",description:"用於分頁, 第一次填寫0, 後續填寫前一次返回結果裡面的最後一個訂單id"},{name:"length",type:"int64",required:"是",description:"每次請求的長度, 最大值為100"},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"合約名稱"},{name:"tradeType",type:"string",description:"訂單類型, Limit是限價單, Market是市價單"},{name:"action",type:"string",description:"Liquidation 表示強平訂單, ADL 表示減倉訂單"},{name:"avgFilledPrice",type:"float64",description:"破產價格"},{name:"entrustTm",type:"string",description:"成交時間"},{name:"filledVolume",type:"float64",description:"成交數量"},{name:"orderId",type:"string",description:"訂單id"},{name:"side",type:"string",description:"交易方向, Bid買入, Ask賣出"},{name:"profit",type:"float64",description:"盈虧"},{name:"commission",type:"float64",description:"手續費"}]}]}]},HQ8m:function(e,t){e.exports=[{type:"hash",text:"Authorize sub account internal transfer"},{type:"normal",text:"Main account authorization sub account internal transfer permission (limited to main account use)"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/account/v1/innerTransfer/authorizeSubAccount"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/account/v1/innerTransfer/authorizeSubAccount",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,timestamp:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"subUids",type:"string",required:"yes",description:"User uid list, comma separated"},{name:"transferable",type:"boolean",required:"yes",description:"Is it allowed? True allows false prohibits"}]},{type:"Response",key:"response",data:"data"},{name:"data",type:"boolean",description:"Is authorization successful"}]}]},HU7E:function(e,t){e.exports=[{type:"hash",text:"查詢持倉信息"},{type:"normal",text:"查詢當前賬戶下永續合約的持倉信息與盈虧情况。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getPositions"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getPositions",protocol:"https",method:"POST",payload:{apiKey:"",currency:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:""},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"},{name:"symbol",type:"string",description:"合約品種"},{name:"currency",type:"string",description:"資產類型"},{name:"positionId",type:"string",description:"倉位ID"},{name:"positionSide",type:"string",description:"倉位方向 LONG/SHORT 多/空"},{name:"marginMode",type:"string",description:"保證金模式 Cross/Isolated 全倉/逐倉"},{name:"volume",type:"float64",description:"持倉數量"},{name:"availableVolume",type:"float64",description:"可平倉數量"},{name:"unrealisedPNL",type:"float64",description:"未實現盈虧"},{name:"realisedPNL",type:"float64",description:"已實現盈虧"},{name:"margin",type:"float64",description:"保證金"},{name:"avgPrice",type:"float64",description:"開倉均價"},{name:"liquidatedPrice",type:"float64",description:"预估強平價"},{name:"leverage",type:"float64",description:"槓桿"}]}]}]},HVe5:function(e,t){e.exports=[{type:"hash",text:"請求內容"},{type:"normal",text:"請求需要鑒權的接口必須包含以下信息:",children:[{type:"normal",text:"請求頭帶上 X-BX-APIKEY 傳遞 API Key。"},{type:"normal",text:"請求參數帶上 signature 使用簽名算法得出的簽名。"},{type:"normal",text:"timestamp 作為您的請求的時間戳,單位是毫秒。服務器收到請求時會判斷請求中的時間戳,如果是5000毫秒之前發出的,則請求會被認為無效。這個時間空窗值可以通過發送可選參數recvWindow來定義。"}]}]},Hhes:function(e,t){e.exports=[{type:"hash",text:"測試下單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/order/test"},{type:"warning",text:"入參與返回都與下單接口一致,但是不會真實下單,僅返回測試結果,結果為假的訂單,不會扣除你的資金,也不會出現在真實交易面板中,僅用於幫助你練習使用下單接口"},{type:"warning",text:"基於訂單 type 不同,強制要求某些參數:"},{type:"html",text:"
  • LIMIT: 強制要求參數 quantity, price
  • "},{type:"html",text:"
  • MARKET: 強制要求參數 quantity
  • "},{type:"html",text:"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 強制要求參數 quantity、stopPrice、price
  • "},{type:"html",text:"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 強制要求參數 quantity、stopPrice
  • "},{type:"warning",text:"條件單的觸發必須:"},{type:"html",text:"

    STOP/STOP_MARKET 止損單:

    "},{type:"html",text:"
  • 已掛止損單累加數量不能大於持倉數量
  • "},{type:"html",text:"
  • 買入: 標記價格高於等於觸發價stopPrice
  • "},{type:"html",text:"
  • 賣出: 標記價格低於等於觸發價stopPrice
  • "},{type:"html",text:"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈單:

    "},{type:"html",text:"
  • 已掛止盈單累加數量不能大於持倉數量
  • "},{type:"html",text:"
  • 買入: 標記價格低於等於觸發價stopPrice
  • "},{type:"html",text:"
  • 賣出: 標記價格高於等於觸發價stopPrice
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order/test",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"type",type:"string",required:"是",description:"訂單類型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持倉方向,且僅可選擇 LONG 或 SHORT,默認LONG"},{name:"price",type:"float64",required:"否",description:"委託價格"},{name:"quantity",type:"float64",required:"否",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持輸入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"orderId",type:"int64",description:"訂單號"},{name:"clientOrderID",type:"string",description:"用戶自定義訂單ID"}]}]}]},HijD:function(e,t){e.exports=[{type:"hash",text:"历史订单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/contract/v1/allOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/contract/v1/allOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"币对,格式类似:BTC-USDT,必传"},{name:"orderId",type:"int64",required:"否",description:"订单ID,选填"},{name:"startTime",type:"int64",required:"否",description:"开始时间,选填"},{name:"endTime",type:"int64",required:"否",description:"结束时间,选填"},{name:"limit",type:"int64",required:"否",description:"数量,选填"}]},{type:"Response",key:"response",data:[{name:"avgPrice",type:"number",description:"平仓价"},{name:"cumQuote",type:"number",description:"交易额"},{name:"executedQty",type:"number",description:"成交量"},{name:"orderId",type:"number",description:"系统订单号"},{name:"positionSide",type:"string",description:"持仓方向,LONG 和 SHORT"},{name:"status",type:"string",description:"订单状态 CLOSED"},{name:"symbol",type:"string",description:"币对,格式类似:BTC-USDT"},{name:"time",type:"int64",description:"订单时间"},{name:"updateTime",type:"int64",description:"更新时间"},{name:"margin",type:"number",description:"保证金"},{name:"leverage",type:"number",description:"杠杆数"},{name:"isolated",type:"bool",description:"是否是逐仓模式"},{name:"closePrice",type:"number",description:"平仓价"},{name:"positionId",type:"int64",description:"持仓订单号"}]}]}]},Hwtn:function(e,t){e.exports=[{type:"hash",text:"Switch Margin Mode"},{type:"normal",text:"Switch the margin mode of the Perpetual Swap Account, Cross Margin mode or Isolated Margin mode. "},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/setMarginMode"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/setMarginMode",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginMode:"",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"marginMode",type:"string",required:"yes",description:"Isolated or Cross"},{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"}]}]}]},HzkI:function(e,t){e.exports=[{type:"hash",text:"查询交易品种"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/common/symbols"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/common/symbols",protocol:"https",method:"GET",payload:{symbol:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易品种, 例如: BTC-USDT, 请使用大写字母"}]},{type:"Response",key:"response",data:[{name:"symbols",type:"Array",description:"品种信息列表, 元素参考下表"}]},{type:"symbol",key:"response1",data:[{name:"symbol",type:"string",description:"交易品种"},{name:"tickSize",type:"float64",description:"价格步长"},{name:"stepSize",type:"float64",description:"数量步长"},{name:"minQty",type:"float64",description:"最小交易数量"},{name:"maxQty",type:"float64",description:"最大交易数量"},{name:"minNotional",type:"float64",description:"最小交易金额"},{name:"maxNotional",type:"float64",description:"最大交易金额"},{name:"status",type:"int",description:"0下线, 1上线"}]}]}]},"I/UF":function(e,t,n){var i={".":"8e1X","./":"8e1X","./01_get_account_apiRestrictions":"l5cf","./01_get_account_apiRestrictions.json":"l5cf","./index":"8e1X","./index.js":"8e1X"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="I/UF"},I5B8:function(e,t,n){var i={".":"8gCM","./":"8gCM","./01_create_api":"KHR7","./01_create_api.json":"KHR7","./03_request_content":"q1lS","./03_request_content.json":"q1lS","./04_sign_discription":"OWlA","./04_sign_discription.json":"OWlA","./05_request":"auLt","./05_request.json":"auLt","./index":"8gCM","./index.js":"8gCM"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="I5B8"},"I7+s":function(e,t){e.exports=[{type:"hash",text:"订阅合约k线数据"},{type:"normal",text:"订阅单个合约的行情k线数据"},{type:"normal",text:"订阅类型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 market.kline.$Symbol.$KlineType,比如market.kline.BTC-USDT.1min"},{type:"html",text:"
  • 更多返回错误代码请看首页的错误代码描述
  • "},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称,合约名称中需有"-",如BTC-USDT'},{name:"klineType",type:"string",required:"是",description:"k线类型,参考字段说明,如分钟,小时,周等"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有错误信息,0为正常,1为有错误"},{name:"data",type:"",description:"推送内容"},{name:"dataType",type:"",description:"数据类型"},{name:"klineInfosVo",type:"",description:"K线数据"},{name:"close",type:"",description:"收盘价"},{name:"high",type:"",description:"最高价"},{name:"low",type:"",description:"最低价"},{name:"open",type:"",description:"开盘价"},{name:"statDate",type:"",description:"k线时间"},{name:"time",type:"",description:"k线时间戳,单位是毫秒"},{name:"volume",type:"",description:"成交量"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"一分钟K线"},{name:"3min",description:"三分钟K线"},{name:"5min",description:"五分钟K线"},{name:"15min",description:"十五分钟K线"},{name:"30min",description:"三十分钟K线"},{name:"1hour",description:"一小时K线"},{name:"2hour",description:"两小时K线"},{name:"4hour",description:"四小时K线"},{name:"6hour",description:"六小时K线"},{name:"8hour",description:"八小时K线"},{name:"12hour",description:"12小时K线"},{name:"1day",description:"1日K线"},{name:"1week",description:"周K线"},{name:"1month",description:"月K线"}]}]}]},I7Id:function(e,t){e.exports=[{type:"hash",text:"用户手续费率"},{type:"normal",text:"获取当前用户的手续费率"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/commissionRate"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/commissionRate",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"takerCommissionRate",type:"float64",description:"吃单手续费率"},{name:"makerCommissionRate",type:"float64",description:"挂单手续费率"}]}]}]},I7QH:function(e,t){e.exports=[{type:"hash",text:"订阅合约交易深度"},{type:"normal",text:"订阅合约对盘口深度的数据的推送,此主题发送最新市场深度快照。快照频率为每秒1次。"},{type:"normal",text:"订阅类型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 market.depth.$Symbol.$Step.$Level,比如market.depth.BTC-USDT.step0.level5"},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"level",type:"string",required:"是",description:"合并深度类型,step0,step1,step2,step3,step4,step5"},{name:"level",type:"string",required:"是",description:"档数, 如 level5,level10,level20,level50,level100"}]},{type:"step",key:"key1",data:[{name:"step0",type:"",description:"不合并深度"},{name:"step1",type:"",description:"按价格最小精度乘以10合并深度数据"},{name:"step2",type:"",description:"按价格最小精度乘以100合并深度数据"},{name:"step3",type:"",description:"按价格最小精度乘以1000合并深度数据"},{name:"step4",type:"",description:"按价格最小精度乘以10000合并深度数据"},{name:"step5",type:"",description:"按价格最小精度乘以100000合并深度数据"}]},{type:"level",key:"key2",data:[{name:"level5",type:"",description:"5档"},{name:"level10",type:"",description:"10档"},{name:"level20",type:"",description:"20档"},{name:"level50",type:"",description:"50档"},{name:"level100",type:"",description:"100档"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有错误信息,0为正常,1为有错误"},{name:"dataType",type:"",description:"订阅的数据类型,例如 market.depth.BTC-USDT.step0.level5"},{name:"data",type:"",description:"推送内容"},{name:"asks",type:"",description:"卖方深度"},{name:"bids",type:"",description:"买方深度"},{name:"p",type:"",description:"price价格"},{name:"v",type:"",description:"volume数量"}]}]}]},IEXP:function(e,t){e.exports={module:"swapV2",path:"/swapV2/introduce",name:"介绍",content:[{type:"html",text:"欢迎使用BingX开发者文档。"},{type:"normal",text:"本文档提供了永续合约交易业务的账户管理、行情查询、交易功能等相关API的使用方法介绍。 行情API提供市场的公开的行情数据接口,账户和交易API需要身份验证,提供下单、撤单,查询订单和帐户信息等功能。"},{type:"html",text:"此页面为永续合约V2版本的开发者文档,推荐使用。如需查看V1版本的接口说明,可访问:USDT本位永续合约V1"}]}},INR5:function(e,t){e.exports=[{type:"hash",text:"常見錯誤碼"},{type:"html",text:"

    常見HTTP類型:

    "},{type:"html",text:"
  • 4XX 錯誤碼用於指示錯誤的請求內容、行為、格式
  • "},{type:"html",text:"
  • 5XX 錯誤碼用於指示Bingx服務側的問題
  • "},{type:"html",text:"

    常見HTTP錯誤碼:

    "},{type:"html",text:"
  • 400 Bad Request – Invalid request format 請求格式無效
  • "},{type:"html",text:"
  • 401 Unauthorized – Invalid API Key 無效的API Key
  • "},{type:"html",text:"
  • 403 Forbidden – You do not have access to the requested resource 請求無權限
  • "},{type:"html",text:"
  • 404 - Not Found 沒有找到請求
  • "},{type:"html",text:"
  • 429 - Too Many Requests 請求太頻繁被係統限流
  • "},{type:"html",text:"
  • 418 - 表示收到429後繼續訪問,於是被封了
  • "},{type:"html",text:"
  • 500 - Internal Server Error – We had a problem with our server 服務器內部錯誤
  • "},{type:"html",text:"
  • 504 - 表示API服務端已經向業務核心提交了請求但未能獲取響應(特别需要註意的是504代碼不代表請求失敗,而是未知。很可能已經得到了執行,也有可能執行失敗,需要做進一步確認)
  • "},{type:"html",text:"

    常見業務錯誤碼:

    "},{type:"html",text:"
  • 100001 - 簽名驗證失敗
  • "},{type:"html",text:"
  • 100500 - 內部係統錯誤
  • "},{type:"html",text:"
  • 80001 - 請求失敗
  • "},{type:"html",text:"
  • 80012 - 服務不可用
  • "},{type:"html",text:"
  • 80014 - 參數無效
  • "},{type:"html",text:"
  • 80016 - 訂單不存在
  • "},{type:"html",text:"
  • 80017 - 倉位不存在
  • "},{type:"html",text:"

    註意:

    "},{type:"html",text:"
  • 如果失敗,response body 帶有錯誤描述信息
  • "},{type:"html",text:"
  • 每個接口都有可能抛出異常
  • "}]},IOcs:function(e,t){e.exports=[{type:"title",text:"2023-07-29"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"normal",text:"support TAKE_PROFIT/STOP order type in Perpetual Futures API Reference V2"},{type:"normal",text:"support customized field: clientOrderId in both Perpetual Futures API Reference V2 and Spot"},{type:"normal",text:"support batch placing orders in Spot"},{type:"normal",text:"support kline api in Spot"}]}]},IS5C:function(e,t){e.exports=[{type:"hash",text:"撤销止盈止损订单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelStopOrder"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelStopOrder",protocol:"https",method:"POST",payload:{apiKey:"",orderId:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"},{name:"orderId",type:"string",required:"是",description:"止盈止损订单id"}]},{type:"Response",key:"response",data:[{name:"code",type:"",description:""},{name:"message",type:"",description:""}]}]}]},"IW/r":function(e,t){e.exports=[{type:"hash",text:"持倉"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/contract/v1/allPosition"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/contract/v1/allPosition",protocol:"https",method:"GET",payload:{}},params:[{type:"request(無)",key:"request",data:[]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易品種"},{name:"initialMargin",type:"number",description:"保證金"},{name:"leverage",type:"number",description:"槓桿數"},{name:"unrealizedProfit",type:"number",description:"持倉未實現盈虧"},{name:"isolated",type:"bool",description:"是否是逐倉模式"},{name:"entryPrice",type:"number",description:"持倉成本價"},{name:"positionSide",type:"number",description:"持倉方向,LONG 和 SHORT"},{name:"positionAmt",type:"number",description:"已成交數據"},{name:"currentPrice",type:"number",description:"當前價.沒有平倉價時會返回當前價"},{name:"time",type:"int64",description:"開倉時間"}]}]}]},Ia6C:function(e,t,n){var i={"./01_trade_info.json":"jcbY","./02_kline_data.json":"3EGE","./03_depth_info.json":"fsqo"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Ia6C"},IdRU:function(e,t){e.exports=[{type:"hash",text:"测试下单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/order/test"},{type:"warning",text:"入参与返回都与下单接口一致,但是不会真实下单,仅返回测试结果,结果为假的订单,不会扣除你的资金,也不会在出现真实交易面板中,仅用于帮助你练习使用下单接口"},{type:"warning",text:"基于订单 type 不同,强制要求某些参数:"},{type:"html",text:"
  • LIMIT: 强制要求参数 quantity, price
  • "},{type:"html",text:"
  • MARKET: 强制要求参数 quantity
  • "},{type:"html",text:"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 强制要求参数 quantity、stopPrice、price
  • "},{type:"html",text:"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 强制要求参数 quantity、stopPrice
  • "},{type:"warning",text:"条件单的触发必须:"},{type:"html",text:"

    STOP/STOP_MARKET 止损单:

    "},{type:"html",text:"
  • 已挂止损单累加数量不能大于持仓数量
  • "},{type:"html",text:"
  • 买入: 标记价格高于等于触发价stopPrice
  • "},{type:"html",text:"
  • 卖出: 标记价格低于等于触发价stopPrice
  • "},{type:"html",text:"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈单:

    "},{type:"html",text:"
  • 已挂止盈单累加数量不能大于持仓数量
  • "},{type:"html",text:"
  • 买入: 标记价格低于等于触发价stopPrice
  • "},{type:"html",text:"
  • 卖出: 标记价格高于等于触发价stopPrice
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order/test",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"type",type:"string",required:"是",description:"订单类型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"买卖方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG"},{name:"price",type:"float64",required:"否",description:"委托价格"},{name:"quantity",type:"float64",required:"否",description:"下单数量,合约数量,当前只支持以币计的合约数,暂不支持输入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,TRIGGER_LIMIT,TRIGGER_MARKET, STOP, TAKE_PROFIT 需要此参数"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"orderId",type:"int64",description:"订单号"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},IhWV:function(e,t){e.exports=[{type:"hash",text:"取消訂閱"},{type:"normal",text:"取消訂閱的格式如下:"},{type:"code",text:'{ "id": "id1", "reqType": "unsub", "dataType": "data to unsub"}'},{type:"normal",text:"取消訂閱成功確認:"},{type:"code",text:'{ "id": "id1", "code": 0, "msg": "" }'}]},Ijdp:function(e,t,n){var i={"./01_post_user_balance.json":"tiO5","./02_post_user_positions.json":"w+Bj"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Ijdp"},In1U:function(e,t,n){var i={".":"wX2Q","./":"wX2Q","./01_dept_info":"/s4V","./01_dept_info.json":"/s4V","./02_latest_records":"VUGM","./02_latest_records.json":"VUGM","./03_kline_data":"3Jmd","./03_kline_data.json":"3Jmd","./index":"wX2Q","./index.js":"wX2Q"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="In1U"},J0p5:function(e,t,n){var i={".":"HD5E","./":"HD5E","./01_create_listenKey":"Yto4","./01_create_listenKey.json":"Yto4","./02_put_listenKey":"tXGI","./02_put_listenKey.json":"tXGI","./03_delete_listenKey":"BnJY","./03_delete_listenKey.json":"BnJY","./index":"HD5E","./index.js":"HD5E"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="J0p5"},J2bY:function(e,t){e.exports=[{type:"hash",text:"Delete sub account apikey"},{type:"normal",text:"Delete sub account apikey"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/del"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/del",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"yes",description:"Sub account uid"},{name:"apiKey",type:"string",required:"yes",description:""}]},{type:"Response",key:"response",data:[]}]}]},J7Xj:function(e,t,n){var i={".":"KJg6","./":"KJg6","./01_get_user_balance":"zKw2","./01_get_user_balance.json":"zKw2","./02_get_user_positions":"uAAZ","./02_get_user_positions.json":"uAAZ","./03_get_user_income":"clol","./03_get_user_income.json":"clol","./index":"KJg6","./index.js":"KJg6"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="J7Xj"},J7jo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("mvHQ"),r=n.n(i),o=n("ecdD");t.default=function(e,t,i,s){var a=o.d.find(function(e){return e.value===t});if(!a)return s||"No Code";var p={},d=n("BPx7")("./"+t+".js").default;if(a.value===o.a.js)return p.uri=e.uri,p.method=e.method,p.payload=e.payload,p.protocol=e.protocol,d=(d=d.replace(/AAPPII/g,r()(p,null,4))).replace(/HHOOSSTT/g,i);if(t==o.a.shell){var c="";for(var y in e.payload)c+=y+"="+e.payload[y]+"&";return c&&(c=c.substring(0,c.length-1)),d=(d=(d=(d=(d=(d=d.replace(/AAPPII/g,e.uri)).replace(/HHOOSSTT/g,i)).replace(/PPRROOTTOOCCOOLL/g,e.protocol)).replace(/MMEETTHHOODD/g,e.method)).replace(/PPAARRAAMMEETTEERRSS/g,c)).replace(/\^/g,"`")}if(t===o.a.go)return p.uri=e.uri,p.method=e.method,p.protocol=e.protocol,d=(d=(d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,r()(p,null,4))).replace(/PPAAYYLLOOAADD/g,r()(e.payload,null,4))).replace(/HHOOSSTT/g,i);if(t===o.a.java){p.uri=e.uri,p.method=e.method,p.protocol=e.protocol,d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,p.uri);var m="";for(var l in e.payload)m+='\n parameters.put("'+l+'", "");';return d=(d=(d=(d=d.replace(/PPAAYYLLOOAADD/g,m)).replace(/HHOOSSTT/g,i)).replace(/MMEETTHHOODD/g,p.method)).replace(/PPRROOTTOOCCOOLL/g,p.protocol)}if(t===o.a.python)return p.uri=e.uri,p.method=e.method,p.protocol=e.protocol,d=(d=(d=(d=(d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,p.uri)).replace(/PPAAYYLLOOAADD/g,r()(e.payload,null,4))).replace(/HHOOSSTT/g,i)).replace(/PPRROOTTOOCCOOLL/g,p.protocol)).replace(/MMEETTHHOODD/g,p.method);if(t===o.a.csharp){p.uri=e.uri,p.method=e.method,p.protocol=e.protocol;var u=r()(e.payload,null,4);return u=(u=u.replace(/:/g,"=")).replace(/\"/g,""),d=(d=(d=(d=(d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,p.uri)).replace(/PPAAYYLLOOAADD/g,u)).replace(/HHOOSSTT/g,i)).replace(/PPRROOTTOOCCOOLL/g,p.protocol)).replace(/MMEETTHHOODD/g,p.method)}if(t===o.a.php){p.uri=e.uri,p.method=e.method,p.protocol=e.protocol;var h=r()(e.payload,null,4);return h=(h=h.replace(/:/g,"=")).replace(/\"/g,""),d=(d=(d=(d=(d=(d=d.replace(/\^/g,"`")).replace(/AAPPII/g,p.uri)).replace(/PPAAYYLLOOAADD/g,h)).replace(/HHOOSSTT/g,i)).replace(/PPRROOTTOOCCOOLL/g,p.protocol)).replace(/MMEETTHHOODD/g,p.method)}return s||"No Code"}},JAIK:function(e,t){e.exports=[{type:"hash",text:"授權子賬戶內轉"},{type:"normal",text:"主賬戶授權子賬戶內轉權限(僅限主賬戶使用)"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/account/v1/innerTransfer/authorizeSubAccount"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/account/v1/innerTransfer/authorizeSubAccount",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,timestamp:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"subUids",type:"string",required:"是",description:"用戶uid列表,逗號分隔"},{name:"transferable",type:"boolean",required:"是",description:"是否允許, true允許 false禁止"}]},{type:"Response",key:"response",data:"data"},{name:"data",type:"boolean",description:"授權是否成功"}]}]},JHlj:function(e,t){e.exports=[{type:"hash",text:"心跳信息"},{type:"normal",text:"当用户的Websocket客户端连接到Bingx Websocket服务器后,服务器会定期(当前设为5秒)向其发送心跳字符串Ping"},{type:"normal",text:"当用户的Websocket客户端接收到此心跳消息后,应返回字符串Pong消息"}]},JIJP:function(e,t){e.exports=[{type:"hash",text:"常见错误码"},{type:"html",text:"

    常见HTTP类型:

    "},{type:"html",text:"
  • 4XX 错误码用于指示错误的请求内容、行为、格式
  • "},{type:"html",text:"
  • 5XX 错误码用于指示Bingx服务侧的问题
  • "},{type:"html",text:"

    常见HTTP错误码:

    "},{type:"html",text:"
  • 400 Bad Request – Invalid request format 请求格式无效
  • "},{type:"html",text:"
  • 401 Unauthorized – Invalid API Key 无效的API Key
  • "},{type:"html",text:"
  • 403 Forbidden – You do not have access to the requested resource 请求无权限
  • "},{type:"html",text:"
  • 404 - Not Found 没有找到请求
  • "},{type:"html",text:"
  • 429 - Too Many Requests 请求太频繁被系统限流
  • "},{type:"html",text:"
  • 418 - 表示收到429后继续访问,于是被封了
  • "},{type:"html",text:"
  • 500 - Internal Server Error – We had a problem with our server 服务器内部错误
  • "},{type:"html",text:"
  • 504 - 表示API服务端已经向业务核心提交了请求但未能获取响应(特别需要注意的是504代码不代表请求失败,而是未知。很可能已经得到了执行,也有可能执行失败,需要做进一步确认)
  • "},{type:"html",text:"

    常见业务错误码:

    "},{type:"html",text:"
  • 100001 - 签名验证失败
  • "},{type:"html",text:"
  • 100500 - 内部系统错误
  • "},{type:"html",text:"
  • 80001 - 请求失败
  • "},{type:"html",text:"
  • 80012 - 服务不可用
  • "},{type:"html",text:"
  • 80014 - 参数无效
  • "},{type:"html",text:"
  • 80016 - 订单不存在
  • "},{type:"html",text:"
  • 80017 - 仓位不存在
  • "},{type:"html",text:"

    注意:

    "},{type:"html",text:"
  • 如果失败,response body 带有错误描述信息
  • "},{type:"html",text:"
  • 每个接口都有可能抛出异常
  • "}]},"JLT+":function(e,t,n){var i={".":"BJ4d","./":"BJ4d","./01_connect":"XKjN","./01_connect.json":"XKjN","./02_data_compress":"0Ts9","./02_data_compress.json":"0Ts9","./03_heart_beat":"Bdxm","./03_heart_beat.json":"Bdxm","./04_subscribe":"xBhx","./04_subscribe.json":"xBhx","./05_cancel_subscribe":"hlb8","./05_cancel_subscribe.json":"hlb8","./index":"BJ4d","./index.js":"BJ4d"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="JLT+"},JLZd:function(e,t){e.exports=[{type:"hash",text:"查询系统时间"},{type:"html",text:"

    HTTP请求

    "},{type:"code",text:"POST/GET api/v1/common/server/time"},{type:"html",text:"

    参数: 无

    "},{type:"demo",api:{uri:"/api/v1/common/server/time",protocol:"https",method:"GET",payload:{}},params:[{type:"Response",key:"response",data:[{name:"code",type:"Int64",description:"错误码,0表示成功,不为0表示异常失败"},{name:"msg",type:"string",description:"错误信息提示"},{name:"currentTime",type:"Int64",description:"系统当前时间,单位毫秒"}]}]}]},JNoc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("0gmE").keys(),r=[],o=0;oBingX
    開發者文檔。"},{type:"normal",text:"本文檔提供了永續合約交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。"},{type:"html",text:"USDT本位永續合約V2"}]}},JZdI:function(e,t){e.exports=[{type:"hash",text:"K-Line Data History"},{type:"normal",text:"Get the K-Line history data of the trading price over a certain period of time."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getHistoryKlines"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getHistoryKlines",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",klineType:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"klineType",type:"string",required:"yes",description:"The type of K-Line (minutes, hours, weeks etc.)"},{name:"startTs",type:"int64",required:"yes",description:"Start timestamp, Unit: ms"},{name:"endTs",type:"int64",required:"yes",description:"End timestamp, Unit: ms"}]},{type:"klineType",key:"key1",data:[{name:"1",type:"",description:"1 min Kline"},{name:"3",type:"",description:"3 min Kline"},{name:"5",type:"",description:"5 min Kline"},{name:"15",type:"",description:"15 min Kline"},{name:"30",type:"",description:"30 min Kline"},{name:"60",type:"",description:"1-hour Kline"},{name:"120",type:"",description:"2-hour Kline"},{name:"240",type:"",description:"4-hour Kline"},{name:"360",type:"",description:"6-hour Kline"},{name:"720",type:"",description:"12-hour Kline"},{name:"1D",type:"",description:"1D Kline"},{name:"1W",type:"",description:"1-Week Kline"},{name:"1M",type:"",description:"1-Month Kline"}]},{type:"Response",key:"response",data:[{name:"klines",type:"Array",description:"K-Line data"},{name:"open",type:"float64",description:"Opening Price"},{name:"close",type:"float64",description:"Closing Price"},{name:"high",type:"float64",description:"High Price"},{name:"low",type:"float64",description:"Low Price"},{name:"volume",type:"float64",description:"transaction volume"},{name:"ts",type:"int64",description:"k-line time stamp, unit milliseconds"}]}]}]},JfGl:function(e,t,n){var i={".":"FZvV","./":"FZvV","./01_trade_info":"tk7z","./01_trade_info.json":"tk7z","./02_kline_data":"klxE","./02_kline_data.json":"klxE","./03_depth_info":"ADmP","./03_depth_info.json":"ADmP","./index":"FZvV","./index.js":"FZvV"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="JfGl"},Jwag:function(e,t){e.exports=[{type:"hash",text:"Edit sub account apikey"},{type:"normal",text:"Edit sub account apikey"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/edit"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/edit",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"yes",description:"Sub account uid"},{name:"apiKey",type:"string",required:"yes",description:""},{name:"note",type:"string",required:"yes",description:"notes"},{name:"permissions",type:"Array",required:"yes",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",required:"no",description:"IP whitelist"}]},{type:"Response",key:"response",data:[{name:"permissions",type:"Array",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",description:"IP whitelist"},{name:"note",type:"string",description:"notes"}]}]}]},"K+iN":function(e,t){e.exports=[{type:"hash",text:"查询历史订单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/historyOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/historyOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",lastOrderId:"",length:0,apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"lastOrderId",type:"int64",required:"是",description:"用于分页, 第一次填写0, 后续填写前一次返回结果里面的最后一个订单id"},{name:"length",type:"int64",required:"是",description:"每次请求的长度, 最大值为100"},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"orderId",type:"string",description:"订单id"},{name:"side",type:"string",description:"交易方向, Bid买入, Ask卖出"},{name:"action",type:"string",description:"Open表示开仓, Close表示平仓, ADL表示自动减仓, Liquidation表示爆仓强平"},{name:"tradeType",type:"string",description:"订单类型, Limit是限价单, Market是市价单"},{name:"entrustVolume",type:"float64",description:"委托数量"},{name:"entrustPrice",type:"float64",description:"委托价格"},{name:"filledVolume",type:"float64",description:"成交数量"},{name:"avgFilledPrice",type:"float64",description:"成交价格"},{name:"profit",type:"float64",description:"盈亏"},{name:"commission",type:"float64",description:"手续费"},{name:"orderStatus",type:"string",description:"订单状态(Filled or PartiallyFilled, Pending, Cancelled, Failed)"},{name:"entrustTm",type:"string",description:"委托时间"},{name:"updateTm",type:"string",description:"更新时间"}]},{type:"OrderStatus",key:"key1",data:[{name:"Pending",type:"",description:"尚未成交"},{name:"PartiallyFilled",type:"",description:"部分成交"},{name:"Cancelled",type:"",description:"已撤销"},{name:"Filled",type:"",description:"已完成"},{name:"Failed",type:"",description:"失败"}]}]}]},"K/yH":function(e,t){e.exports=[{type:"hash",text:"凍結 解凍子賬戶"},{type:"normal",text:"凍結 解凍子賬戶"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/updateStatus"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/updateStatus",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子賬戶uid"},{name:"freeze",type:"bool",required:"是",description:"是否凍結賬號"}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子賬戶uid"},{name:"freeze",type:"bool",description:"是否已凍結"}]}]}]},K9aK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("76pZ").keys(),r=[],o=0;o"},{type:"code",text:"wss://open-api-ws.bingx.com/market/"},{type:"normal",text:"listenKey 獲取方式如下:"},{type:"hash",text:"生成 Listen Key"},{type:"normal",text:"listen key的有效時間為1小時"},{type:"normal",text:"接口",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"code",text:"curl -X POST 'https://open-api.bingx.com/openApi/user/auth/userDataStream' --header \"X-BX-APIKEY:g6ikQYpMiWLecMQ39DUivd4ENem9ygzAim63xUPFhRtCFBUDNLajRoZNiubPemKT\""},{type:"normal",text:"響應",style:{"font-weight":"bold"}},{type:"code",text:'{"listenKey":"a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7"}'},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"POST",payload:{}},params:[{type:"Header",key:"request",data:[{name:"X-BX-APIKEY",type:"string",required:"否",description:"請求的API KEY"}]},{type:"Response",key:"response",data:[{name:"listenKey",type:"string",description:"返回的listenKey"}]}]}]},KHR7:function(e,t){e.exports=[{type:"hash",text:"創建API"},{type:"html",text:"在對任何請求進行簽名之前,您必須通過 BingX 網站【用戶中心】-【API管理(永續合約)】創建一個API key。 創建key後,您將獲得2個必須記住的信息:"},{type:"normal",text:"",children:[{type:"normal",text:"API Key"},{type:"normal",text:"Secret Key"}]},{type:"normal",text:"API Key 和 Secret Key将由隨機生成和提供。"}]},KJWq:function(e,t){e.exports=[{type:"hash",text:"撤销订单"},{type:"normal",text:"将当前账户处于当前委托状态的某个订单进行撤销操作。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelOrder"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelOrder",protocol:"https",method:"POST",payload:{orderId:"",symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"是",description:"订单ID"},{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"订单ID"}]}]}]},KJg6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("4TeI").keys(),r=[],o=0;oid是用户传入的唯一id,返回时将返回,用于用户区分幂等性校验"},{type:"normal",text:"成功订阅后,Websocket客户端将收到确认:"},{type:"code",text:'{ "id": "id1", "code": 0, "msg": "" }'},{type:"normal",text:"之后, 一旦所订阅的数据有更新,Websocket客户端将收到服务器推送的更新消息"},{type:"html",text:"
  • code错误码说明
  • "},{type:"html",text:'

    0:"SUCCESS"
    /**
    * 100xxx为通用状态码.
    */
    // 服务器搜索无数据
    100204:"SEARCH_NO_CONTENT"

    // 重复请求
    100205:"REPEAT_REQUEST"

    // 客户端请求参数错误
    100400:"ILLEGAL_ARGUMENT"

    // 客户端认证失败
    100401:"AUTHENTICATION_FAIL"

    // 客户端权限校验失败
    100403:"AUTHORIZATION_FAIL"

    // 客户端请求频率限制
    100410:"FREQUENCY_LIMIT"

    // 服务器错误
    100500:"INTERNAL_SERVER_ERROR"

    // 服务器繁忙
    100503:"SERVER_BUSY"

    '}]},Ke1b:function(e,t,n){var i={".":"CSFx","./":"CSFx","./01_get_contract_allPosition":"ttu5","./01_get_contract_allPosition.json":"ttu5","./02_get_contract_allOrders":"RhU9","./02_get_contract_allOrders.json":"RhU9","./03_get_contract_balance":"n0S/","./03_get_contract_balance.json":"n0S/","./index":"CSFx","./index.js":"CSFx"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Ke1b"},Knhz:function(e,t){e.exports=[{type:"hash",text:"查询持仓信息"},{type:"normal",text:"查询当前账户下永续合约的持仓信息与盈亏情况。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/positions"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/positions",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"positionId",type:"string",description:"仓位ID"},{name:"positionSide",type:"string",description:"仓位方向 LONG/SHORT 多/空"},{name:"isolated",type:"bool",description:"是否是逐仓模式, true:逐仓模式 false:全仓"},{name:"positionAmt",type:"string",description:"持仓数量"},{name:"availableAmt",type:"string",description:"可平仓数量"},{name:"unrealizedProfit",type:"string",description:"未实现盈亏"},{name:"realisedProfit",type:"string",description:"已实现盈亏"},{name:"initialMargin",type:"string",description:"保证金"},{name:"avgPrice",type:"string",description:"开仓均价"},{name:"leverage",type:"int",description:"杠杆"}]}]}]},Kq29:function(e,t){e.exports=[{type:"hash",text:"創建子賬戶"},{type:"normal",text:"創建子賬戶"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/create"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subAccountString",type:"string",required:"是",description:"子帳戶用戶名"},{name:"note",type:"string",required:"否",description:"備註"},{name:"recvWindow",type:"long",required:"是",description:""},{name:"timestamp",type:"long",required:"是",description:""}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子賬戶uid"},{name:"subAccountString",type:"string",description:"子賬戶用戶名"},{name:"note",type:"string",description:"子賬戶備註信息"}]}]}]},KsRT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("3Obf").keys(),r=[],o=0;oBingX
    开发者文档。"},{type:"normal",text:"本文档提供了现货交易业务的账户管理、行情查询、交易功能等相关API的使用方法介绍。 行情API提供市场的公开的行情数据接口,账户和交易API需要身份验证,提供下单、撤单,查询订单和帐户信息等功能。 "}]}},LH2b:function(e,t,n){var i={".":"TcGk","./":"TcGk","./01_balance":"nWf4","./01_balance.json":"nWf4","./index":"TcGk","./index.js":"TcGk"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="LH2b"},LNys:function(e,t,n){var i={"./01_post_user_balance.json":"EOtf","./02_post_user_positions.json":"0EGA"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="LNys"},LWb5:function(e,t){e.exports=[{type:"hash",text:"Get Ticker"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/ticker"},{type:"html",text:"
  • If no transaction pair parameters are sent, all transaction pair information will be returned
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/ticker",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"no",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"priceChange",type:"string",description:"24 hour price change"},{name:"priceChangePercent",type:"string",description:"price change percentage"},{name:"lastPrice",type:"string",description:"latest transaction price"},{name:"lastQty",type:"string",description:"latest transaction amount"},{name:"highPrice",type:"string",description:"24-hour highest price"},{name:"lowPrice",type:"string",description:"24 hours lowest price"},{name:"volume",type:"string",description:"24-hour volume"},{name:"quoteVolume",type:"string",description:"24-hour turnover, the unit is USDT"},{name:"openPrice",type:"string",description:"first price within 24 hours"},{name:"openTime",type:"int64",description:"The time when the first transaction occurred within 24 hours"},{name:"closeTime",type:"int64",description:"The time when the last transaction occurred within 24 hours"}]}]}]},Latl:function(e,t){e.exports=[{type:"hash",text:"查詢槓桿"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/getLeverage"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/getLeverage",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"longLeverage",type:"int64",description:"多倉槓桿倍數"},{name:"shortLeverage",type:"int64",description:"空倉槓桿倍數"}]}]}]},LbRj:function(e,t,n){var i={"./01_get_user_balance.json":"W4Cx","./02_get_user_positions.json":"mp7j","./03_get_user_income.json":"h0vl"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="LbRj"},Ldk5:function(e,t,n){var i={".":"L6ds","./":"L6ds","./01_get_quote_contracts":"SYVa","./01_get_quote_contracts.json":"SYVa","./02_get_quote_price":"eT6P","./02_get_quote_price.json":"eT6P","./03_get_quote_depth":"55v+","./03_get_quote_depth.json":"55v+","./04_get_quote_ trades":"w+Dc","./04_get_quote_ trades.json":"w+Dc","./05_get_quote_ premiumIndex":"qG6H","./05_get_quote_ premiumIndex.json":"qG6H","./06_get_quote_ fundingRate":"2iez","./06_get_quote_ fundingRate.json":"2iez","./07_get_quote_ klines":"vZVR","./07_get_quote_ klines.json":"vZVR","./08_get_quote_ klines_history":"JZdI","./08_get_quote_ klines_history.json":"JZdI","./09_get_quote_ ticker":"4AkN","./09_get_quote_ ticker.json":"4AkN","./10_get_quote_openInterest":"vVjE","./10_get_quote_openInterest.json":"vVjE","./index":"L6ds","./index.js":"L6ds"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Ldk5"},LmIK:function(e,t){e.exports=[{type:"hash",text:"查询最新资金费率"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getLatestFunding"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getLatestFunding",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"fundingRate",type:"float64",description:"当前资金费率"},{name:"fairPrice",type:"float64",description:"当前的标记价格"},{name:"leftSeconds",type:"float64",description:"下次结算剩余时间,单位为秒"}]}]}]},LuFD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("4izq").keys(),r=[],o=0;ohttp status 200 success"},{type:"html",text:"
  • http status 204 not content
  • "},{type:"html",text:"
  • http status 404 not find key
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"DELETE",payload:{}},params:[{type:"Request",key:"request",data:[{name:"listenKey",type:"string",required:"yes",description:"listen Key"}]}]}]},M4z4:function(e,t,n){var i={".":"qM4I","./":"qM4I","./01_server_url":"FVkd","./01_server_url.json":"FVkd","./02_server_apply":"GUKh","./02_server_apply.json":"GUKh","./03_error_code":"uv3h","./03_error_code.json":"uv3h","./index":"qM4I","./index.js":"qM4I"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="M4z4"},M7Po:function(e,t){e.exports=[{type:"hash",text:"Configuration updates such as leverage and margin mode"},{type:"normal",text:"When the account configuration changes, the event type will be pushed as ACCOUNT_CONFIG_UPDATE"},{type:"normal",text:"When the leverage of a trading pair changes, the push message will contain the object ac, which represents the account configuration of the trading pair, where s represents the specific trading pair, l represents the leverage of long positions, S represents the leverage of short positions, and mt represents the margin mode."},{type:"html",text:"
  • For more about return error codes, please see the error code description on the homepage.
  • "},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"event type:ACCOUNT_CONFIG_UPDATE"},{name:"E",type:"",description:"event time:1676603102163"},{name:"ac",type:"obj",description:"trade"}]},{type:"ac",key:"common",data:[{name:"s",type:"",description:"trading pair:BTC-USDT"},{name:"l",type:"",description:"long position leverage:12"},{name:"S",type:"",description:"short position leverage:9"},{name:"mt",type:"",description:"margin mode:cross"}]}]}]},MHMA:function(e,t,n){var i={"./01_dept_info.json":"lI21","./02_latest_records.json":"u+VH","./03_kline_data.json":"TV6R"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="MHMA"},"MMY+":function(e,t){e.exports=[{type:"hash",text:"K线数据"},{type:"normal",text:"查询成交价格的K线数据。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/klines"},{type:"html",text:"
  • 如果未发送 startTime 和 endTime ,默认返回最新的k线数据
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/klines",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",interval:"",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"interval",type:"string",required:"是",description:"时间间隔,参考字段说明"},{name:"startTime",type:"int64",required:"否",description:"开始时间,单位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间,单位:毫秒"},{name:"limit",type:"int64",required:"否",description:"默认值:500 最大值:1440"}]},{type:"Response",key:"response",data:[{name:"open",type:"float64",description:"开盘价"},{name:"close",type:"float64",description:"收盘价"},{name:"high",type:"float64",description:"最高价"},{name:"low",type:"float64",description:"最低价"},{name:"volume",type:"float64",description:"交易数量"},{name:"time",type:"int64",description:"k线时间戳,单位毫秒"}]},{type:"interval",key:"common",data:[{name:"1m",description:"一分钟K线"},{name:"3m",description:"三分钟K线"},{name:"5m",description:"五分钟K线"},{name:"15m",description:"十五分钟K线"},{name:"30m",description:"三十分钟K线"},{name:"1h",description:"一小时K线"},{name:"2h",description:"两小时K线"},{name:"4h",description:"四小时K线"},{name:"6h",description:"六小时K线"},{name:"8h",description:"八小时K线"},{name:"12h",description:"12小时K线"},{name:"1d",description:"1日K线"},{name:"3d",description:"3日K线"},{name:"1w",description:"周K线"},{name:"1M",description:"月K线"}]}]}]},MQqI:function(e,t){e.exports=[{type:"hash",text:"Query apikey information"},{type:"normal",text:"Query apikey information"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/sub-account/v1/apiKey/query"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/sub-account/v1/apiKey/query",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"uid",type:"long",required:"yes",description:"User uid"},{name:"apiKey",type:"string",required:"no",description:""}]},{type:"Response",key:"response",data:[{name:"apiKey",type:"string",description:""},{name:"note",type:"string",description:"notes"},{name:"permissions",type:"Array",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",description:"IP whitelist"},{name:"createTime",type:"long",description:"Creation time"},{name:"updateTime",type:"long",description:"update time"}]}]}]},MRTk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("fptA").keys(),r=[],o=0;o "+e.api:e.text&&(t=e.name+" -> "+e.text),t&&n.options.push({label:t,value:J()(e)})}),i.push(n)},o=!0,s=!1,a=void 0;try{for(var p,d=Z()(V()(n));!(o=(p=d.next()).done);o=!0){var c=p.value,y=ee()(c,2);r(y[0],y[1])}}catch(e){s=!0,a=e}finally{try{!o&&d.return&&d.return()}finally{if(s)throw a}}}this.options=[].concat(i),setTimeout(function(){t.loading=!1},1e3)}}}),created:function(){this.debounceQuery=pe()(this.query,500)}},me={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"nav-header"},[i("img",{staticClass:"logo",attrs:{src:n("XmuZ"),alt:"BingX API Docs"}}),e._v(" "),i("el-menu",{staticClass:"nav-header-menu",attrs:{mode:"horizontal",router:"","text-color":"#999999","active-text-color":"#292929","default-active":e.defaultActive}},e._l(e.menus,function(t){return i("el-menu-item",{key:t.name,attrs:{index:t.path}},[e._v("\n "+e._s(t.label)+"\n ")])}),1),e._v(" "),i("el-select",{staticClass:"nav-header-search",attrs:{multiple:!1,loading:e.loading,"remote-method":e.debounceQuery,filterable:"",remote:"","no-data-text":"No Data","no-match-text":"No Data","loading-text":"Loading...",placeholder:e.placeholders[e.lang],icon:"el-icon-search","popper-class":"search-results"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[i("template",{slot:"prefix"},[i("i",{staticClass:"el-icon-search"})]),e._v(" "),e._l(e.options,function(t){return i("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)})],2),e._v(" "),i("el-dropdown",{staticClass:"nav-header-lang",attrs:{trigger:"click"}},[i("span",{staticStyle:{cursor:"pointer"}},[e._v("\n "+e._s(e.langLabel)+" "),i("i",{staticClass:"el-icon-arrow-down"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.langs,function(t){return i("el-dropdown-item",{key:t.value,nativeOn:{click:function(n){return e.handleChangeLang(t.value)}}},[e._v("\n "+e._s(t.label)+"\n ")])}),1)],1)],1)},staticRenderFns:[]};var le={components:{NavHeader:n("VU/8")(ye,me,!1,function(e){n("XujR")},"data-v-3b9fa63e",null).exports},computed:W()({},Object(I.b)(["currentLang"]))},ue={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{height:"100%"}},[t("NavHeader",{attrs:{lang:this.currentLang}}),this._v(" "),t("router-view",{attrs:{lang:this.currentLang}})],1)},staticRenderFns:[]},he=n("VU/8")(le,ue,!1,null,null,null).exports;m.a.registerLanguage(M.a.js,u.a),m.a.registerLanguage("json",g.a),m.a.registerLanguage(M.a.go,T.a),m.a.registerLanguage(M.a.shell,x.a),m.a.registerLanguage(M.a.java,w.a),m.a.registerLanguage(M.a.python,v.a),m.a.registerLanguage(M.a.csharp,S.a),m.a.registerLanguage(M.a.php,O.a),m.a.registerLanguage(M.a.html,j.a),m.a.registerLanguage(M.a.nodejs,u.a),i.default.use(p.a,{container:"#scroll-container",duration:500,easing:"ease",offset:0,force:!0}),i.default.use(P.a),i.default.use(c.a),i.default.use(r.a),i.default.prototype.$axios=s.a,i.default.config.productionTip=!1,i.default.prototype.$hljs=m.a;var ge=new r.a({mode:"hash",routes:H});ge.beforeEach(function(e,t,n){e.meta&&e.meta.title&&(document.title=e.meta.title+" | BingX API Docs"),n()}),new i.default({el:"#app",router:ge,store:U,render:function(e){return e(he)}})},NO1N:function(e,t){e.exports=[{type:"hash",text:"查询K线最新数据"},{type:"normal",text:"查询最新成交价格的K线最新数据。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getLatestKline"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getLatestKline",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",klineType:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'},{name:"klineType",type:"string",required:"是",description:"k线类型,参考字段说明,如分钟,小时,周等"}]},{type:"klineType",key:"key1",data:[{name:"1",type:"",description:"1m一分钟K线"},{name:"3",type:"",description:"3m三分钟K线"},{name:"5",type:"",description:"5m五分钟K线"},{name:"15",type:"",description:"15m十五分钟K线"},{name:"30",type:"",description:"30m三十分钟K线"},{name:"60",type:"",description:"1h一小时K线"},{name:"120",type:"",description:"2h两小时K线"},{name:"240",type:"",description:"4h四小时K线"},{name:"360",type:"",description:"6h六小时K线"},{name:"720",type:"",description:"12h十二小时K线"},{name:"1D",type:"",description:"1D日K线"},{name:"1W",type:"",description:"1W周K线"},{name:"1M",type:"",description:"1M月K线"}]},{type:"Response",key:"response",data:[{name:"open",type:"float64",description:"开盘价"},{name:"close",type:"float64",description:"收盘价"},{name:"high",type:"float64",description:"最高价"},{name:"low",type:"float64",description:"最低价"},{name:"volume",type:"float64",description:"交易数量"},{name:"ts",type:"int64",description:"k线时间戳,单位毫秒"}]}]}]},NoWp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("DWTp").keys(),r=[],o=0;o",description:"撤銷成功的訂單列表"},{name:"failed",type:"結构數組",description:"撤銷失敗的訂單列表"},{name:"orderId",type:"int64",description:"訂單號"},{name:"errorCode",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"errorMessage",type:"string",description:"錯誤信息提示"}]},{type:"Order",key:"order",data:[{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"訂單類型"},{name:"positionSide",type:"string",description:"持倉方向"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"status",type:"string",description:"訂單狀態"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"訂單號"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"}]}]}]},"O/kc":function(e,t,n){var i={".":"NoWp","./":"NoWp","./01_get_user_balance":"DLRo","./01_get_user_balance.json":"DLRo","./02_get_user_positions":"Knhz","./02_get_user_positions.json":"Knhz","./03_get_user_income":"s67u","./03_get_user_income.json":"s67u","./index":"NoWp","./index.js":"NoWp"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="O/kc"},"O2+o":function(e,t,n){var i={".":"MRTk","./":"MRTk","./01_dept_info":"PNFl","./01_dept_info.json":"PNFl","./02_latest_records":"vXfi","./02_latest_records.json":"vXfi","./03_kline_data":"H59N","./03_kline_data.json":"H59N","./index":"MRTk","./index.js":"MRTk"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="O2+o"},O2Id:function(e,t,n){var i={".":"+hJF","./":"+hJF","./01_connect":"uUP9","./01_connect.json":"uUP9","./02_data_compress":"ku8a","./02_data_compress.json":"ku8a","./03_heart_beat":"QDPd","./03_heart_beat.json":"QDPd","./04_subscribe":"f4mz","./04_subscribe.json":"f4mz","./05_cancel_subscribe":"IhWV","./05_cancel_subscribe.json":"IhWV","./index":"+hJF","./index.js":"+hJF"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="O2Id"},OKNr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("5KDU").keys(),r=[],o=0;o例如:對於如下的請求參數進行簽名"},{type:"code",text:'curl "https://api-swap-rest.bingbon.pro/api/v1/user/getBalance"'},{type:"html",text:"

    通過POST方式獲取獲取用戶某資產餘額信息,以

    "},{type:"html",text:"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    "},{type:"html",text:"為例"},{type:"html",text:"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    "},{type:"html",text:"請求參數按字典排序之後,為 "},{type:"html",text:"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    "},{type:"html",text:"mothod為POST,path為/api/v1/user/getBalance,生成待簽名的參數字符串如下:"},{type:"code",text:"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' "},{type:"html",text:"按算法生成待簽名的字符串"},{type:"code",text:"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' "},{type:"html",text:"然後,将待簽名字符串添加私鑰參數生成最终待簽名字符串。例如:"},{type:"html",text:'

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256("UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI", "POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013")

    '},{type:"code",text:'echo -n "POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013" | openssl dgst -sha256 -hmac "UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI" -binary | base64 | xargs python2.7 -c \'import sys, urllib;print(urllib.quote(sys.argv[1]))\' '},{type:"html",text:"Signature的結果為S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D,則簽名之後的url query參數為 "},{type:"html",text:"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    "},{type:"html",text:"即最终發送給服務器的API請求應該為:"},{type:"code",text:"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D"}]},Ob2m:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("gi0x").keys(),r=[],o=0;o如果 startTime 和 endTime 都未发送, 返回最近 limit 条数据."},{type:"html",text:"
  • 如果 startTime 和 endTime 之间的数据量大于 limit, 返回 startTime + limit情况下的数据。
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/fundingRate",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"startTime",type:"int64",required:"否",description:"起始时间,单位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间,单位:毫秒"},{name:"limit",type:"int32",required:"否",description:"默认值:100 最大值:1000"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"fundingRate",type:"string",description:"资金费率"},{name:"fundingTime",type:"int64",description:"资金费时间:单位毫秒"}]}]}]},PTH3:function(e,t){e.exports=[{type:"hash",text:"变换逐全仓模式"},{type:"normal",text:"变换用户在指定symbol合约上的保证金模式:逐仓或全仓。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/marginType"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/marginType",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginType:"",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"marginType",type:"string",required:"是",description:"保证金模式 ISOLATED(逐仓), CROSSED(全仓)"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"错误码,0表示成功,不为0表示异常失败"},{name:"msg",type:"string",description:"错误信息提示"}]},{type:"marginType",key:"common",data:[{name:"ISOLATED",type:"",description:"逐仓"},{name:"CROSSED",type:"",description:"全仓"}]}]}]},PVSb:function(e,t){e.exports=[{type:"hash",text:"Query sub account spot assets"},{type:"normal",text:"Query sub account spot assets"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/subAccount/v1/assets"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/assets",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"yes",description:"Sub account uid"}]},{type:"Response",key:"response",data:[{name:"asset",type:"string",description:"Asset Name"},{name:"free",type:"double",description:"Available limit"},{name:"locked",type:"double",description:"Lock in assets"}]}]}]},PWE0:function(e,t,n){var i={".":"X9kl","./":"X9kl","./2023-06-03":"jVl+","./2023-06-03.json":"jVl+","./2023-07-29":"MfXY","./2023-07-29.json":"MfXY","./index":"X9kl","./index.js":"X9kl"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="PWE0"},Par2:function(e,t,n){var i={"./01_get_asset_transfer.json":"6y27","./02_get_asset_transfer2.json":"TDIc","./03_get_deposit_hisrec.json":"YAvn","./04_get_withdraw_history.json":"WNKq","./05_post_wallets_coins.json":"7r0K","./06_post_wallets_withdraw.json":"T4Os","./07_post_capital_innerTransfer_apply.json":"+HuI"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Par2"},"PqB/":function(e,t){e.exports=[{type:"hash",text:"The latest Trade of a Trading Pair"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/trades"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/trades",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:500}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"limit",type:"int",required:"no",description:"default: 500, maximum 1000"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"transaction time"},{name:"isBuyerMaker",type:"bool",description:"Whether the buyer is the maker of the order (true / false)"},{name:"price",type:"string",description:"transaction price"},{name:"qty",type:"string",description:"transaction quantity"},{name:"quoteQty",type:"string",description:"turnover"}]}]}]},PyiJ:function(e,t){e.exports=[{type:"hash",text:"用户强平单历史"},{type:"normal",text:"查询用户强平单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/forceOrders"},{type:"html",text:'
  • 如果没有传 "autoCloseType", 强平单和ADL减仓单都会被返回
  • '},{type:"html",text:'
  • 如果没有传"startTime", 只会返回"endTime"之前7天内的数据
  • '},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/forceOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",autoCloseType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"autoCloseType",type:"string",required:"否",description:'"LIQUIDATION":强平单, "ADL":ADL减仓单'},{name:"startTime",type:"int64",required:"否",description:"开始时间,单位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间,单位:毫秒"},{name:"limit",type:"int",required:"否",description:"返回的结果集数量 默认值50,最大值100"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"订单时间,单位:毫秒"},{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"cumQuote",type:"string",description:"成交金额"},{name:"status",type:"string",description:"订单状态"},{name:"stopPrice",type:"string",description:"触发价"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"原始委托数量"},{name:"avgPrice",type:"string",description:"平均成交价"},{name:"executedQty",type:"string",description:"成交量"},{name:"orderId",type:"int64",description:"订单号"},{name:"profit",type:"string",description:"盈亏"},{name:"commission",type:"string",description:"手续费"},{name:"updateTime",type:"int64",description:"更新时间,单位:毫秒"}]}]}]},Pyy0:function(e,t,n){var i={".":"336Z","./":"336Z","./01_listenKey":"gOrG","./01_listenKey.json":"gOrG","./02_balance":"Zg2x","./02_balance.json":"Zg2x","./03_order":"4X8p","./03_order.json":"4X8p","./04_setting":"M7Po","./04_setting.json":"M7Po","./index":"336Z","./index.js":"336Z"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Pyy0"},"Q+zo":function(e,t){e.exports=[{type:"hash",text:"常见错误码"},{type:"html",text:"

    常见HTTP错误码:

    "},{type:"html",text:"
  • 4XX 错误码用于指示错误的请求内容、行为、格式
  • "},{type:"html",text:"
  • 5XX 错误码用于指示Bingx服务侧的问题
  • "},{type:"html",text:"

    常见业务错误码:

    "},{type:"html",text:"
  • 100001 - 签名验证失败
  • "},{type:"html",text:"
  • 100202 - 余额不足
  • "},{type:"html",text:"
  • 100400 - 参数错误
  • "},{type:"html",text:"
  • 100440 - 下单价格跟市场市场价格偏离太远
  • "},{type:"html",text:"
  • 100500 - 服务器内部错误
  • "},{type:"html",text:"
  • 100503 - 服务器繁忙
  • "},{type:"html",text:"

    注意:

    "},{type:"html",text:"
  • 如果失败,response body 带有错误描述信息
  • "},{type:"html",text:"
  • 每个接口都有可能抛出异常
  • "}]},Q3ZN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("f6o8").keys(),r=[],o=0;ohttp status 200 success"},{type:"html",text:"
  • http status 204 not content
  • "},{type:"html",text:"
  • http status 404 not find key
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"PUT",payload:{}},params:[{type:"Request",key:"request",data:[{name:"listenKey",type:"string",required:"yes",description:"listen Key"}]}]}]},RvjO:function(e,t){e.exports=[{type:"hash",text:"設置止盈止損訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/stopOrder"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/stopOrder",protocol:"https",method:"POST",payload:{apiKey:"",positionId:"",orderId:"",stopLossPrice:0,takeProfitPrice:0,entrustVolume:0}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"},{name:"positionId",type:"int64",required:"是",description:"持倉id"},{name:"orderId",type:"int64",required:"否",description:"止盈止損訂單id"},{name:"stopLossPrice",type:"float64",required:"否",description:"止損價格"},{name:"takeProfitPrice",type:"float64",required:"否",description:"止盈價格"},{name:"entrustVolume",type:"float64",required:"是",description:"委託數量"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"止盈止損訂單id"}]}]}]},"S+dO":function(e,t){e.exports=[{type:"hash",text:"查詢資產"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/account/balance"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/account/balance",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"recvWindow",type:"int64",required:"否",description:"請求時間戳, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"balances",type:"Array",description:"資產列表, 元素字段參考下表"}]},{type:"balance",key:"response1",data:[{name:"asset",type:"string",description:"資產名"},{name:"free",type:"string",description:"可用資金"},{name:"locked",type:"string",description:"凍結資金"}]}]}]},S9BK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("7I4l").keys(),r=[],o=0;o标准合约"},{name:"SFUTURES_FUND",type:"",description:"标准合约->资金账户"},{name:"FUND_PFUTURES",type:"",description:"资金账户->永续合约"},{name:"PFUTURES_FUND",type:"",description:"永续合约->资金账户"},{name:"SFUTURES_PFUTURES",type:"",description:"标准合约->永续合约"},{name:"PFUTURES_SFUTURES",type:"",description:"永续合约->标准合约"},{name:"FUND_STRADING",type:"",description:"资金账户 -> 网格"},{name:"STRADING_FUND",type:"",description:"网格 -> 资金账户"},{name:"FUND_CTRADING",type:"",description:"资金账户 -> 跟单"},{name:"SFUTURES_CTRADING",type:"",description:"标准合约账户 -> 跟单"},{name:"PFUTURES_CTRADING",type:"",description:"永续合约账户 -> 跟单"},{name:"CTRADING_FUND",type:"",description:"跟单 -> 资金账户"},{name:"CTRADING_SFUTURES",type:"",description:"跟单 -> 标准合约账户"},{name:"CTRADING_PFUTURES",type:"",description:"跟单 -> 永续合约账户"}]},{type:"Response",key:"response",data:[{name:"total",type:"LONG",description:"总数"},{name:"rows",type:"Array",description:"数据Array"},{name:"asset",type:"string",description:"币的名称"},{name:"amount",type:"DECIMAL",description:"币的金额"},{name:"type",type:"ENUM",description:"划转类型"},{name:"status",type:"string",description:"CONFIRMED"},{name:"tranId",type:"LONG",description:"交易ID"},{name:"timestamp",type:"LONG",description:"划转的时间戳"}]}]}]},TDl7:function(e,t){e.exports=[{type:"hash",text:"交易下单"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/trade"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/trade",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",apiKey:"",side:"",entrustPrice:0,entrustVolume:0,tradeType:"",action:"",takerProfitPrice:0,stopLossPrice:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"},{name:"side",type:"string",required:"是",description:"(Bid/Ask 买/卖)"},{name:"entrustPrice",type:"float64",required:"是",description:"价格"},{name:"entrustVolume",type:"float64",required:"是",description:"数量"},{name:"tradeType",type:"string",required:"是",description:"Market/Limit 市价/限价"},{name:"action",type:"string",required:"是",description:"Open/Close 开仓/平仓"},{name:"takerProfitPrice",type:"float64",required:"否",description:"止盈价格"},{name:"stopLossPrice",type:"float64",required:"否",description:"止损价格"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"订单ID"}]}]}]},TDt4:function(e,t){e.exports=[{type:"hash",text:"導出資金流水"},{type:"normal",text:"導出資金流水"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/income/export"},{type:"warning",text:"響應: Excel File"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/income/export",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",incomeType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"incomeType",type:"string",required:"否",description:"資金流水類型,可選值:TRANSFER REALIZED_PNL FUNDING_FEE TRADING_FEE INSURANCE_CLEAR TRIAL_FUND ADL SYSTEM_DEDUCTION"},{name:"startTime",type:"int64",required:"否",description:"起始時間戳,單位毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間戳,單位毫秒"},{name:"limit",type:"int",required:"否",description:"返回的結果集數量 默認值:100 最大值:1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位:毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間窗口,單位:毫秒"}]}]}]},TUnK:function(e,t,n){var i={"./01_trade_info.json":"tk7z","./02_kline_data.json":"klxE","./03_depth_info.json":"ADmP"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="TUnK"},TV6R:function(e,t){e.exports=[{type:"hash",text:"订阅合约k线数据"},{type:"normal",text:"K线stream逐秒推送所请求的K线种类(最新一根K线)的更新。"},{type:"normal",text:"订阅类型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 @kline_,比如BTC-USDT@kline_1m"},{type:"normal",text:"订阅举例",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"BTC-USDT@kline_1m"}'},{type:"html",text:"
  • 更多返回错误代码请看首页的错误代码描述
  • "},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称,合约名称中需有"-",如BTC-USDT'},{name:"interval",type:"string",required:"是",description:"k线类型,交易对, 参考字段说明,如分钟,小时,周等"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有错误信息,0为正常,1为有错误"},{name:"dataType",type:"",description:"订阅的数据类型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送内容"},{name:"c",type:"",description:"收盘价"},{name:"h",type:"",description:"最高价"},{name:"l",type:"",description:"最低价"},{name:"o",type:"",description:"开盘价"},{name:"v",type:"",description:"成交量"},{name:"s",type:"",description:"交易对"}]},{type:"interval",key:"common",data:[{name:"1m",description:"一分钟K线"},{name:"3m",description:"三分钟K线"},{name:"5m",description:"五分钟K线"},{name:"15m",description:"十五分钟K线"},{name:"30m",description:"三十分钟K线"},{name:"1h",description:"一小时K线"},{name:"2h",description:"两小时K线"},{name:"4h",description:"四小时K线"},{name:"6h",description:"六小时K线"},{name:"8h",description:"八小时K线"},{name:"12h",description:"12小时K线"},{name:"1d",description:"1日K线"},{name:"3d",description:"3日K线"},{name:"1w",description:"周K线"},{name:"1M",description:"月K线"}]}]}]},TcGk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("CU9l").keys(),r=[],o=0;oGET方法的接口, 参数必须在query string中发送."},{type:"html",text:"
  • POST, PUT, 和 DELETE 方法的接口, 参数可以在 query string 中发送,也可以在 request body 中发送(content type application/x-www-form-urlencoded)。
    允许混合这两种方式发送参数。但如果同一个参数名在 query string 和 request body 中都有,query string 中的会被优先采用。
  • "},{type:"html",text:"
  • 对参数的顺序不做要求。
  • "}]}},TsMJ:function(e,t){e.exports=[{type:"hash",text:"深度信息"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/depth"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/depth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:20}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"limit",type:"int",required:"否",description:"默认20,可选值:[5, 10, 20, 50, 100, 500, 1000]"}]},{type:"Response",key:"response",data:[{name:"T",type:"int64",description:"系统时间,单位:毫秒"},{name:"asks",type:"array",description:"卖方深度。第一个元素价格,第二个元素数量"},{name:"bids",type:"array",description:"买方深度。第一个元素价格,第二个元素数量"}]}]}]},Tupg:function(e,t){e.exports=[{type:"hash",text:"冻结 解冻子账户"},{type:"normal",text:"冻结 解冻子账户"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/updateStatus"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/updateStatus",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子账户uid"},{name:"freeze",type:"bool",required:"是",description:"是否冻结账号"}]},{type:"Response",key:"response",data:[{name:"subUid",type:"long",description:"子账户uid"},{name:"freeze",type:"bool",description:"是否已冻结"}]}]}]},U3vK:function(e,t){e.exports=[{type:"hash",text:"權限設置"},{type:"normal",text:"",children:[{type:"normal",text:"新創建的API的默認權限是 只讀。"},{type:"normal",text:"如果需要通過API進行下單交易等寫操作,需要在UI修改為對應權限。"}]}]},U4UH:function(e,t,n){var i={".":"R9OT","./":"R9OT","./01_create_listenKey":"KCrj","./01_create_listenKey.json":"KCrj","./02_put_listenKey":"lKnG","./02_put_listenKey.json":"lKnG","./03_delete_listenKey":"+Xv4","./03_delete_listenKey.json":"+Xv4","./index":"R9OT","./index.js":"R9OT"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="U4UH"},UG8z:function(e,t){e.exports=[{type:"hash",text:"Permission Settings"},{type:"normal",text:"",children:[{type:"normal",text:"The default permission for newly created APIs is read-only."},{type:"normal",text:"If you need to perform write operations such as placing an order through the API, you need to modify it to the corresponding permission on the UI."}]}]},UGH9:function(e,t,n){var i={".":"ohLs","./":"ohLs","./01_executionReport":"pjpR","./01_executionReport.json":"pjpR","./02_ account_update":"5y10","./02_ account_update.json":"5y10","./index":"ohLs","./index.js":"ohLs"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="UGH9"},UJ2F:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("F6Mp").keys(),r=[],o=0;o如果未發送 startTime 和 endTime ,默認返回最新的k線數據"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/klines",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",interval:"",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"interval",type:"string",required:"是",description:"時間間隔,參考字段說明"},{name:"startTime",type:"int64",required:"否",description:"開始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int64",required:"否",description:"默認值:500 最大值:1440"}]},{type:"Response",key:"response",data:[{name:"open",type:"float64",description:"開盤價"},{name:"close",type:"float64",description:"收盤價"},{name:"high",type:"float64",description:"最高價"},{name:"low",type:"float64",description:"最低價"},{name:"volume",type:"float64",description:"交易數量"},{name:"time",type:"int64",description:"k線時間戳,單位毫秒"}]},{type:"interval",key:"common",data:[{name:"1m",description:"一分鐘K線"},{name:"3m",description:"三分鐘K線"},{name:"5m",description:"五分鐘K線"},{name:"15m",description:"十五分鐘K線"},{name:"30m",description:"三十分鐘K線"},{name:"1h",description:"一小時K線"},{name:"2h",description:"两小時K線"},{name:"4h",description:"四小時K線"},{name:"6h",description:"六小時K線"},{name:"8h",description:"八小時K線"},{name:"12h",description:"12小時K線"},{name:"1d",description:"1日K線"},{name:"3d",description:"3日K線"},{name:"1w",description:"週K線"},{name:"1M",description:"月K線"}]}]}]},"Ua/t":function(e,t){e.exports=[{type:"hash",text:"查询最新成交记录"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getMarketTrades"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getMarketTrades",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称, 合约名称中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"time",type:"date",description:"成交时间"},{name:"makerSide",type:"string",description:"吃单方向(Buy / Sell 买/卖)"},{name:"price",type:"string",description:"成交价格"},{name:"volume",type:"string",description:"成交数量"}]}]}]},UdzQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("sHu4").keys(),r=[],o=0;o@kline_,比如BTC-USDT@kline_1min"},{type:"normal",text:"订阅举例",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"BTC-USDT@kline_1m"}'},{type:"html",text:"
  • 目前仅提供一分钟的k线数据
  • "},{type:"normal",text:"订阅参数",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合约名称,合约名称中需有"-",如BTC-USDT'},{name:"interval",type:"string",required:"是",description:"参考字段说明,K线类型,1min, 5min, 15min, 30min, 60min, 1day"}]},{type:"Response",key:"wssResponse",data:[{name:"dataType",type:"",description:"订阅的数据类型,例如 BTC-USDT@kline_1min"},{name:"data",type:"",description:"推送内容"}]},{type:"data",key:"key1",data:[{name:"E",type:"",description:"事件时间"},{name:"K",type:"",description:"数据"},{name:"e",type:"",description:"事件类型"},{name:"s",type:"",description:"交易对"}]},{type:"K",key:"key2",data:[{name:"T",type:"",description:"这根K线的结束时间"},{name:"c",type:"",description:"这根K线期间末一笔成交价"},{name:"h",type:"",description:"这根K线期间最高成交价"},{name:"i",type:"",description:"K线间隔"},{name:"l",type:"",description:"这根K线期间最低成交价"},{name:"n",type:"",description:"这根K线期间成交笔数"},{name:"o",type:"",description:"这根K线期间第一笔成交价"},{name:"q",type:"",description:"这根K线期间成交额"},{name:"s",type:"",description:"交易对"},{name:"t",type:"",description:"这根K线的起始时间"},{name:"v",type:"",description:"这根K线期间成交量"}]},{type:"klineType",key:"common",data:[{name:"1min",description:"1min一分钟K线"}]}]}]},VOPx:function(e,t){e.exports=[{type:"hash",text:"查詢合約24小時價格變動情况"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getTicker"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getTicker",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"合約名稱"},{name:"priceChange",type:"string",description:"價格變動, 單位是USDT"},{name:"priceChangePercent",type:"string",description:"價格變動百分比"},{name:"lastPrice",type:"string",description:"最新交易價格"},{name:"lastVolume",type:"string",description:"最新交易數量"},{name:"highPrice",type:"string",description:"24小時最高價"},{name:"lowPrice",type:"string",description:"24小時最低價"},{name:"volume",type:"string",description:"24小時成交量"},{name:"dayVolume",type:"string",description:"24小時成交額, 單位是USDT"},{name:"openPrice",type:"string",description:"24小時內第一個價格"}]}]}]},VQr5:function(e,t){e.exports=[{type:"hash",text:"Timestamp"},{type:"normal",text:"",children:[{type:"html",text:"Unless otherwise specified, all timestamps from the API are returned with millisseconds resolution."},{type:"html",text:"The timestamp of the request must be within 5 seconds of the API service time, otherwise the request will be considered expired and rejected. If there is a large deviation between the local server time and the API server time, we recommend that you update the http header by querying the API server time. header。 "}]},{type:"html",text:"

    Example

    "},{type:"code",text:"1587091154123"}]},VTkR:function(e,t,n){var i={".":"9GqO","./":"9GqO","./01_get_common_symbols":"o8W7","./01_get_common_symbols.json":"o8W7","./02_get_ market_traders":"SDL0","./02_get_ market_traders.json":"SDL0","./03_get_market_depth":"2qJV","./03_get_market_depth.json":"2qJV","./04_get_market_klines":"/lsz","./04_get_market_klines.json":"/lsz","./index":"9GqO","./index.js":"9GqO"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="VTkR"},VUGM:function(e,t){e.exports=[{type:"hash",text:"Subscribe the Latest Trade Detail"},{type:"normal",text:"Subscribe to the trade detail data of a trading pair"},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"dataType 为 market.trade.detail.$Symbol,比如market.trade.detail.BTC-USDT"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"dataType",type:"",description:"The type of data subscribed, such as market.tradeDetail.BTC-USDT"},{name:"data",type:"",description:"Push Data"},{name:"trades",type:"",description:"Deal by deal"},{name:"time",type:"",description:"transaction time"},{name:"makerSide",type:"",description:"Direction ( Bid / Ask)"},{name:"price",type:"",description:"transaction price"},{name:"volume",type:"",description:"Executed quantity"}]}]}]},VVr3:function(e,t){e.exports=[{type:"hash",text:"Withdraw History (supporting network)"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/capital/withdraw/history"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/capital/withdraw/history",protocol:"https",method:"GET",payload:{coin:"",withdrawOrderId:"",status:0,startTime:1658748648396,endTime:1658748648396,offset:0,limit:1e3,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"no",description:"coin name"},{name:"withdrawOrderId",type:"string",required:"no",description:"Custom ID, if there is none, this field will not be returned"},{name:"status",type:"int",required:"no",description:"Status (0: Confirmation Email has been sent, 2: Waiting for confirmation 3: Rejected 4: Processing 5: Withdrawal transaction failed 6 Withdrawal completed)"},{name:"startTime",type:"LONG",required:"no",description:"Starting time1658748648396"},{name:"endTime",type:"LONG",required:"no",description:"End Time 1658748648396"},{name:"offset",type:"int",required:"no",description:"offset default0"},{name:"limit",type:"int",required:"no",description:"Page size default 1000 cannot exceed 1000"},{name:"recvWindow",type:"LONG",required:"no",description:"Execution window time, cannot be greater than 60000"},{name:"timestamp",type:"LONG",required:"yes",description:"current timestamp e.g.1658748648396"}]},{type:"Response",key:"response",data:[{name:"address",type:"string",description:"address"},{name:"amount",type:"DECIMAL",description:"Withdrawal amount"},{name:"applyTime",type:"Date",description:"Withdrawal time"},{name:"coin",type:"string",description:"coin name"},{name:"id",type:"string",description:"The id of the withdrawal"},{name:"withdrawOrderId",type:"string",description:"Custom ID, if there is none, this field will not be returned"},{name:"network",type:"string",description:"Withdrawal network"},{name:"transferType",type:"LONG",description:"Transaction Type 1 = Withdrawal"},{name:"status",type:"int",description:"Status Status 0-Confirmed-10-To be confirmed (under review) 20-Applied for block 30-Approved and passed 40-Approval failed 50-Exported 60-Preliminary confirmation of recharge (final confirmation becomes 0) 70-Approved failed and returned assets"},{name:"transactionFee",type:"string",description:"handling fee"},{name:"confirmNo",type:"int",description:"Withdrawal confirmation times"},{name:"info",type:"string",description:"Reason for withdrawal failure"},{name:"txId",type:"String",description:"Withdrawal transaction id"}]}]}]},VbHA:function(e,t){e.exports=[{type:"hash",text:"Subscribe Market Depth Data"},{type:"normal",text:"Push limited file depth information every second."},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"The dataType is @depth E.g. BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"level",type:"string",required:"yes",description:"Depth level, such as 5,10,20,50,100"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"With regards to error messages, 0 means normal, and 1 means error"},{name:"dataType",type:"",description:"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5"},{name:"data",type:"",description:"Push Data"},{name:"asks",type:"",description:"Sell side depth"},{name:"bids",type:"",description:"Buy side depth"},{name:"p",type:"",description:"price"},{name:"v",type:"",description:"volume"}]}]}]},Vcuj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("dJsD").keys(),r=[],o=0;o= orderId。否则将返回最新订单。"},{type:"normal",text:"如果设置 startTime 和 endTime, orderId 就不需要设置。"}]},{type:"demo",api:{uri:"/openApi/spot/v1/trade/historyOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,startTime:0,endTime:0,pageIndex:0,pageSize:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品种, 例如: BTC-USDT, 请使用大写字母"},{name:"orderId",type:"int64",required:"否",description:""},{name:"startTime",type:"int64",required:"否",description:"开始时间戳, 单位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"结束时间戳, 单位:毫秒"},{name:"pageIndex",type:"int64",required:"是",description:"分页页码,必须大于0"},{name:"pageSize",type:"int64",required:"是",description:"分页数量,必须大于0,最大值为100"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"请求时间戳, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"orders",type:"Array",description:"订单列表,最大长度为2000, 订单字段参考下表"}]},{type:"order",key:"response1",data:[{name:"symbol",type:"string",description:"交易品种"},{name:"orderId",type:"int64",description:"订单号"},{name:"price",type:"string",description:"委托价格"},{name:"origQty",type:"string",description:"下单数量"},{name:"executedQty",type:"string",description:"成交数量"},{name:"cummulativeQuoteQty",type:"string",description:"成交额"},{name:"status",type:"string",description:"订单状态, NEW新订单 PENDING委托中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤销 FAILED失败"},{name:"type",type:"string",description:"订单类型, MARKET市价 LIMIT限价"},{name:"side",type:"string",description:"交易类型, BUY买 SELL卖"},{name:"time",type:"int64",description:"下单时间戳"},{name:"updateTime",type:"int64",description:"更新时间戳"},{name:"origQuoteOrderQty",type:"string",description:"下单金额"}]}]}]},"W+/z":function(e,t){e.exports=[{type:"hash",text:"切換賬戶保證金模式"},{type:"normal",text:"修改永續合約賬戶的保證金模式,全倉模式或逐倉模式。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/setMarginMode"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/setMarginMode",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginMode:"",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"marginMode",type:"string",required:"是",description:"Isolated or Cross, 賬戶保證金模式,逐倉或者全倉"},{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"}]}]}]},"W+Bc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("BQvj").keys(),r=[],o=0;o-1;o--){var s=n("wcqk")(""+i[o]);r=r.concat(s)}var a=r},W4Cx:function(e,t){e.exports=[{type:"hash",text:"Get Perpetual Swap Account Asset Information"},{type:"normal",text:"Get asset information of user‘s Perpetual Account"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/balance"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/user/balance",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"yes",description:"request timestamp in milliseconds"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"},{name:"asset",type:"string",description:"user asset"},{name:"balance",type:"string",description:"asset balance"},{name:"equity",type:"string",description:"net asset value"},{name:"unrealizedProfit",type:"string",description:"unrealized profit and loss"},{name:"realisedProfit",type:"string",description:"realized profit and loss"},{name:"availableMargin",type:"string",description:"available margin"},{name:"usedMargin",type:"string",description:"used margin"},{name:"freezedMargin",type:"string",description:"frozen margin"}]}]}]},W9nQ:function(e,t){e.exports=[{type:"hash",text:"賬戶餘額和倉位更新推送"},{type:"normal",text:"賬戶更新事件的 event type 固定為 ACCOUNT_UPDATE "},{type:"normal",text:"當賬戶信息有變動時,會推送此事件:",children:[{type:"normal",text:"僅當賬戶信息有變動時(包括資金、倉位等發生變化),才會推送此事件; 訂單狀態變化沒有引起賬戶和持倉變化的,不會推送此事件;"},{type:"normal",text:"position 信息:僅當symbol倉位有變動時推送。 "}]},{type:"normal",text:'"FUNDING FEE" 引起的資金餘額變化,僅推送簡略事件: ',children:[{type:"normal",text:'當用戶某全倉持倉發生"FUNDING FEE"時,事件ACCOUNT_UPDATE将只會推送相關的用戶資產餘額信息B(僅推送FUNDING FEE 發生相關的資產餘額信息),而不會推送任何持倉信息P。 '},{type:"normal",text:'當用戶某逐倉倉持倉發生"FUNDING FEE"時,事件ACCOUNT_UPDATE将只會推送相關的用戶資產餘額信息B(僅推送"FUNDING FEE"所使用的資產餘額信息),和相關的持倉信息P(僅推送這筆"FUNDING FEE"發生所在的持倉信息),其餘持倉信息不會被推送。 '}]},{type:"normal",text:'字段"m"代表了事件推出的原因,包含了以下可能類型:',children:[{type:"normal",text:"DEPOSIT"},{type:"normal",text:"WITHDRAW"},{type:"normal",text:"ORDER"},{type:"normal",text:"FUNDING_FEE"}]},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件類型:ACCOUNT_UPDATE"},{name:"E",type:"",description:"事件時間:1676603102163"},{name:"T",type:"",description:"1676603102163"},{name:"a",type:"obj",description:"賬戶更新事件"}]},{type:"a",key:"key1",data:[{name:"m",type:"",description:"事件推出原因"},{name:"B",type:"",description:"數組:餘額信息"},{name:"P",type:"",description:"數組:交易信息"}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"資產名稱:USDT"},{name:"wb",type:"",description:"钱包餘額:5277.59264687"},{name:"cw",type:"",description:"除去逐倉倉位保證金的钱包餘額:5233.21709203"},{name:"bc",type:"",description:"钱包餘額改變量:0"}]},{type:"P",key:"key3",data:[{name:"s",type:"",description:"交易對:LINK-USDT"},{name:"pa",type:"",description:"倉位:108.84300000"},{name:"ep",type:"",description:"入倉價格:7.25620000"},{name:"up",type:"",description:"持倉未實現盈虧:1.42220000"},{name:"mt",type:"",description:"保證金模式:isolated"},{name:"iw",type:"",description:"若為逐倉,倉位保證金:23.19081642"},{name:"ps",type:"",description:"持倉方向:SHORT"}]}]}]},WCFx:function(e,t){e.exports=[{type:"hash",text:"Switch Margin Mode"},{type:"normal",text:"Change the user's margin mode on the specified symbol contract: isolated margin or cross margin."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/marginType"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/marginType",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginType:"",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp in milliseconds"},{name:"marginType",type:"string",required:"yes",description:"Margin mode ISOLATED (isolated margin), CROSSED (cross margin)"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"msg",type:"string",description:"Error Details Description"}]},{type:"marginType",key:"common",data:[{name:"ISOLATED",type:"",description:"Isolated Margin"},{name:"CROSSED",type:"",description:"Full position"}]}]}]},WKtD:function(e,t){e.exports=[{type:"hash",text:"撤銷止盈止損訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/cancelStopOrder"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/cancelStopOrder",protocol:"https",method:"POST",payload:{apiKey:"",orderId:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密鑰"},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"},{name:"orderId",type:"string",required:"是",description:"止盈止損訂單id"}]},{type:"Response",key:"response",data:[{name:"code",type:"",description:""},{name:"message",type:"",description:""}]}]}]},WNKq:function(e,t){e.exports=[{type:"hash",text:"获取提币历史(支持多网络)"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/capital/withdraw/history"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/capital/withdraw/history",protocol:"https",method:"GET",payload:{coin:"",withdrawOrderId:"",status:0,startTime:1658748648396,endTime:1658748648396,offset:0,limit:1e3,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"否",description:"币的名称"},{name:"withdrawOrderId",type:"string",required:"否",description:"自定义ID, 如果没有则不返回该字段"},{name:"status",type:"int",required:"否",description:"状态 (0:已发送确认Email, 2:等待确认 3:被拒绝 4:处理中 5:提现交易失败 6 提现完成)"},{name:"startTime",type:"LONG",required:"否",description:"开始时间 1658748648396"},{name:"endTime",type:"LONG",required:"否",description:"结束时间 1658748648396"},{name:"offset",type:"int",required:"否",description:"偏移 默认0"},{name:"limit",type:"int",required:"否",description:"页数量大小 默认1000 不能超过1000"},{name:"recvWindow",type:"LONG",required:"否",description:"执行窗口时间,不能大于 60000"},{name:"timestamp",type:"LONG",required:"是",description:"当前时间戳 例如1658748648396"}]},{type:"Response",key:"response",data:[{name:"address",type:"string",description:"地址"},{name:"amount",type:"DECIMAL",description:"提现转出金额"},{name:"applyTime",type:"Date",description:"充值时间"},{name:"coin",type:"string",description:"币名称"},{name:"id",type:"string",description:"该笔提现的id"},{name:"withdrawOrderId",type:"string",description:"自定义ID, 如果没有则不返回该字段"},{name:"network",type:"string",description:"提现网络"},{name:"transferType",type:"LONG",description:"交易类型1=提现"},{name:"status",type:"int",description:"状态 状态 0-已确认-10-待确认(审核中) 20-已申请区块 30已审核通过 40审核不通过 50已汇出 60充值初步确认(最终确认变为0) 70审核不通过已退回资产"},{name:"transactionFee",type:"string",description:"手续费"},{name:"confirmNo",type:"int",description:"提现确认次数"},{name:"info",type:"string",description:"提币失败原因"},{name:"txId",type:"String",description:"提现交易id"}]}]}]},WVbz:function(e,t){e.exports=[{type:"hash",text:"變換逐全倉模式"},{type:"normal",text:"變換用戶在指定symbol合約上的保證金模式:逐倉或全倉。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/marginType"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/marginType",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",marginType:"",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"marginType",type:"string",required:"是",description:"保證金模式 ISOLATED(逐倉), CROSSED(全倉)"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"}]},{type:"marginType",key:"common",data:[{name:"ISOLATED",type:"",description:"逐倉"},{name:"CROSSED",type:"",description:"全倉"}]}]}]},WbRb:function(e,t){e.exports=[{type:"hash",text:"訂閱合約k線數據"},{type:"normal",text:"K線stream逐秒推送所請求的K線種類(最新一根K線)的更新。"},{type:"normal",text:"訂閱類型",style:{"font-weight":"bold"}},{type:"code",text:"dataType 為 @kline_,比如BTC-USDT@kline_1m"},{type:"normal",text:"訂閱举例",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","dataType":"BTC-USDT@kline_1m"}'},{type:"html",text:"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • "},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱,合約名稱中需有"-",如BTC-USDT'},{name:"interval",type:"string",required:"是",description:"k線類型,交易對, 參考字段說明,如分鐘,小時,週等"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"dataType",type:"",description:"訂閱的數據類型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送內容"},{name:"c",type:"",description:"收盤價"},{name:"h",type:"",description:"最高價"},{name:"l",type:"",description:"最低價"},{name:"o",type:"",description:"開盤價"},{name:"v",type:"",description:"成交量"},{name:"s",type:"",description:"交易對"}]},{type:"interval",key:"common",data:[{name:"1m",description:"一分鐘K線"},{name:"3m",description:"三分鐘K線"},{name:"5m",description:"五分鐘K線"},{name:"15m",description:"十五分鐘K線"},{name:"30m",description:"三十分鐘K線"},{name:"1h",description:"一小時K線"},{name:"2h",description:"两小時K線"},{name:"4h",description:"四小時K線"},{name:"6h",description:"六小時K線"},{name:"8h",description:"八小時K線"},{name:"12h",description:"12小時K線"},{name:"1d",description:"1日K線"},{name:"3d",description:"3日K線"},{name:"1w",description:"週K線"},{name:"1M",description:"月K線"}]}]}]},Wd1J:function(e,t,n){var i={"./01_connect.json":"uUP9","./02_data_compress.json":"ku8a","./03_heart_beat.json":"QDPd","./04_subscribe.json":"f4mz","./05_cancel_subscribe.json":"IhWV"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Wd1J"},"Wg+8":function(e,t){e.exports=[{type:"hash",text:"订阅账户余额推送"},{type:"normal",text:"订阅类型"},{type:"code",text:"dataType 为 ACCOUNT_UPDATE"},{type:"normal",text:"订阅例子"},{type:"code",text:'{"id":"gdfg2311-d0f6-4a70-8d5a-043e4c741b40","dataType":"ACCOUNT_UPDATE"}'},{type:"normal",text:'字段"m"代表了事件推出的原因,包含了以下可能类型:'},{type:"html",text:"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    "},{type:"html",text:"
  • 更多返回错误代码请看首页的错误代码描述
  • "},{type:"normal",text:"推送数据",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件类型"},{name:"E",type:"",description:"事件时间"},{name:"T",type:"",description:"撮合时间"},{name:"a",type:"",description:"资产名称"}]},{type:"a",key:"key1",data:[{name:"B",type:"",description:"Array[]"},{name:"m",type:"",description:"事件推出原因 "}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"资产名称"},{name:"bc",type:"",description:"除去盈亏与交易手续费以外的钱包余额改变量"},{name:"cw",type:"",description:"资产名称"},{name:"wb",type:"",description:"钱包余额"}]}]}]},WnJc:function(e,t,n){var i={"./01_get_quote_contracts.json":"lrAs","./02_get_quote_price.json":"r2l6","./03_get_quote_depth.json":"obcS","./04_get_quote_ trades.json":"KY9U","./05_get_quote_ premiumIndex.json":"5xUh","./06_get_quote_ fundingRate.json":"dEdI","./07_get_quote_ klines.json":"UTAD","./08_get_quote_openInterest.json":"0IKX","./09_get_quote_ ticker.json":"Y7KR"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="WnJc"},X4K5:function(e,t){e.exports=[{type:"hash",text:"接入方式"},{type:"normal",text:"行情Websocket的接入URL:wss://open-api-swap.bingx.com/swap-market"}]},X9kl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("tMb9").keys(),r=[],o=i.length-1;o>-1;o--){var s=n("PWE0")(""+i[o]);r=r.concat(s)}var a=r},XBGg:function(e,t){e.exports=[{type:"hash",text:"签名说明"},{type:"normal",text:"sign 是对http method,url path,请求参数等按字符串连接之后使用 HMAC SHA256 方法加密而得到的。",children:[{type:"normal",text:"path 为URL的请求路径,例如: /api/v1/user/getBalance"},{type:"normal",text:"method 是请求方法(POST/GET/PUT/DELETE),字母全部大写。"},{type:"normal",text:"参数是对 所有参数(含timestamp)按照字典排序之后,按照key1=value1 + key2=value2 ... + Secret Key 字符串(+表示字符串连接)。"}]},{type:"html",text:"originString = method + path + params sign = HmacSHA256(originString)"},{type:"html",text:"

    例如:对于如下的请求参数进行签名

    "},{type:"code",text:'curl "https://api-swap-rest.bingbon.pro/api/v1/user/getBalance"'},{type:"html",text:"

    通过POST方式获取获取用户某资产余额信息,以

    "},{type:"html",text:"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    "},{type:"html",text:"为例"},{type:"html",text:"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    "},{type:"html",text:"请求参数按字典排序之后,为 "},{type:"html",text:"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    "},{type:"html",text:"mothod为POST,path为/api/v1/user/getBalance,生成待签名的参数字符串如下:"},{type:"code",text:"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' "},{type:"html",text:"按算法生成待签名的字符串"},{type:"code",text:"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' "},{type:"html",text:"然后,将待签名字符串添加私钥参数生成最终待签名字符串。例如:"},{type:"html",text:'

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256("UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI", "POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013")

    '},{type:"code",text:'echo -n "POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013" | openssl dgst -sha256 -hmac "UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI" -binary | base64 | xargs python2.7 -c \'import sys, urllib;print(urllib.quote(sys.argv[1]))\' '},{type:"html",text:"Signature的结果为S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D,则签名之后的url query参数为 "},{type:"html",text:"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    "},{type:"html",text:"即最终发送给服务器的API请求应该为:"},{type:"code",text:"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D"}]},XKjN:function(e,t){e.exports=[{type:"hash",text:"Access"},{type:"normal",text:"Market Websocket access URL: wss://open-api-ws.bingx.com/market"}]},XWMS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Ia6C").keys(),r=[],o=0;o不發送交易對參數,則會返回所有交易對信息"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/ticker",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"priceChange",type:"string",description:"24小時價格變動"},{name:"priceChangePercent",type:"string",description:"價格變動百分比"},{name:"lastPrice",type:"string",description:"最新交易價格"},{name:"lastQty",type:"string",description:"最新交易額"},{name:"highPrice",type:"string",description:"24小時最高價"},{name:"lowPrice",type:"string",description:"24小時最低價"},{name:"volume",type:"string",description:"24小時成交量"},{name:"quoteVolume",type:"string",description:"24小時成交額, 單位是USDT"},{name:"openPrice",type:"string",description:"24小時內第一個價格"},{name:"openTime",type:"int64",description:"24小時內,第一筆交易的發生時間"},{name:"closeTime",type:"int64",description:"24小時內,最後一筆交易的發生時間"}]}]}]},Y8uX:function(e,t){e.exports=[{type:"hash",text:"删除子账户apikey"},{type:"normal",text:"删除子账户apikey"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/del"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/del",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子账户uid"},{name:"apiKey",type:"string",required:"是",description:""}]},{type:"Response",key:"response",data:[]}]}]},YAvn:function(e,t){e.exports=[{type:"hash",text:"获取充值历史(支持多网络)"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/capital/deposit/hisrec"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/capital/deposit/hisrec",protocol:"https",method:"GET",payload:{coin:"",status:0,startTime:1658748648396,endTime:1658748648396,offset:0,limit:1e3,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"否",description:"币的名称"},{name:"status",type:"int",required:"否",description:"状态(0:pending,6: credited but cannot withdraw, 1:success)"},{name:"startTime",type:"LONG",required:"否",description:"开始时间 1658748648396"},{name:"endTime",type:"LONG",required:"否",description:"结束时间 1658748648396"},{name:"offset",type:"int",required:"否",description:"偏移 默认0"},{name:"limit",type:"int",required:"否",description:"页数量大小 默认1000 不能超过1000"},{name:"recvWindow",type:"LONG",required:"否",description:"执行窗口时间,不能大于 60000"},{name:"timestamp",type:"LONG",required:"是",description:"当前时间戳 例如1658748648396"}]},{type:"Response",key:"response",data:[{name:"amount",type:"DECIMAL",description:"充值金额"},{name:"coin",type:"string",description:"币名称"},{name:"network",type:"string",description:"充值网络"},{name:"status",type:"int",description:"状态 状态 0-已确认-10-待确认(审核中) 20-已申请区块 30已审核通过 40审核不通过 50已汇出 60充值初步确认(最终确认变为0) 70审核不通过已退回资产"},{name:"address",type:"string",description:"充值地址"},{name:"addressTag",type:"string",description:"备注"},{name:"txId",type:"LONG",description:"交易id"},{name:"insertTime",type:"LONG",description:"交易时间"},{name:"transferType",type:"LONG",description:"交易类型0=充值"},{name:"unlockConfirm",type:"LONG",description:"解锁需要的网络确认次数"},{name:"confirmTimes",type:"LONG",description:"网络确认次数"}]}]}]},YBd1:function(e,t){e.exports=[{type:"hash",text:"24小时价格变动情况"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/ticker"},{type:"html",text:"
  • 不发送交易对参数,则会返回所有交易对信息
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/ticker",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易对, 例如: BTC-USDT, 请使用大写字母"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"priceChange",type:"string",description:"24小时价格变动"},{name:"priceChangePercent",type:"string",description:"价格变动百分比"},{name:"lastPrice",type:"string",description:"最新交易价格"},{name:"lastQty",type:"string",description:"最新交易额"},{name:"highPrice",type:"string",description:"24小时最高价"},{name:"lowPrice",type:"string",description:"24小时最低价"},{name:"volume",type:"string",description:"24小时成交量"},{name:"quoteVolume",type:"string",description:"24小时成交额, 单位是USDT"},{name:"openPrice",type:"string",description:"24小时内第一个价格"},{name:"openTime",type:"int64",description:"24小时内,第一笔交易的发生时间"},{name:"closeTime",type:"int64",description:"24小时内,最后一笔交易的发生时间"}]}]}]},YLkf:function(e,t){e.exports=[{type:"hash",text:"Trade order"},{type:"normal",text:"The current account places an order on the specified symbol contract. (Supports limit order, market order, market order for plan entrustment, limit order for plan entrustment, position stop profit and stop loss order, and liquidation for positions)"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/order"},{type:"warning",text:"Depending on the order type, certain parameters are mandatory:"},{type:"html",text:"
  • LIMIT: Mandatory Parameters: quantity, price
  • "},{type:"html",text:"
  • MARKET: Mandatory Parameters: quantity
  • "},{type:"html",text:"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: Mandatory Parameters: quantity、stopPrice、price
  • "},{type:"html",text:"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: Mandatory Parameters: quantity、stopPrice
  • "},{type:"html",text:"

    1. Open/Close: How to use the same endpoint to open (Long/Short) and close (Long/Short) positions? Please refer to the following request payload combination:

    "},{type:"html",text:"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    "},{type:"html",text:'

    {"symbol": "ETH-USDT","side": "BUY","positionSide": "LONG", "type": "MARKET", "quantity": 5}

    '},{type:"html",text:"

    2. Set take profit and stop loss: This endpoint can also be used to set take profit and stop loss, but the position needs to be opened first;
    The current take profit and stop loss price only supports the default marked price, and currently does not support the latest and index price options

    "},{type:"html",text:'

    {"symbol": "ETH-USDT","side": "BUY","positionSide": "LONG", "type": "TAKE_PROFIT_MARKET", "quantity": 3, "stopPrice": 31968.0}

    '},{type:"warning",text:"The triggering of the conditional order must:"},{type:"html",text:"

    STOP/STOP_MARKET stop loss order:

    "},{type:"html",text:"
  • The accumulative quantity of the pending stop loss orders cannot be greater than the quantity of open positions
  • "},{type:"html",text:"
  • Buy: the mark price is higher than or equal to the trigger price stopPrice
  • "},{type:"html",text:"
  • Sell: the mark price is lower than or equal to the trigger price stopPrice
  • "},{type:"html",text:"

    TAKE_PROFIT/TAKE_PROFIT_MARKET take profit order:

    "},{type:"html",text:"
  • The accumulative quantity of the pending take profit order cannot be greater than the position quantity
  • "},{type:"html",text:"
  • Buy: the mark price is lower than or equal to the trigger price stopPrice
  • "},{type:"html",text:"
  • Sell: the mark price is higher than or equal to the trigger price stopPrice
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"type",type:"string",required:"yes",description:"order type LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"yes",description:"buying and selling direction SELL, BUY"},{name:"positionSide",type:"string",required:"no",description:"Position direction, and only LONG or SHORT can be selected, the default is LONG"},{name:"price",type:"float64",required:"no",description:"Price"},{name:"quantity",type:"float64",required:"no",description:"Original quantity, only support units by COIN not U$: quantity=U$/price"},{name:"stopPrice",type:"float64",required:"no",description:"Trigger price, only required for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"timestamp",type:"int64",required:"yes",description:"request timestamp, unit: millisecond"},{name:"clientOrderID",type:"string",required:"no",description:"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderID"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"},{name:"timeInForce",type:"string",required:"no",description:"Time in Force, currently supports PostOnly, GTC, IOC, and FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"side",type:"string",description:"buying and selling direction"},{name:"type",type:"string",description:"order type"},{name:"positionSide",type:"string",description:"position side"},{name:"orderId",type:"int64",description:"Order ID"},{name:"clientOrderID",type:"string",required:"no",description:"Customized order ID for users"}]}]}]},YOB9:function(e,t,n){var i={"./01_post_trade_order.json":"TDl7","./02_post_closeAllPositions.json":"o80Q","./03_post_closeAllPositions.json":"nQs3","./04_delete_trade_order.json":"KJWq","./05_delete_trade_batch_order.json":"w9O3","./06_delete_trade_all_order.json":"KZXS","./07_get_all_openOrders.json":"0FzS","./08_get_trade_order.json":"xd76","./09_get_trade_marginType.json":"/RL+","./10_post_trade_marginType.json":"Fg4Y","./11_get_trade_leverage.json":"EtCx","./12_post_trade_leverage.json":"hkx8","./13_get_trade_forceOrders.json":"tc3t","./14_get_trade_allOrders.json":"K+iN","./15_post_trade_positionMargin.json":"vzun","./16_post_trade_order_test.json":"IS5C","./17_get_trade_allFillOrders.json":"Z792","./18_get_trade_allFillOrders_history.json":"2Oo8"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="YOB9"},YP5V:function(e,t){e.exports=[{type:"hash",text:"查詢合約交易深度"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getMarketDepth"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getMarketDepth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",level:"5"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'},{name:"level",type:"int",required:"否",description:"層數,若為空,則默認返回5層"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"msg",type:"string",description:"錯誤信息描述"},{name:"data",type:"array",description:""}]},{type:"data",key:"response1",data:[{name:"asks",type:"array[depth]",description:"賣方深度"},{name:"bids",type:"array[depth]",description:"買方深度"}]},{type:"depth",key:"response2",data:[{name:"p",type:"float64",description:"price價格"},{name:"v",type:"float64",description:"volume數量"}]}]}]},YYU2:function(e,t){e.exports=[{type:"hash",text:"Query Assets"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/account/balance"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/account/balance",protocol:"https",method:"GET",payload:{recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"recvWindow",type:"int64",required:"no",description:"Timestamp of initiating the request, Unit: milliseconds"},{name:"timestamp",type:"int64",required:"yes",description:"Request valid time window value, Unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"balances",type:"Array",description:"Asset list, element fields refer to the following table"}]},{type:"balance",key:"response1",data:[{name:"asset",type:"string",description:"Asset name"},{name:"free",type:"string",description:"Available asset"},{name:"locked",type:"string",description:"Freeze asset"}]}]}]},YdSN:function(e,t){e.exports=[{type:"hash",text:"请求内容"},{type:"normal",text:"所有REST请求都必须包含以下参数:",children:[{type:"normal",text:"API Key作为一个字符串。"},{type:"normal",text:"sign 使用一定算法得出的签名(请参阅签名信息)。"},{type:"normal",text:"timestamp 作为您的请求的时间戳。"},{type:"normal",text:"所有请求都应该含有application/json类型内容,并且是有效的JSON。"}]}]},Ygbz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("5k3C").keys(),r=[],o=i.length-1;o>-1;o--){var s=n("yIQg")(""+i[o]);r=r.concat(s)}var a=r},Yto4:function(e,t){e.exports=[{type:"normal",text:"websocket接口是"},{type:"code",text:"wss://open-api-ws.bingx.com/market"},{type:"normal",text:"订阅账户数据流的stream名称为 /market/"},{type:"code",text:"wss://open-api-ws.bingx.com/market/"},{type:"normal",text:"listenKey 获取方式如下:"},{type:"hash",text:"生成 Listen Key"},{type:"normal",text:"listen key的有效时间为1小时"},{type:"normal",text:"接口",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"code",text:"curl -X POST 'https://open-api.bingx.com/openApi/user/auth/userDataStream' --header \"X-BX-APIKEY:g6ikQYpMiWLecMQ39DUivd4ENem9ygzAim63xUPFhRtCFBUDNLajRoZNiubPemKT\""},{type:"normal",text:"响应",style:{"font-weight":"bold"}},{type:"code",text:'{"listenKey":"a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7"}'},{type:"demo",api:{uri:"/openApi/user/auth/userDataStream",protocol:"https",method:"POST",payload:{}},params:[{type:"Header",key:"request",data:[{name:"X-BX-APIKEY",type:"string",required:"否",description:"请求的API KEY"}]},{type:"Response",key:"response",data:[{name:"listenKey",type:"string",description:"返回的listenKey"}]}]}]},YtyA:function(e,t){e.exports=[{type:"hash",text:"Funding Rate History"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/fundingRate"},{type:"html",text:"
  • If both startTime and endTime are not sent, return the latest limit data.
  • "},{type:"html",text:"
  • If the amount of data between startTime and endTime is greater than limit, return the data in the case of startTime + limit.
  • "},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/fundingRate",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"startTime",type:"int64",required:"no",description:"Start time, unit: millisecond"},{name:"endTime",type:"int64",required:"no",description:"End time, unit: millisecond"},{name:"limit",type:"int32",required:"no",description:"default: 100 maximum: 1000"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"trading pair, for example: BTC-USDT"},{name:"fundingRate",type:"string",description:"funding rate"},{name:"fundingTime",type:"int64",description:"Funding time: milliseconds"}]}]}]},YzmL:function(e,t){e.exports=[{type:"hash",text:"授权子账号内转"},{type:"normal",text:"主账号授权子账号内转权限(限主账号使用)"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"/openApi/account/v1/innerTransfer/authorizeSubAccount"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/account/v1/innerTransfer/authorizeSubAccount",protocol:"https",method:"POST",payload:{coin:"USDT",userAccountType:3,userAccount:"bran***@**.com",amount:10,walletType:1,timestamp:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"subUids",type:"string",required:"是",description:"用户uid列表, 逗号分隔"},{name:"transferable",type:"boolean",required:"是",description:"是否允许, true允许 false禁止"}]},{type:"Response",key:"response",data:"data"},{name:"data",type:"boolean",description:"授权是否成功"}]}]},Z0gb:function(e,t,n){var i={".":"2xjp","./":"2xjp","./01_post_trade_order":"vDBD","./01_post_trade_order.json":"vDBD","./02_post_trade_batch_order":"Crrt","./02_post_trade_batch_order.json":"Crrt","./03_post_closeAllPositions":"pKuc","./03_post_closeAllPositions.json":"pKuc","./04_delete_trade_order":"9V8o","./04_delete_trade_order.json":"9V8o","./05_delete_trade_batch_order":"hIfT","./05_delete_trade_batch_order.json":"hIfT","./06_delete_trade_all_order":"Nw8z","./06_delete_trade_all_order.json":"Nw8z","./07_get_all_openOrders":"Ewmn","./07_get_all_openOrders.json":"Ewmn","./08_get_trade_order":"/1k/","./08_get_trade_order.json":"/1k/","./09_get_trade_marginType":"7mzI","./09_get_trade_marginType.json":"7mzI","./10_post_trade_marginType":"WVbz","./10_post_trade_marginType.json":"WVbz","./11_get_trade_leverage":"/Kh3","./11_get_trade_leverage.json":"/Kh3","./12_post_trade_leverage":"ZoHP","./12_post_trade_leverage.json":"ZoHP","./13_get_trade_forceOrders":"9bR8","./13_get_trade_forceOrders.json":"9bR8","./14_get_trade_allOrders":"7bgg","./14_get_trade_allOrders.json":"7bgg","./15_post_trade_positionMargin":"QHIT","./15_post_trade_positionMargin.json":"QHIT","./16_post_trade_order_test":"Hhes","./16_post_trade_order_test.json":"Hhes","./17_get_trade_allFillOrders":"7iFh","./17_get_trade_allFillOrders.json":"7iFh","./18_get_trade_income_export":"TDt4","./18_get_trade_income_export.json":"TDt4","./19_get_trade_user_commissionRate":"x8dX","./19_get_trade_user_commissionRate.json":"x8dX","./20_get_trade_quote_bookTicker":"SGv/","./20_get_trade_quote_bookTicker.json":"SGv/","./index":"2xjp","./index.js":"2xjp"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Z0gb"},Z2yu:function(e,t){e.exports=[{type:"hash",text:"查詢當前委託訂單"},{type:"normal",text:"查詢一段時間週期內賬戶下處於當前委託狀態的訂單詳情。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/pendingOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/pendingOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",apiKey:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱中需有"-",如BTC-USDT'},{name:"apiKey",type:"string",required:"是",description:""},{name:"timestamp",type:"string",required:"是",description:"發起請求的時間戳,單位為毫秒"}]},{type:"Response",key:"response",data:[{name:"entrustTm",type:"string",description:"訂單委託時間"},{name:"side",type:"string",description:"交易方向(Bid/Ask 買/賣)"},{name:"tradeType",type:"string",description:"委託類型(Market/Limit 市價/限價)"},{name:"action",type:"string",description:"Open/Close 開倉/平倉"},{name:"entrustPrice",type:"float64",description:"委託價格"},{name:"entrustVolume",type:"float64",description:"委託數量"},{name:"avgFilledPrice",type:"float64",description:"成交均價"},{name:"filledVolume",type:"float64",description:"成交數量"},{name:"orderId",type:"string",description:"訂單號"},{name:"profit",type:"float64",description:"盈虧"},{name:"commission",type:"float64",description:"手續費"},{name:"updateTm",type:"string",description:"訂單更新時間"}]}]}]},Z792:function(e,t){e.exports=[{type:"hash",text:"查询止盈止损订单列表"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/pendingStopOrders"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/pendingStopOrders",protocol:"https",method:"POST",payload:{apiKey:"",symbol:""}},params:[{type:"Request",key:"request",data:[{name:"apiKey",type:"string",required:"是",description:"接口密钥"},{name:"timestamp",type:"string",required:"是",description:"发起请求的时间戳,单位为毫秒"},{name:"symbol",type:"string",required:"是",description:"合约名称"}]},{type:"Response",key:"response",data:[{name:"userId",type:"string",description:"用户id"},{name:"orderId",type:"string",description:"订单id"},{name:"symbol",type:"string",description:"合约名称"},{name:"positionId",type:"string",description:"仓位id"},{name:"stopLossPrice",type:"float64",description:"止损价格"},{name:"takeProfitPrice",type:"float64",description:"止盈价格"},{name:"entrustVolume",type:"float64",description:"委托数量"},{name:"side",type:"string",description:"交易方向, Bid买入, Ask卖出"},{name:"entrustTm",type:"string",description:"委托时间"}]}]}]},ZZch:function(e,t){e.exports={module:"swap",path:"/swap/introduce",name:"Introduction",content:[{type:"html",text:"Welcome to the BingXAPI. "},{type:"normal",text:"You can use our API to access market data, trading, and account management endpoints of Perpetual Swap. The market data API is publicly accessible and provides market data such as The Latest Trade of a Trading Pair. The account and trading APIs require authentication with an API Key which allows you to place and cancel orders and enquire order status and account info."},{type:"html",text:"USDT-M Perpetual Futures API Reference V2"}]}},Zg2x:function(e,t){e.exports=[{type:"hash",text:"Account balance and position update push"},{type:"normal",text:"The event type of the account update event is fixed as ACCOUNT_UPDATE "},{type:"normal",text:"When the account information changes, this event will be pushed:",children:[{type:"normal",text:"This event will only be pushed when there is a change in account information (including changes in funds, positions, etc.); This event will not be pushed if the change in the order status does not cause changes in the account and positions;"},{type:"normal",text:"position information: push only when there is a change in the symbol position. "}]},{type:"normal",text:'Fund balance changes caused by "FUNDING FEE", only push brief events: ',children:[{type:"normal",text:"When \"FUNDING FEE\" occurs in a user's cross position, the event ACCOUNT_UPDATE will only push the relevant user's asset balance information B (only push the asset balance information related to the occurrence of FUNDING FEE), and will not push any position information P. "},{type:"normal",text:'When "FUNDING FEE" occurs in a user\'s isolated position, the event ACCOUNT_UPDATE will only push the relevant user asset balance information B (only push the asset balance information used by "FUNDING FEE"), and related position information P( Only the position information where this "FUNDING FEE" occurred is pushed), and the rest of the position information will not be pushed. '}]},{type:"normal",text:'The field "m" represents the reason for the launch of the event, including the following possible types: -DEPOSIT',children:[{type:"normal",text:"DEPOSIT"},{type:"normal",text:"WITHDRAW"},{type:"normal",text:"ORDER"},{type:"normal",text:"FUNDING_FEE"}]},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"event type:ACCOUNT_UPDATE"},{name:"E",type:"",description:"event time:1676603102163"},{name:"T",type:"",description:"1676603102163"},{name:"a",type:"obj",description:"account update event"}]},{type:"a",key:"key1",data:[{name:"m",type:"",description:"event launch reason"},{name:"B",type:"",description:"Array: balance information"},{name:"P",type:"",description:"Array: trade info"}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"asset name:USDT"},{name:"wb",type:"",description:"wallet balance:5277.59264687"},{name:"cw",type:"",description:"Wallet balance excluding isolated margin:5233.21709203"},{name:"bc",type:"",description:"wallet balance change amount:0"}]},{type:"P",key:"key3",data:[{name:"s",type:"",description:"trading pair:LINK-USDT"},{name:"pa",type:"",description:"position:108.84300000"},{name:"ep",type:"",description:"entry price:7.25620000"},{name:"up",type:"",description:"unrealized profit and loss of positions:1.42220000"},{name:"mt",type:"",description:"margin mode:isolated"},{name:"iw",type:"",description:"If it is an isolated position, the position margin:23.19081642"},{name:"ps",type:"",description:"position direction:SHORT"}]}]}]},Zi0D:function(e,t,n){var i={".":"UJ2F","./":"UJ2F","./01_balance":"p0H6","./01_balance.json":"p0H6","./index":"UJ2F","./index.js":"UJ2F"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="Zi0D"},ZoHP:function(e,t){e.exports=[{type:"hash",text:"調整開倉槓桿"},{type:"normal",text:"調整用戶在指定symbol合約的開倉槓桿。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/leverage"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/leverage",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",side:"",leverage:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"side",type:"string",required:"是",description:"多倉或者空倉的槓桿,LONG表示多倉,SHORT表示空倉"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"leverage",type:"int64",required:"是",description:"槓桿倍數"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"leverage",type:"int64",description:"槓桿倍數"},{name:"symbol",type:"string",description:"交易對"}]}]}]},ZuZg:function(e,t,n){var i={"./01_connect.json":"itMl","./02_data_compress.json":"yOH9","./03_heart_beat.json":"hrCt","./04_subscribe.json":"jYwr","./05_cancel_subscribe.json":"cspZ"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="ZuZg"},ZzgK:function(e,t,n){var i={".":"otUP","./":"otUP","./01_create_listenKey":"8kVO","./01_create_listenKey.json":"8kVO","./02_put_listenKey":"Rtfu","./02_put_listenKey.json":"Rtfu","./03_delete_listenKey":"LvyQ","./03_delete_listenKey.json":"LvyQ","./index":"otUP","./index.js":"otUP"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="ZzgK"},a8qg:function(e,t){e.exports=[{type:"hash",text:"查詢子賬戶現貨資產"},{type:"normal",text:"查詢子賬戶現貨資產"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/subAccount/v1/assets"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/assets",protocol:"https",method:"GET",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"是",description:"子賬戶uid"}]},{type:"Response",key:"response",data:[{name:"asset",type:"string",description:"資產名稱"},{name:"free",type:"double",description:"可用額度"},{name:"locked",type:"double",description:"鎖定資產"}]}]}]},"aR+m":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("SRzp").keys(),r=[],o=0;o標准合約"},{name:"SFUTURES_FUND",type:"",description:"標准合約->資金賬戶"},{name:"FUND_PFUTURES",type:"",description:"資金賬戶->永續合約"},{name:"PFUTURES_FUND",type:"",description:"永續合約->資金賬戶"},{name:"SFUTURES_PFUTURES",type:"",description:"標准合約->永續合約"},{name:"PFUTURES_SFUTURES",type:"",description:"永續合約->標准合約"},{name:"FUND_STRADING",type:"",description:"資金賬戶 -> 網格"},{name:"STRADING_FUND",type:"",description:"網格 -> 資金賬戶"},{name:"FUND_CTRADING",type:"",description:"資金賬戶 -> 跟單"},{name:"SFUTURES_CTRADING",type:"",description:"標准合約賬戶 -> 跟單"},{name:"PFUTURES_CTRADING",type:"",description:"永續合約賬戶 -> 跟單"},{name:"CTRADING_FUND",type:"",description:"跟單 -> 資金賬戶"},{name:"CTRADING_SFUTURES",type:"",description:"跟單 -> 標准合約賬戶"},{name:"CTRADING_PFUTURES",type:"",description:"跟單 -> 永續合約賬戶"}]},{type:"Response",key:"response",data:[{name:"total",type:"LONG",description:"总數"},{name:"rows",type:"Array",description:"數據Array"},{name:"asset",type:"string",description:"幣的名稱"},{name:"amount",type:"DECIMAL",description:"幣的金額"},{name:"type",type:"ENUM",description:"劃轉類型"},{name:"status",type:"string",description:"CONFIRMED"},{name:"tranId",type:"LONG",description:"交易ID"},{name:"timestamp",type:"LONG",description:"劃轉的時間戳"}]}]}]},auLt:function(e,t){e.exports=[{type:"hash",text:"請求交互"},{type:"warning",text:"REST訪問的根URL: https://api-swap-rest.bingbon.pro"},{type:"html",text:"所有請求基於Https协议,請求頭信息中Content-Type 需要統一設置為:'application/json’。 "},{type:"html",text:"請求交互說明"},{type:"html",text:"
  • 請求參數:根據接口請求參數規定進行參數封装。
  • "},{type:"html",text:"
  • 提交請求參數:将封装好的請求參數通過POST/GET/DELETE等方式提交至服務器。
  • "},{type:"html",text:"
  • 服務器響應:服務器首先對用戶請求數據進行參數安全校驗,通過校驗後根據業務邏輯将響應數據以JSON格式返回給用戶。
  • "},{type:"html",text:"
  • 數據處理:對服務器響應數據進行處理。
  • "},{type:"html",text:"成功"},{type:"html",text:"
  • HTTP狀態碼200表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。
  • "}]},azxt:function(e,t){e.exports=[{type:"hash",text:"查詢apikey信息"},{type:"normal",text:"查詢apikey信息"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/sub-account/v1/apiKey/query"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/sub-account/v1/apiKey/query",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"uid",type:"long",required:"是",description:"用戶uid"},{name:"apiKey",type:"string",required:"否",description:""}]},{type:"Response",key:"response",data:[{name:"apiKey",type:"string",description:""},{name:"note",type:"string",description:"備註"},{name:"permissions",type:"Array",description:"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,5-提幣"},{name:"ipAddresses",type:"Array",description:"ip白名單"},{name:"createTime",type:"long",description:"創建時間"},{name:"updateTime",type:"long",description:"更新時間"}]}]}]},b9rl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Otrz").keys(),r=[],o=0;o@depth,比如BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100"},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"level",type:"string",required:"是",description:"檔數, 如 5,10,20,50,100"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"dataType",type:"",description:"訂閱的數據類型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送內容"},{name:"asks",type:"",description:"賣方深度"},{name:"bids",type:"",description:"買方深度"},{name:"p",type:"",description:"price價格"},{name:"v",type:"",description:"volume數量"}]},{type:"level",key:"common",data:[{name:"5",type:"",description:"5檔"},{name:"10",type:"",description:"10檔"},{name:"20",type:"",description:"20檔"},{name:"50",type:"",description:"50檔"},{name:"100",type:"",description:"100檔"}]}]}]},bIA2:function(e,t){e.exports=[{type:"hash",text:"请求交互"},{type:"warning",text:"REST访问的根URL: https://open-api.bingx.com"},{type:"html",text:"请求交互说明"},{type:"html",text:"
  • 请求参数:根据接口请求参数规定进行参数封装。
  • "},{type:"html",text:"
  • 提交请求参数:将封装好的请求参数通过POST/GET/DELETE等方式提交至服务器。
  • "},{type:"html",text:"
  • 服务器响应:服务器首先对用户请求数据进行参数安全校验,通过校验后根据业务逻辑将响应数据以JSON格式返回给用户。
  • "},{type:"html",text:"
  • 数据处理:对服务器响应数据进行处理。
  • "},{type:"html",text:"成功"},{type:"html",text:"
  • HTTP状态码200表示成功响应,并可能包含内容。如果响应含有内容,则将显示在相应的返回内容里面。
  • "}]},bMjl:function(e,t,n){var i={".":"Ob2m","./":"Ob2m","./01_post_trade_order":"e3ud","./01_post_trade_order.json":"e3ud","./02_post_closeAllPositions":"rac6","./02_post_closeAllPositions.json":"rac6","./03_post_closeAllPositions":"ovOx","./03_post_closeAllPositions.json":"ovOx","./04_delete_trade_order":"+Jww","./04_delete_trade_order.json":"+Jww","./05_delete_trade_batch_order":"GLwn","./05_delete_trade_batch_order.json":"GLwn","./06_delete_trade_all_order":"vl+M","./06_delete_trade_all_order.json":"vl+M","./07_get_all_openOrders":"mQAj","./07_get_all_openOrders.json":"mQAj","./08_get_trade_order":"50QL","./08_get_trade_order.json":"50QL","./09_get_trade_marginType":"8FLz","./09_get_trade_marginType.json":"8FLz","./10_post_trade_marginType":"Hwtn","./10_post_trade_marginType.json":"Hwtn","./11_get_trade_leverage":"Toje","./11_get_trade_leverage.json":"Toje","./12_post_trade_leverage":"XqXJ","./12_post_trade_leverage.json":"XqXJ","./13_get_trade_forceOrders":"GZ+E","./13_get_trade_forceOrders.json":"GZ+E","./14_get_trade_allOrders":"JRHj","./14_get_trade_allOrders.json":"JRHj","./15_post_trade_positionMargin":"y7gJ","./15_post_trade_positionMargin.json":"y7gJ","./16_post_trade_order_test":"EhS2","./16_post_trade_order_test.json":"EhS2","./17_get_trade_allFillOrders":"GFCe","./17_get_trade_allFillOrders.json":"GFCe","./18_get_trade_allFillOrders_history":"kyJY","./18_get_trade_allFillOrders_history.json":"kyJY","./index":"Ob2m","./index.js":"Ob2m"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="bMjl"},bMv0:function(e,t){e.exports=[{type:"hash",text:"獲取提幣歷史(支持多網絡)"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/capital/withdraw/history"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/capital/withdraw/history",protocol:"https",method:"GET",payload:{coin:"",withdrawOrderId:"",status:0,startTime:1658748648396,endTime:1658748648396,offset:0,limit:1e3,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"否",description:"幣的名稱"},{name:"withdrawOrderId",type:"string",required:"否",description:"自定義ID, 如果沒有則不返回該字段"},{name:"status",type:"int",required:"否",description:"狀態 (0:已發送確認Email, 2:等待確認 3:被拒絕 4:處理中 5:提現交易失敗 6 提現完成)"},{name:"startTime",type:"LONG",required:"否",description:"開始時間 1658748648396"},{name:"endTime",type:"LONG",required:"否",description:"結束時間 1658748648396"},{name:"offset",type:"int",required:"否",description:"偏移 默認0"},{name:"limit",type:"int",required:"否",description:"頁數量大小 默認1000 不能超過1000"},{name:"recvWindow",type:"LONG",required:"否",description:"執行窗口時間,不能大於 60000"},{name:"timestamp",type:"LONG",required:"是",description:"當前時間戳 例如1658748648396"}]},{type:"Response",key:"response",data:[{name:"address",type:"string",description:"地址"},{name:"amount",type:"DECIMAL",description:"提現轉出金額"},{name:"applyTime",type:"Date",description:"充值時間"},{name:"coin",type:"string",description:"幣名稱"},{name:"id",type:"string",description:"該筆提現的id"},{name:"withdrawOrderId",type:"string",description:"自定義ID, 如果沒有則不返回該字段"},{name:"network",type:"string",description:"提現網絡"},{name:"transferType",type:"LONG",description:"交易類型1=提現"},{name:"status",type:"int",description:"狀態 狀態 0-已確認-10-待確認(審核中) 20-已申請區块 30已審核通過 40審核不通過 50已汇出 60充值初步確認(最终確認變為0) 70審核不通過已退回資產"},{name:"transactionFee",type:"string",description:"手續費"},{name:"confirmNo",type:"int",description:"提現確認次數"},{name:"info",type:"string",description:"提幣失敗原因"},{name:"txId",type:"String",description:"提現交易id"}]}]}]},bSWG:function(e,t){e.exports=[{type:"hash",text:"User Universal Transfer"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/api/v3/get/asset/transfer"},{type:"code",text:"curl --location --request GET 'https://open-api.bingx.com/openApi/api/v3/get/asset/transfer?type=FUND_PFUTURES&asset=USDT&amount=100×tamp=1670215150028&signature=ecc819d72515095039b7b383310f718584af4cf70106b57609bc59473185c9a3'"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/api/v3/get/asset/transfer",protocol:"https",method:"GET",payload:{type:"FUND_SFUTURES",asset:"USDT",amount:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"type",type:"ENUM",required:"yes",description:"transfer tpye"},{name:"asset",type:"string",required:"yes",description:"coin name e.g. USDT"},{name:"amount",type:"DECIMAL",required:"yes",description:"amount"},{name:"recvWindow",type:"LONG",required:"no",description:"Execution window time, cannot be greater than 60000"},{name:"timestamp",type:"LONG",required:"yes",description:"current timestamp e.g. 1658748648396"}]},{type:"type",key:"key1",data:[{name:"FUND_SFUTURES",type:"",description:"Funding Account->Standard Contract"},{name:"SFUTURES_FUND",type:"",description:"Standard Contract->Funding Account"},{name:"FUND_PFUTURES",type:"",description:"Funding Account->Perpetual Futures"},{name:"PFUTURES_FUND",type:"",description:"Perpetual Futures->Funding Account"},{name:"SFUTURES_PFUTURES",type:"",description:"Standard Contract->Perpetual Futures"},{name:"PFUTURES_SFUTURES",type:"",description:"Perpetual Futures->Standard Contract"}]},{type:"Response",key:"response",data:[{name:"tranId",type:"LONG",description:"Transaction ID"}]}]}]},bShK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("Gfsl").keys(),r=[],o=0;oBingX
    网站【用户中心】-【API管理】创建一个API key。 创建key后,您将获得2个必须记住的信息: API key和Secret key."},{type:"normal",text:"设置API key的同时,为了安全,建议设置IP访问白名单."},{type:"normal",text:"永远不要把你的API key/Secret key告诉给任何人."}]},{type:"warning",text:"如果不小心泄露了API key,请立刻删除此API key, 并可以另外生产新的API key."}]},bZVt:function(e,t){e.exports=[{type:"hash",text:"訂閱賬戶餘額推送"},{type:"normal",text:"訂閱類型"},{type:"code",text:"dataType 為 ACCOUNT_UPDATE"},{type:"normal",text:"訂閱例子"},{type:"code",text:'{"id":"gdfg2311-d0f6-4a70-8d5a-043e4c741b40","dataType":"ACCOUNT_UPDATE"}'},{type:"normal",text:'字段"m"代表了事件推出的原因,包含了以下可能類型:'},{type:"html",text:"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    "},{type:"html",text:"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • "},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件類型"},{name:"E",type:"",description:"事件時間"},{name:"T",type:"",description:"撮合時間"},{name:"a",type:"",description:"資產名稱"}]},{type:"a",key:"key1",data:[{name:"B",type:"",description:"Array[]"},{name:"m",type:"",description:"事件推出原因 "}]},{type:"B",key:"key2",data:[{name:"a",type:"",description:"資產名稱"},{name:"bc",type:"",description:"除去盈虧與交易手續費以外的钱包餘額改變量"},{name:"cw",type:"",description:"資產名稱"},{name:"wb",type:"",description:"钱包餘額"}]}]}]},baSA:function(e,t){e.exports=[{type:"hash",text:"查詢合約未平倉數量"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getOpenPositions"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getOpenPositions",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:'合約名稱, 合約名稱中需有"-",如BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"volume",type:"float64",description:"持倉數量"},{name:"unit",type:"string",description:"持倉數量對應的單位,CONT(張), BTC, ETH, LINK, BCH等等"}]}]}]},bfDi:function(e,t){e.exports=[{type:"hash",text:"查詢委託訂單列表"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/openOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/openOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"recvWindow",type:"float64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求時間戳, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"orders",type:"Array",description:"訂單列表,最大長度為2000, 訂單字段參考下表"}]},{type:"order",key:"response1",data:[{name:"symbol",type:"string",description:"交易品種"},{name:"orderId",type:"int64",description:"訂單號"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"下單數量"},{name:"executedQty",type:"string",description:"成交數量"},{name:"cummulativeQuoteQty",type:"string",description:"成交額"},{name:"status",type:"string",description:"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗"},{name:"type",type:"string",description:"訂單類型, MARKET市價 LIMIT限價"},{name:"side",type:"string",description:"交易類型, BUY買 SELL賣"},{name:"time",type:"int64",description:"下單時間戳"},{name:"updateTime",type:"int64",description:"更新時間戳"},{name:"origQuoteOrderQty",type:"string",description:"下單金額"}]}]}]},btx7:function(e,t,n){var i={"./01_post_trade_order.json":"YLkf","./02_post_trade_batch_order.json":"/bqr","./03_post_closeAllPositions.json":"jBL/","./04_delete_trade_order.json":"nf3C","./05_delete_trade_batch_order.json":"siG2","./06_delete_trade_all_order.json":"/Fs7","./07_get_all_openOrders.json":"jxdV","./08_get_trade_order.json":"1xud","./09_get_trade_marginType.json":"Qa4f","./10_post_trade_marginType.json":"WCFx","./11_get_trade_leverage.json":"Nux4","./12_post_trade_leverage.json":"j3Xb","./13_get_trade_forceOrders.json":"fUN5","./14_get_trade_allOrders.json":"iu9b","./15_post_trade_positionMargin.json":"i3k4","./16_post_trade_order_test.json":"l8OL","./17_get_trade_allFillOrders.json":"1A8u","./18_get_trade_income_export.json":"JOGY","./19_get_trade_user_commissionRate.json":"2Faq","./20_get_trade_quote_bookTicker.json":"Oo3B"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="btx7"},cId4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Data",function(){return a});for(var i=n("kTL7").keys(),r=[],o=0;o@trade,比如BTC-USDT@trade ETH-USDT@trade"},{type:"normal",text:"訂閱參數",style:{"font-weight":"bold"}},{type:"demo",params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"}]},{type:"Response",key:"wssResponse",data:[{name:"code",type:"",description:"是否有錯誤信息,0為正常,1為有錯誤"},{name:"dataType",type:"",description:"訂閱的數據類型,例如 BTC-USDT@depth"},{name:"data",type:"",description:"推送內容"},{name:"T",type:"",description:"成交時間"},{name:"s",type:"",description:"交易對"},{name:"m",type:"",description:"買方是否是做市方。如true,則此次成交是一個主動賣出單,否則是一個主動買入單。"},{name:"p",type:"",description:"price價格"},{name:"v",type:"",description:"volume數量"}]}]}]},ceUr:function(e,t){e.exports=[{type:"hash",text:"近期成交"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/trades"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/trades",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:500}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"limit",type:"int",required:"否",description:"默认:500,最大1000"}]},{type:"Response",key:"response",data:[{name:"time",type:"int64",description:"成交时间"},{name:"isBuyerMaker",type:"bool",description:"买方是否为挂单方(true / false)"},{name:"price",type:"string",description:"成交价格"},{name:"qty",type:"string",description:"成交数量"},{name:"quoteQty",type:"string",description:"成交额"}]}]}]},clol:function(e,t){e.exports=[{type:"hash",text:"獲取賬戶損益資金流水"},{type:"normal",text:"查詢當前賬戶下永續合約的資金流水。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/user/income"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"html",text:"
  • 如果startTime 和 endTime 均未發送, 只會返回最近7天的數據。
  • "},{type:"html",text:"
  • 如果incomeType沒有發送,返回所有類型賬戶損益資金流水。
  • "},{type:"html",text:"
  • 僅保留最近3個月的數據。
  • "},{type:"demo",api:{uri:"/openApi/swap/v2/user/income",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",incomeType:"",startTime:0,endTime:0,limit:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"incomeType",type:"string",required:"否",description:"收益類型,見上方說明"},{name:"startTime",type:"int64",required:"否",description:"開始時間"},{name:"endTime",type:"int64",required:"否",description:"結束時間"},{name:"limit",type:"int64",required:"否",description:"返回的結果集數量 默認值:100 最大值:1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"incomeType",type:"string",description:"資金流類型"},{name:"income",type:"string",description:"資金流數量,正數代表流入,負數代表流出"},{name:"asset",type:"string",description:"資產內容"},{name:"info",type:"string",description:"備註信息,取决於流水類型"},{name:"time",type:"int64",description:"時間,單位:毫秒"},{name:"tranId",type:"string",description:"劃轉id"},{name:"tradeId",type:"string",description:"引起流水產生的原始交易ID"}]},{type:"incomeType",key:"common",data:[{name:"TRANSFER",type:"",description:"轉賬"},{name:"REALIZED_PNL",type:"",description:"已實現盈虧"},{name:"FUNDING_FEE",type:"",description:"資金費用"},{name:"TRADING_FEE",type:"",description:"手續費"},{name:"INSURANCE_CLEAR",type:"",description:"強平"},{name:"TRIAL_FUND",type:"",description:"體驗金"},{name:"ADL",type:"",description:"自動減倉"},{name:"SYSTEM_DEDUCTION",type:"",description:"系統扣除"}]}]}]},cspZ:function(e,t){e.exports=[{type:"hash",text:"取消訂閱"},{type:"normal",text:"取消訂閱的格式如下:"},{type:"code",text:'{ "id": "id1", "reqType": "unsub", "dataType": "data to unsub"}'},{type:"normal",text:"取消訂閱成功確認:"},{type:"code",text:'{ "id": "id1", "code": 0, "msg": "" }'},{type:"html",text:"

    symbol說明

    "},{type:"warning",text:"symbol必須全大寫"}]},dEdI:function(e,t){e.exports=[{type:"hash",text:"查詢資金費率歷史"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/fundingRate"},{type:"html",text:"
  • 如果 startTime 和 endTime 都未發送, 返回最近 limit 條數據.
  • "},{type:"html",text:"
  • 如果 startTime 和 endTime 之間的數據量大於 limit, 返回 startTime + limit情况下的數據。
  • "},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/fundingRate",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",startTime:0,endTime:0,limit:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USDT, 請使用大寫字母"},{name:"startTime",type:"int64",required:"否",description:"起始時間,單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間,單位:毫秒"},{name:"limit",type:"int32",required:"否",description:"默認值:100 最大值:1000"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"fundingRate",type:"string",description:"資金費率"},{name:"fundingTime",type:"int64",description:"資金費時間:單位毫秒"}]}]}]},dJsD:function(e,t,n){var i={"./01_dept_info.json":"I7QH","./02_latest_records.json":"fkpZ","./03_kline_data.json":"I7+s"};function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="dJsD"},dLDu:function(e,t){e.exports=[{type:"hash",text:"查询开仓杠杆"},{type:"normal",text:"查询用户在指定symbol合约的开仓杠杆。"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/trade/leverage"},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/leverage",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位为毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"}]},{type:"Response",key:"response",data:[{name:"longLeverage",type:"int64",description:"多仓杠杆倍数"},{name:"shortLeverage",type:"int64",description:"空仓杠杆倍数"}]}]}]},db2W:function(e,t){e.exports=[{type:"hash",text:"交易下单"},{type:"normal",text:"当前账户在指定symbol合约上进行下单操作。(支持限价单、市价单、计划委托市价单、计划委托限价单、仓位止盈止损单、针对仓位平仓)"},{type:"normal",text:"HTTP 请求",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/swap/v2/trade/order"},{type:"warning",text:"基于订单 type 不同,强制要求某些参数:"},{type:"html",text:"
  • LIMIT: 强制要求参数 quantity, price
  • "},{type:"html",text:"
  • MARKET: 强制要求参数 quantity
  • "},{type:"html",text:"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 强制要求参数 quantity、stopPrice、price
  • "},{type:"html",text:"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 强制要求参数 quantity、stopPrice
  • "},{type:"html",text:"

    1. 开/平仓: 如何使用同一个接口 开仓(多/空),平仓(多/空)?请参考如下request payload组合:

    "},{type:"html",text:"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    "},{type:"html",text:'

    {"symbol": "ETH-USDT","side": "BUY","positionSide": "LONG", "type": "MARKET", "quantity": 5}

    '},{type:"html",text:"

    2. 设置止盈止损:本接口也可用于设置止盈止损,但需要先开仓; 当前止盈止损价格只支持默认的标记价格,暂不支持最新和指数价格选项

    "},{type:"html",text:'

    {"symbol": "ETH-USDT","side": "BUY","positionSide": "LONG", "type": "TAKE_PROFIT_MARKET", "quantity": 3, "stopPrice": 31968.0}

    '},{type:"warning",text:"条件单的触发必须:"},{type:"html",text:"

    STOP/STOP_MARKET 止损单:

    "},{type:"html",text:"
  • 已挂止损单累加数量不能大于持仓数量
  • "},{type:"html",text:"
  • 买入: 标记价格高于等于触发价stopPrice
  • "},{type:"html",text:"
  • 卖出: 标记价格低于等于触发价stopPrice
  • "},{type:"html",text:"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈单:

    "},{type:"html",text:"
  • 已挂止盈单累加数量不能大于持仓数量
  • "},{type:"html",text:"
  • 买入: 标记价格低于等于触发价stopPrice
  • "},{type:"html",text:"
  • 卖出: 标记价格高于等于触发价stopPrice
  • "},{type:"normal",text:"接口参数",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",type:"",side:"",positionSide:"",price:0,quantity:0,stopPrice:0,recvWindow:0,timeInForce:""}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易对, 例如: BTC-USDT, 请使用大写字母"},{name:"type",type:"string",required:"是",description:"订单类型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET"},{name:"side",type:"string",required:"是",description:"买卖方向 SELL, BUY"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG"},{name:"price",type:"float64",required:"否",description:"委托价格"},{name:"quantity",type:"float64",required:"否",description:"下单数量,合约数量,当前只支持以币计的合约数,暂不支持输入U$:quantity=U$/price"},{name:"stopPrice",type:"float64",required:"否",description:"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,TRIGGER_LIMIT,TRIGGER_MARKET, STOP, TAKE_PROFIT 需要此参数"},{name:"timestamp",type:"int64",required:"是",description:"请求的时间戳,单位:毫秒"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderID"},{name:"recvWindow",type:"int64",required:"否",description:"请求有效时间空窗值, 单位:毫秒"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"symbol",type:"string",description:"交易对, 例如: BTC-USDT"},{name:"side",type:"string",description:"买卖方向"},{name:"type",type:"string",description:"订单类型"},{name:"positionSide",type:"string",description:"持仓方向"},{name:"orderId",type:"int64",description:"订单号"},{name:"clientOrderID",type:"string",required:"否",description:"用户自定义订单ID"}]}]}]},"dcc+":function(e,t){e.exports=[{type:"hash",text:"查詢歷史訂單列表"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/spot/v1/trade/historyOrders"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"normal",text:"註意",children:[{type:"normal",text:"如設置 orderId , 訂單将 >= orderId。否則将返回最新訂單。"},{type:"normal",text:"如果設置 startTime 和 endTime, orderId 就不需要設置。"}]},{type:"demo",api:{uri:"/openApi/spot/v1/trade/historyOrders",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",orderId:0,startTime:0,endTime:0,pageIndex:0,pageSize:0,recvWindow:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"orderId",type:"int64",required:"否",description:""},{name:"startTime",type:"int64",required:"否",description:"開始時間戳, 單位:毫秒"},{name:"endTime",type:"int64",required:"否",description:"結束時間戳, 單位:毫秒"},{name:"pageIndex",type:"int64",required:"是",description:"分頁頁碼,必須大於0"},{name:"pageSize",type:"int64",required:"是",description:"分頁數量,必須大於0,最大值為100"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求時間戳, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"orders",type:"Array",description:"訂單列表,最大長度為2000, 訂單字段參考下表"}]},{type:"order",key:"response1",data:[{name:"symbol",type:"string",description:"交易品種"},{name:"orderId",type:"int64",description:"訂單號"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"下單數量"},{name:"executedQty",type:"string",description:"成交數量"},{name:"cummulativeQuoteQty",type:"string",description:"成交額"},{name:"status",type:"string",description:"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗"},{name:"type",type:"string",description:"訂單類型, MARKET市價 LIMIT限價"},{name:"side",type:"string",description:"交易類型, BUY買 SELL賣"},{name:"time",type:"int64",description:"下單時間戳"},{name:"updateTime",type:"int64",description:"更新時間戳"},{name:"origQuoteOrderQty",type:"string",description:"下單金額"}]}]}]},dsQw:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='package main\n\nimport (\n\t"bytes"\n\t"compress/gzip"\n\t"fmt"\n\t"io/ioutil"\n\t"log"\n\t"net/http"\n\t"time"\n\n\t"github.com/gorilla/websocket"\n)\n\nconst (\n\tpath = "wss://open-api-ws.bingx.com/market" // \n\tchannel = "{"id": "test", "reqType": "sub", "dataType": "BTC-USDT@depth"}" // \n)\n\nvar receivedMessage string\nvar conn *websocket.Conn\n\nfunc main() {\n\tinterrupt := make(chan struct{})\n\n\theader := http.Header{}\n\theader.Add("Accept-Encoding", "gzip")\n\n\tconn, _, err := websocket.DefaultDialer.Dial(path, header)\n\tif err != nil {\n\t\tlog.Fatal("WebSocket connection error:", err)\n\t}\n\tdefer conn.Close()\n\n\terr = conn.WriteMessage(websocket.TextMessage, []byte(channel))\n\tif err != nil {\n\t\tlog.Fatal("WebSocket write error:", err)\n\t}\n\n\tgo func() {\n\t\tfor {\n\t\t\tmessageType, message, err := conn.ReadMessage()\n\t\t\tif err != nil {\n\t\t\t\tlog.Println("WebSocket read error:", err)\n\t\t\t\tclose(interrupt)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\thandleMessage(messageType, message)\n\t\t}\n\t}()\n\n\tgo func() {\n\t\tticker := time.NewTicker(5 * time.Second)\n\t\tdefer ticker.Stop()\n\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase <-ticker.C:\n\t\t\t\terr := conn.WriteMessage(websocket.TextMessage, []byte("Ping"))\n\t\t\t\tif err != nil {\n\t\t\t\t\tlog.Println("WebSocket write error:", err)\n\t\t\t\t}\n\t\t\tcase <-interrupt:\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t}()\n\n\t<-interrupt\n}\n\nfunc handleMessage(messageType int, message []byte) {\n\tif messageType == websocket.TextMessage {\n\t\t// \n\t\tfmt.Println(string(message))\n\t} else if messageType == websocket.BinaryMessage {\n\t\t// \n\t\tdecodedMsg, err := decodeGzip(message)\n\t\tif err != nil {\n\t\t\tlog.Println("WebSocket decode error:", err)\n\t\t\treturn\n\t\t}\n\t\tfmt.Println(decodedMsg)\n\t\tif decodedMsg == "Ping" {\n\t\t\terr = conn.WriteMessage(websocket.TextMessage, []byte("Pong"))\n\t\t\tif err != nil {\n\t\t\t\tlog.Println("WebSocket write error:", err)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tfmt.Println("Pong")\n\t\t}\n\t\treceivedMessage = decodedMsg\n\t}\n}\n\nfunc decodeGzip(data []byte) (string, error) {\n\treader, err := gzip.NewReader(bytes.NewReader(data))\n\tif err != nil {\n\t\treturn "", err\n\t}\n\tdefer reader.Close()\n\n\tdecodedMsg, err := ioutil.ReadAll(reader)\n\tif err != nil {\n\t\treturn "", err\n\t}\n\n\treturn string(decodedMsg), nil\n}'},"e+0O":function(e,t){e.exports=[{type:"hash",text:"Get Market Depth"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /openApi/swap/v2/quote/depth"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/depth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:20}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:"Trading pair, for example: BTC-USDT, please use capital letters"},{name:"limit",type:"int",required:"no",description:"Default 20, optional value:[5, 10, 20, 50, 100, 500, 1000]"}]},{type:"Response",key:"response",data:[{name:"T",type:"int64",description:"System time, unit: millisecond"},{name:"asks",type:"array",description:"depth of asks. first element price, second element quantity"},{name:"bids",type:"array",description:"Buyer depth. first element price, second element quantity"}]}]}]},e3ud:function(e,t){e.exports=[{type:"hash",text:"Place a New Order"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /api/v1/user/trade"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/user/trade",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",apiKey:"",side:"",entrustPrice:0,entrustVolume:0,tradeType:"",action:"",takerProfitPrice:0,stopLossPrice:0}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'},{name:"apiKey",type:"string",required:"yes",description:"Interface Key"},{name:"timestamp",type:"string",required:"yes",description:"Timestamp of initiating the request, unit: ms"},{name:"side",type:"string",required:"yes",description:"(Bid/Ask)"},{name:"entrustPrice",type:"float64",required:"yes",description:"price"},{name:"entrustVolume",type:"float64",required:"yes",description:"quantity"},{name:"tradeType",type:"string",required:"yes",description:"Market/Limit"},{name:"action",type:"string",required:"yes",description:"Open/Close"},{name:"takerProfitPrice",type:"float64",required:"no",description:"Take Profit Price"},{name:"stopLossPrice",type:"float64",required:"no",description:"Stop Loss Price"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"order ID"}]}]}]},e5CW:function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"e",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"f",function(){return p});var i="swap",r="swapV2",o="spot",s="standard",a="common",p=[i,r,o,s,a]},eSSt:function(e,t){e.exports=[{type:"hash",text:"Create sub account apikey"},{type:"normal",text:"Create sub account apikey"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"POST /openApi/subAccount/v1/apiKey/create"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/apiKey/create",protocol:"https",method:"POST",payload:{}},params:[{type:"Request",key:"request",data:[{name:"subUid",type:"long",required:"yes",description:"Sub account uid"},{name:"note",type:"string",required:"yes",description:"notes"},{name:"permissions",type:"Array",required:"yes",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",required:"no",description:"IP whitelist"}]},{type:"Response",key:"response",data:[{name:"apiKey",type:"string",description:"apiKey"},{name:"apiSecret",type:"string",description:"apiSecret"},{name:"permissions",type:"Array",description:"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts"},{name:"ipAddresses",type:"Array",description:"IP whitelist"},{name:"note",type:"string",description:"notes"}]}]}]},eT6P:function(e,t){e.exports=[{type:"hash",text:"Get Latest Price of a Trading Pair"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"code",text:"GET /api/v1/market/getLatestPrice"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/api/v1/market/getLatestPrice",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"yes",description:'There must be a hyphen/ "-" in the trading pair symbol. eg: BTC-USDT'}]},{type:"Response",key:"response",data:[{name:"tradePrice",type:"float64",description:"transaction price"},{name:"indexPrice",type:"float64",description:"index price"},{name:"fairPrice",type:"float64",description:"Mark Price"}]}]}]},eXbW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/NavHeader/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"nav-header\"},[_c('img',{staticClass:\"logo\",attrs:{\"src\":require(\"../../../static/logo.svg\"),\"alt\":\"BingX API Docs\"}}),_vm._v(\" \"),_c('el-menu',{staticClass:\"nav-header-menu\",attrs:{\"mode\":\"horizontal\",\"router\":\"\",\"text-color\":\"#999999\",\"active-text-color\":\"#292929\",\"default-active\":_vm.defaultActive}},_vm._l((_vm.menus),function(item){return _c('el-menu-item',{key:item.name,attrs:{\"index\":item.path}},[_vm._v(\"\\n \"+_vm._s(item.label)+\"\\n \")])}),1),_vm._v(\" \"),_c('el-select',{staticClass:\"nav-header-search\",attrs:{\"multiple\":false,\"loading\":_vm.loading,\"remote-method\":_vm.debounceQuery,\"filterable\":\"\",\"remote\":\"\",\"no-data-text\":\"No Data\",\"no-match-text\":\"No Data\",\"loading-text\":\"Loading...\",\"placeholder\":_vm.placeholders[_vm.lang],\"icon\":\"el-icon-search\",\"popper-class\":\"search-results\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},[_c('template',{slot:\"prefix\"},[_c('i',{staticClass:\"el-icon-search\"})]),_vm._v(\" \"),_vm._l((_vm.options),function(group){return _c('el-option-group',{key:group.label,attrs:{\"label\":group.label}},_vm._l((group.options),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.label,\"value\":item.value}})}),1)})],2),_vm._v(\" \"),_c('el-dropdown',{staticClass:\"nav-header-lang\",attrs:{\"trigger\":\"click\"}},[_c('span',{staticStyle:{\"cursor\":\"pointer\"}},[_vm._v(\"\\n \"+_vm._s(_vm.langLabel)+\" \"),_c('i',{staticClass:\"el-icon-arrow-down\"})]),_vm._v(\" \"),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},_vm._l((_vm.langs),function(item){return _c('el-dropdown-item',{key:item.value,nativeOn:{\"click\":function($event){return _vm.handleChangeLang(item.value)}}},[_vm._v(\"\\n \"+_vm._s(item.label)+\"\\n \")])}),1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-3b9fa63e\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/NavHeader/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-3b9fa63e\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-3b9fa63e\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-3b9fa63e\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/NavHeader/index.vue\n// module id = null\n// module chunks = ","\n\n\n\n\n// WEBPACK FOOTER //\n// src/Main.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"height\":\"100%\"}},[_c('NavHeader',{attrs:{\"lang\":_vm.currentLang}}),_vm._v(\" \"),_c('router-view',{attrs:{\"lang\":_vm.currentLang}})],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-59cd90e0\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/Main.vue\n// module id = null\n// module chunks = ","var normalizeComponent = require(\"!../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./Main.vue\"\nimport __vue_script__ from \"!!babel-loader!../node_modules/vue-loader/lib/selector?type=script&index=0!./Main.vue\"\n/* template */\nimport __vue_template__ from \"!!../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-59cd90e0\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../node_modules/vue-loader/lib/selector?type=template&index=0!./Main.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = null\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/Main.vue\n// module id = null\n// module chunks = ","import Vue from 'vue'\nimport Router from 'vue-router'\nimport axios from 'axios'\nimport VueScrollTo from 'vue-scrollto'\nimport VueClipboard from 'vue-clipboard2'\n\nimport hljs from 'highlight.js/lib/core'\nimport 'highlight.js/styles/atom-one-dark.css'\nimport javascript from 'highlight.js/lib/languages/javascript'\nimport json from 'highlight.js/lib/languages/json'\nimport go from 'highlight.js/lib/languages/go'\nimport shell from 'highlight.js/lib/languages/shell'\nimport java from 'highlight.js/lib/languages/java'\nimport python from 'highlight.js/lib/languages/python'\nimport csharp from 'highlight.js/lib/languages/csharp'\n// import no from 'highlight.js/lib/languages/javascript'\nimport php from 'highlight.js/lib/languages/php'\nimport html from 'highlight.js/lib/languages/vbscript-html'\n\nimport Element from 'element-ui'\nimport 'element-ui/lib/theme-chalk/index.css'\n\nimport store from './store'\nimport routes from './router'\nimport Main from './Main.vue'\nimport { CODE_LANG_KEY } from './utils'\n\nhljs.registerLanguage(CODE_LANG_KEY.js, javascript)\nhljs.registerLanguage('json', json)\nhljs.registerLanguage(CODE_LANG_KEY.go, go)\nhljs.registerLanguage(CODE_LANG_KEY.shell, shell)\nhljs.registerLanguage(CODE_LANG_KEY.java, java)\nhljs.registerLanguage(CODE_LANG_KEY.python, python)\nhljs.registerLanguage(CODE_LANG_KEY.csharp, csharp)\nhljs.registerLanguage(CODE_LANG_KEY.php, php)\nhljs.registerLanguage(CODE_LANG_KEY.html, html)\nhljs.registerLanguage(CODE_LANG_KEY.nodejs, javascript)\n\nVue.use(VueScrollTo, {\n container: \"#scroll-container\",\n duration: 500,\n easing: \"ease\",\n offset: 0,\n force: true,\n})\nVue.use(Element)\nVue.use(VueClipboard)\nVue.use(Router)\n\nVue.prototype.$axios = axios\nVue.config.productionTip = false\nVue.prototype.$hljs = hljs\n\nconst router = new Router({\n\tmode: 'hash',\n routes: routes,\n})\n\nrouter.beforeEach((to, from, next) => {\n if(to.meta && to.meta.title) {\n document.title = `${to.meta.title} | BingX API Docs`\n }\n next()\n})\n\nnew Vue({\n el: '#app',\n router,\n store,\n render: h => h(Main),\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询K线最新数据\"},{\"type\":\"normal\",\"text\":\"查询最新成交价格的K线最新数据。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestKline\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestKline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k线类型,参考字段说明,如分钟,小时,周等\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1m一分钟K线\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3m三分钟K线\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"5m五分钟K线\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15m十五分钟K线\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30m三十分钟K线\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1h一小时K线\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2h两小时K线\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4h四小时K线\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6h六小时K线\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12h十二小时K线\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1D日K线\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W周K线\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1M月K线\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"开盘价\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盘价\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高价\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低价\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易数量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"k线时间戳,单位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/07_get_quote_ klines.json\n// module id = NO1N\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询合约未平仓数量\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getOpenPositions\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getOpenPositions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"持仓数量\"},{\"name\":\"unit\",\"type\":\"string\",\"description\":\"持仓数量对应的单位,CONT(张), BTC, ETH, LINK, BCH等等\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/10_get_quote_openInterest.json\n// module id = NpYN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Leverage\"},{\"type\":\"normal\",\"text\":\"Query the opening leverage of the user in the specified symbol contract.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"Long position leverage\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"Short Leverage\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/11_get_trade_leverage.json\n// module id = Nux4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷全部訂單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的全部訂單進行撤銷操作\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/allOpenOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOpenOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"撤銷成功的訂單列表\"},{\"name\":\"failed\",\"type\":\"結构數組\",\"description\":\"撤銷失敗的訂單列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"錯誤信息提示\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"訂單時間,單位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委託數量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交價\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/06_delete_trade_all_order.json\n// module id = Nw8z\n// module chunks = 3","var map = {\n\t\".\": \"NoWp\",\n\t\"./\": \"NoWp\",\n\t\"./01_get_user_balance\": \"DLRo\",\n\t\"./01_get_user_balance.json\": \"DLRo\",\n\t\"./02_get_user_positions\": \"Knhz\",\n\t\"./02_get_user_positions.json\": \"Knhz\",\n\t\"./03_get_user_income\": \"s67u\",\n\t\"./03_get_user_income.json\": \"s67u\",\n\t\"./index\": \"NoWp\",\n\t\"./index.js\": \"NoWp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"O/kc\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/account ^.*$\n// module id = O/kc\n// module chunks = 3","var map = {\n\t\".\": \"MRTk\",\n\t\"./\": \"MRTk\",\n\t\"./01_dept_info\": \"PNFl\",\n\t\"./01_dept_info.json\": \"PNFl\",\n\t\"./02_latest_records\": \"vXfi\",\n\t\"./02_latest_records.json\": \"vXfi\",\n\t\"./03_kline_data\": \"H59N\",\n\t\"./03_kline_data.json\": \"H59N\",\n\t\"./index\": \"MRTk\",\n\t\"./index.js\": \"MRTk\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"O2+o\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/market ^.*$\n// module id = O2+o\n// module chunks = 3","var map = {\n\t\".\": \"+hJF\",\n\t\"./\": \"+hJF\",\n\t\"./01_connect\": \"uUP9\",\n\t\"./01_connect.json\": \"uUP9\",\n\t\"./02_data_compress\": \"ku8a\",\n\t\"./02_data_compress.json\": \"ku8a\",\n\t\"./03_heart_beat\": \"QDPd\",\n\t\"./03_heart_beat.json\": \"QDPd\",\n\t\"./04_subscribe\": \"f4mz\",\n\t\"./04_subscribe.json\": \"f4mz\",\n\t\"./05_cancel_subscribe\": \"IhWV\",\n\t\"./05_cancel_subscribe.json\": \"IhWV\",\n\t\"./index\": \"+hJF\",\n\t\"./index.js\": \"+hJF\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"O2Id\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce ^.*$\n// module id = O2Id\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/basic/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询子账户现货资产\"},{\"type\":\"normal\",\"text\":\"查询子账户现货资产\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/assets\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子账户uid\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"资产名称\"},{\"name\":\"free\",\"type\":\"double\",\"description\":\"可用额度\"},{\"name\":\"locked\",\"type\":\"double\",\"description\":\"锁定资产\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/04_get_sub_account_spot_balance.json\n// module id = OVDJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Deposit History(supporting network)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"coin name\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"status(0:pending,6: credited but cannot withdraw, 1:success)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Starting time1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"End Time 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"no\",\"description\":\"offset default0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size default 1000 cannot exceed 1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Execution window time, cannot be greater than 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp 1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"Recharge amount\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"coin name\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"recharge network\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"Status Status 0-Confirmed-10-To be confirmed (under review) 20-Applied for block 30-Approved and passed 40-Approval failed 50-Exported 60-Preliminary confirmation of recharge (final confirmation becomes 0) 70-Approved failed and returned assets\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"recharge address\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"Remark\"},{\"name\":\"txId\",\"type\":\"LONG\",\"description\":\"transaction id\"},{\"name\":\"insertTime\",\"type\":\"LONG\",\"description\":\"transaction hour\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"Transaction Type 0 = Recharge\"},{\"name\":\"unlockConfirm\",\"type\":\"LONG\",\"description\":\"confirm times for unlocking\"},{\"name\":\"confirmTimes\",\"type\":\"LONG\",\"description\":\"Network confirmation times\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/03_get_deposit_hisrec.json\n// module id = OW9C\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"簽名說明\"},{\"type\":\"normal\",\"text\":\"sign 是對http method,url path,請求參數等按字符串連接之後使用 HMAC SHA256 方法加密而得到的。\",\"children\":[{\"type\":\"normal\",\"text\":\"path 為URL的請求路徑,例如: /api/v1/user/getBalance\"},{\"type\":\"normal\",\"text\":\"method 是請求方法(POST/GET/PUT/DELETE),字母全部大寫。\"},{\"type\":\"normal\",\"text\":\"參數是對 所有參數(含timestamp)按照字典排序之後,按照key1=value1 + key2=value2 ... + Secret Key 字符串(+表示字符串連接)。\"}]},{\"type\":\"html\",\"text\":\"originString = method + path + params sign = HmacSHA256(originString)\"},{\"type\":\"html\",\"text\":\"

    例如:對於如下的請求參數進行簽名

    \"},{\"type\":\"code\",\"text\":\"curl \\\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance\\\"\"},{\"type\":\"html\",\"text\":\"

    通過POST方式獲取獲取用戶某資產餘額信息,以

    \"},{\"type\":\"html\",\"text\":\"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    \"},{\"type\":\"html\",\"text\":\"為例\"},{\"type\":\"html\",\"text\":\"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    \"},{\"type\":\"html\",\"text\":\"請求參數按字典排序之後,為 \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    \"},{\"type\":\"html\",\"text\":\"mothod為POST,path為/api/v1/user/getBalance,生成待簽名的參數字符串如下:\"},{\"type\":\"code\",\"text\":\"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"按算法生成待簽名的字符串\"},{\"type\":\"code\",\"text\":\"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"然後,将待簽名字符串添加私鑰參數生成最终待簽名字符串。例如:\"},{\"type\":\"html\",\"text\":\"

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256(\\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\", \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\")

    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\" | openssl dgst -sha256 -hmac \\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\" -binary | base64 | xargs python2.7 -c 'import sys, urllib;print(urllib.quote(sys.argv[1]))' \"},{\"type\":\"html\",\"text\":\"Signature的結果為S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D,則簽名之後的url query參數為 \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    \"},{\"type\":\"html\",\"text\":\"即最终發送給服務器的API請求應該為:\"},{\"type\":\"code\",\"text\":\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/authentication/04_sign_discription.json\n// module id = OWlA\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swap/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Current optimal listing\"},{\"type\":\"normal\",\"text\":\"Obtain the current optimal order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/bookTicker\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"bid_price\",\"type\":\"float64\",\"description\":\"Optimal purchase price\"},{\"name\":\"bid_qty\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"ask_price\",\"type\":\"float64\",\"description\":\"Best selling price\"},{\"name\":\"ask_qty\",\"type\":\"float64\",\"description\":\"Order quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/20_get_trade_quote_bookTicker.json\n// module id = Oo3B\n// module chunks = 3","var map = {\n\t\"./01_create_sub_accuont.json\": \"Kq29\",\n\t\"./02_post_fetch_uid.json\": \"MZqr\",\n\t\"./03_post_fetch_sub_account_list.json\": \"pZuE\",\n\t\"./04_get_sub_account_spot_balance.json\": \"a8qg\",\n\t\"./05_create_sub_accuont_key.json\": \"sYD+\",\n\t\"./06_get_api_key_info.json\": \"azxt\",\n\t\"./07_post_edit_apikey.json\": \"o4h9\",\n\t\"./08_delete_sub_account_key.json\": \"lRf0\",\n\t\"./09_update_sub_account_status.json\": \"K/yH\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"JAIK\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"zbJw\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Otrz\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount \\.json$\n// module id = Otrz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询账户uid\"},{\"type\":\"normal\",\"text\":\"查询账户uid\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/account/v1/uid\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"用户uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/02_post_fetch_uid.json\n// module id = Ou1A\n// module chunks = 3","var map = {\n\t\".\": \"K9aK\",\n\t\"./\": \"K9aK\",\n\t\"./01_listenKey\": \"o5vU\",\n\t\"./01_listenKey.json\": \"o5vU\",\n\t\"./02_balance\": \"1n2Z\",\n\t\"./02_balance.json\": \"1n2Z\",\n\t\"./03_order\": \"79KP\",\n\t\"./03_order.json\": \"79KP\",\n\t\"./04_setting\": \"tdzN\",\n\t\"./04_setting.json\": \"tdzN\",\n\t\"./index\": \"K9aK\",\n\t\"./index.js\": \"K9aK\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"P/Hf\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/account ^.*$\n// module id = P/Hf\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/api/authentication/index.js","var map = {\n\t\"./01_get_quote_contracts.json\": \"SYVa\",\n\t\"./02_get_quote_price.json\": \"eT6P\",\n\t\"./03_get_quote_depth.json\": \"55v+\",\n\t\"./04_get_quote_ trades.json\": \"w+Dc\",\n\t\"./05_get_quote_ premiumIndex.json\": \"qG6H\",\n\t\"./06_get_quote_ fundingRate.json\": \"2iez\",\n\t\"./07_get_quote_ klines.json\": \"vZVR\",\n\t\"./08_get_quote_ klines_history.json\": \"JZdI\",\n\t\"./09_get_quote_ ticker.json\": \"4AkN\",\n\t\"./10_get_quote_openInterest.json\": \"vVjE\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"PBI8\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market \\.json$\n// module id = PBI8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"獲取充值歷史(支持多網絡)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣的名稱\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"狀態(0:pending,6: credited but cannot withdraw, 1:success)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"開始時間 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"結束時間 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默認0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"頁數量大小 默認1000 不能超過1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"充值金額\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"充值網絡\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"狀態 狀態 0-已確認-10-待確認(審核中) 20-已申請區块 30已審核通過 40審核不通過 50已汇出 60充值初步確認(最终確認變為0) 70審核不通過已退回資產\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"備註\"},{\"name\":\"txId\",\"type\":\"LONG\",\"description\":\"交易id\"},{\"name\":\"insertTime\",\"type\":\"LONG\",\"description\":\"交易時間\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"交易類型0=充值\"},{\"name\":\"unlockConfirm\",\"type\":\"LONG\",\"description\":\"解锁需要的網絡確認次數\"},{\"name\":\"confirmTimes\",\"type\":\"LONG\",\"description\":\"網絡確認次數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/03_get_deposit_hisrec.json\n// module id = PFmh\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱合約交易深度\"},{\"type\":\"normal\",\"text\":\"訂閱合約對盤口深度的數據的推送,此主題發送最新市場深度快照。快照頻率為每秒1次。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 market.depth.$Symbol.$Step.$Level,比如market.depth.BTC-USDT.step0.level5\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合併深度類型,step0,step1,step2,step3,step4,step5\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"是\",\"description\":\"檔數, 如 level5,level10,level20,level50,level100\"}]},{\"type\":\"step\",\"key\":\"key1\",\"data\":[{\"name\":\"step0\",\"type\":\"\",\"description\":\"不合併深度\"},{\"name\":\"step1\",\"type\":\"\",\"description\":\"按價格最小精度乘以10合併深度數據\"},{\"name\":\"step2\",\"type\":\"\",\"description\":\"按價格最小精度乘以100合併深度數據\"},{\"name\":\"step3\",\"type\":\"\",\"description\":\"按價格最小精度乘以1000合併深度數據\"},{\"name\":\"step4\",\"type\":\"\",\"description\":\"按價格最小精度乘以10000合併深度數據\"},{\"name\":\"step5\",\"type\":\"\",\"description\":\"按價格最小精度乘以100000合併深度數據\"}]},{\"type\":\"level\",\"key\":\"key2\",\"data\":[{\"name\":\"level5\",\"type\":\"\",\"description\":\"5檔\"},{\"name\":\"level10\",\"type\":\"\",\"description\":\"10檔\"},{\"name\":\"level20\",\"type\":\"\",\"description\":\"20檔\"},{\"name\":\"level50\",\"type\":\"\",\"description\":\"50檔\"},{\"name\":\"level100\",\"type\":\"\",\"description\":\"100檔\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 market.depth.BTC-USDT.step0.level5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"賣方深度\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"買方深度\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price價格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/market/01_dept_info.json\n// module id = PNFl\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/cancel\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"訂單id\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId,僅支持2個小時的查詢範圍\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下單數量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/02_post_trade_order_cancel.json\n// module id = PO50\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询资金费率历史\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/fundingRate\"},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 都未发送, 返回最近 limit 条数据.
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 之间的数据量大于 limit, 返回 startTime + limit情况下的数据。
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/fundingRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"起始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int32\",\"required\":\"否\",\"description\":\"默认值:100 最大值:1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"fundingRate\",\"type\":\"string\",\"description\":\"资金费率\"},{\"name\":\"fundingTime\",\"type\":\"int64\",\"description\":\"资金费时间:单位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/06_get_quote_ fundingRate.json\n// module id = PQJ1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"变换逐全仓模式\"},{\"type\":\"normal\",\"text\":\"变换用户在指定symbol合约上的保证金模式:逐仓或全仓。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/marginType\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"marginType\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"保证金模式 ISOLATED(逐仓), CROSSED(全仓)\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"}]},{\"type\":\"marginType\",\"key\":\"common\",\"data\":[{\"name\":\"ISOLATED\",\"type\":\"\",\"description\":\"逐仓\"},{\"name\":\"CROSSED\",\"type\":\"\",\"description\":\"全仓\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/10_post_trade_marginType.json\n// module id = PTH3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query sub account spot assets\"},{\"type\":\"normal\",\"text\":\"Query sub account spot assets\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/assets\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"Asset Name\"},{\"name\":\"free\",\"type\":\"double\",\"description\":\"Available limit\"},{\"name\":\"locked\",\"type\":\"double\",\"description\":\"Lock in assets\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/04_get_sub_account_spot_balance.json\n// module id = PVSb\n// module chunks = 3","var map = {\n\t\".\": \"X9kl\",\n\t\"./\": \"X9kl\",\n\t\"./2023-06-03\": \"jVl+\",\n\t\"./2023-06-03.json\": \"jVl+\",\n\t\"./2023-07-29\": \"MfXY\",\n\t\"./2023-07-29.json\": \"MfXY\",\n\t\"./index\": \"X9kl\",\n\t\"./index.js\": \"X9kl\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"PWE0\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog ^.*$\n// module id = PWE0\n// module chunks = 3","var map = {\n\t\"./01_get_asset_transfer.json\": \"6y27\",\n\t\"./02_get_asset_transfer2.json\": \"TDIc\",\n\t\"./03_get_deposit_hisrec.json\": \"YAvn\",\n\t\"./04_get_withdraw_history.json\": \"WNKq\",\n\t\"./05_post_wallets_coins.json\": \"7r0K\",\n\t\"./06_post_wallets_withdraw.json\": \"T4Os\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"+HuI\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Par2\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account \\.json$\n// module id = Par2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"The latest Trade of a Trading Pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/trades\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":500}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"default: 500, maximum 1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"transaction time\"},{\"name\":\"isBuyerMaker\",\"type\":\"bool\",\"description\":\"Whether the buyer is the maker of the order (true / false)\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"transaction price\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"transaction quantity\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"turnover\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/04_get_quote_ trades.json\n// module id = PqB/\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用户强平单历史\"},{\"type\":\"normal\",\"text\":\"查询用户强平单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/forceOrders\"},{\"type\":\"html\",\"text\":\"
  • 如果没有传 \\\"autoCloseType\\\", 强平单和ADL减仓单都会被返回
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果没有传\\\"startTime\\\", 只会返回\\\"endTime\\\"之前7天内的数据
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/forceOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"autoCloseType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"\\\"LIQUIDATION\\\":强平单, \\\"ADL\\\":ADL减仓单\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"返回的结果集数量 默认值50,最大值100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/13_get_trade_forceOrders.json\n// module id = PyiJ\n// module chunks = 3","var map = {\n\t\".\": \"336Z\",\n\t\"./\": \"336Z\",\n\t\"./01_listenKey\": \"gOrG\",\n\t\"./01_listenKey.json\": \"gOrG\",\n\t\"./02_balance\": \"Zg2x\",\n\t\"./02_balance.json\": \"Zg2x\",\n\t\"./03_order\": \"4X8p\",\n\t\"./03_order.json\": \"4X8p\",\n\t\"./04_setting\": \"M7Po\",\n\t\"./04_setting.json\": \"M7Po\",\n\t\"./index\": \"336Z\",\n\t\"./index.js\": \"336Z\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Pyy0\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account ^.*$\n// module id = Pyy0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"常见错误码\"},{\"type\":\"html\",\"text\":\"

    常见HTTP错误码:

    \"},{\"type\":\"html\",\"text\":\"
  • 4XX 错误码用于指示错误的请求内容、行为、格式
  • \"},{\"type\":\"html\",\"text\":\"
  • 5XX 错误码用于指示Bingx服务侧的问题
  • \"},{\"type\":\"html\",\"text\":\"

    常见业务错误码:

    \"},{\"type\":\"html\",\"text\":\"
  • 100001 - 签名验证失败
  • \"},{\"type\":\"html\",\"text\":\"
  • 100202 - 余额不足
  • \"},{\"type\":\"html\",\"text\":\"
  • 100400 - 参数错误
  • \"},{\"type\":\"html\",\"text\":\"
  • 100440 - 下单价格跟市场市场价格偏离太远
  • \"},{\"type\":\"html\",\"text\":\"
  • 100500 - 服务器内部错误
  • \"},{\"type\":\"html\",\"text\":\"
  • 100503 - 服务器繁忙
  • \"},{\"type\":\"html\",\"text\":\"

    注意:

    \"},{\"type\":\"html\",\"text\":\"
  • 如果失败,response body 带有错误描述信息
  • \"},{\"type\":\"html\",\"text\":\"
  • 每个接口都有可能抛出异常
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/basic/03_error_code.json\n// module id = Q+zo\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swapV2/websocket/market/index.js","var map = {\n\t\"./01_server_url.json\": \"FVkd\",\n\t\"./02_server_apply.json\": \"GUKh\",\n\t\"./03_error_code.json\": \"uv3h\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Q8gQ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic \\.json$\n// module id = Q8gQ\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/common/api/subAccount/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"心跳信息\"},{\"type\":\"normal\",\"text\":\"當用戶的Websocket客戶端連接到Bingx Websocket服務器後,服務器會定期(當前設為5秒)向其發送心跳字符串Ping\"},{\"type\":\"normal\",\"text\":\"當用戶的Websocket客戶端接收到此心跳消息後,應返回字符串Pong消息\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce/03_heart_beat.json\n// module id = QDPd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整逐倉保證金\"},{\"type\":\"normal\",\"text\":\"針對逐倉模式下的倉位,調整其逐倉保證金資金\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/swap/v2/trade/positionMargin\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"amount\":0,\"type\":0,\"positionSide\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"保證金資金\"},{\"name\":\"type\",\"type\":\"int\",\"required\":\"是\",\"description\":\"調整方向 1: 增加逐倉保證金,2: 減少逐倉保證金\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持倉方向,且僅可選擇 LONG 或 SHORT,默認LONG\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"amount\",\"type\":\"float64\",\"description\":\"保證金資金\"},{\"name\":\"type\",\"type\":\"int\",\"description\":\"調整方向 1: 增加逐倉保證金,2: 減少逐倉保證金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/15_post_trade_positionMargin.json\n// module id = QHIT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量下單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"註意\",\"children\":[{\"type\":\"normal\",\"text\":\"限價單必須傳price參數。\"},{\"type\":\"normal\",\"text\":\"限價單必須傳quantity或quoteOrderQty其中一個,當两個參數同時傳遞時,服務端優先使用參數quantity。\"},{\"type\":\"normal\",\"text\":\"市價買單必須傳quoteOrderQty參數。\"},{\"type\":\"normal\",\"text\":\"市價賣單必須傳quantity參數。\"},{\"type\":\"normal\",\"text\":\"接口創建的訂單在APP和Web頁面不會顯示。\"}]},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"type\":\"\",\"timeInForce\":0,\"quantity\":0,\"quoteOrderQty\":0,\"price\":0,\"recvWindow\":0}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"是\",\"description\":\"下單的request數組\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"IOC, POC\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量, 例如: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單金額, 例如: 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格, 例如: 10000USDT\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderId,僅支持2個小時的查詢範圍\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"array\",\"description\":\"單個下單的response數組,限制5個訂單\"}]},{\"type\":\"order\",\"key\":\"key2\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"交易時間戳\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下單數量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/07_post_trade_batchOrders.json\n// module id = QUO8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Margin Mode\"},{\"type\":\"normal\",\"text\":\"Query the user's margin mode on the specified symbol contract: isolated or cross.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/marginType\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"margin mode\"}]},{\"type\":\"marginType\",\"key\":\"common\",\"data\":[{\"name\":\"ISOLATED\",\"type\":\"\",\"description\":\"Isolated Margin\"},{\"name\":\"CROSSED\",\"type\":\"\",\"description\":\"Full position\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/09_get_trade_marginType.json\n// module id = Qa4f\n// module chunks = 3","var map = {\n\t\".\": \"Bo+j\",\n\t\"./\": \"Bo+j\",\n\t\"./01_balance\": \"uiwf\",\n\t\"./01_balance.json\": \"uiwf\",\n\t\"./index\": \"Bo+j\",\n\t\"./index.js\": \"Bo+j\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"QcEA\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/websocket/account ^.*$\n// module id = QcEA\n// module chunks = 3","var map = {\n\t\".\": \"2/Td\",\n\t\"./\": \"2/Td\",\n\t\"./01_error_code\": \"INR5\",\n\t\"./01_error_code.json\": \"INR5\",\n\t\"./02_timestamp\": \"gE9e\",\n\t\"./02_timestamp.json\": \"gE9e\",\n\t\"./03_digital_rule\": \"v0HI\",\n\t\"./03_digital_rule.json\": \"v0HI\",\n\t\"./04_rate_limits\": \"x6dl\",\n\t\"./04_rate_limits.json\": \"x6dl\",\n\t\"./05_system_time\": \"i6gS\",\n\t\"./05_system_time.json\": \"i6gS\",\n\t\"./index\": \"2/Td\",\n\t\"./index.js\": \"2/Td\",\n\t\"./index_share_to_v1\": \"hsbI\",\n\t\"./index_share_to_v1.js\": \"hsbI\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"R20p\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic ^.*$\n// module id = R20p\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/websocket/introduce/index.js","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/listenKey/index.js","var map = {\n\t\".\": \"P462\",\n\t\"./\": \"P462\",\n\t\"./01_create_api\": \"KTad\",\n\t\"./01_create_api.json\": \"KTad\",\n\t\"./03_request_content\": \"YdSN\",\n\t\"./03_request_content.json\": \"YdSN\",\n\t\"./04_sign_discription\": \"XBGg\",\n\t\"./04_sign_discription.json\": \"XBGg\",\n\t\"./05_request\": \"oR0W\",\n\t\"./05_request.json\": \"oR0W\",\n\t\"./index\": \"P462\",\n\t\"./index.js\": \"P462\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"RNZo\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication ^.*$\n// module id = RNZo\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Historical order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/allOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Currency pair, the format is similar: BTC-USDT, must pass\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Order ID, optional\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"start time, optional\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"end time, optional\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"quantity, optional\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"avgPrice\",\"type\":\"number\",\"description\":\"Closing price\"},{\"name\":\"cumQuote\",\"type\":\"number\",\"description\":\"transaction amount\"},{\"name\":\"executedQty\",\"type\":\"number\",\"description\":\"turnover\"},{\"name\":\"orderId\",\"type\":\"number\",\"description\":\"System order number\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, LONG and SHORT\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order Status CLOSED\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Currency pair, the format is similar to:BTC-USDT\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time\"},{\"name\":\"margin\",\"type\":\"number\",\"description\":\"Margin\"},{\"name\":\"leverage\",\"type\":\"number\",\"description\":\"Leverage\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Whether it is isolated margin mode\"},{\"name\":\"closePrice\",\"type\":\"number\",\"description\":\"Closing price\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"Position order number\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/api/trade/02_get_contract_allOrders.json\n// module id = RhU9\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"vDBD\",\n\t\"./02_post_trade_batch_order.json\": \"Crrt\",\n\t\"./03_post_closeAllPositions.json\": \"pKuc\",\n\t\"./04_delete_trade_order.json\": \"9V8o\",\n\t\"./05_delete_trade_batch_order.json\": \"hIfT\",\n\t\"./06_delete_trade_all_order.json\": \"Nw8z\",\n\t\"./07_get_all_openOrders.json\": \"Ewmn\",\n\t\"./08_get_trade_order.json\": \"/1k/\",\n\t\"./09_get_trade_marginType.json\": \"7mzI\",\n\t\"./10_post_trade_marginType.json\": \"WVbz\",\n\t\"./11_get_trade_leverage.json\": \"/Kh3\",\n\t\"./12_post_trade_leverage.json\": \"ZoHP\",\n\t\"./13_get_trade_forceOrders.json\": \"9bR8\",\n\t\"./14_get_trade_allOrders.json\": \"7bgg\",\n\t\"./15_post_trade_positionMargin.json\": \"QHIT\",\n\t\"./16_post_trade_order_test.json\": \"Hhes\",\n\t\"./17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./18_get_trade_income_export.json\": \"TDt4\",\n\t\"./19_get_trade_user_commissionRate.json\": \"x8dX\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"SGv/\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Rqf2\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade \\.json$\n// module id = Rqf2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"extend Listen Key Validity period\"},{\"type\":\"normal\",\"text\":\"The validity period is extended to 60 minutes after this call, and it is recommended to send a ping every 30 minutes.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"PUT /openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl -i -X PUT 'https://open-api.bingx.com/openApi/user/auth/userDataStream?listenKey=d84d39fe78762b39e202ba204bf3f7ebed43bbe7a481299779cb53479ea9677d'\"},{\"type\":\"normal\",\"text\":\"response\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • http status 200 success
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 204 not content
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 404 not find key
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"PUT\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"listenKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"listen Key\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/listenKey/02_put_listenKey.json\n// module id = Rtfu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"設置止盈止損訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/stopOrder\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/stopOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"positionId\":\"\",\"orderId\":\"\",\"stopLossPrice\":0,\"takeProfitPrice\":0,\"entrustVolume\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"持倉id\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"止盈止損訂單id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止損價格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止盈價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"委託數量\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"止盈止損訂單id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/15_post_trade_positionMargin.json\n// module id = RvjO\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢資產\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/account/balance\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求時間戳, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"balances\",\"type\":\"Array\",\"description\":\"資產列表, 元素字段參考下表\"}]},{\"type\":\"balance\",\"key\":\"response1\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"資產名\"},{\"name\":\"free\",\"type\":\"string\",\"description\":\"可用資金\"},{\"name\":\"locked\",\"type\":\"string\",\"description\":\"凍結資金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/06_get_account_balance.json\n// module id = S+dO\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/common/api/subAccount/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查詢成交記录\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/trades\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\",\"limit\":100}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默認100,最多100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"long\",\"description\":\"交易id\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"價格\"},{\"name\":\"qty\",\"type\":\"float64\",\"description\":\"數量\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"時間\"},{\"name\":\"isBuyerMaker\",\"type\":\"boolean\",\"description\":\"是否買方\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/02_get_ market_traders.json\n// module id = SDL0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"當前最優掛單\"},{\"type\":\"normal\",\"text\":\"獲取當前最優掛單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/bookTicker\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"bid_price\",\"type\":\"float64\",\"description\":\"最優買單價\"},{\"name\":\"bid_qty\",\"type\":\"float64\",\"description\":\"掛單量\"},{\"name\":\"ask_price\",\"type\":\"float64\",\"description\":\"最優賣單價\"},{\"name\":\"ask_qty\",\"type\":\"float64\",\"description\":\"掛單量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/20_get_trade_quote_bookTicker.json\n// module id = SGv/\n// module chunks = 3","var map = {\n\t\"./01_create_sub_accuont.json\": \"5mnu\",\n\t\"./02_post_fetch_uid.json\": \"Ou1A\",\n\t\"./03_post_fetch_sub_account_list.json\": \"3YFN\",\n\t\"./04_get_sub_account_spot_balance.json\": \"OVDJ\",\n\t\"./05_create_sub_accuont_key.json\": \"9vIT\",\n\t\"./06_get_api_key_info.json\": \"SwSY\",\n\t\"./07_post_edit_apikey.json\": \"Mwd2\",\n\t\"./08_delete_sub_account_key.json\": \"Y8uX\",\n\t\"./09_update_sub_account_status.json\": \"Tupg\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"YzmL\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"fe6F\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"SIbE\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount \\.json$\n// module id = SIbE\n// module chunks = 3","var map = {\n\t\"./01_get_account_apiRestrictions.json\": \"2ni1\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"SRzp\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/permission \\.json$\n// module id = SRzp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Contract Information\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getAllContracts\"},{\"type\":\"code\",\"text\":\"example: https://api-swap-rest.bingbon.pro/api/v1/market/getAllContracts\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getAllContracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request(null)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"With regards to error messages, 0 means normal, and 1 means error\"},{\"name\":\"msg\",\"type\":\"\",\"description\":\"error message\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Array\"}]},{\"type\":\"Data\",\"key\":\"response1\",\"data\":[{\"name\":\"contractId\",\"type\":\"\",\"description\":\"contract ID\"},{\"name\":\"symbol\",\"type\":\"\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"name\",\"type\":\"\",\"description\":\"The name of the underlying index\"},{\"name\":\"size\",\"type\":\"\",\"description\":\"contract size, such as 0.0001 BTC\"},{\"name\":\"minStep\",\"type\":\"\",\"description\":\"User's step\"},{\"name\":\"volumePrecision\",\"type\":\"\",\"description\":\"transaction quantity precision\"},{\"name\":\"pricePrecision\",\"type\":\"\",\"description\":\"price precision\"},{\"name\":\"quantityPrecision\",\"type\":\"\",\"description\":\"transaction quantity precision\"},{\"name\":\"feeRate\",\"type\":\"\",\"description\":\"transaction fee\"},{\"name\":\"tradeMinLimit\",\"type\":\"\",\"description\":\"The smallest trading unit\"},{\"name\":\"currency\",\"type\":\"\",\"description\":\"settlement and margin currency asset\"},{\"name\":\"asset\",\"type\":\"\",\"description\":\"contract trading asset\"},{\"name\":\"maxLongLeverage\",\"type\":\"\",\"description\":\"The maximum leverage for long transactions\"},{\"name\":\"maxShortLeverage\",\"type\":\"\",\"description\":\"Maximum leverage for short trades\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/01_get_quote_contracts.json\n// module id = SYVa\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询apikey信息\"},{\"type\":\"normal\",\"text\":\"查询apikey信息\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/sub-account/v1/apiKey/query\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/sub-account/v1/apiKey/query\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"用户uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"否\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"description\":\"\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"备注\"},{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"权限,1-现货交易,2-读取,3-专业合约交易,4-万向划转,7-允许子账户内转\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"ip白名单\"},{\"name\":\"createTime\",\"type\":\"long\",\"description\":\"创建时间\"},{\"name\":\"updateTime\",\"type\":\"long\",\"description\":\"更新时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/06_get_api_key_info.json\n// module id = SwSY\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"9f4O\",\n\t\"./02_data_compress.json\": \"yd9p\",\n\t\"./03_heart_beat.json\": \"aeFT\",\n\t\"./04_subscribe.json\": \"KaHo\",\n\t\"./05_cancel_subscribe.json\": \"zovs\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"SxTR\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/introduce \\.json$\n// module id = SxTR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"发起提币\"},{\"type\":\"normal\",\"text\":\"指定用户账户发起提币\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/wallets/v1/capital/withdraw/apply\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"network\":\"ERC20\",\"address\":\"0xxxxxxxxxxxxxx\",\"addressTag\":\"\",\"amount\":20,\"walletType\":1}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"币种名称\"},{\"name\":\"network\",\"type\":\"string\",\"required\":\"否\",\"description\":\"网络名称,不传则使用默认网络\"},{\"name\":\"address\",\"type\":\"string\",\"required\":\"是\",\"description\":\"提币地址\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"提币金额\"},{\"name\":\"walletType\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"账户类型, 1资金账户, 2标合账户, 3永续账户\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"提币记录唯一标识,该字段在提币走内转时不返回\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account/06_post_wallets_withdraw.json\n// module id = T4Os\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询用户万向划转历史\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/asset/transfer\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"startTime\":1658748648396,\"endTime\":1658748648396,\"current\":1,\"size\":10,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"是\",\"description\":\"划转类型\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"开始时间 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"结束时间 1658748648396\"},{\"name\":\"current\",\"type\":\"int\",\"required\":\"否\",\"description\":\"当前页 默认1\"},{\"name\":\"size\",\"type\":\"int\",\"required\":\"否\",\"description\":\"页数量大小 默认10 不能超过100\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"执行窗口时间,不能大于 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"当前时间戳 例如1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"资金账户->标准合约\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"标准合约->资金账户\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"资金账户->永续合约\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"永续合约->资金账户\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"标准合约->永续合约\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"永续合约->标准合约\"},{\"name\":\"FUND_STRADING\",\"type\":\"\",\"description\":\"资金账户 -> 网格\"},{\"name\":\"STRADING_FUND\",\"type\":\"\",\"description\":\"网格 -> 资金账户\"},{\"name\":\"FUND_CTRADING\",\"type\":\"\",\"description\":\"资金账户 -> 跟单\"},{\"name\":\"SFUTURES_CTRADING\",\"type\":\"\",\"description\":\"标准合约账户 -> 跟单\"},{\"name\":\"PFUTURES_CTRADING\",\"type\":\"\",\"description\":\"永续合约账户 -> 跟单\"},{\"name\":\"CTRADING_FUND\",\"type\":\"\",\"description\":\"跟单 -> 资金账户\"},{\"name\":\"CTRADING_SFUTURES\",\"type\":\"\",\"description\":\"跟单 -> 标准合约账户\"},{\"name\":\"CTRADING_PFUTURES\",\"type\":\"\",\"description\":\"跟单 -> 永续合约账户\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"total\",\"type\":\"LONG\",\"description\":\"总数\"},{\"name\":\"rows\",\"type\":\"Array\",\"description\":\"数据Array\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"币的名称\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"币的金额\"},{\"name\":\"type\",\"type\":\"ENUM\",\"description\":\"划转类型\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"CONFIRMED\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"交易ID\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"description\":\"划转的时间戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account/02_get_asset_transfer2.json\n// module id = TDIc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易下单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/trade\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\",\"side\":\"\",\"entrustPrice\":0,\"entrustVolume\":0,\"tradeType\":\"\",\"action\":\"\",\"takerProfitPrice\":0,\"stopLossPrice\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"(Bid/Ask 买/卖)\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"价格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"数量\"},{\"name\":\"tradeType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Market/Limit 市价/限价\"},{\"name\":\"action\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Open/Close 开仓/平仓\"},{\"name\":\"takerProfitPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止盈价格\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止损价格\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/01_post_trade_order.json\n// module id = TDl7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"導出資金流水\"},{\"type\":\"normal\",\"text\":\"導出資金流水\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/income/export\"},{\"type\":\"warning\",\"text\":\"響應: Excel File\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income/export\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"incomeType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"incomeType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"資金流水類型,可選值:TRANSFER REALIZED_PNL FUNDING_FEE TRADING_FEE INSURANCE_CLEAR TRIAL_FUND ADL SYSTEM_DEDUCTION\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"起始時間戳,單位毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間戳,單位毫秒\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"返回的結果集數量 默認值:100 最大值:1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間窗口,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/18_get_trade_income_export.json\n// module id = TDt4\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"tk7z\",\n\t\"./02_kline_data.json\": \"klxE\",\n\t\"./03_depth_info.json\": \"ADmP\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"TUnK\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market \\.json$\n// module id = TUnK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订阅合约k线数据\"},{\"type\":\"normal\",\"text\":\"K线stream逐秒推送所请求的K线种类(最新一根K线)的更新。\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @kline_,比如BTC-USDT@kline_1m\"},{\"type\":\"normal\",\"text\":\"订阅举例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 更多返回错误代码请看首页的错误代码描述
  • \"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称,合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k线类型,交易对, 参考字段说明,如分钟,小时,周等\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"收盘价\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"最高价\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"最低价\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"开盘价\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"成交量\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"一分钟K线\"},{\"name\":\"3m\",\"description\":\"三分钟K线\"},{\"name\":\"5m\",\"description\":\"五分钟K线\"},{\"name\":\"15m\",\"description\":\"十五分钟K线\"},{\"name\":\"30m\",\"description\":\"三十分钟K线\"},{\"name\":\"1h\",\"description\":\"一小时K线\"},{\"name\":\"2h\",\"description\":\"两小时K线\"},{\"name\":\"4h\",\"description\":\"四小时K线\"},{\"name\":\"6h\",\"description\":\"六小时K线\"},{\"name\":\"8h\",\"description\":\"八小时K线\"},{\"name\":\"12h\",\"description\":\"12小时K线\"},{\"name\":\"1d\",\"description\":\"1日K线\"},{\"name\":\"3d\",\"description\":\"3日K线\"},{\"name\":\"1w\",\"description\":\"周K线\"},{\"name\":\"1M\",\"description\":\"月K线\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/market/03_kline_data.json\n// module id = TV6R\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/swap/websocket/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Current Funding Rate\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/premiumIndex\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"lastFundingRate\",\"type\":\"string\",\"description\":\"Last updated funding rate\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"current mark price\"},{\"name\":\"indexPrice\",\"type\":\"string\",\"description\":\"index price\"},{\"name\":\"nextFundingTime\",\"type\":\"int64\",\"description\":\"The remaining time for the next settlement, in milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/05_get_quote_ premiumIndex.json\n// module id = Tk4L\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Leverage\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/getLeverage\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/getLeverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"Long position leverage\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"Short Leverage\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/11_get_trade_leverage.json\n// module id = Toje\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/swapV2/description\",\"name\":\"接口说明\",\"content\":[{\"type\":\"html\",\"text\":\"
  • GET方法的接口, 参数必须在query string中发送.
  • \"},{\"type\":\"html\",\"text\":\"
  • POST, PUT, 和 DELETE 方法的接口, 参数可以在 query string 中发送,也可以在 request body 中发送(content type application/x-www-form-urlencoded)。
    允许混合这两种方式发送参数。但如果同一个参数名在 query string 和 request body 中都有,query string 中的会被优先采用。
  • \"},{\"type\":\"html\",\"text\":\"
  • 对参数的顺序不做要求。
  • \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/2_description.json\n// module id = Tp48\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"深度信息\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/depth\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":20}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默认20,可选值:[5, 10, 20, 50, 100, 500, 1000]\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"系统时间,单位:毫秒\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"卖方深度。第一个元素价格,第二个元素数量\"},{\"name\":\"bids\",\"type\":\"array\",\"description\":\"买方深度。第一个元素价格,第二个元素数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/03_get_quote_depth.json\n// module id = TsMJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"冻结 解冻子账户\"},{\"type\":\"normal\",\"text\":\"冻结 解冻子账户\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/updateStatus\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/updateStatus\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子账户uid\"},{\"name\":\"freeze\",\"type\":\"bool\",\"required\":\"是\",\"description\":\"是否冻结账号\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子账户uid\"},{\"name\":\"freeze\",\"type\":\"bool\",\"description\":\"是否已冻结\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/09_update_sub_account_status.json\n// module id = Tupg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"權限設置\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"normal\",\"text\":\"新創建的API的默認權限是 只讀。\"},{\"type\":\"normal\",\"text\":\"如果需要通過API進行下單交易等寫操作,需要在UI修改為對應權限。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication/02_permission_set.json\n// module id = U3vK\n// module chunks = 3","var map = {\n\t\".\": \"R9OT\",\n\t\"./\": \"R9OT\",\n\t\"./01_create_listenKey\": \"KCrj\",\n\t\"./01_create_listenKey.json\": \"KCrj\",\n\t\"./02_put_listenKey\": \"lKnG\",\n\t\"./02_put_listenKey.json\": \"lKnG\",\n\t\"./03_delete_listenKey\": \"+Xv4\",\n\t\"./03_delete_listenKey.json\": \"+Xv4\",\n\t\"./index\": \"R9OT\",\n\t\"./index.js\": \"R9OT\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"U4UH\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/listenKey ^.*$\n// module id = U4UH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Permission Settings\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"normal\",\"text\":\"The default permission for newly created APIs is read-only.\"},{\"type\":\"normal\",\"text\":\"If you need to perform write operations such as placing an order through the API, you need to modify it to the corresponding permission on the UI.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication/02_permission_set.json\n// module id = UG8z\n// module chunks = 3","var map = {\n\t\".\": \"ohLs\",\n\t\"./\": \"ohLs\",\n\t\"./01_executionReport\": \"pjpR\",\n\t\"./01_executionReport.json\": \"pjpR\",\n\t\"./02_ account_update\": \"5y10\",\n\t\"./02_ account_update.json\": \"5y10\",\n\t\"./index\": \"ohLs\",\n\t\"./index.js\": \"ohLs\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"UGH9\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/account ^.*$\n// module id = UGH9\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/websocket/account/index.js","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"K線數據\"},{\"type\":\"normal\",\"text\":\"查詢成交價格的K線數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/klines\"},{\"type\":\"html\",\"text\":\"
  • 如果未發送 startTime 和 endTime ,默認返回最新的k線數據
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"時間間隔,參考字段說明\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間,單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,單位:毫秒\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"默認值:500 最大值:1440\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"開盤價\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盤價\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高價\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低價\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易數量\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"k線時間戳,單位毫秒\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"一分鐘K線\"},{\"name\":\"3m\",\"description\":\"三分鐘K線\"},{\"name\":\"5m\",\"description\":\"五分鐘K線\"},{\"name\":\"15m\",\"description\":\"十五分鐘K線\"},{\"name\":\"30m\",\"description\":\"三十分鐘K線\"},{\"name\":\"1h\",\"description\":\"一小時K線\"},{\"name\":\"2h\",\"description\":\"两小時K線\"},{\"name\":\"4h\",\"description\":\"四小時K線\"},{\"name\":\"6h\",\"description\":\"六小時K線\"},{\"name\":\"8h\",\"description\":\"八小時K線\"},{\"name\":\"12h\",\"description\":\"12小時K線\"},{\"name\":\"1d\",\"description\":\"1日K線\"},{\"name\":\"3d\",\"description\":\"3日K線\"},{\"name\":\"1w\",\"description\":\"週K線\"},{\"name\":\"1M\",\"description\":\"月K線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/07_get_quote_ klines.json\n// module id = UTAD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询最新成交记录\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getMarketTrades\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getMarketTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"date\",\"description\":\"成交时间\"},{\"name\":\"makerSide\",\"type\":\"string\",\"description\":\"吃单方向(Buy / Sell 买/卖)\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成交价格\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"成交数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/04_get_quote_ trades.json\n// module id = Ua/t\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Query Open Orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/openOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"Order list,max length is 2000, refer to the table below for order fields\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Original quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote asset transacted quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Order timestamp\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Update timestamp\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"Original quote order quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/04_get_trade_open_order.json\n// module id = V7qZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"K线 Streams\"},{\"type\":\"normal\",\"text\":\"K线stream逐秒推送所请求的K线种类(最新一根K线)的更新。\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @kline_,比如BTC-USDT@kline_1min\"},{\"type\":\"normal\",\"text\":\"订阅举例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 目前仅提供一分钟的k线数据
  • \"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称,合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"参考字段说明,K线类型,1min, 5min, 15min, 30min, 60min, 1day\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@kline_1min\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间\"},{\"name\":\"K\",\"type\":\"\",\"description\":\"数据\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"}]},{\"type\":\"K\",\"key\":\"key2\",\"data\":[{\"name\":\"T\",\"type\":\"\",\"description\":\"这根K线的结束时间\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"这根K线期间末一笔成交价\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"这根K线期间最高成交价\"},{\"name\":\"i\",\"type\":\"\",\"description\":\"K线间隔\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"这根K线期间最低成交价\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"这根K线期间成交笔数\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"这根K线期间第一笔成交价\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"这根K线期间成交额\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"},{\"name\":\"t\",\"type\":\"\",\"description\":\"这根K线的起始时间\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"这根K线期间成交量\"}]},{\"type\":\"klineType\",\"key\":\"common\",\"data\":[{\"name\":\"1min\",\"description\":\"1min一分钟K线\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/market/02_kline_data.json\n// module id = VLKD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約24小時價格變動情况\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getTicker\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合約名稱\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"價格變動, 單位是USDT\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"價格變動百分比\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"最新交易價格\"},{\"name\":\"lastVolume\",\"type\":\"string\",\"description\":\"最新交易數量\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"24小時最高價\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"24小時最低價\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"24小時成交量\"},{\"name\":\"dayVolume\",\"type\":\"string\",\"description\":\"24小時成交額, 單位是USDT\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"24小時內第一個價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/09_get_quote_ ticker.json\n// module id = VOPx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Timestamp\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"Unless otherwise specified, all timestamps from the API are returned with millisseconds resolution.\"},{\"type\":\"html\",\"text\":\"The timestamp of the request must be within 5 seconds of the API service time, otherwise the request will be considered expired and rejected. If there is a large deviation between the local server time and the API server time, we recommend that you update the http header by querying the API server time. header。 \"}]},{\"type\":\"html\",\"text\":\"

    Example

    \"},{\"type\":\"code\",\"text\":\"1587091154123\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic/02_timestamp.json\n// module id = VQr5\n// module chunks = 3","var map = {\n\t\".\": \"9GqO\",\n\t\"./\": \"9GqO\",\n\t\"./01_get_common_symbols\": \"o8W7\",\n\t\"./01_get_common_symbols.json\": \"o8W7\",\n\t\"./02_get_ market_traders\": \"SDL0\",\n\t\"./02_get_ market_traders.json\": \"SDL0\",\n\t\"./03_get_market_depth\": \"2qJV\",\n\t\"./03_get_market_depth.json\": \"2qJV\",\n\t\"./04_get_market_klines\": \"/lsz\",\n\t\"./04_get_market_klines.json\": \"/lsz\",\n\t\"./index\": \"9GqO\",\n\t\"./index.js\": \"9GqO\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"VTkR\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market ^.*$\n// module id = VTkR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe the Latest Trade Detail\"},{\"type\":\"normal\",\"text\":\"Subscribe to the trade detail data of a trading pair\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 market.trade.detail.$Symbol,比如market.trade.detail.BTC-USDT\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"With regards to error messages, 0 means normal, and 1 means error\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of data subscribed, such as market.tradeDetail.BTC-USDT\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"trades\",\"type\":\"\",\"description\":\"Deal by deal\"},{\"name\":\"time\",\"type\":\"\",\"description\":\"transaction time\"},{\"name\":\"makerSide\",\"type\":\"\",\"description\":\"Direction ( Bid / Ask)\"},{\"name\":\"price\",\"type\":\"\",\"description\":\"transaction price\"},{\"name\":\"volume\",\"type\":\"\",\"description\":\"Executed quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/websocket/market/02_latest_records.json\n// module id = VUGM\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Withdraw History (supporting network)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/withdraw/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"withdrawOrderId\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"coin name\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom ID, if there is none, this field will not be returned\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Status (0: Confirmation Email has been sent, 2: Waiting for confirmation 3: Rejected 4: Processing 5: Withdrawal transaction failed 6 Withdrawal completed)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Starting time1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"End Time 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"no\",\"description\":\"offset default0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size default 1000 cannot exceed 1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Execution window time, cannot be greater than 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp e.g.1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"address\",\"type\":\"string\",\"description\":\"address\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"Withdrawal amount\"},{\"name\":\"applyTime\",\"type\":\"Date\",\"description\":\"Withdrawal time\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"coin name\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"The id of the withdrawal\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"description\":\"Custom ID, if there is none, this field will not be returned\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Withdrawal network\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"Transaction Type 1 = Withdrawal\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"Status Status 0-Confirmed-10-To be confirmed (under review) 20-Applied for block 30-Approved and passed 40-Approval failed 50-Exported 60-Preliminary confirmation of recharge (final confirmation becomes 0) 70-Approved failed and returned assets\"},{\"name\":\"transactionFee\",\"type\":\"string\",\"description\":\"handling fee\"},{\"name\":\"confirmNo\",\"type\":\"int\",\"description\":\"Withdrawal confirmation times\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"Reason for withdrawal failure\"},{\"name\":\"txId\",\"type\":\"String\",\"description\":\"Withdrawal transaction id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/04_get_withdraw_history.json\n// module id = VVr3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe Market Depth Data\"},{\"type\":\"normal\",\"text\":\"Push limited file depth information every second.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @depth E.g. BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Depth level, such as 5,10,20,50,100\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"With regards to error messages, 0 means normal, and 1 means error\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"Sell side depth\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"Buy side depth\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/01_dept_info.json\n// module id = VbHA\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/websocket/market/index.js","var map = {\n\t\"./01_get_quote_contracts.json\": \"DcMO\",\n\t\"./02_get_quote_price.json\": \"owTM\",\n\t\"./03_get_quote_depth.json\": \"e+0O\",\n\t\"./04_get_quote_ trades.json\": \"PqB/\",\n\t\"./05_get_quote_ premiumIndex.json\": \"Tk4L\",\n\t\"./06_get_quote_ fundingRate.json\": \"YtyA\",\n\t\"./07_get_quote_ klines.json\": \"xU+M\",\n\t\"./08_get_quote_openInterest.json\": \"j4uq\",\n\t\"./09_get_quote_ ticker.json\": \"LWb5\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"VeFC\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market \\.json$\n// module id = VeFC\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < 4; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swapV2/api/basic/index_share_to_v1.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询历史订单列表\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/historyOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"注意\",\"children\":[{\"type\":\"normal\",\"text\":\"如设置 orderId , 订单将 >= orderId。否则将返回最新订单。\"},{\"type\":\"normal\",\"text\":\"如果设置 startTime 和 endTime, orderId 就不需要设置。\"}]},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"pageIndex\":0,\"pageSize\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间戳, 单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间戳, 单位:毫秒\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分页页码,必须大于0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分页数量,必须大于0,最大值为100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求时间戳, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"订单列表,最大长度为2000, 订单字段参考下表\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品种\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下单数量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态, NEW新订单 PENDING委托中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤销 FAILED失败\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型, MARKET市价 LIMIT限价\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易类型, BUY买 SELL卖\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"下单时间戳\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间戳\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"下单金额\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade/05_get_trade_history_order.json\n// module id = Vx5o\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"切換賬戶保證金模式\"},{\"type\":\"normal\",\"text\":\"修改永續合約賬戶的保證金模式,全倉模式或逐倉模式。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/setMarginMode\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/setMarginMode\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"marginMode\":\"\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"marginMode\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Isolated or Cross, 賬戶保證金模式,逐倉或者全倉\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/10_post_trade_marginType.json\n// module id = W+/z\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/common/api/permission/index.js","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = paths.length - 1; i > -1; i--) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/changelog/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Get Perpetual Swap Account Asset Information\"},{\"type\":\"normal\",\"text\":\"Get asset information of user‘s Perpetual Account\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/balance\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"user asset\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"asset balance\"},{\"name\":\"equity\",\"type\":\"string\",\"description\":\"net asset value\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"unrealized profit and loss\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"realized profit and loss\"},{\"name\":\"availableMargin\",\"type\":\"string\",\"description\":\"available margin\"},{\"name\":\"usedMargin\",\"type\":\"string\",\"description\":\"used margin\"},{\"name\":\"freezedMargin\",\"type\":\"string\",\"description\":\"frozen margin\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account/01_get_user_balance.json\n// module id = W4Cx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"賬戶餘額和倉位更新推送\"},{\"type\":\"normal\",\"text\":\"賬戶更新事件的 event type 固定為 ACCOUNT_UPDATE \"},{\"type\":\"normal\",\"text\":\"當賬戶信息有變動時,會推送此事件:\",\"children\":[{\"type\":\"normal\",\"text\":\"僅當賬戶信息有變動時(包括資金、倉位等發生變化),才會推送此事件; 訂單狀態變化沒有引起賬戶和持倉變化的,不會推送此事件;\"},{\"type\":\"normal\",\"text\":\"position 信息:僅當symbol倉位有變動時推送。 \"}]},{\"type\":\"normal\",\"text\":\"\\\"FUNDING FEE\\\" 引起的資金餘額變化,僅推送簡略事件: \",\"children\":[{\"type\":\"normal\",\"text\":\"當用戶某全倉持倉發生\\\"FUNDING FEE\\\"時,事件ACCOUNT_UPDATE将只會推送相關的用戶資產餘額信息B(僅推送FUNDING FEE 發生相關的資產餘額信息),而不會推送任何持倉信息P。 \"},{\"type\":\"normal\",\"text\":\"當用戶某逐倉倉持倉發生\\\"FUNDING FEE\\\"時,事件ACCOUNT_UPDATE将只會推送相關的用戶資產餘額信息B(僅推送\\\"FUNDING FEE\\\"所使用的資產餘額信息),和相關的持倉信息P(僅推送這筆\\\"FUNDING FEE\\\"發生所在的持倉信息),其餘持倉信息不會被推送。 \"}]},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能類型:\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT\"},{\"type\":\"normal\",\"text\":\"WITHDRAW\"},{\"type\":\"normal\",\"text\":\"ORDER\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE\"}]},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型:ACCOUNT_UPDATE\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間:1676603102163\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"1676603102163\"},{\"name\":\"a\",\"type\":\"obj\",\"description\":\"賬戶更新事件\"}]},{\"type\":\"a\",\"key\":\"key1\",\"data\":[{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"數組:餘額信息\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"數組:交易信息\"}]},{\"type\":\"B\",\"key\":\"key2\",\"data\":[{\"name\":\"a\",\"type\":\"\",\"description\":\"資產名稱:USDT\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"钱包餘額:5277.59264687\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"除去逐倉倉位保證金的钱包餘額:5233.21709203\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"钱包餘額改變量:0\"}]},{\"type\":\"P\",\"key\":\"key3\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對:LINK-USDT\"},{\"name\":\"pa\",\"type\":\"\",\"description\":\"倉位:108.84300000\"},{\"name\":\"ep\",\"type\":\"\",\"description\":\"入倉價格:7.25620000\"},{\"name\":\"up\",\"type\":\"\",\"description\":\"持倉未實現盈虧:1.42220000\"},{\"name\":\"mt\",\"type\":\"\",\"description\":\"保證金模式:isolated\"},{\"name\":\"iw\",\"type\":\"\",\"description\":\"若為逐倉,倉位保證金:23.19081642\"},{\"name\":\"ps\",\"type\":\"\",\"description\":\"持倉方向:SHORT\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account/02_balance.json\n// module id = W9nQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Switch Margin Mode\"},{\"type\":\"normal\",\"text\":\"Change the user's margin mode on the specified symbol contract: isolated margin or cross margin.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/marginType\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"marginType\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Margin mode ISOLATED (isolated margin), CROSSED (cross margin)\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"}]},{\"type\":\"marginType\",\"key\":\"common\",\"data\":[{\"name\":\"ISOLATED\",\"type\":\"\",\"description\":\"Isolated Margin\"},{\"name\":\"CROSSED\",\"type\":\"\",\"description\":\"Full position\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/10_post_trade_marginType.json\n// module id = WCFx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷止盈止損訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/cancelStopOrder\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/cancelStopOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"orderId\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"是\",\"description\":\"止盈止損訂單id\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"\"},{\"name\":\"message\",\"type\":\"\",\"description\":\"\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/16_post_trade_order_test.json\n// module id = WKtD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"获取提币历史(支持多网络)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/withdraw/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"withdrawOrderId\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"币的名称\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"自定义ID, 如果没有则不返回该字段\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"状态 (0:已发送确认Email, 2:等待确认 3:被拒绝 4:处理中 5:提现交易失败 6 提现完成)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"开始时间 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"结束时间 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默认0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"页数量大小 默认1000 不能超过1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"执行窗口时间,不能大于 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"当前时间戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"address\",\"type\":\"string\",\"description\":\"地址\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"提现转出金额\"},{\"name\":\"applyTime\",\"type\":\"Date\",\"description\":\"充值时间\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"币名称\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"该笔提现的id\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"description\":\"自定义ID, 如果没有则不返回该字段\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"提现网络\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"交易类型1=提现\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"状态 状态 0-已确认-10-待确认(审核中) 20-已申请区块 30已审核通过 40审核不通过 50已汇出 60充值初步确认(最终确认变为0) 70审核不通过已退回资产\"},{\"name\":\"transactionFee\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"confirmNo\",\"type\":\"int\",\"description\":\"提现确认次数\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"提币失败原因\"},{\"name\":\"txId\",\"type\":\"String\",\"description\":\"提现交易id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account/04_get_withdraw_history.json\n// module id = WNKq\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"變換逐全倉模式\"},{\"type\":\"normal\",\"text\":\"變換用戶在指定symbol合約上的保證金模式:逐倉或全倉。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/marginType\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"marginType\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"保證金模式 ISOLATED(逐倉), CROSSED(全倉)\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"}]},{\"type\":\"marginType\",\"key\":\"common\",\"data\":[{\"name\":\"ISOLATED\",\"type\":\"\",\"description\":\"逐倉\"},{\"name\":\"CROSSED\",\"type\":\"\",\"description\":\"全倉\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/10_post_trade_marginType.json\n// module id = WVbz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱合約k線數據\"},{\"type\":\"normal\",\"text\":\"K線stream逐秒推送所請求的K線種類(最新一根K線)的更新。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @kline_,比如BTC-USDT@kline_1m\"},{\"type\":\"normal\",\"text\":\"訂閱举例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱,合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k線類型,交易對, 參考字段說明,如分鐘,小時,週等\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"收盤價\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"最高價\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"最低價\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"開盤價\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"成交量\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"一分鐘K線\"},{\"name\":\"3m\",\"description\":\"三分鐘K線\"},{\"name\":\"5m\",\"description\":\"五分鐘K線\"},{\"name\":\"15m\",\"description\":\"十五分鐘K線\"},{\"name\":\"30m\",\"description\":\"三十分鐘K線\"},{\"name\":\"1h\",\"description\":\"一小時K線\"},{\"name\":\"2h\",\"description\":\"两小時K線\"},{\"name\":\"4h\",\"description\":\"四小時K線\"},{\"name\":\"6h\",\"description\":\"六小時K線\"},{\"name\":\"8h\",\"description\":\"八小時K線\"},{\"name\":\"12h\",\"description\":\"12小時K線\"},{\"name\":\"1d\",\"description\":\"1日K線\"},{\"name\":\"3d\",\"description\":\"3日K線\"},{\"name\":\"1w\",\"description\":\"週K線\"},{\"name\":\"1M\",\"description\":\"月K線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/03_kline_data.json\n// module id = WbRb\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"uUP9\",\n\t\"./02_data_compress.json\": \"ku8a\",\n\t\"./03_heart_beat.json\": \"QDPd\",\n\t\"./04_subscribe.json\": \"f4mz\",\n\t\"./05_cancel_subscribe.json\": \"IhWV\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Wd1J\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce \\.json$\n// module id = Wd1J\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订阅账户余额推送\"},{\"type\":\"normal\",\"text\":\"订阅类型\"},{\"type\":\"code\",\"text\":\"dataType 为 ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"订阅例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"gdfg2311-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"}\"},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能类型:\"},{\"type\":\"html\",\"text\":\"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    \"},{\"type\":\"html\",\"text\":\"
  • 更多返回错误代码请看首页的错误代码描述
  • \"},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"撮合时间\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"资产名称\"}]},{\"type\":\"a\",\"key\":\"key1\",\"data\":[{\"name\":\"B\",\"type\":\"\",\"description\":\"Array[]\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因 \"}]},{\"type\":\"B\",\"key\":\"key2\",\"data\":[{\"name\":\"a\",\"type\":\"\",\"description\":\"资产名称\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"除去盈亏与交易手续费以外的钱包余额改变量\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"资产名称\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"钱包余额\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/account/02_ account_update.json\n// module id = Wg+8\n// module chunks = 3","var map = {\n\t\"./01_get_quote_contracts.json\": \"lrAs\",\n\t\"./02_get_quote_price.json\": \"r2l6\",\n\t\"./03_get_quote_depth.json\": \"obcS\",\n\t\"./04_get_quote_ trades.json\": \"KY9U\",\n\t\"./05_get_quote_ premiumIndex.json\": \"5xUh\",\n\t\"./06_get_quote_ fundingRate.json\": \"dEdI\",\n\t\"./07_get_quote_ klines.json\": \"UTAD\",\n\t\"./08_get_quote_openInterest.json\": \"0IKX\",\n\t\"./09_get_quote_ ticker.json\": \"Y7KR\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"WnJc\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market \\.json$\n// module id = WnJc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"接入方式\"},{\"type\":\"normal\",\"text\":\"行情Websocket的接入URL:wss://open-api-swap.bingx.com/swap-market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce/01_connect.json\n// module id = X4K5\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = paths.length - 1; i > -1; i--) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/changelog/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"签名说明\"},{\"type\":\"normal\",\"text\":\"sign 是对http method,url path,请求参数等按字符串连接之后使用 HMAC SHA256 方法加密而得到的。\",\"children\":[{\"type\":\"normal\",\"text\":\"path 为URL的请求路径,例如: /api/v1/user/getBalance\"},{\"type\":\"normal\",\"text\":\"method 是请求方法(POST/GET/PUT/DELETE),字母全部大写。\"},{\"type\":\"normal\",\"text\":\"参数是对 所有参数(含timestamp)按照字典排序之后,按照key1=value1 + key2=value2 ... + Secret Key 字符串(+表示字符串连接)。\"}]},{\"type\":\"html\",\"text\":\"originString = method + path + params sign = HmacSHA256(originString)\"},{\"type\":\"html\",\"text\":\"

    例如:对于如下的请求参数进行签名

    \"},{\"type\":\"code\",\"text\":\"curl \\\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance\\\"\"},{\"type\":\"html\",\"text\":\"

    通过POST方式获取获取用户某资产余额信息,以

    \"},{\"type\":\"html\",\"text\":\"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    \"},{\"type\":\"html\",\"text\":\"为例\"},{\"type\":\"html\",\"text\":\"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    \"},{\"type\":\"html\",\"text\":\"请求参数按字典排序之后,为 \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    \"},{\"type\":\"html\",\"text\":\"mothod为POST,path为/api/v1/user/getBalance,生成待签名的参数字符串如下:\"},{\"type\":\"code\",\"text\":\"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"按算法生成待签名的字符串\"},{\"type\":\"code\",\"text\":\"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"然后,将待签名字符串添加私钥参数生成最终待签名字符串。例如:\"},{\"type\":\"html\",\"text\":\"

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256(\\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\", \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\")

    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\" | openssl dgst -sha256 -hmac \\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\" -binary | base64 | xargs python2.7 -c 'import sys, urllib;print(urllib.quote(sys.argv[1]))' \"},{\"type\":\"html\",\"text\":\"Signature的结果为S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D,则签名之后的url query参数为 \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    \"},{\"type\":\"html\",\"text\":\"即最终发送给服务器的API请求应该为:\"},{\"type\":\"code\",\"text\":\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication/04_sign_discription.json\n// module id = XBGg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Access\"},{\"type\":\"normal\",\"text\":\"Market Websocket access URL: wss://open-api-ws.bingx.com/market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce/01_connect.json\n// module id = XKjN\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/spot/websocket/market/index.js","module.exports = \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA4NCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQ4LjQwNzcgNy42NzE3Nkg0NS40NDk3VjE3Ljk3MjhINDguNDA3N1Y3LjY3MTc2WiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTQzLjU0MzcgMTEuODc0OUM0My4yMjUxIDExLjI4OTYgNDIuNzY4OCAxMC43OTAzIDQyLjIxODkgMTAuNDE5OUM0Mi44OTkgOS42NDg4IDQzLjI5OTcgOC42MjQ4OCA0My4yNTA0IDcuNTAzNjNDNDMuMTUwNSA1LjI4MTM3IDQxLjI1MDYgMy41NjQ3MyAzOS4wMjcxIDMuNTY0NzNIMzIuODYwOFYxNy45NzE2SDM5LjkxNTdDNDIuMTk0OSAxNy45NzE2IDQ0LjA0MyAxNi4xMjQ3IDQ0LjA0MyAxMy44NDQzQzQ0LjA0MyAxMy4xMzE0IDQzLjg2MjIgMTIuNDYxNCA0My41NDM3IDExLjg3NDlaTTM5LjQ1NjkgMTUuNTI2OEgzNS44MTc1VjExLjk5MTJIMzkuNDM1NEM0MC4zODYgMTEuOTkxMiA0MS4xODk5IDEyLjc0NTggNDEuMTg5OSAxMy43NTk2QzQxLjE4OTkgMTQuNzYwOCA0MC4zODcyIDE1LjUyNjggMzkuNDU2OSAxNS41MjY4Wk0zOC42ODMyIDkuNTQ2NEgzNS44MTc1VjYuMDEwNzVIMzguNjYxN0MzOS42MTIzIDYuMDEwNzUgNDAuNDE2MyA2Ljc2NTQxIDQwLjQxNjMgNy43NzkyQzQwLjQxNSA4Ljc3OTEgMzkuNjEyMyA5LjU0NjQgMzguNjgzMiA5LjU0NjRaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNODMuMzk5MiAzLjk5MTk5SDc5Ljk5NjNMNzcuMzM5MSA4LjI1MzI0TDc0LjY4MiAzLjk5MTk5SDcxLjI3NzhMNzUuNjM3NyAxMC45ODI0TDcxLjI3NzggMTcuOTcyOEg3NC42ODJMNzcuMzM5MSAxMy43MTE2TDc5Ljk5NjMgMTcuOTcyOEg4My4zOTkyTDc5LjA0MDYgMTAuOTgyNEw4My4zOTkyIDMuOTkxOTlaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNNTguOTU2NiAxMi4yNDI3VjE3Ljk3MTZINTUuOTk5OVYxMS43Mjk1QzU1Ljk5OTkgMTAuODIxOSA1NS4yNTAzIDEwLjA4ODcgNTQuMzM1MSAxMC4xMTUyQzUzLjQ1MjggMTAuMTQxOCA1Mi43NzE0IDEwLjkxMjkgNTIuNzcxNCAxMS43OTY1VjE3Ljk3MDNINDkuODEzNVY3LjY2OTIzSDUyLjc3MTRWOC4xNTk2OUM1My40Mzc2IDcuODQ0OTQgNTQuMTc5NiA3LjY2OTIzIDU0Ljk2NDYgNy42NjkyM0M1NS4zNTc4IDcuNjY5MjMgNTUuNzQwOCA3LjcxMzQ3IDU2LjEwODYgNy43OTY5QzU3Ljc0ODIgOC4xNjk4MSA1OC45MDYxIDkuNjMzNjIgNTguOTQ3OCAxMS4zMTM2QzU4Ljk1NDEgMTEuNjE1NyA1OC45NTY2IDExLjkyNzkgNTguOTU2NiAxMi4yNDI3WiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTQ4LjQwNzcgMy41NjQ3M0g0NS40NDk3VjYuNTIyN0g0OC40MDc3VjMuNTY0NzNaIiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNNzAuNDg1NCA3LjY3MTc2SDY1LjM4NDhDNjUuMzY4NCA3LjY3MTc2IDY1LjM1MiA3LjY3MDQ5IDY1LjMzNDMgNy42NzA0OUM2Mi40OTAxIDcuNjcwNDkgNjAuMTg0NCA5Ljk3NzQ2IDYwLjE4NDQgMTIuODIxN0M2MC4xODQ0IDE1LjY1MzIgNjIuNDY3MyAxNy45NDg4IDY1LjI5IDE3Ljk3MDNDNjUuMzAyNyAxNy45NzI4IDY1LjMxNzggMTcuOTcyOCA2NS4zMzQzIDE3Ljk3MjhDNjYuNDMxNSAxNy45NzI4IDY3LjUyNzUgMTguMjk1MiA2Ny41Mjc1IDE5LjI0OTZDNjcuNTI3NSAyMC4yMTkxIDY2LjUzNTIgMjEuMDQyIDY1LjMzNDMgMjEuMDQyQzY0LjEyMzMgMjEuMDQyIDYzLjE0MTEgMjAuMDU5OCA2My4xNDExIDE4Ljg0ODhINjAuMTgzMUM2MC4xODMxIDIxLjY5MyA2Mi40OTAxIDI0IDY1LjMzMyAyNEM2OC4xNzg1IDI0IDcwLjQ4MjkgMjEuNjkzIDcwLjQ4MjkgMTguODQ4OEM3MC40ODQyIDE4Ljg0ODggNzAuNTM5OCAxNy4zMTA0IDY5LjIzNTIgMTYuMTg0MUM3MC4wMTUyIDE1LjI4MjggNzAuNDg0MiAxNC4xMDk4IDcwLjQ4NDIgMTIuODIxN0M3MC40ODQyIDExLjgyOTMgNzAuMjAzNSAxMC45MDI4IDY5LjcxNjkgMTAuMTE2NUg3MC40ODU0VjcuNjcxNzZaTTY1LjMzNDMgMTUuMDE0OUM2NC4xMjMzIDE1LjAxNDkgNjMuMTQxMSAxNC4wMzI3IDYzLjE0MTEgMTIuODIxN0M2My4xNDExIDExLjYxMDcgNjQuMTIzMyAxMC42Mjg1IDY1LjMzNDMgMTAuNjI4NUM2Ni41NDUzIDEwLjYyODUgNjcuNTI3NSAxMS42MTA3IDY3LjUyNzUgMTIuODIxN0M2Ny41Mjc1IDE0LjAzMjcgNjYuNTQ1MyAxNS4wMTQ5IDY1LjMzNDMgMTUuMDE0OVoiIGZpbGw9ImJsYWNrIi8+CjxwYXRoIGQ9Ik0yOC4wMDY1IDBDMjQuODQyNSAwIDIxLjcxMzkgMC44MDAxNyAxOC45NTgyIDIuMzE0NTVDMTcuNDgxNyAzLjEyNjA5IDE2LjExOSA0LjEzMjMxIDE0LjkwOCA1LjMwNjY1QzE0LjYyMzYgNS41ODIyMiAxNC4zNDQzIDUuODcwNDMgMTQuMDc3NSA2LjE2MzdDMTMuMTgzOCA3LjE0ODQyIDEyLjM5MjUgOC4yMjc5NiAxMS43Mjc2IDkuMzczMjJDMTEuNDkxMiA5Ljc4NDA1IDExLjIyOTUgMTAuMTg0OCAxMC45NDg5IDEwLjU2NzhDMTAuOTEyMyAxMC42MTgzIDEwLjg3NjkgMTAuNjY3NyAxMC44Mzc3IDEwLjcxN0M4LjM4Nzg3IDEzLjk1ODEgNC42NTc1NCAxNS44MTYzIDAuNjAxMDc0IDE1LjgxNjNWMjEuODA0M0MzLjc2NTA5IDIxLjgwNDMgNi44OTM3MSAyMS4wMDQxIDkuNjQ5NDMgMTkuNDg5N0MxMS4xMjIxIDE4LjY4MDcgMTIuNDg0OCAxNy42NzMyIDEzLjY5OTYgMTYuNDk3NkMxMy45ODQgMTYuMjIyMSAxNC4yNjM0IDE1LjkzMzggMTQuNTMxMyAxNS42NDA2QzE1LjQyNTEgMTQuNjU1OSAxNi4yMTM4IDEzLjU3NzYgMTYuODc4OCAxMi40MzIzTDE2LjkyMyAxMi4zNTc3QzE3LjE0OCAxMS45NzIyIDE3LjM5NTggMTEuNTk1NSAxNy42NTc0IDExLjIzNzhDMTcuNjk0MSAxMS4xODg1IDE3LjczMDcgMTEuMTM3OSAxNy43Njk5IDExLjA4NjFDMjAuMjE4NSA3Ljg0NjIgMjMuOTUwMSA1Ljk4NjczIDI4LjAwNjUgNS45ODY3M1YwWiIgZmlsbD0iIzJBNTRGRiIvPgo8cGF0aCBvcGFjaXR5PSIwLjMiIGQ9Ik0yOC4wMDY1IDBDMjQuODQyNSAwIDIxLjcxMzkgMC44MDAxNyAxOC45NTgyIDIuMzE0NTVDMTcuNDgxNyAzLjEyNjA5IDE2LjExOSA0LjEzMjMxIDE0LjkwOCA1LjMwNjY1QzE0LjYyMzYgNS41ODIyMiAxNC4zNDQzIDUuODcwNDMgMTQuMDc3NSA2LjE2MzdDMTMuMTgzOCA3LjE0ODQyIDEyLjM5MjUgOC4yMjc5NiAxMS43Mjc2IDkuMzczMjJDMTEuNDkxMiA5Ljc4NDA1IDExLjIyOTUgMTAuMTg0OCAxMC45NDg5IDEwLjU2NzhDMTAuOTEyMyAxMC42MTgzIDEwLjg3NjkgMTAuNjY3NyAxMC44Mzc3IDEwLjcxN0M4LjM4Nzg3IDEzLjk1ODEgNC42NTc1NCAxNS44MTYzIDAuNjAxMDc0IDE1LjgxNjNWMjEuODA0M0MzLjc2NTA5IDIxLjgwNDMgNi44OTM3MSAyMS4wMDQxIDkuNjQ5NDMgMTkuNDg5N0MxMS4xMjIxIDE4LjY4MDcgMTIuNDg0OCAxNy42NzMyIDEzLjY5OTYgMTYuNDk3NkMxMy45ODQgMTYuMjIyMSAxNC4yNjM0IDE1LjkzMzggMTQuNTMxMyAxNS42NDA2QzE1LjQyNTEgMTQuNjU1OSAxNi4yMTM4IDEzLjU3NzYgMTYuODc4OCAxMi40MzIzTDE2LjkyMyAxMi4zNTc3QzE3LjE0OCAxMS45NzIyIDE3LjM5NTggMTEuNTk1NSAxNy42NTc0IDExLjIzNzhDMTcuNjk0MSAxMS4xODg1IDE3LjczMDcgMTEuMTM3OSAxNy43Njk5IDExLjA4NjFDMjAuMjE4NSA3Ljg0NjIgMjMuOTUwMSA1Ljk4NjczIDI4LjAwNjUgNS45ODY3M1YwWiIgZmlsbD0idXJsKCNwYWludDBfcmFkaWFsXzM2OV8xNDM4KSIvPgo8cGF0aCBkPSJNMjguMDA2NSAxNS44MTYzQzIzLjk1MDEgMTUuODE2MyAyMC4yMTg1IDEzLjk1ODEgMTcuNzY4NyAxMC43MTdDMTcuNzMyIDEwLjY2NzcgMTcuNjk0MSAxMC42MTg0IDE3LjY1NzQgMTAuNTY1M0MxNy4zNzgxIDEwLjE4NiAxNy4xMTY0IDkuNzg0MDUgMTYuODggOS4zNzE5NkMxNi4yMTUxIDguMjI3OTYgMTUuNDIzOCA3LjE0ODQyIDE0LjUzMDEgNi4xNjM3QzE0LjI2MzQgNS44NzE2OSAxMy45ODQgNS41ODM0OCAxMy42OTk2IDUuMzA3OTFDMTIuNDg4NiA0LjEzMjMxIDExLjEyNTkgMy4xMjYwOSA5LjY0OTQzIDIuMzE1ODFDNi44OTM3MSAwLjgwMTQzMSAzLjc2NTA5IDAuMDAxMjY0NTcgMC42MDEwNzQgMC4wMDEyNjQ1N1Y1Ljk4OTI1QzQuNjU3NTQgNS45ODkyNSA4LjM4OTEzIDcuODQ3NDcgMTAuODM4OSAxMS4wODg2QzEwLjg3NjkgMTEuMTM3OSAxMC45MTM1IDExLjE4ODUgMTAuOTUwMiAxMS4yMzc4QzExLjIxMzEgMTEuNTk2OCAxMS40NjA5IDExLjk3MzUgMTEuNjgzMyAxMi4zNTUyTDExLjczMDEgMTIuNDMzNkMxMi4zOTM4IDEzLjU3NjMgMTMuMTgzOCAxNC42NTQ2IDE0LjA3NzUgMTUuNjQwNkMxNC4zNDMgMTUuOTMyNiAxNC42MjM2IDE2LjIyMDggMTQuOTA4IDE2LjQ5NjRDMTYuMTIxNiAxNy42NzIgMTcuNDg0MyAxOC42Nzk0IDE4Ljk1ODIgMTkuNDg4NUMyMS43MTM5IDIxLjAwMjggMjQuODQyNSAyMS44MDMgMjguMDA2NSAyMS44MDNWMTUuODE2M1oiIGZpbGw9IiMyQTU0RkYiLz4KPGRlZnM+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQwX3JhZGlhbF8zNjlfMTQzOCIgY3g9IjAiIGN5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSgxNC4zMDUgMTAuOTAyMSkgc2NhbGUoOS41OTk5NSkiPgo8c3RvcC8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1vcGFjaXR5PSIwIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg==\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./static/logo.svg\n// module id = XmuZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Switch Leverage\"},{\"type\":\"normal\",\"text\":\"Switch the leverage size of a certain trading pair for long or short positions \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/setLeverage\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/setLeverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":\"\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Leverage of Long or Short positions\"},{\"name\":\"leverage\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"leverage\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/12_post_trade_leverage.json\n// module id = XqXJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query user API Key permissions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/v1/account/apiRestrictions\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiRestrictions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp e.g.1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"ipRestrict\",\"type\":\"Boolean\",\"description\":\"Whether to restrict ip access\"},{\"name\":\"createTime\",\"type\":\"Long\",\"description\":\"creation time\"},{\"name\":\"permitsUniversalTransfer\",\"type\":\"Boolean\",\"description\":\"Authorize the key to be used on a dedicated universal transfer interface\"},{\"name\":\"enableReading\",\"type\":\"Boolean\",\"description\":\"Can read\"},{\"name\":\"enableFutures\",\"type\":\"Boolean\",\"description\":\"swap trading authority\"},{\"name\":\"enableSpotAndMarginTrading\",\"type\":\"Boolean\",\"description\":\"Spot authority\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/permission/01_get_account_apiRestrictions.json\n// module id = Xu0+\n// module chunks = 3","var map = {\n\t\".\": \"UNGp\",\n\t\"./\": \"UNGp\",\n\t\"./01_post_trade_order\": \"db2W\",\n\t\"./01_post_trade_order.json\": \"db2W\",\n\t\"./02_post_trade_batch_order\": \"0L/C\",\n\t\"./02_post_trade_batch_order.json\": \"0L/C\",\n\t\"./03_post_closeAllPositions\": \"4yOc\",\n\t\"./03_post_closeAllPositions.json\": \"4yOc\",\n\t\"./04_delete_trade_order\": \"70Y8\",\n\t\"./04_delete_trade_order.json\": \"70Y8\",\n\t\"./05_delete_trade_batch_order\": \"kYAZ\",\n\t\"./05_delete_trade_batch_order.json\": \"kYAZ\",\n\t\"./06_delete_trade_all_order\": \"nfgo\",\n\t\"./06_delete_trade_all_order.json\": \"nfgo\",\n\t\"./07_get_all_openOrders\": \"7rHQ\",\n\t\"./07_get_all_openOrders.json\": \"7rHQ\",\n\t\"./08_get_trade_order\": \"j4v/\",\n\t\"./08_get_trade_order.json\": \"j4v/\",\n\t\"./09_get_trade_marginType\": \"0wg/\",\n\t\"./09_get_trade_marginType.json\": \"0wg/\",\n\t\"./10_post_trade_marginType\": \"PTH3\",\n\t\"./10_post_trade_marginType.json\": \"PTH3\",\n\t\"./11_get_trade_leverage\": \"dLDu\",\n\t\"./11_get_trade_leverage.json\": \"dLDu\",\n\t\"./12_post_trade_leverage\": \"pyFj\",\n\t\"./12_post_trade_leverage.json\": \"pyFj\",\n\t\"./13_get_trade_forceOrders\": \"PyiJ\",\n\t\"./13_get_trade_forceOrders.json\": \"PyiJ\",\n\t\"./14_get_trade_allOrders\": \"fFLq\",\n\t\"./14_get_trade_allOrders.json\": \"fFLq\",\n\t\"./15_post_trade_positionMargin\": \"5DAQ\",\n\t\"./15_post_trade_positionMargin.json\": \"5DAQ\",\n\t\"./16_post_trade_order_test\": \"IdRU\",\n\t\"./16_post_trade_order_test.json\": \"IdRU\",\n\t\"./17_get_trade_allFillOrders\": \"Y5kV\",\n\t\"./17_get_trade_allFillOrders.json\": \"Y5kV\",\n\t\"./18_get_trade_income_export\": \"DLoG\",\n\t\"./18_get_trade_income_export.json\": \"DLoG\",\n\t\"./19_get_trade_user_commissionRate\": \"I7Id\",\n\t\"./19_get_trade_user_commissionRate.json\": \"I7Id\",\n\t\"./20_get_trade_quote_bookTicker\": \"rEFa\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"rEFa\",\n\t\"./index\": \"UNGp\",\n\t\"./index.js\": \"UNGp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Y+at\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade ^.*$\n// module id = Y+at\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询历史成交订单\"},{\"type\":\"normal\",\"text\":\"获取某交易对的成交历史\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/allFillOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allFillOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"tradingUnit\":\"\",\"startTs\":0,\"endTs\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"只返回此orderID及之后的订单,缺省返回最近的订单\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"tradingUnit\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易单位,可选值:COIN、CONT直接表示BTC,ETH等资产,CONT表示合约张数\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"起始时间戳,单位毫秒\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"结束时间戳,单位毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"filledTm\",\"type\":\"string\",\"description\":\"匹配成交的时间,格式为2006-01-02T15:04:05.999Z\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成交价格\"},{\"name\":\"amount\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"资产单位,一般为USDT\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单号\"},{\"name\":\"liquidatedPrice\",\"type\":\"string\",\"description\":\"预估强平价,触发强平时刻的预估强平价,只有强平订单才有\"},{\"name\":\"liquidatedMarginRatio\",\"type\":\"string\",\"description\":\"强平时保证金率,触发强平时刻的强平保证金率,只有强平订单才有\"},{\"name\":\"filledTime\",\"type\":\"string\",\"description\":\"匹配成交的时间,格式为2006-01-02T15:04:05.999+0800\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/17_get_trade_allFillOrders.json\n// module id = Y5kV\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"24小時價格變動情况\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/ticker\"},{\"type\":\"html\",\"text\":\"
  • 不發送交易對參數,則會返回所有交易對信息
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/ticker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"24小時價格變動\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"價格變動百分比\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"最新交易價格\"},{\"name\":\"lastQty\",\"type\":\"string\",\"description\":\"最新交易額\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"24小時最高價\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"24小時最低價\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"24小時成交量\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"24小時成交額, 單位是USDT\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"24小時內第一個價格\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"24小時內,第一筆交易的發生時間\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"description\":\"24小時內,最後一筆交易的發生時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/09_get_quote_ ticker.json\n// module id = Y7KR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"删除子账户apikey\"},{\"type\":\"normal\",\"text\":\"删除子账户apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/del\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/del\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子账户uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/08_delete_sub_account_key.json\n// module id = Y8uX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"获取充值历史(支持多网络)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"币的名称\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"状态(0:pending,6: credited but cannot withdraw, 1:success)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"开始时间 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"结束时间 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默认0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"页数量大小 默认1000 不能超过1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"执行窗口时间,不能大于 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"当前时间戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"充值金额\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"币名称\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"充值网络\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"状态 状态 0-已确认-10-待确认(审核中) 20-已申请区块 30已审核通过 40审核不通过 50已汇出 60充值初步确认(最终确认变为0) 70审核不通过已退回资产\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"备注\"},{\"name\":\"txId\",\"type\":\"LONG\",\"description\":\"交易id\"},{\"name\":\"insertTime\",\"type\":\"LONG\",\"description\":\"交易时间\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"交易类型0=充值\"},{\"name\":\"unlockConfirm\",\"type\":\"LONG\",\"description\":\"解锁需要的网络确认次数\"},{\"name\":\"confirmTimes\",\"type\":\"LONG\",\"description\":\"网络确认次数\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account/03_get_deposit_hisrec.json\n// module id = YAvn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"24小时价格变动情况\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/ticker\"},{\"type\":\"html\",\"text\":\"
  • 不发送交易对参数,则会返回所有交易对信息
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/ticker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"24小时价格变动\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"价格变动百分比\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"最新交易价格\"},{\"name\":\"lastQty\",\"type\":\"string\",\"description\":\"最新交易额\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"24小时最高价\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"24小时最低价\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"24小时成交量\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"24小时成交额, 单位是USDT\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"24小时内第一个价格\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"24小时内,第一笔交易的发生时间\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"description\":\"24小时内,最后一笔交易的发生时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/09_get_quote_ ticker.json\n// module id = YBd1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Trade order\"},{\"type\":\"normal\",\"text\":\"The current account places an order on the specified symbol contract. (Supports limit order, market order, market order for plan entrustment, limit order for plan entrustment, position stop profit and stop loss order, and liquidation for positions)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/order\"},{\"type\":\"warning\",\"text\":\"Depending on the order type, certain parameters are mandatory:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: Mandatory Parameters: quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: Mandatory Parameters: quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: Mandatory Parameters: quantity、stopPrice、price
  • \"},{\"type\":\"html\",\"text\":\"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: Mandatory Parameters: quantity、stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    1. Open/Close: How to use the same endpoint to open (Long/Short) and close (Long/Short) positions? Please refer to the following request payload combination:

    \"},{\"type\":\"html\",\"text\":\"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"MARKET\\\", \\\"quantity\\\": 5}

    \"},{\"type\":\"html\",\"text\":\"

    2. Set take profit and stop loss: This endpoint can also be used to set take profit and stop loss, but the position needs to be opened first;
    The current take profit and stop loss price only supports the default marked price, and currently does not support the latest and index price options

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"quantity\\\": 3, \\\"stopPrice\\\": 31968.0}

    \"},{\"type\":\"warning\",\"text\":\"The triggering of the conditional order must:\"},{\"type\":\"html\",\"text\":\"

    STOP/STOP_MARKET stop loss order:

    \"},{\"type\":\"html\",\"text\":\"
  • The accumulative quantity of the pending stop loss orders cannot be greater than the quantity of open positions
  • \"},{\"type\":\"html\",\"text\":\"
  • Buy: the mark price is higher than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • Sell: the mark price is lower than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    TAKE_PROFIT/TAKE_PROFIT_MARKET take profit order:

    \"},{\"type\":\"html\",\"text\":\"
  • The accumulative quantity of the pending take profit order cannot be greater than the position quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • Buy: the mark price is lower than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • Sell: the mark price is higher than or equal to the trigger price stopPrice
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"type\":\"\",\"side\":\"\",\"positionSide\":\"\",\"price\":0,\"quantity\":0,\"stopPrice\":0,\"recvWindow\":0,\"timeInForce\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"order type LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, and only LONG or SHORT can be selected, the default is LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN not U$: quantity=U$/price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only required for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in Force, currently supports PostOnly, GTC, IOC, and FOK\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/01_post_trade_order.json\n// module id = YLkf\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"TDl7\",\n\t\"./02_post_closeAllPositions.json\": \"o80Q\",\n\t\"./03_post_closeAllPositions.json\": \"nQs3\",\n\t\"./04_delete_trade_order.json\": \"KJWq\",\n\t\"./05_delete_trade_batch_order.json\": \"w9O3\",\n\t\"./06_delete_trade_all_order.json\": \"KZXS\",\n\t\"./07_get_all_openOrders.json\": \"0FzS\",\n\t\"./08_get_trade_order.json\": \"xd76\",\n\t\"./09_get_trade_marginType.json\": \"/RL+\",\n\t\"./10_post_trade_marginType.json\": \"Fg4Y\",\n\t\"./11_get_trade_leverage.json\": \"EtCx\",\n\t\"./12_post_trade_leverage.json\": \"hkx8\",\n\t\"./13_get_trade_forceOrders.json\": \"tc3t\",\n\t\"./14_get_trade_allOrders.json\": \"K+iN\",\n\t\"./15_post_trade_positionMargin.json\": \"vzun\",\n\t\"./16_post_trade_order_test.json\": \"IS5C\",\n\t\"./17_get_trade_allFillOrders.json\": \"Z792\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"2Oo8\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"YOB9\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade \\.json$\n// module id = YOB9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約交易深度\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getMarketDepth\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getMarketDepth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"level\":\"5\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"level\",\"type\":\"int\",\"required\":\"否\",\"description\":\"層數,若為空,則默認返回5層\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息描述\"},{\"name\":\"data\",\"type\":\"array\",\"description\":\"\"}]},{\"type\":\"data\",\"key\":\"response1\",\"data\":[{\"name\":\"asks\",\"type\":\"array[depth]\",\"description\":\"賣方深度\"},{\"name\":\"bids\",\"type\":\"array[depth]\",\"description\":\"買方深度\"}]},{\"type\":\"depth\",\"key\":\"response2\",\"data\":[{\"name\":\"p\",\"type\":\"float64\",\"description\":\"price價格\"},{\"name\":\"v\",\"type\":\"float64\",\"description\":\"volume數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/03_get_quote_depth.json\n// module id = YP5V\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Assets\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/account/balance\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"balances\",\"type\":\"Array\",\"description\":\"Asset list, element fields refer to the following table\"}]},{\"type\":\"balance\",\"key\":\"response1\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"Asset name\"},{\"name\":\"free\",\"type\":\"string\",\"description\":\"Available asset\"},{\"name\":\"locked\",\"type\":\"string\",\"description\":\"Freeze asset\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/06_get_account_balance.json\n// module id = YYU2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"请求内容\"},{\"type\":\"normal\",\"text\":\"所有REST请求都必须包含以下参数:\",\"children\":[{\"type\":\"normal\",\"text\":\"API Key作为一个字符串。\"},{\"type\":\"normal\",\"text\":\"sign 使用一定算法得出的签名(请参阅签名信息)。\"},{\"type\":\"normal\",\"text\":\"timestamp 作为您的请求的时间戳。\"},{\"type\":\"normal\",\"text\":\"所有请求都应该含有application/json类型内容,并且是有效的JSON。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication/03_request_content.json\n// module id = YdSN\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = paths.length - 1; i > -1; i--) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/changelog/index.js","module.exports = [{\"type\":\"normal\",\"text\":\"websocket接口是\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market\"},{\"type\":\"normal\",\"text\":\"订阅账户数据流的stream名称为 /market/\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market/\"},{\"type\":\"normal\",\"text\":\"listenKey 获取方式如下:\"},{\"type\":\"hash\",\"text\":\"生成 Listen Key\"},{\"type\":\"normal\",\"text\":\"listen key的有效时间为1小时\"},{\"type\":\"normal\",\"text\":\"接口\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl -X POST 'https://open-api.bingx.com/openApi/user/auth/userDataStream' --header \\\"X-BX-APIKEY:g6ikQYpMiWLecMQ39DUivd4ENem9ygzAim63xUPFhRtCFBUDNLajRoZNiubPemKT\\\"\"},{\"type\":\"normal\",\"text\":\"响应\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"listenKey\\\":\\\"a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\\\"}\"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Header\",\"key\":\"request\",\"data\":[{\"name\":\"X-BX-APIKEY\",\"type\":\"string\",\"required\":\"否\",\"description\":\"请求的API KEY\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"listenKey\",\"type\":\"string\",\"description\":\"返回的listenKey\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/listenKey/01_create_listenKey.json\n// module id = Yto4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Funding Rate History\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/fundingRate\"},{\"type\":\"html\",\"text\":\"
  • If both startTime and endTime are not sent, return the latest limit data.
  • \"},{\"type\":\"html\",\"text\":\"
  • If the amount of data between startTime and endTime is greater than limit, return the data in the case of startTime + limit.
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/fundingRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: millisecond\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: millisecond\"},{\"name\":\"limit\",\"type\":\"int32\",\"required\":\"no\",\"description\":\"default: 100 maximum: 1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"fundingRate\",\"type\":\"string\",\"description\":\"funding rate\"},{\"name\":\"fundingTime\",\"type\":\"int64\",\"description\":\"Funding time: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/06_get_quote_ fundingRate.json\n// module id = YtyA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"授权子账号内转\"},{\"type\":\"normal\",\"text\":\"主账号授权子账号内转权限(限主账号使用)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"userAccountType\":3,\"userAccount\":\"bran***@**.com\",\"amount\":10,\"walletType\":1,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUids\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用户uid列表, 逗号分隔\"},{\"name\":\"transferable\",\"type\":\"boolean\",\"required\":\"是\",\"description\":\"是否允许, true允许 false禁止\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":\"data\"},{\"name\":\"data\",\"type\":\"boolean\",\"description\":\"授权是否成功\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\n// module id = YzmL\n// module chunks = 3","var map = {\n\t\".\": \"2xjp\",\n\t\"./\": \"2xjp\",\n\t\"./01_post_trade_order\": \"vDBD\",\n\t\"./01_post_trade_order.json\": \"vDBD\",\n\t\"./02_post_trade_batch_order\": \"Crrt\",\n\t\"./02_post_trade_batch_order.json\": \"Crrt\",\n\t\"./03_post_closeAllPositions\": \"pKuc\",\n\t\"./03_post_closeAllPositions.json\": \"pKuc\",\n\t\"./04_delete_trade_order\": \"9V8o\",\n\t\"./04_delete_trade_order.json\": \"9V8o\",\n\t\"./05_delete_trade_batch_order\": \"hIfT\",\n\t\"./05_delete_trade_batch_order.json\": \"hIfT\",\n\t\"./06_delete_trade_all_order\": \"Nw8z\",\n\t\"./06_delete_trade_all_order.json\": \"Nw8z\",\n\t\"./07_get_all_openOrders\": \"Ewmn\",\n\t\"./07_get_all_openOrders.json\": \"Ewmn\",\n\t\"./08_get_trade_order\": \"/1k/\",\n\t\"./08_get_trade_order.json\": \"/1k/\",\n\t\"./09_get_trade_marginType\": \"7mzI\",\n\t\"./09_get_trade_marginType.json\": \"7mzI\",\n\t\"./10_post_trade_marginType\": \"WVbz\",\n\t\"./10_post_trade_marginType.json\": \"WVbz\",\n\t\"./11_get_trade_leverage\": \"/Kh3\",\n\t\"./11_get_trade_leverage.json\": \"/Kh3\",\n\t\"./12_post_trade_leverage\": \"ZoHP\",\n\t\"./12_post_trade_leverage.json\": \"ZoHP\",\n\t\"./13_get_trade_forceOrders\": \"9bR8\",\n\t\"./13_get_trade_forceOrders.json\": \"9bR8\",\n\t\"./14_get_trade_allOrders\": \"7bgg\",\n\t\"./14_get_trade_allOrders.json\": \"7bgg\",\n\t\"./15_post_trade_positionMargin\": \"QHIT\",\n\t\"./15_post_trade_positionMargin.json\": \"QHIT\",\n\t\"./16_post_trade_order_test\": \"Hhes\",\n\t\"./16_post_trade_order_test.json\": \"Hhes\",\n\t\"./17_get_trade_allFillOrders\": \"7iFh\",\n\t\"./17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./18_get_trade_income_export\": \"TDt4\",\n\t\"./18_get_trade_income_export.json\": \"TDt4\",\n\t\"./19_get_trade_user_commissionRate\": \"x8dX\",\n\t\"./19_get_trade_user_commissionRate.json\": \"x8dX\",\n\t\"./20_get_trade_quote_bookTicker\": \"SGv/\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"SGv/\",\n\t\"./index\": \"2xjp\",\n\t\"./index.js\": \"2xjp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Z0gb\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade ^.*$\n// module id = Z0gb\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢當前委託訂單\"},{\"type\":\"normal\",\"text\":\"查詢一段時間週期內賬戶下處於當前委託狀態的訂單詳情。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/pendingOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/pendingOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"訂單委託時間\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向(Bid/Ask 買/賣)\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"委託類型(Market/Limit 市價/限價)\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open/Close 開倉/平倉\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"成交均價\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交數量\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手續費\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"訂單更新時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/07_get_all_openOrders.json\n// module id = Z2yu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询止盈止损订单列表\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/pendingStopOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/pendingStopOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"symbol\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用户id\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单id\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合约名称\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"仓位id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"description\":\"止损价格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"description\":\"止盈价格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委托数量\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid买入, Ask卖出\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"委托时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/17_get_trade_allFillOrders.json\n// module id = Z792\n// module chunks = 3","module.exports = {\"module\":\"swap\",\"path\":\"/swap/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingXAPI. \"},{\"type\":\"normal\",\"text\":\"You can use our API to access market data, trading, and account management endpoints of Perpetual Swap. The market data API is publicly accessible and provides market data such as The Latest Trade of a Trading Pair. The account and trading APIs require authentication with an API Key which allows you to place and cancel orders and enquire order status and account info.\"},{\"type\":\"html\",\"text\":\"USDT-M Perpetual Futures API Reference V2\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/1_introduce.json\n// module id = ZZch\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Account balance and position update push\"},{\"type\":\"normal\",\"text\":\"The event type of the account update event is fixed as ACCOUNT_UPDATE \"},{\"type\":\"normal\",\"text\":\"When the account information changes, this event will be pushed:\",\"children\":[{\"type\":\"normal\",\"text\":\"This event will only be pushed when there is a change in account information (including changes in funds, positions, etc.); This event will not be pushed if the change in the order status does not cause changes in the account and positions;\"},{\"type\":\"normal\",\"text\":\"position information: push only when there is a change in the symbol position. \"}]},{\"type\":\"normal\",\"text\":\"Fund balance changes caused by \\\"FUNDING FEE\\\", only push brief events: \",\"children\":[{\"type\":\"normal\",\"text\":\"When \\\"FUNDING FEE\\\" occurs in a user's cross position, the event ACCOUNT_UPDATE will only push the relevant user's asset balance information B (only push the asset balance information related to the occurrence of FUNDING FEE), and will not push any position information P. \"},{\"type\":\"normal\",\"text\":\"When \\\"FUNDING FEE\\\" occurs in a user's isolated position, the event ACCOUNT_UPDATE will only push the relevant user asset balance information B (only push the asset balance information used by \\\"FUNDING FEE\\\"), and related position information P( Only the position information where this \\\"FUNDING FEE\\\" occurred is pushed), and the rest of the position information will not be pushed. \"}]},{\"type\":\"normal\",\"text\":\"The field \\\"m\\\" represents the reason for the launch of the event, including the following possible types: -DEPOSIT\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT\"},{\"type\":\"normal\",\"text\":\"WITHDRAW\"},{\"type\":\"normal\",\"text\":\"ORDER\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE\"}]},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"event type:ACCOUNT_UPDATE\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"event time:1676603102163\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"1676603102163\"},{\"name\":\"a\",\"type\":\"obj\",\"description\":\"account update event\"}]},{\"type\":\"a\",\"key\":\"key1\",\"data\":[{\"name\":\"m\",\"type\":\"\",\"description\":\"event launch reason\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Array: balance information\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"Array: trade info\"}]},{\"type\":\"B\",\"key\":\"key2\",\"data\":[{\"name\":\"a\",\"type\":\"\",\"description\":\"asset name:USDT\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"wallet balance:5277.59264687\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"Wallet balance excluding isolated margin:5233.21709203\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"wallet balance change amount:0\"}]},{\"type\":\"P\",\"key\":\"key3\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"trading pair:LINK-USDT\"},{\"name\":\"pa\",\"type\":\"\",\"description\":\"position:108.84300000\"},{\"name\":\"ep\",\"type\":\"\",\"description\":\"entry price:7.25620000\"},{\"name\":\"up\",\"type\":\"\",\"description\":\"unrealized profit and loss of positions:1.42220000\"},{\"name\":\"mt\",\"type\":\"\",\"description\":\"margin mode:isolated\"},{\"name\":\"iw\",\"type\":\"\",\"description\":\"If it is an isolated position, the position margin:23.19081642\"},{\"name\":\"ps\",\"type\":\"\",\"description\":\"position direction:SHORT\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account/02_balance.json\n// module id = Zg2x\n// module chunks = 3","var map = {\n\t\".\": \"UJ2F\",\n\t\"./\": \"UJ2F\",\n\t\"./01_balance\": \"p0H6\",\n\t\"./01_balance.json\": \"p0H6\",\n\t\"./index\": \"UJ2F\",\n\t\"./index.js\": \"UJ2F\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"Zi0D\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/websocket/account ^.*$\n// module id = Zi0D\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整開倉槓桿\"},{\"type\":\"normal\",\"text\":\"調整用戶在指定symbol合約的開倉槓桿。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"多倉或者空倉的槓桿,LONG表示多倉,SHORT表示空倉\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"leverage\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"槓桿倍數\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"leverage\",\"type\":\"int64\",\"description\":\"槓桿倍數\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/12_post_trade_leverage.json\n// module id = ZoHP\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"itMl\",\n\t\"./02_data_compress.json\": \"yOH9\",\n\t\"./03_heart_beat.json\": \"hrCt\",\n\t\"./04_subscribe.json\": \"jYwr\",\n\t\"./05_cancel_subscribe.json\": \"cspZ\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ZuZg\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce \\.json$\n// module id = ZuZg\n// module chunks = 3","var map = {\n\t\".\": \"otUP\",\n\t\"./\": \"otUP\",\n\t\"./01_create_listenKey\": \"8kVO\",\n\t\"./01_create_listenKey.json\": \"8kVO\",\n\t\"./02_put_listenKey\": \"Rtfu\",\n\t\"./02_put_listenKey.json\": \"Rtfu\",\n\t\"./03_delete_listenKey\": \"LvyQ\",\n\t\"./03_delete_listenKey.json\": \"LvyQ\",\n\t\"./index\": \"otUP\",\n\t\"./index.js\": \"otUP\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ZzgK\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/listenKey ^.*$\n// module id = ZzgK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶現貨資產\"},{\"type\":\"normal\",\"text\":\"查詢子賬戶現貨資產\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/assets\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"資產名稱\"},{\"name\":\"free\",\"type\":\"double\",\"description\":\"可用額度\"},{\"name\":\"locked\",\"type\":\"double\",\"description\":\"鎖定資產\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/04_get_sub_account_spot_balance.json\n// module id = a8qg\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/common/api/permission/index.js","var map = {\n\t\".\": \"0RsY\",\n\t\"./\": \"0RsY\",\n\t\"./01_get_contract_allPosition\": \"Bfwk\",\n\t\"./01_get_contract_allPosition.json\": \"Bfwk\",\n\t\"./02_get_contract_allOrders\": \"HijD\",\n\t\"./02_get_contract_allOrders.json\": \"HijD\",\n\t\"./03_get_contract_balance\": \"+25w\",\n\t\"./03_get_contract_balance.json\": \"+25w\",\n\t\"./index\": \"0RsY\",\n\t\"./index.js\": \"0RsY\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"aXvb\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/standard/api/trade ^.*$\n// module id = aXvb\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"心跳信息\"},{\"type\":\"normal\",\"text\":\"当用户的Websocket客户端连接到Bingx Websocket服务器后,服务器会定期(当前设为5秒)向其发送心跳字符串Ping\"},{\"type\":\"code\",\"text\":\" {\\\"ping\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"},{\"type\":\"normal\",\"text\":\"当用户的Websocket客户端接收到此心跳消息后,应返回字符串Pong消息\"},{\"type\":\"code\",\"text\":\"{\\\"pong\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/introduce/03_heart_beat.json\n// module id = aeFT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢用戶万向劃轉歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/asset/transfer\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"startTime\":1658748648396,\"endTime\":1658748648396,\"current\":1,\"size\":10,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"是\",\"description\":\"劃轉類型\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"開始時間 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"結束時間 1658748648396\"},{\"name\":\"current\",\"type\":\"int\",\"required\":\"否\",\"description\":\"當前頁 默認1\"},{\"name\":\"size\",\"type\":\"int\",\"required\":\"否\",\"description\":\"頁數量大小 默認10 不能超過100\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"資金賬戶->標准合約\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"標准合約->資金賬戶\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"資金賬戶->永續合約\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"永續合約->資金賬戶\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"標准合約->永續合約\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"永續合約->標准合約\"},{\"name\":\"FUND_STRADING\",\"type\":\"\",\"description\":\"資金賬戶 -> 網格\"},{\"name\":\"STRADING_FUND\",\"type\":\"\",\"description\":\"網格 -> 資金賬戶\"},{\"name\":\"FUND_CTRADING\",\"type\":\"\",\"description\":\"資金賬戶 -> 跟單\"},{\"name\":\"SFUTURES_CTRADING\",\"type\":\"\",\"description\":\"標准合約賬戶 -> 跟單\"},{\"name\":\"PFUTURES_CTRADING\",\"type\":\"\",\"description\":\"永續合約賬戶 -> 跟單\"},{\"name\":\"CTRADING_FUND\",\"type\":\"\",\"description\":\"跟單 -> 資金賬戶\"},{\"name\":\"CTRADING_SFUTURES\",\"type\":\"\",\"description\":\"跟單 -> 標准合約賬戶\"},{\"name\":\"CTRADING_PFUTURES\",\"type\":\"\",\"description\":\"跟單 -> 永續合約賬戶\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"total\",\"type\":\"LONG\",\"description\":\"总數\"},{\"name\":\"rows\",\"type\":\"Array\",\"description\":\"數據Array\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"幣的名稱\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"幣的金額\"},{\"name\":\"type\",\"type\":\"ENUM\",\"description\":\"劃轉類型\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"CONFIRMED\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"交易ID\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"description\":\"劃轉的時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/02_get_asset_transfer2.json\n// module id = ah5Z\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"請求交互\"},{\"type\":\"warning\",\"text\":\"REST訪問的根URL: https://api-swap-rest.bingbon.pro\"},{\"type\":\"html\",\"text\":\"所有請求基於Https协议,請求頭信息中Content-Type 需要統一設置為:'application/json’。 \"},{\"type\":\"html\",\"text\":\"請求交互說明\"},{\"type\":\"html\",\"text\":\"
  • 請求參數:根據接口請求參數規定進行參數封装。
  • \"},{\"type\":\"html\",\"text\":\"
  • 提交請求參數:将封装好的請求參數通過POST/GET/DELETE等方式提交至服務器。
  • \"},{\"type\":\"html\",\"text\":\"
  • 服務器響應:服務器首先對用戶請求數據進行參數安全校驗,通過校驗後根據業務邏輯将響應數據以JSON格式返回給用戶。
  • \"},{\"type\":\"html\",\"text\":\"
  • 數據處理:對服務器響應數據進行處理。
  • \"},{\"type\":\"html\",\"text\":\"成功\"},{\"type\":\"html\",\"text\":\"
  • HTTP狀態碼200表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/authentication/05_request.json\n// module id = auLt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢apikey信息\"},{\"type\":\"normal\",\"text\":\"查詢apikey信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/sub-account/v1/apiKey/query\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/sub-account/v1/apiKey/query\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"用戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"否\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"description\":\"\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"備註\"},{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,5-提幣\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"ip白名單\"},{\"name\":\"createTime\",\"type\":\"long\",\"description\":\"創建時間\"},{\"name\":\"updateTime\",\"type\":\"long\",\"description\":\"更新時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/06_get_api_key_info.json\n// module id = azxt\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/common/api/subAccount/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查詢K線最新數據\"},{\"type\":\"normal\",\"text\":\"查詢最新成交價格的K線最新數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestKline\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestKline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k線類型,參考字段說明,如分鐘,小時,週等\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1m一分鐘K線\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3m三分鐘K線\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"5m五分鐘K線\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15m十五分鐘K線\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30m三十分鐘K線\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1h一小時K線\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2h两小時K線\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4h四小時K線\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6h六小時K線\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12h十二小時K線\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1D日K線\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W週K線\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1M月K線\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"開盤價\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盤價\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高價\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低價\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易數量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"k線時間戳,單位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/07_get_quote_ klines.json\n// module id = bDbK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"有限檔深度信息\"},{\"type\":\"normal\",\"text\":\"每秒推送有限檔深度信息。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @depth,比如BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"是\",\"description\":\"檔數, 如 5,10,20,50,100\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"賣方深度\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"買方深度\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price價格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume數量\"}]},{\"type\":\"level\",\"key\":\"common\",\"data\":[{\"name\":\"5\",\"type\":\"\",\"description\":\"5檔\"},{\"name\":\"10\",\"type\":\"\",\"description\":\"10檔\"},{\"name\":\"20\",\"type\":\"\",\"description\":\"20檔\"},{\"name\":\"50\",\"type\":\"\",\"description\":\"50檔\"},{\"name\":\"100\",\"type\":\"\",\"description\":\"100檔\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/01_dept_info.json\n// module id = bFzX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"请求交互\"},{\"type\":\"warning\",\"text\":\"REST访问的根URL: https://open-api.bingx.com\"},{\"type\":\"html\",\"text\":\"请求交互说明\"},{\"type\":\"html\",\"text\":\"
  • 请求参数:根据接口请求参数规定进行参数封装。
  • \"},{\"type\":\"html\",\"text\":\"
  • 提交请求参数:将封装好的请求参数通过POST/GET/DELETE等方式提交至服务器。
  • \"},{\"type\":\"html\",\"text\":\"
  • 服务器响应:服务器首先对用户请求数据进行参数安全校验,通过校验后根据业务逻辑将响应数据以JSON格式返回给用户。
  • \"},{\"type\":\"html\",\"text\":\"
  • 数据处理:对服务器响应数据进行处理。
  • \"},{\"type\":\"html\",\"text\":\"成功\"},{\"type\":\"html\",\"text\":\"
  • HTTP状态码200表示成功响应,并可能包含内容。如果响应含有内容,则将显示在相应的返回内容里面。
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/authentication/05_request.json\n// module id = bIA2\n// module chunks = 3","var map = {\n\t\".\": \"Ob2m\",\n\t\"./\": \"Ob2m\",\n\t\"./01_post_trade_order\": \"e3ud\",\n\t\"./01_post_trade_order.json\": \"e3ud\",\n\t\"./02_post_closeAllPositions\": \"rac6\",\n\t\"./02_post_closeAllPositions.json\": \"rac6\",\n\t\"./03_post_closeAllPositions\": \"ovOx\",\n\t\"./03_post_closeAllPositions.json\": \"ovOx\",\n\t\"./04_delete_trade_order\": \"+Jww\",\n\t\"./04_delete_trade_order.json\": \"+Jww\",\n\t\"./05_delete_trade_batch_order\": \"GLwn\",\n\t\"./05_delete_trade_batch_order.json\": \"GLwn\",\n\t\"./06_delete_trade_all_order\": \"vl+M\",\n\t\"./06_delete_trade_all_order.json\": \"vl+M\",\n\t\"./07_get_all_openOrders\": \"mQAj\",\n\t\"./07_get_all_openOrders.json\": \"mQAj\",\n\t\"./08_get_trade_order\": \"50QL\",\n\t\"./08_get_trade_order.json\": \"50QL\",\n\t\"./09_get_trade_marginType\": \"8FLz\",\n\t\"./09_get_trade_marginType.json\": \"8FLz\",\n\t\"./10_post_trade_marginType\": \"Hwtn\",\n\t\"./10_post_trade_marginType.json\": \"Hwtn\",\n\t\"./11_get_trade_leverage\": \"Toje\",\n\t\"./11_get_trade_leverage.json\": \"Toje\",\n\t\"./12_post_trade_leverage\": \"XqXJ\",\n\t\"./12_post_trade_leverage.json\": \"XqXJ\",\n\t\"./13_get_trade_forceOrders\": \"GZ+E\",\n\t\"./13_get_trade_forceOrders.json\": \"GZ+E\",\n\t\"./14_get_trade_allOrders\": \"JRHj\",\n\t\"./14_get_trade_allOrders.json\": \"JRHj\",\n\t\"./15_post_trade_positionMargin\": \"y7gJ\",\n\t\"./15_post_trade_positionMargin.json\": \"y7gJ\",\n\t\"./16_post_trade_order_test\": \"EhS2\",\n\t\"./16_post_trade_order_test.json\": \"EhS2\",\n\t\"./17_get_trade_allFillOrders\": \"GFCe\",\n\t\"./17_get_trade_allFillOrders.json\": \"GFCe\",\n\t\"./18_get_trade_allFillOrders_history\": \"kyJY\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"kyJY\",\n\t\"./index\": \"Ob2m\",\n\t\"./index.js\": \"Ob2m\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"bMjl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade ^.*$\n// module id = bMjl\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"獲取提幣歷史(支持多網絡)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/withdraw/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"\",\"withdrawOrderId\":\"\",\"status\":0,\"startTime\":1658748648396,\"endTime\":1658748648396,\"offset\":0,\"limit\":1000,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣的名稱\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"自定義ID, 如果沒有則不返回該字段\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"狀態 (0:已發送確認Email, 2:等待確認 3:被拒絕 4:處理中 5:提現交易失敗 6 提現完成)\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"開始時間 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"結束時間 1658748648396\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默認0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"頁數量大小 默認1000 不能超過1000\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"address\",\"type\":\"string\",\"description\":\"地址\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"提現轉出金額\"},{\"name\":\"applyTime\",\"type\":\"Date\",\"description\":\"充值時間\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣名稱\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"該筆提現的id\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"description\":\"自定義ID, 如果沒有則不返回該字段\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"提現網絡\"},{\"name\":\"transferType\",\"type\":\"LONG\",\"description\":\"交易類型1=提現\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"狀態 狀態 0-已確認-10-待確認(審核中) 20-已申請區块 30已審核通過 40審核不通過 50已汇出 60充值初步確認(最终確認變為0) 70審核不通過已退回資產\"},{\"name\":\"transactionFee\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"confirmNo\",\"type\":\"int\",\"description\":\"提現確認次數\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"提幣失敗原因\"},{\"name\":\"txId\",\"type\":\"String\",\"description\":\"提現交易id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/04_get_withdraw_history.json\n// module id = bMv0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"User Universal Transfer\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/get/asset/transfer\"},{\"type\":\"code\",\"text\":\"curl --location --request GET 'https://open-api.bingx.com/openApi/api/v3/get/asset/transfer?type=FUND_PFUTURES&asset=USDT&amount=100×tamp=1670215150028&signature=ecc819d72515095039b7b383310f718584af4cf70106b57609bc59473185c9a3'\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"asset\":\"USDT\",\"amount\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"yes\",\"description\":\"transfer tpye\"},{\"name\":\"asset\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"coin name e.g. USDT\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"required\":\"yes\",\"description\":\"amount\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Execution window time, cannot be greater than 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp e.g. 1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"Funding Account->Standard Contract\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"Standard Contract->Funding Account\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"Funding Account->Perpetual Futures\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"Perpetual Futures->Funding Account\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"Standard Contract->Perpetual Futures\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"Perpetual Futures->Standard Contract\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"Transaction ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/01_get_asset_transfer.json\n// module id = bSWG\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/api/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"创建API\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"很多接口需要API Key才可以访问,在对请求进行签名之前,您必须通过
    BingX网站【用户中心】-【API管理】创建一个API key。 创建key后,您将获得2个必须记住的信息: API key和Secret key.\"},{\"type\":\"normal\",\"text\":\"设置API key的同时,为了安全,建议设置IP访问白名单.\"},{\"type\":\"normal\",\"text\":\"永远不要把你的API key/Secret key告诉给任何人.\"}]},{\"type\":\"warning\",\"text\":\"如果不小心泄露了API key,请立刻删除此API key, 并可以另外生产新的API key.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/authentication/01_create_api.json\n// module id = bY49\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱賬戶餘額推送\"},{\"type\":\"normal\",\"text\":\"訂閱類型\"},{\"type\":\"code\",\"text\":\"dataType 為 ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"訂閱例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"gdfg2311-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"}\"},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能類型:\"},{\"type\":\"html\",\"text\":\"

    DEPOSIT
    WITHDRAW
    ORDER
    FUNDING_FEE
    WITHDRAW_REJECT
    ADJUSTMENT
    INSURANCE_CLEAR
    ADMIN_DEPOSIT
    ADMIN_WITHDRAW
    MARGIN_TRANSFER
    MARGIN_TYPE_CHANGE
    ASSET_TRANSFER
    OPTIONS_PREMIUM_FEE
    OPTIONS_SETTLE_PROFIT
    AUTO_EXCHANGE

    \"},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"撮合時間\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"資產名稱\"}]},{\"type\":\"a\",\"key\":\"key1\",\"data\":[{\"name\":\"B\",\"type\":\"\",\"description\":\"Array[]\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因 \"}]},{\"type\":\"B\",\"key\":\"key2\",\"data\":[{\"name\":\"a\",\"type\":\"\",\"description\":\"資產名稱\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"除去盈虧與交易手續費以外的钱包餘額改變量\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"資產名稱\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"钱包餘額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/account/02_ account_update.json\n// module id = bZVt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約未平倉數量\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getOpenPositions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getOpenPositions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"持倉數量\"},{\"name\":\"unit\",\"type\":\"string\",\"description\":\"持倉數量對應的單位,CONT(張), BTC, ETH, LINK, BCH等等\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/10_get_quote_openInterest.json\n// module id = baSA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢委託訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/openOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"訂單列表,最大長度為2000, 訂單字段參考下表\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下單數量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"下單時間戳\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間戳\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"下單金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/04_get_trade_open_order.json\n// module id = bfDi\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"YLkf\",\n\t\"./02_post_trade_batch_order.json\": \"/bqr\",\n\t\"./03_post_closeAllPositions.json\": \"jBL/\",\n\t\"./04_delete_trade_order.json\": \"nf3C\",\n\t\"./05_delete_trade_batch_order.json\": \"siG2\",\n\t\"./06_delete_trade_all_order.json\": \"/Fs7\",\n\t\"./07_get_all_openOrders.json\": \"jxdV\",\n\t\"./08_get_trade_order.json\": \"1xud\",\n\t\"./09_get_trade_marginType.json\": \"Qa4f\",\n\t\"./10_post_trade_marginType.json\": \"WCFx\",\n\t\"./11_get_trade_leverage.json\": \"Nux4\",\n\t\"./12_post_trade_leverage.json\": \"j3Xb\",\n\t\"./13_get_trade_forceOrders.json\": \"fUN5\",\n\t\"./14_get_trade_allOrders.json\": \"iu9b\",\n\t\"./15_post_trade_positionMargin.json\": \"i3k4\",\n\t\"./16_post_trade_order_test.json\": \"l8OL\",\n\t\"./17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./18_get_trade_income_export.json\": \"JOGY\",\n\t\"./19_get_trade_user_commissionRate.json\": \"2Faq\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"Oo3B\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"btx7\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade \\.json$\n// module id = btx7\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/spot/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"查询合约最新价格\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestPrice\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestPrice\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tradePrice\",\"type\":\"float64\",\"description\":\"成交价格\"},{\"name\":\"indexPrice\",\"type\":\"float64\",\"description\":\"指数价格\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"标记价格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/02_get_quote_price.json\n// module id = cR4p\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂單最新成交記录\"},{\"type\":\"normal\",\"text\":\"逐筆交易推送每一筆成交的信息。成交,或者說交易的定義是僅有一個吃單者與一個掛單者相互交易\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @trade,比如BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"成交時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"買方是否是做市方。如true,則此次成交是一個主動賣出單,否則是一個主動買入單。\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price價格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/02_latest_records.json\n// module id = cRtg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"近期成交\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/trades\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":500}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默认:500,最大1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"成交时间\"},{\"name\":\"isBuyerMaker\",\"type\":\"bool\",\"description\":\"买方是否为挂单方(true / false)\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成交价格\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"成交额\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/04_get_quote_ trades.json\n// module id = ceUr\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"獲取賬戶損益資金流水\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約的資金流水。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/income\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 如果startTime 和 endTime 均未發送, 只會返回最近7天的數據。
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果incomeType沒有發送,返回所有類型賬戶損益資金流水。
  • \"},{\"type\":\"html\",\"text\":\"
  • 僅保留最近3個月的數據。
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"incomeType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"incomeType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"收益類型,見上方說明\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"返回的結果集數量 默認值:100 最大值:1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"incomeType\",\"type\":\"string\",\"description\":\"資金流類型\"},{\"name\":\"income\",\"type\":\"string\",\"description\":\"資金流數量,正數代表流入,負數代表流出\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"資產內容\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"備註信息,取决於流水類型\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"時間,單位:毫秒\"},{\"name\":\"tranId\",\"type\":\"string\",\"description\":\"劃轉id\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"引起流水產生的原始交易ID\"}]},{\"type\":\"incomeType\",\"key\":\"common\",\"data\":[{\"name\":\"TRANSFER\",\"type\":\"\",\"description\":\"轉賬\"},{\"name\":\"REALIZED_PNL\",\"type\":\"\",\"description\":\"已實現盈虧\"},{\"name\":\"FUNDING_FEE\",\"type\":\"\",\"description\":\"資金費用\"},{\"name\":\"TRADING_FEE\",\"type\":\"\",\"description\":\"手續費\"},{\"name\":\"INSURANCE_CLEAR\",\"type\":\"\",\"description\":\"強平\"},{\"name\":\"TRIAL_FUND\",\"type\":\"\",\"description\":\"體驗金\"},{\"name\":\"ADL\",\"type\":\"\",\"description\":\"自動減倉\"},{\"name\":\"SYSTEM_DEDUCTION\",\"type\":\"\",\"description\":\"系統扣除\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/account/03_get_user_income.json\n// module id = clol\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"取消訂閱\"},{\"type\":\"normal\",\"text\":\"取消訂閱的格式如下:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"unsub\\\", \\\"dataType\\\": \\\"data to unsub\\\"}\"},{\"type\":\"normal\",\"text\":\"取消訂閱成功確認:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"html\",\"text\":\"

    symbol說明

    \"},{\"type\":\"warning\",\"text\":\"symbol必須全大寫\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/05_cancel_subscribe.json\n// module id = cspZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢資金費率歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/fundingRate\"},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 都未發送, 返回最近 limit 條數據.
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 之間的數據量大於 limit, 返回 startTime + limit情况下的數據。
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/fundingRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"起始時間,單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,單位:毫秒\"},{\"name\":\"limit\",\"type\":\"int32\",\"required\":\"否\",\"description\":\"默認值:100 最大值:1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"fundingRate\",\"type\":\"string\",\"description\":\"資金費率\"},{\"name\":\"fundingTime\",\"type\":\"int64\",\"description\":\"資金費時間:單位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/06_get_quote_ fundingRate.json\n// module id = dEdI\n// module chunks = 3","var map = {\n\t\"./01_dept_info.json\": \"I7QH\",\n\t\"./02_latest_records.json\": \"fkpZ\",\n\t\"./03_kline_data.json\": \"I7+s\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"dJsD\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/websocket/market \\.json$\n// module id = dJsD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询开仓杠杆\"},{\"type\":\"normal\",\"text\":\"查询用户在指定symbol合约的开仓杠杆。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"多仓杠杆倍数\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"空仓杠杆倍数\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/11_get_trade_leverage.json\n// module id = dLDu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易下单\"},{\"type\":\"normal\",\"text\":\"当前账户在指定symbol合约上进行下单操作。(支持限价单、市价单、计划委托市价单、计划委托限价单、仓位止盈止损单、针对仓位平仓)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/order\"},{\"type\":\"warning\",\"text\":\"基于订单 type 不同,强制要求某些参数:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 强制要求参数 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 强制要求参数 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 强制要求参数 quantity、stopPrice、price
  • \"},{\"type\":\"html\",\"text\":\"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 强制要求参数 quantity、stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    1. 开/平仓: 如何使用同一个接口 开仓(多/空),平仓(多/空)?请参考如下request payload组合:

    \"},{\"type\":\"html\",\"text\":\"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"MARKET\\\", \\\"quantity\\\": 5}

    \"},{\"type\":\"html\",\"text\":\"

    2. 设置止盈止损:本接口也可用于设置止盈止损,但需要先开仓; 当前止盈止损价格只支持默认的标记价格,暂不支持最新和指数价格选项

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"quantity\\\": 3, \\\"stopPrice\\\": 31968.0}

    \"},{\"type\":\"warning\",\"text\":\"条件单的触发必须:\"},{\"type\":\"html\",\"text\":\"

    STOP/STOP_MARKET 止损单:

    \"},{\"type\":\"html\",\"text\":\"
  • 已挂止损单累加数量不能大于持仓数量
  • \"},{\"type\":\"html\",\"text\":\"
  • 买入: 标记价格高于等于触发价stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • 卖出: 标记价格低于等于触发价stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈单:

    \"},{\"type\":\"html\",\"text\":\"
  • 已挂止盈单累加数量不能大于持仓数量
  • \"},{\"type\":\"html\",\"text\":\"
  • 买入: 标记价格低于等于触发价stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • 卖出: 标记价格高于等于触发价stopPrice
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"type\":\"\",\"side\":\"\",\"positionSide\":\"\",\"price\":0,\"quantity\":0,\"stopPrice\":0,\"recvWindow\":0,\"timeInForce\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"订单类型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"买卖方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,且仅可选择 LONG 或 SHORT,默认LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委托价格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下单数量,合约数量,当前只支持以币计的合约数,暂不支持输入U$:quantity=U$/price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,TRIGGER_LIMIT,TRIGGER_MARKET, STOP, TAKE_PROFIT 需要此参数\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位:毫秒\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC和FOK\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/01_post_trade_order.json\n// module id = db2W\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/historyOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"註意\",\"children\":[{\"type\":\"normal\",\"text\":\"如設置 orderId , 訂單将 >= orderId。否則将返回最新訂單。\"},{\"type\":\"normal\",\"text\":\"如果設置 startTime 和 endTime, orderId 就不需要設置。\"}]},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"pageIndex\":0,\"pageSize\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間戳, 單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間戳, 單位:毫秒\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁頁碼,必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁數量,必須大於0,最大值為100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"訂單列表,最大長度為2000, 訂單字段參考下表\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下單數量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, MARKET市價 LIMIT限價\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"下單時間戳\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間戳\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"下單金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/05_get_trade_history_order.json\n// module id = dcc+\n// module chunks = 3","const golang = `package main\n\nimport (\n\t\"bytes\"\n\t\"compress/gzip\"\n\t\"fmt\"\n\t\"io/ioutil\"\n\t\"log\"\n\t\"net/http\"\n\t\"time\"\n\n\t\"github.com/gorilla/websocket\"\n)\n\nconst (\n\tpath = \"wss://open-api-ws.bingx.com/market\" // \n\tchannel = \"{\\\"id\\\": \\\"test\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"BTC-USDT@depth\\\"}\" // \n)\n\nvar receivedMessage string\nvar conn *websocket.Conn\n\nfunc main() {\n\tinterrupt := make(chan struct{})\n\n\theader := http.Header{}\n\theader.Add(\"Accept-Encoding\", \"gzip\")\n\n\tconn, _, err := websocket.DefaultDialer.Dial(path, header)\n\tif err != nil {\n\t\tlog.Fatal(\"WebSocket connection error:\", err)\n\t}\n\tdefer conn.Close()\n\n\terr = conn.WriteMessage(websocket.TextMessage, []byte(channel))\n\tif err != nil {\n\t\tlog.Fatal(\"WebSocket write error:\", err)\n\t}\n\n\tgo func() {\n\t\tfor {\n\t\t\tmessageType, message, err := conn.ReadMessage()\n\t\t\tif err != nil {\n\t\t\t\tlog.Println(\"WebSocket read error:\", err)\n\t\t\t\tclose(interrupt)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\thandleMessage(messageType, message)\n\t\t}\n\t}()\n\n\tgo func() {\n\t\tticker := time.NewTicker(5 * time.Second)\n\t\tdefer ticker.Stop()\n\n\t\tfor {\n\t\t\tselect {\n\t\t\tcase <-ticker.C:\n\t\t\t\terr := conn.WriteMessage(websocket.TextMessage, []byte(\"Ping\"))\n\t\t\t\tif err != nil {\n\t\t\t\t\tlog.Println(\"WebSocket write error:\", err)\n\t\t\t\t}\n\t\t\tcase <-interrupt:\n\t\t\t\treturn\n\t\t\t}\n\t\t}\n\t}()\n\n\t<-interrupt\n}\n\nfunc handleMessage(messageType int, message []byte) {\n\tif messageType == websocket.TextMessage {\n\t\t// \n\t\tfmt.Println(string(message))\n\t} else if messageType == websocket.BinaryMessage {\n\t\t// \n\t\tdecodedMsg, err := decodeGzip(message)\n\t\tif err != nil {\n\t\t\tlog.Println(\"WebSocket decode error:\", err)\n\t\t\treturn\n\t\t}\n\t\tfmt.Println(decodedMsg)\n\t\tif decodedMsg == \"Ping\" {\n\t\t\terr = conn.WriteMessage(websocket.TextMessage, []byte(\"Pong\"))\n\t\t\tif err != nil {\n\t\t\t\tlog.Println(\"WebSocket write error:\", err)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tfmt.Println(\"Pong\")\n\t\t}\n\t\treceivedMessage = decodedMsg\n\t}\n}\n\nfunc decodeGzip(data []byte) (string, error) {\n\treader, err := gzip.NewReader(bytes.NewReader(data))\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tdefer reader.Close()\n\n\tdecodedMsg, err := ioutil.ReadAll(reader)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\n\treturn string(decodedMsg), nil\n}`\nexport default golang\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/golang.js","module.exports = [{\"type\":\"hash\",\"text\":\"Get Market Depth\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/depth\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":20}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Default 20, optional value:[5, 10, 20, 50, 100, 500, 1000]\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"System time, unit: millisecond\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"depth of asks. first element price, second element quantity\"},{\"name\":\"bids\",\"type\":\"array\",\"description\":\"Buyer depth. first element price, second element quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/03_get_quote_depth.json\n// module id = e+0O\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place a New Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/trade\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\",\"side\":\"\",\"entrustPrice\":0,\"entrustVolume\":0,\"tradeType\":\"\",\"action\":\"\",\"takerProfitPrice\":0,\"stopLossPrice\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"(Bid/Ask)\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"price\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"quantity\"},{\"name\":\"tradeType\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Market/Limit\"},{\"name\":\"action\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Open/Close\"},{\"name\":\"takerProfitPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Take Profit Price\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Stop Loss Price\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"order ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/01_post_trade_order.json\n// module id = e3ud\n// module chunks = 3","// 模块名称\nexport const SWAP = 'swap' // USDT本位永续合约\nexport const SWAPV2 = 'swapV2' // USDT本位永续合约V2\nexport const SPOT = 'spot' // 现货\nexport const STANDARD = 'standard' // 标准现货\nexport const COMMON = 'common' // 账户与钱包\n\nexport const moduleKeys = [SWAP, SWAPV2, SPOT, STANDARD, COMMON]\n\n\n// WEBPACK FOOTER //\n// ./src/config/modules.js","module.exports = [{\"type\":\"hash\",\"text\":\"Create sub account apikey\"},{\"type\":\"normal\",\"text\":\"Create sub account apikey\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/create\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"},{\"name\":\"note\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"notes\"},{\"name\":\"permissions\",\"type\":\"Array\",\"required\":\"yes\",\"description\":\"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"no\",\"description\":\"IP whitelist\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"description\":\"apiKey\"},{\"name\":\"apiSecret\",\"type\":\"string\",\"description\":\"apiSecret\"},{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"permissions,1-Spot Trading,2-Read,3-Perpetual Futures Trading,4-Universal Transfer,7-Allow internal transfer of sub accounts\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"IP whitelist\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"notes\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/05_create_sub_accuont_key.json\n// module id = eSSt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Latest Price of a Trading Pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestPrice\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestPrice\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tradePrice\",\"type\":\"float64\",\"description\":\"transaction price\"},{\"name\":\"indexPrice\",\"type\":\"float64\",\"description\":\"index price\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"Mark Price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/02_get_quote_price.json\n// module id = eT6P\n// module chunks = 3","\nconst nodejs = `\n\n`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/html.js","const CACHE_KEY = 'lang'\n\nexport const LANG_KEY = {\n en: 'en-US',\n zh: 'zh-hans',\n tw: 'zh-tw',\n}\n\nexport const CODE_LANG_KEY = {\n js: 'javascript',\n nodejs: 'nodejs',\n go: 'golang',\n shell: 'shell',\n java: 'java',\n python: 'python',\n vue: 'html',\n csharp: 'csharp',\n php: 'php',\n}\n\nexport const codeLangConfig = [{\n label: 'Python',\n value: CODE_LANG_KEY.python,\n},{\n label: 'Golang',\n value: CODE_LANG_KEY.go,\n}, {\n label: 'Nodejs',\n value: CODE_LANG_KEY.js,\n}, {\n label: 'Java',\n value: CODE_LANG_KEY.java,\n},{\n label: 'C#',\n value: CODE_LANG_KEY.csharp,\n},{\n label: 'php',\n value: CODE_LANG_KEY.php,\n}, {\n label: 'Shell',\n value: CODE_LANG_KEY.shell,\n}]\n\nexport const codeLangConfig2 = [{\n label: 'Python',\n value: CODE_LANG_KEY.python,\n},{\n label: 'NodeJS',\n value: CODE_LANG_KEY.nodejs,\n},{\n label: 'Golang',\n value: CODE_LANG_KEY.go,\n}]\n\nexport const defaultLangKey = 'en'\n// 支持的语言\nexport const LANGS = [{\n label: 'English',\n value: LANG_KEY.en,\n}, {\n label: '简体中文',\n value: LANG_KEY.zh,\n}, {\n label: '繁体中文',\n value: LANG_KEY.tw,\n}]\n\nexport const getLang = () => {\n return window.localStorage.getItem(CACHE_KEY) || LANG_KEY[defaultLangKey]\n}\n\nexport const setLang = (lang) => {\n window.localStorage.setItem(CACHE_KEY, lang)\n}\n\nexport const getLangKeyByLang = (lang) => {\n let key = defaultLangKey\n Object.keys(item => {\n if(LANG_KEY[item] === lang) {\n key = item\n }\n })\n return key\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/lang.js","var map = {\n\t\"./01_balance.json\": \"uiwf\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ed62\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/websocket/account \\.json$\n// module id = ed62\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Server Time\"},{\"type\":\"html\",\"text\":\"

    HTTP Request

    \"},{\"type\":\"code\",\"text\":\"POST/GET api/v1/common/server/time\"},{\"type\":\"html\",\"text\":\"

    Parameters: null

    \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/common/server/time\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"currentTime\",\"type\":\"Int64\",\"description\":\"The current time of the system,unit: ms\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/basic/05_system_time.json\n// module id = edi2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢賬戶信息\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約資產的相關信息。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/getBalance\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/getBalance\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"currency\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口秘鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約資產\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用戶ID\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"用戶資產\"},{\"name\":\"balance\",\"type\":\"float64\",\"description\":\"資產餘額\"},{\"name\":\"equity\",\"type\":\"float64\",\"description\":\"資產淨值\"},{\"name\":\"unrealisedPNL\",\"type\":\"float64\",\"description\":\"未實現盈虧\"},{\"name\":\"realisedPNL\",\"type\":\"float64\",\"description\":\"已實現盈虧\"},{\"name\":\"availableMargin\",\"type\":\"float64\",\"description\":\"可用保證金\"},{\"name\":\"usedMargin\",\"type\":\"float64\",\"description\":\"已用保證金\"},{\"name\":\"freezedMargin\",\"type\":\"float64\",\"description\":\"凍結保證金\"},{\"name\":\"longLeverage\",\"type\":\"float64\",\"description\":\"做多槓桿\"},{\"name\":\"shortLeverage\",\"type\":\"float64\",\"description\":\"做空槓桿\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/account/01_post_user_balance.json\n// module id = emHW\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订阅逐笔交易\"},{\"type\":\"normal\",\"text\":\"逐笔交易推送每一笔成交的信息。成交,或者说交易的定义是仅有一个吃单者与一个挂单者相互交易\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @trade,比如BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"订阅例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@trade\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"trade\",\"description\":\"事件类型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件时间\"},{\"name\":\"s\",\"type\":\"BTC-USDT\",\"description\":\"交易对\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"交易ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"成交价格\"},{\"name\":\"q\",\"type\":\"0.007146\",\"description\":\"成交数量\"},{\"name\":\"T\",\"type\":\"1649832413512\",\"description\":\"成交时间\"},{\"name\":\"m\",\"type\":\"true\",\"description\":\"买方是否是做市方。如true,则此次成交是一个主动卖出单,否则是一个主动买入单。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/market/01_trade_info.json\n// module id = eqGc\n// module chunks = 3","var map = {\n\t\".\": \"wbzr\",\n\t\"./\": \"wbzr\",\n\t\"./01_get_contract_allPosition\": \"IW/r\",\n\t\"./01_get_contract_allPosition.json\": \"IW/r\",\n\t\"./02_get_contract_allOrders\": \"y5ws\",\n\t\"./02_get_contract_allOrders.json\": \"y5ws\",\n\t\"./03_get_contract_balance\": \"smla\",\n\t\"./03_get_contract_balance.json\": \"smla\",\n\t\"./index\": \"wbzr\",\n\t\"./index.js\": \"wbzr\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"f1eM\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade ^.*$\n// module id = f1eM\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱方式\"},{\"type\":\"normal\",\"text\":\"成功建立與Websocket服務器的連接後,Websocket客戶端發送如下請求以訂閱特定主題 \"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"data to sub\\\" }\"},{\"type\":\"normal\",\"text\":\"成功訂閱後,Websocket客戶端将收到確認:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"normal\",\"text\":\"之後, 一旦所訂閱的數據有更新,Websocket客戶端将收到服務器推送的更新消息 \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce/04_subscribe.json\n// module id = f4mz\n// module chunks = 3","var map = {\n\t\"./01_dept_info.json\": \"VbHA\",\n\t\"./02_latest_records.json\": \"4L7x\",\n\t\"./03_kline_data.json\": \"zKQU\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"f6o8\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market \\.json$\n// module id = f6o8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询历史订单\"},{\"type\":\"normal\",\"text\":\"查询用户历史订单(订单状态为已成交或已撤销)\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/allOrders\"},{\"type\":\"html\",\"text\":\"
  • 查询时间范围最大不得超过7天
  • \"},{\"type\":\"html\",\"text\":\"
  • 默认查询最近7天内的数据
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"只返回此orderID及之后的订单,缺省返回最近的订单\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"是\",\"description\":\"返回的结果集数量 默认值:500 最大值:1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/14_get_trade_allOrders.json\n// module id = fFLq\n// module chunks = 3","var map = {\n\t\".\": \"ByCb\",\n\t\"./\": \"ByCb\",\n\t\"./01_get_quote_contracts\": \"lrAs\",\n\t\"./01_get_quote_contracts.json\": \"lrAs\",\n\t\"./02_get_quote_price\": \"r2l6\",\n\t\"./02_get_quote_price.json\": \"r2l6\",\n\t\"./03_get_quote_depth\": \"obcS\",\n\t\"./03_get_quote_depth.json\": \"obcS\",\n\t\"./04_get_quote_ trades\": \"KY9U\",\n\t\"./04_get_quote_ trades.json\": \"KY9U\",\n\t\"./05_get_quote_ premiumIndex\": \"5xUh\",\n\t\"./05_get_quote_ premiumIndex.json\": \"5xUh\",\n\t\"./06_get_quote_ fundingRate\": \"dEdI\",\n\t\"./06_get_quote_ fundingRate.json\": \"dEdI\",\n\t\"./07_get_quote_ klines\": \"UTAD\",\n\t\"./07_get_quote_ klines.json\": \"UTAD\",\n\t\"./08_get_quote_openInterest\": \"0IKX\",\n\t\"./08_get_quote_openInterest.json\": \"0IKX\",\n\t\"./09_get_quote_ ticker\": \"Y7KR\",\n\t\"./09_get_quote_ ticker.json\": \"Y7KR\",\n\t\"./index\": \"ByCb\",\n\t\"./index.js\": \"ByCb\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"fKdH\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market ^.*$\n// module id = fKdH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"User's Force Orders\"},{\"type\":\"normal\",\"text\":\"Query the user's forced liquidation order.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/forceOrders\"},{\"type\":\"html\",\"text\":\"
  • If \\\"autoCloseType\\\" is not passed, both forced liquidation orders and ADL liquidation orders will be returned
  • \"},{\"type\":\"html\",\"text\":\"
  • If \\\"startTime\\\" is not passed, only the data within 7 days before \\\"endTime\\\" will be returned
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/forceOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"autoCloseType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"\\\"LIQUIDATION\\\":liquidation order, \\\"ADL\\\":ADL liquidation order\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: millisecond\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: millisecond\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"The number of returned result sets The default value is 50, the maximum value is 100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/13_get_trade_forceOrders.json\n// module id = fUN5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"子账户内部转账\"},{\"type\":\"normal\",\"text\":\"用户在bingx平台内互相转账\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subInnerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"userAccountType\":3,\"userAccount\":\"bran***@**.com\",\"amount\":10,\"walletType\":1,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"转账币种名\"},{\"name\":\"userAccountType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"用户账号类型 1=uid 2=手机号 3=邮箱\"},{\"name\":\"userAccount\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用户账户: uid、电话、邮箱\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"转账数额\"},{\"name\":\"callingCode\",\"type\":\"string\",\"required\":\"否\",\"description\":\"电话区号\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"账户类型,1 资金账户;2 标合账户;3 永续账户\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"提币记录唯一标识,该字段在提币走内转时不返回\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/common/api/subAccount/11.post_wallet_subInnerTransfer.json\n// module id = fe6F\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订单最新成交记录\"},{\"type\":\"normal\",\"text\":\"订阅单个合约的逐笔成交明细\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 market.trade.detail.$Symbol,比如market.trade.detail.BTC-USDT\"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称,合约名称中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 market.tradeDetail.BTC-USDT\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"trades\",\"type\":\"\",\"description\":\"逐笔成交\"},{\"name\":\"time\",\"type\":\"\",\"description\":\"成交时间\"},{\"name\":\"makerSide\",\"type\":\"\",\"description\":\"吃单方向(Bid / Ask 买/卖)\"},{\"name\":\"price\",\"type\":\"\",\"description\":\"成交价格\"},{\"name\":\"volume\",\"type\":\"\",\"description\":\"成交数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/websocket/market/02_latest_records.json\n// module id = fkpZ\n// module chunks = 3","var map = {\n\t\"./01_dept_info.json\": \"PNFl\",\n\t\"./02_latest_records.json\": \"vXfi\",\n\t\"./03_kline_data.json\": \"H59N\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"fptA\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/market \\.json$\n// module id = fptA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe Market Depth Data\"},{\"type\":\"normal\",\"text\":\"Push limited file depth information every second.By default, there may be less than 20 levels for some small currencies, and 100 levels can be selected\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @depth E.g.BTC-USDT@depth, BTC-USDT@depth20, BTC-USDT@depth100\"},{\"type\":\"normal\",\"text\":\"Subscription example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\" {\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"dataType\\\":\\\"BTC-USDT@depth\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"Change in selling order depth\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"Changing Buying Depth\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/03_depth_info.json\n// module id = fsqo\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/market/index.js","var map = {\n\t\"./01_error_code.json\": \"+lFy\",\n\t\"./02_timestamp.json\": \"VQr5\",\n\t\"./03_digital_rule.json\": \"C2jk\",\n\t\"./04_rate_limits.json\": \"nG30\",\n\t\"./05_system_time.json\": \"zNUa\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"g+/I\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic \\.json$\n// module id = g+/I\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Signature\"},{\"type\":\"normal\",\"text\":\"A “sign” is generated by encrypting the http method, url path, request parameters, etc. concatenated by string based on HMAC SHA256.\",\"children\":[{\"type\":\"normal\",\"text\":\"”Path“ is the request path of URL, e.g. /api/v1/user/getBalance.\"},{\"type\":\"normal\",\"text\":\"The request \\\"method\\\" should be UPPER CASE, i.e. GET, POST, PUT and DELETE.\"},{\"type\":\"normal\",\"text\":\"All “parameters” (including timestamp) are sorted lexicographically as a specific string key1=value1 + key2=value2 ... + Secret Key. (“+” means connection between 2 strings).\"}]},{\"type\":\"html\",\"text\":\"originString = method + path + params sign = HmacSHA256(originString)\"},{\"type\":\"html\",\"text\":\"

    Example: “Sign” the following request

    \"},{\"type\":\"code\",\"text\":\"curl \\\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance\\\"\"},{\"type\":\"html\",\"text\":\"

    “getBalance” refers to Get user's Perpetual Swap Account Asset Information in terms of \\\"POST\\\" requests. Take

    \"},{\"type\":\"html\",\"text\":\"

    apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    secretKey=UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI

    \"},{\"type\":\"html\",\"text\":\"example\"},{\"type\":\"html\",\"text\":\"

    timestamp = 1615272721001
    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT

    \"},{\"type\":\"html\",\"text\":\"The parameters are as follows based on lexicographical sorting. \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1615272721001

    \"},{\"type\":\"html\",\"text\":\"mothod为POST,path为/api/v1/user/getBalance,accordingly a string to be signed is generated as :\"},{\"type\":\"code\",\"text\":\"paramString = 'apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"Further generate the string to be signed by algorithm as\"},{\"type\":\"code\",\"text\":\"originString = 'POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1615272721001' \"},{\"type\":\"html\",\"text\":\"Then, add the Secret Key to the string above to generate the final string. E.g:\"},{\"type\":\"html\",\"text\":\"

    Signature = HmacSHA256(secretkey, originString)
    Signature = Base64Encode(Signature)
    Signature = UrlEncode(Signature)
    即:
    Signature = HmacSHA256(\\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\", \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\")

    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"POST/api/v1/user/getBalanceapiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013\\\" | openssl dgst -sha256 -hmac \\\"UuGuyEGt6ZEkpUObCYCmIfh0elYsZVh80jlYwpJuRZEw70t6vomMH7Sjmf94ztSI\\\" -binary | base64 | xargs python2.7 -c 'import sys, urllib;print(urllib.quote(sys.argv[1]))' \"},{\"type\":\"html\",\"text\":\"The result of the “Sign” is xi0uYQFvJaMxd1bMVPb0PxSw2Rz46Q1olKzM6mzVu18%3D; the url query parameter should be as follows. \"},{\"type\":\"html\",\"text\":\"

    apiKey = Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU
    currency = USDT
    timestamp = 1616488398013
    sign = S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D

    \"},{\"type\":\"html\",\"text\":\"The final API request sent to the server should be: \"},{\"type\":\"code\",\"text\":\"https://api-swap-rest.bingbon.pro/api/v1/user/getBalance?apiKey=Zsm4DcrHBTewmVaElrdwA67PmivPv6VDK6JAkiECZ9QfcUnmn67qjCOgvRuZVOzU¤cy=USDT×tamp=1616488398013&sign=S7Ok3L5ROXSbYfXj9ryeBbKfRosh9tmH%2FAKiwj7eAoc%3D\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/authentication/04_sign_discription.json\n// module id = gBMP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"時間戳規範\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"除非另外指定,API中的所有時間戳均以毫秒為單位返回。\"},{\"type\":\"html\",\"text\":\"請求的時間戳必須在API服務時間的5秒內,否則請求将被视為過期併被拒絕。如果本地服務器時間和API服務器時間之間存在較大的偏差,那麼我们建議您使用通過查詢API服務器時間來更新http header。 \"}]},{\"type\":\"html\",\"text\":\"

    例子

    \"},{\"type\":\"code\",\"text\":\"1587091154123\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/02_timestamp.json\n// module id = gE9e\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"Note that obtaining such information requires websocket authentication, use listenKey, and check the Listen Key\"},{\"type\":\"normal\",\"text\":\"The websocket interface is wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"The stream name of the subscription account data stream is /swap-market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"listenKey expired push\"},{\"type\":\"normal\",\"text\":\"The user data stream will push this event when the valid listenKey used by the current connection expires.\"},{\"type\":\"normal\",\"text\":\"Notice:\",\"children\":[{\"type\":\"normal\",\"text\":\"This event is not necessarily related to the interruption of the websocket connection\"},{\"type\":\"normal\",\"text\":\"This message will only be received when the valid listenKey being connected has expired\"},{\"type\":\"normal\",\"text\":\"After receiving this message, the user data stream will not be updated until the user uses a new and valid listenKey\"}]},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"event type:listenKeyExpired\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"event time:1676964520421\"},{\"name\":\"listenKey\",\"type\":\"\",\"description\":\"invalid listenKey:53c1067059c5401e216ec0562f4e9741f49c3c18239a743653d844a50c4db6c0\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account/01_listenKey.json\n// module id = gOrG\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询深度信息\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/depth\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\",\"limit\":100}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默认20,最多100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"bids\",\"type\":\"array\",\"description\":\"第一个元素价格,第二个元素数量\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"第一个元素价格,第二个元素数量\"},{\"name\":\"ts\",\"type\":\"int\",\"description\":\"深度时间戳,单位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/market/03_get_market_depth.json\n// module id = gUOZ\n// module chunks = 3","var map = {\n\t\"./generate.js\": \"BxwQ\",\n\t\"./golang.js\": \"dsQw\",\n\t\"./html.js\": \"eXbW\",\n\t\"./java.js\": \"80Bj\",\n\t\"./nodejs.js\": \"y8sB\",\n\t\"./python.js\": \"yMq5\",\n\t\"./shell.js\": \"45yt\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"gVVV\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/utils/codeWs ^\\.\\/.*\\.js$\n// module id = gVVV\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"e3ud\",\n\t\"./02_post_closeAllPositions.json\": \"rac6\",\n\t\"./03_post_closeAllPositions.json\": \"ovOx\",\n\t\"./04_delete_trade_order.json\": \"+Jww\",\n\t\"./05_delete_trade_batch_order.json\": \"GLwn\",\n\t\"./06_delete_trade_all_order.json\": \"vl+M\",\n\t\"./07_get_all_openOrders.json\": \"mQAj\",\n\t\"./08_get_trade_order.json\": \"50QL\",\n\t\"./09_get_trade_marginType.json\": \"8FLz\",\n\t\"./10_post_trade_marginType.json\": \"Hwtn\",\n\t\"./11_get_trade_leverage.json\": \"Toje\",\n\t\"./12_post_trade_leverage.json\": \"XqXJ\",\n\t\"./13_get_trade_forceOrders.json\": \"GZ+E\",\n\t\"./14_get_trade_allOrders.json\": \"JRHj\",\n\t\"./15_post_trade_positionMargin.json\": \"y7gJ\",\n\t\"./16_post_trade_order_test.json\": \"EhS2\",\n\t\"./17_get_trade_allFillOrders.json\": \"GFCe\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"kyJY\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"gi0x\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade \\.json$\n// module id = gi0x\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/swapV2/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingXAPI. \"},{\"type\":\"normal\",\"text\":\"You can use our API to access market data, trading, and account management endpoints of Perpetual Swap. The market data API is publicly accessible and provides market data such as The Latest Trade of a Trading Pair. The account and trading APIs require authentication with an API Key which allows you to place and cancel orders and enquire order status and account info.\"},{\"type\":\"html\",\"text\":\"This page presents the USDT-M Perpetual Futures API documentation (V2), which is advised over the V1 version. For V1 version, please refer to USDT-M Perpetual Futures API Reference V1\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/1_introduce.json\n// module id = goAe\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query User Universal Transfer History (USER_DATA)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/asset/transfer\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"startTime\":1658748648396,\"endTime\":1658748648396,\"current\":1,\"size\":10,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"yes\",\"description\":\"transfer tpye\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Starting time1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"End Time 1658748648396\"},{\"name\":\"current\",\"type\":\"int\",\"required\":\"no\",\"description\":\"current page default1\"},{\"name\":\"size\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size default 10 can not exceed 100\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"Execution window time, cannot be greater than 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"yes\",\"description\":\"current timestamp e.g.1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"Funding Account->Standard Contract\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"Standard Contract->Funding Account\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"Funding Account->Perpetual Futures\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"Perpetual Futures->Funding Account\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"Standard Contract->Perpetual Futures\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"Perpetual Futures->Standard Contract\"},{\"name\":\"FUND_STRADING\",\"type\":\"\",\"description\":\"Funding Account -> Grid Account\"},{\"name\":\"STRADING_FUND\",\"type\":\"\",\"description\":\" Grid Account ->Funding Account\"},{\"name\":\"FUND_CTRADING\",\"type\":\"\",\"description\":\"Funding Account -> Copy Trade Account\"},{\"name\":\"SFUTURES_CTRADING\",\"type\":\"\",\"description\":\"Standard Contract -> Copy Trade Account\"},{\"name\":\"PFUTURES_CTRADING\",\"type\":\"\",\"description\":\"Perpetual Futures -> Copy Trade Account\"},{\"name\":\"CTRADING_FUND\",\"type\":\"\",\"description\":\"Copy Trade Account -> Funding Account\"},{\"name\":\"CTRADING_SFUTURES\",\"type\":\"\",\"description\":\"Copy Trade Account -> Standard Contract\"},{\"name\":\"CTRADING_PFUTURES\",\"type\":\"\",\"description\":\"Copy Trade Account -> Perpetual Futures\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"total\",\"type\":\"LONG\",\"description\":\"total\"},{\"name\":\"rows\",\"type\":\"Array\",\"description\":\"Array\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"coin name\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"coin amount\"},{\"name\":\"type\",\"type\":\"ENUM\",\"description\":\"transfer tpye\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"CONFIRMED\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"Transaction ID\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"description\":\"Transfer time stamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/02_get_asset_transfer2.json\n// module id = gp5h\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"kJLu\",\n\t\"./02_post_closeAllPositions.json\": \"nBfU\",\n\t\"./03_post_closeAllPositions.json\": \"uKtQ\",\n\t\"./04_delete_trade_order.json\": \"t6GP\",\n\t\"./05_delete_trade_batch_order.json\": \"A1ZI\",\n\t\"./06_delete_trade_all_order.json\": \"40ny\",\n\t\"./07_get_all_openOrders.json\": \"Z2yu\",\n\t\"./08_get_trade_order.json\": \"zUzZ\",\n\t\"./09_get_trade_marginType.json\": \"FEZH\",\n\t\"./10_post_trade_marginType.json\": \"W+/z\",\n\t\"./11_get_trade_leverage.json\": \"Latl\",\n\t\"./12_post_trade_leverage.json\": \"5ewk\",\n\t\"./13_get_trade_forceOrders.json\": \"HJU1\",\n\t\"./14_get_trade_allOrders.json\": \"xKz7\",\n\t\"./15_post_trade_positionMargin.json\": \"RvjO\",\n\t\"./16_post_trade_order_test.json\": \"WKtD\",\n\t\"./17_get_trade_allFillOrders.json\": \"o9VI\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"uTRy\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"gz1W\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade \\.json$\n// module id = gz1W\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Account Profit and Loss Fund Flow\"},{\"type\":\"normal\",\"text\":\"Query the capital flow of the perpetual contract under the current account.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/income\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • If neither startTime nor endTime is sent, only the data of the last 7 days will be returned.
  • \"},{\"type\":\"html\",\"text\":\"
  • If the incomeType is not sent, return all types of account profit and loss fund flow.
  • \"},{\"type\":\"html\",\"text\":\"
  • Only keep the last 3 months data.
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"incomeType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"incomeType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Income type, see remarks\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"start time\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"end time\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Number of result sets to return Default: 100 Maximum: 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"incomeType\",\"type\":\"string\",\"description\":\"money flow type\"},{\"name\":\"income\",\"type\":\"string\",\"description\":\"The amount of capital flow, positive numbers represent inflows, negative numbers represent outflows\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"asset content\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"Remarks, depending on the type of stream\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"time, unit: millisecond\"},{\"name\":\"tranId\",\"type\":\"string\",\"description\":\"transfer id\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"The original transaction ID that caused the transaction\"}]},{\"type\":\"incomeType\",\"key\":\"common\",\"data\":[{\"name\":\"TRANSFER\",\"type\":\"\",\"description\":\"Transfer\"},{\"name\":\"REALIZED_PNL\",\"type\":\"\",\"description\":\"realized profit and loss\"},{\"name\":\"FUNDING_FEE\",\"type\":\"\",\"description\":\"Funding Fee\"},{\"name\":\"TRADING_FEE\",\"type\":\"\",\"description\":\"Fee\"},{\"name\":\"INSURANCE_CLEAR\",\"type\":\"\",\"description\":\"Liquidation\"},{\"name\":\"TRIAL_FUND\",\"type\":\"\",\"description\":\"Trial Fund\"},{\"name\":\"ADL\",\"type\":\"\",\"description\":\"Automatic Deleveraging\"},{\"name\":\"SYSTEM_DEDUCTION\",\"type\":\"\",\"description\":\"System deduction\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account/03_get_user_income.json\n// module id = h0vl\n// module chunks = 3","var map = {\n\t\"./01_get_contract_allPosition.json\": \"IW/r\",\n\t\"./02_get_contract_allOrders.json\": \"y5ws\",\n\t\"./03_get_contract_balance.json\": \"smla\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"h5iU\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade \\.json$\n// module id = h5iU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量撤銷訂單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的部分訂單進行批量撤銷操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderIdList\":[0],\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderIdList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"係統訂單號, 最多支持10個訂單[1234567,2345678]\"},{\"name\":\"ClientOrderIDList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,限制字符長度1-40\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"撤銷成功的訂單列表\"},{\"name\":\"failed\",\"type\":\"結构數組\",\"description\":\"撤銷失敗的訂單列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"錯誤信息提示\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"訂單時間,單位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金額\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委託價格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委託數量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交價\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間,單位:毫秒\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/05_delete_trade_batch_order.json\n// module id = hIfT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量下单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"注意\",\"children\":[{\"type\":\"normal\",\"text\":\"限价单必须传price参数。\"},{\"type\":\"normal\",\"text\":\"限价单必须传quantity或quoteOrderQty其中一个,当两个参数同时传递时,服务端优先使用参数quantity。\"},{\"type\":\"normal\",\"text\":\"市价买单必须传quoteOrderQty参数。\"},{\"type\":\"normal\",\"text\":\"市价卖单必须传quantity参数。\"},{\"type\":\"normal\",\"text\":\"接口创建的订单在APP和Web页面不会显示。\"}]},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"type\":\"\",\"timeInForce\":0,\"quantity\":0,\"quoteOrderQty\":0,\"price\":0,\"recvWindow\":0}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"是\",\"description\":\"下单的request数组,限制5个订单\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易类型, BUY=买 SELL=卖\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"订单类型, MARKET=市价 LIMIT=限价\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"IOC=限价ioc单, 立即成交或撤销; POC=限价单, 只做maker\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下单数量, 例如: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下单金额, 例如: 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委托价格, 例如: 10000USDT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId,仅支持2个小时的查询范围\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求时间戳, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"array\",\"description\":\"单个下单的response数组\"}]},{\"type\":\"order\",\"key\":\"key2\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号,请注意精度溢出\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"交易时间戳,单位为毫秒\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下单数量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态, NEW=新订单 PENDING=委托中 PARTIALLY_FILLED=部分成交 FILLED=完全成交 CANCELED=已撤销 FAILED=失败\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型, MARKET=市价 LIMIT=限价\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易类型, BUY=买 SELL=卖\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade/07_post_trade_batchOrders.json\n// module id = hNbe\n// module chunks = 3","var map = {\n\t\"./01_get_account_apiRestrictions.json\": \"l5cf\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"hR1o\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/permission \\.json$\n// module id = hR1o\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Make Requests\"},{\"type\":\"normal\",\"text\":\"All private REST requests must contain the following parameters:\",\"children\":[{\"type\":\"normal\",\"text\":\"Pass the API Key with X-BX-APIKEY on the request header.\"},{\"type\":\"normal\",\"text\":\"The request parameter carries the signature obtained by using the signature algorithm.\"},{\"type\":\"normal\",\"text\":\"timestamp is the timestamp of your request, in milliseconds. When the server receives the request, it will judge the timestamp in the request. If it is sent before 5000 milliseconds, the request will be considered invalid. This time window value can be defined by sending the optional parameter recvWindow.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication/03_request_content.json\n// module id = hS6o\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询资产\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/account/balance\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求时间戳, 单位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"balances\",\"type\":\"Array\",\"description\":\"资产列表, 元素字段参考下表\"}]},{\"type\":\"balance\",\"key\":\"response1\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"资产名\"},{\"name\":\"free\",\"type\":\"string\",\"description\":\"可用资金\"},{\"name\":\"locked\",\"type\":\"string\",\"description\":\"冻结资金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade/06_get_account_balance.json\n// module id = hi8+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"修改杠杆\"},{\"type\":\"normal\",\"text\":\"调整合约多仓或空仓的杠杆倍数。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/setLeverage\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/setLeverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":\"\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"多仓或者空仓的杠杆,Long表示多仓,Short表示空仓\"},{\"name\":\"leverage\",\"type\":\"string\",\"required\":\"是\",\"description\":\"杠杆倍数\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/12_post_trade_leverage.json\n// module id = hkx8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Unsubscribe\"},{\"type\":\"normal\",\"text\":\"The format of unsubscription is as follows:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"unsub\\\", \\\"dataType\\\": \\\"data to unsub\\\"}\"},{\"type\":\"normal\",\"text\":\"Confirmation of Unsubscription:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"html\",\"text\":\"

    Symbol Description

    \"},{\"type\":\"warning\",\"text\":\"Symbol must be fully capitalized\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce/05_cancel_subscribe.json\n// module id = hlb8\n// module chunks = 3","var map = {\n\t\".\": \"kq5u\",\n\t\"./\": \"kq5u\",\n\t\"./01_connect\": \"itMl\",\n\t\"./01_connect.json\": \"itMl\",\n\t\"./02_data_compress\": \"yOH9\",\n\t\"./02_data_compress.json\": \"yOH9\",\n\t\"./03_heart_beat\": \"hrCt\",\n\t\"./03_heart_beat.json\": \"hrCt\",\n\t\"./04_subscribe\": \"jYwr\",\n\t\"./04_subscribe.json\": \"jYwr\",\n\t\"./05_cancel_subscribe\": \"cspZ\",\n\t\"./05_cancel_subscribe.json\": \"cspZ\",\n\t\"./index\": \"kq5u\",\n\t\"./index.js\": \"kq5u\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"hpFp\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce ^.*$\n// module id = hpFp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"心跳信息\"},{\"type\":\"normal\",\"text\":\"當用戶的Websocket客戶端連接到Bingx Websocket服務器後,服務器會定期(當前設為5秒)向其發送心跳字符串Ping\"},{\"type\":\"code\",\"text\":\" {\\\"ping\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"},{\"type\":\"normal\",\"text\":\"當用戶的Websocket客戶端接收到此心跳消息後,應返回字符串Pong消息\"},{\"type\":\"code\",\"text\":\"{\\\"pong\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/03_heart_beat.json\n// module id = hrCt\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"wa9k\",\n\t\"./02_data_compress.json\": \"vuQY\",\n\t\"./03_heart_beat.json\": \"il07\",\n\t\"./04_subscribe.json\": \"n8XW\",\n\t\"./05_cancel_subscribe.json\": \"7k03\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"hrXE\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce \\.json$\n// module id = hrXE\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < 4; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/swapV2/api/basic/index_share_to_v1.js","module.exports = [{\"type\":\"hash\",\"text\":\"簽名說明\"},{\"type\":\"html\",\"text\":\"signature 請求參數使用HMAC SHA256方法加密而得到的。\"},{\"type\":\"html\",\"text\":\"例如:對於調整幣種槓桿請求參數進行簽名\"},{\"type\":\"html\",\"text\":\"
  • 接口參數
  • \"},{\"type\":\"html\",\"text\":\"

    symbol=BTC-USDT
    timestamp=1667872120843
    side=LONG
    leverage=6

    \"},{\"type\":\"html\",\"text\":\"
  • api信息
  • \"},{\"type\":\"html\",\"text\":\"

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    \"},{\"type\":\"html\",\"text\":\"
  • 參數通過query string發送示例
  • \"},{\"type\":\"html\",\"text\":\"1. 對接口參數進行拼接: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6

    2. 對拼接好的參數字符串使用secretKey生成簽名: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 發送請求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'\"},{\"type\":\"html\",\"text\":\"
  • 參數通過request body發送示例
  • \"},{\"type\":\"html\",\"text\":\"1. 對接口參數進行拼接: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6
    2. 對拼接好的參數字符串使用secretKey生成簽名: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 發送請求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage' -d 'symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf' \"},{\"type\":\"html\",\"text\":\"
  • 參數通過query string和request body發送示例
  • \"},{\"type\":\"html\",\"text\":\"queryString: symbol=BTC-USDT×tamp=1668159715051
    requestBody: side=LONG&leverage=6 \"},{\"type\":\"html\",\"text\":\"1. 對接口參數進行拼接: symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6
    2. 對拼接好的參數字符串使用secretKey生成簽名: 8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex\"},{\"type\":\"html\",\"text\":\"3. 發送請求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1668159715051&signature=8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d' -d 'side=LONG&leverage=6' \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication/04_sign_discription.json\n// module id = huDF\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Adjust isolated margin\"},{\"type\":\"normal\",\"text\":\"Adjust the isolated margin funds for the positions in the isolated position mode.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/swap/v2/trade/positionMargin\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"amount\":0,\"type\":0,\"positionSide\":\"\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"margin funds\"},{\"name\":\"type\",\"type\":\"int\",\"required\":\"yes\",\"description\":\"adjustment direction 1: increase isolated margin, 2: decrease isolated margin\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, and only LONG or SHORT can be selected, the default is LONG\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"amount\",\"type\":\"float64\",\"description\":\"margin funds\"},{\"name\":\"type\",\"type\":\"int\",\"description\":\"adjustment direction 1: increase isolated margin, 2: decrease isolated margin\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/15_post_trade_positionMargin.json\n// module id = i3k4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢係統時間\"},{\"type\":\"html\",\"text\":\"

    HTTP請求

    \"},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/server/time\"},{\"type\":\"html\",\"text\":\"

    參數: 無

    \"},{\"type\":\"html\",\"text\":\"
  • code - int64 - 錯誤碼,0表示成功,不為0表示異常失敗
  • \"},{\"type\":\"html\",\"text\":\"
  • msg - string - 錯誤信息提示
  • \"},{\"type\":\"html\",\"text\":\"
  • serverTime - int64 - 係統當前時間,單位毫秒
  • \"},{\"type\":\"code\",\"text\":\"{\\\"code\\\": 0,\\\"msg\\\": \\\"\\\",\\\"data\\\": {\\\"serverTime\\\": 1675319535362}}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/05_system_time.json\n// module id = i6gS\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶內部轉賬\"},{\"type\":\"normal\",\"text\":\"用戶在bingx平台內互相轉賬\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/wallets/v1/capital/innerTransfer/apply\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"userAccountType\":3,\"userAccount\":\"bran***@**.com\",\"amount\":10,\"walletType\":1,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"userAccountType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"用戶賬號類型 1=uid 2=手機號 3=郵箱\"},{\"name\":\"userAccount\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用戶賬戶: uid、電話、郵箱\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"轉賬數額\"},{\"name\":\"callingCode\",\"type\":\"string\",\"required\":\"否\",\"description\":\"電話區號\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"賬戶類型,1 資金賬戶;2 標合賬戶;3 永續賬戶\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"提幣記錄唯一標識,該字段在提幣走內轉不返回\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/07_post_capital_innerTransfer_apply.json\n// module id = iYO+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Heartbeats\"},{\"type\":\"normal\",\"text\":\"Once the Websocket Client and Websocket Server get connected, the server will send a heartbeat- Ping message every 5 seconds (the frequency might change).\"},{\"type\":\"normal\",\"text\":\"When the Websocket Client receives this heartbeat message, it should return Pong message.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/03_heart_beat.json\n// module id = il07\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"接入方式\"},{\"type\":\"normal\",\"text\":\"行情Websocket的接入URL:wss://open-api-ws.bingx.com/market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/01_connect.json\n// module id = itMl\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"User's History Orders\"},{\"type\":\"normal\",\"text\":\"Query the user's historical orders (order status is completed or canceled).\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/allOrders\"},{\"type\":\"html\",\"text\":\"
  • The maximum query time range shall not exceed 7 days
  • \"},{\"type\":\"html\",\"text\":\"
  • Query data within the last 7 days by default
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Only return this orderID and subsequent orders, and return the latest order by default\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: millisecond\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: millisecond\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"yes\",\"description\":\"number of result sets to return Default: 500 Maximum: 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/14_get_trade_allOrders.json\n// module id = iu9b\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Switch Leverage\"},{\"type\":\"normal\",\"text\":\"Adjust the user's opening leverage in the specified symbol contract.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Leverage for long or short positions, LONG for long positions, SHORT for short positions\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"leverage\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"leverage\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"leverage\",\"type\":\"int64\",\"description\":\"leverage\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/12_post_trade_leverage.json\n// module id = j3Xb\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Swap Open Positions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/openInterest\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/openInterest\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"openInterest\",\"type\":\"string\",\"description\":\"Position Amount\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"contract name\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"matching engine time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/08_get_quote_openInterest.json\n// module id = j4uq\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询订单\"},{\"type\":\"normal\",\"text\":\"查询订单详情\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\" GET /openApi/swap/v2/trade/order\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"订单号\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]},{\"type\":\"status\",\"key\":\"key1\",\"data\":[{\"name\":\"NEW\",\"type\":\"\",\"required\":\"\",\"description\":\"新建订单\"},{\"name\":\"PARTIALLY_FILLED\",\"type\":\"\",\"required\":\"\",\"description\":\"部分成交\"},{\"name\":\"FILLED\",\"type\":\"\",\"required\":\"\",\"description\":\"全部成交\"},{\"name\":\"CANCELED\",\"type\":\"\",\"required\":\"\",\"description\":\"已撤销\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/08_get_trade_order.json\n// module id = j4v/\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"One-Click Close All Positions\"},{\"type\":\"normal\",\"text\":\"One-click liquidation of all positions under the current account. Note that one-click liquidation is triggered by a market order. \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/closeAllPositions\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"Multiple order numbers generated by all one-click liquidation\"},{\"name\":\"failed\",\"type\":\"array\",\"description\":\"the order number of the failed position closing\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/03_post_closeAllPositions.json\n// module id = jBL/\n// module chunks = 3","var map = {\n\t\".\": \"OKNr\",\n\t\"./\": \"OKNr\",\n\t\"./01_error_code\": \"JIJP\",\n\t\"./01_error_code.json\": \"JIJP\",\n\t\"./02_timestamp\": \"4KP5\",\n\t\"./02_timestamp.json\": \"4KP5\",\n\t\"./03_digital_rule\": \"mcJU\",\n\t\"./03_digital_rule.json\": \"mcJU\",\n\t\"./04_rate_limits\": \"8Dwn\",\n\t\"./04_rate_limits.json\": \"8Dwn\",\n\t\"./05_system_time\": \"CtfW\",\n\t\"./05_system_time.json\": \"CtfW\",\n\t\"./index\": \"OKNr\",\n\t\"./index.js\": \"OKNr\",\n\t\"./index_share_to_v1\": \"pPs/\",\n\t\"./index_share_to_v1.js\": \"pPs/\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"jDgW\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/basic ^.*$\n// module id = jDgW\n// module chunks = 3","var map = {\n\t\".\": \"Q3ZN\",\n\t\"./\": \"Q3ZN\",\n\t\"./01_dept_info\": \"VbHA\",\n\t\"./01_dept_info.json\": \"VbHA\",\n\t\"./02_latest_records\": \"4L7x\",\n\t\"./02_latest_records.json\": \"4L7x\",\n\t\"./03_kline_data\": \"zKQU\",\n\t\"./03_kline_data.json\": \"zKQU\",\n\t\"./index\": \"Q3ZN\",\n\t\"./index.js\": \"Q3ZN\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"jPjn\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market ^.*$\n// module id = jPjn\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-06-03\"},{\"type\":\"normal\",\"text\":\"新版本API文檔網站發佈\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"新版本UI和交互\"},{\"type\":\"normal\",\"text\":\"demo代碼自動生成器,代碼一鍵複製\"},{\"type\":\"normal\",\"text\":\"接口參數表格和JSON之間快速轉換,代碼一鍵全複製,減輕開發者複製API參數的麻煩\"},{\"type\":\"normal\",\"text\":\"新增全文模糊檢索功能\"},{\"type\":\"normal\",\"text\":\"新增郵件訂閱功能,以後有API版本更新會通過郵件通知開發者\"},{\"type\":\"normal\",\"text\":\"新增問題反饋功能,開發者發現API問題可通過本站點直接反饋到BingX team\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-06-03.json\n// module id = jVl+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱方式\"},{\"type\":\"normal\",\"text\":\"成功建立與Websocket服務器的連接後,Websocket客戶端發送如下請求以訂閱特定主題 \"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"data to sub\\\" }\"},{\"type\":\"html\",\"text\":\"
  • id是用戶傳入的唯一id,返回時将返回,用於用戶區分幂等性校驗
  • \"},{\"type\":\"normal\",\"text\":\"成功訂閱後,Websocket客戶端将收到確認:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"normal\",\"text\":\"之後, 一旦所訂閱的數據有更新,Websocket客戶端将收到服務器推送的更新消息\"},{\"type\":\"html\",\"text\":\"
  • code錯誤碼說明
  • \"},{\"type\":\"html\",\"text\":\"

    0:\\\"SUCCESS\\\"
    /**
    * 100xxx為通用狀態碼.
    */
    // 服務器搜索無數據
    100204:\\\"SEARCH_NO_CONTENT\\\"

    // 重複請求
    100205:\\\"REPEAT_REQUEST\\\"

    // 客戶端請求參數錯誤
    100400:\\\"ILLEGAL_ARGUMENT\\\"

    // 客戶端認證失敗
    100401:\\\"AUTHENTICATION_FAIL\\\"

    // 客戶端權限校驗失敗
    100403:\\\"AUTHORIZATION_FAIL\\\"

    // 客戶端請求頻率限制
    100410:\\\"FREQUENCY_LIMIT\\\"

    // 服務器錯誤
    100500:\\\"INTERNAL_SERVER_ERROR\\\"

    // 服務器繁忙
    100503:\\\"SERVER_BUSY\\\"

    \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/04_subscribe.json\n// module id = jYwr\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscription transaction by transaction\"},{\"type\":\"normal\",\"text\":\"Subscribe to the trade detail data of a trading pair\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @trade E.g. BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"Subscription example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The data type of the subscription, for example: BTC-USDT@trade\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"trade\",\"description\":\"Event Type\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"event time\"},{\"name\":\"s\",\"type\":\"BTC-USDT\",\"description\":\"trading pair\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"Transaction ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"transaction price\"},{\"name\":\"q\",\"type\":\"0.007146\",\"description\":\"Executed quantity\"},{\"name\":\"T\",\"type\":\"1649832413512\",\"description\":\"transaction time\"},{\"name\":\"m\",\"type\":\"true\",\"description\":\"Whether the buyer is a market maker. If true, this transaction is an active sell order, otherwise it is an active buy order.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/01_trade_info.json\n// module id = jcbY\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"註意需要獲取此類信息需要 websocket 鑒權,使用 listenKey,詳細方式查看
    Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"訂閱賬戶數據流的stream名稱為 /swap-market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"listenKey過期推送\"},{\"type\":\"normal\",\"text\":\"當前連接使用的有效listenKey過期時,user data stream 将會推送此事件。\"},{\"type\":\"normal\",\"text\":\"註意\",\"children\":[{\"type\":\"normal\",\"text\":\"此事件與websocket連接中斷沒有必然聯係\"},{\"type\":\"normal\",\"text\":\"只有正在連接中的有效listenKey過期時才會收到此消息\"},{\"type\":\"normal\",\"text\":\"收到此消息後user data stream将不再更新,直到用戶使用新的有效的listenKey\"}]},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型:listenKeyExpired\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間:1676964520421\"},{\"name\":\"listenKey\",\"type\":\"\",\"description\":\"失效的listenKey:53c1067059c5401e216ec0562f4e9741f49c3c18239a743653d844a50c4db6c0\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account/01_listenKey.json\n// module id = jg15\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query all current pending orders\"},{\"type\":\"normal\",\"text\":\"Query all orders that the user is currently entrusted with.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/trade/openOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"GET /openApi/swap/v2/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"}]},{\"type\":\"status\",\"key\":\"key1\",\"data\":[{\"name\":\"NEW\",\"type\":\"\",\"required\":\"\",\"description\":\"New Order\"},{\"name\":\"PARTIALLY_FILLED\",\"type\":\"\",\"required\":\"\",\"description\":\"Partial filled\"},{\"name\":\"FILLED\",\"type\":\"\",\"required\":\"\",\"description\":\"all filled\"},{\"name\":\"CANCELED\",\"type\":\"\",\"required\":\"\",\"description\":\"canceled\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/07_get_all_openOrders.json\n// module id = jxdV\n// module chunks = 3","var map = {\n\t\"./01_get_quote_contracts.json\": \"nyHW\",\n\t\"./02_get_quote_price.json\": \"kQ2M\",\n\t\"./03_get_quote_depth.json\": \"YP5V\",\n\t\"./04_get_quote_ trades.json\": \"0TqQ\",\n\t\"./05_get_quote_ premiumIndex.json\": \"+92Z\",\n\t\"./06_get_quote_ fundingRate.json\": \"xDG3\",\n\t\"./07_get_quote_ klines.json\": \"bDbK\",\n\t\"./08_get_quote_ klines_history.json\": \"keYE\",\n\t\"./09_get_quote_ ticker.json\": \"VOPx\",\n\t\"./10_get_quote_openInterest.json\": \"baSA\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"kD9t\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market \\.json$\n// module id = kD9t\n// module chunks = 3","const cURL = `\n# apt install openssl\n# apt install curl\nAPI_KEY=\"\"\nAPI_SECRET=\"\"\nTIMESTAMP=$((^date '+%s'^*1000+^date '+%N'^/1000000))\nPARAMETERS=\"PPAARRAAMMEETTEERRSS\"\nHOST=\"HHOOSSTT\"\nPROTOCOL=\"PPRROOTTOOCCOOLL\"\nMETHOD=\"MMEETTHHOODD\"\nAPI=\"AAPPII\"\n\necho \"API_KEY:\"$API_KEY\necho \"API_SECRET:\"$API_SECRET\necho \"PARAMETERS:\"$PARAMETERS\nPARAMETERS=\"$PARAMETERS×tamp=$TIMESTAMP\"\n\nsign=^echo -n $PARAMETERS | openssl dgst -sha256 -hmac $API_SECRET -hex^\nsign=$\\{sign##* \\}\necho \"sign:\"$sign\nCURL=\"curl --location --request $METHOD --header 'X-BX-APIKEY: $API_KEY' '$PROTOCOL://$HOST$API?$PARAMETERS&signature=$sign'\"\necho \"\"\necho $CURL\necho \"\"\ncurl --location --request $METHOD --header \"X-BX-APIKEY: $API_KEY\" \"$PROTOCOL://$HOST$API?$PARAMETERS&signature=$sign\"\necho \"\"\necho \"\"\n`\nexport default cURL\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/shell.js","module.exports = [{\"type\":\"hash\",\"text\":\"交易下單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/trade\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\",\"side\":\"\",\"entrustPrice\":0,\"entrustVolume\":0,\"tradeType\":\"\",\"action\":\"\",\"takerProfitPrice\":0,\"stopLossPrice\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"(Bid/Ask 買/賣)\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"數量\"},{\"name\":\"tradeType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Market/Limit 市價/限價\"},{\"name\":\"action\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Open/Close 開倉/平倉\"},{\"name\":\"takerProfitPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止盈價格\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止損價格\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/01_post_trade_order.json\n// module id = kJLu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約最新價格\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestPrice\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestPrice\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tradePrice\",\"type\":\"float64\",\"description\":\"成交價格\"},{\"name\":\"indexPrice\",\"type\":\"float64\",\"description\":\"指數價格\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"標記價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/02_get_quote_price.json\n// module id = kQ2M\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询合约基础信息\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/contracts\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"contractId\",\"type\":\"string\",\"description\":\"合约ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"size\",\"type\":\"string\",\"description\":\"合约大小,例如0.0001 BTC\"},{\"name\":\"quantityPrecision\",\"type\":\"int\",\"description\":\"交易数量精度\"},{\"name\":\"pricePrecision\",\"type\":\"int\",\"description\":\"价格精度\"},{\"name\":\"feeRate\",\"type\":\"float64\",\"description\":\"交易手续费\"},{\"name\":\"tradeMinLimit\",\"type\":\"int\",\"description\":\"交易最小单位,单位为张\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"结算和保证金货币资产\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"合约交易资产\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0下线, 1上线\"},{\"name\":\"maxLongLeverage\",\"type\":\"int\",\"description\":\"多头交易的最大杠杆倍数\"},{\"name\":\"maxShortLeverage\",\"type\":\"int\",\"description\":\"空头交易的最大杠杆倍数\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/01_get_quote_contracts.json\n// module id = kQGv\n// module chunks = 3","var map = {\n\t\"./01_get_asset_transfer.json\": \"bSWG\",\n\t\"./02_get_asset_transfer2.json\": \"gp5h\",\n\t\"./03_get_deposit_hisrec.json\": \"OW9C\",\n\t\"./04_get_withdraw_history.json\": \"VVr3\",\n\t\"./05_post_wallets_coins.json\": \"Bxps\",\n\t\"./06_post_wallets_withdraw.json\": \"puhI\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"KPNz\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"kTL7\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account \\.json$\n// module id = kTL7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量撤销订单\"},{\"type\":\"normal\",\"text\":\"将当前账户处于当前委托状态的部分订单进行批量撤销操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderIdList\":[0],\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderIdList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"系统订单号, 最多支持10个订单[1234567,2345678]\"},{\"name\":\"ClientOrderIDList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"用户自定义订单ID,最多支持10个订单[1234567,2345678]\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"撤销成功的订单列表\"},{\"name\":\"failed\",\"type\":\"结构数组\",\"description\":\"撤销失败的订单列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"错误信息提示\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/05_delete_trade_batch_order.json\n// module id = kYAZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢K線歷史數據\"},{\"type\":\"normal\",\"text\":\"查詢一段時間週期內成交價格的K線歷史數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getHistoryKlines\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getHistoryKlines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k線類型,參考字段說明,如分鐘,小時,週等\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"起始時間戳,單位毫秒\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"結束時間戳,單位毫秒\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1m一分鐘K線\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3m三分鐘K線\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"5m五分鐘K線\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15m十五分鐘K線\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30m三十分鐘K線\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1h一小時K線\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2h两小時K線\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4h四小時K線\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6h六小時K線\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12h十二小時K線\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1D日K線\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W週K線\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1M月K線\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"Array\",\"description\":\"K線數據\"},{\"name\":\"open\",\"type\":\"float64\",\"description\":\"開盤價\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盤價\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高價\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低價\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易數量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"k線時間戳,單位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/08_get_quote_ klines_history.json\n// module id = keYE\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Service Application\"},{\"type\":\"normal\",\"text\":\"The API is currently in internal testing, and the application page will be opened soon, please be patient. If you have other needs, please contact customer service.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic/02_server_apply.json\n// module id = kiBh\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"K線 Streams\"},{\"type\":\"normal\",\"text\":\"K線stream逐秒推送所請求的K線種類(最新一根K線)的更新。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @kline_,比如BTC-USDT@kline_1min\"},{\"type\":\"normal\",\"text\":\"訂閱举例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 目前僅提供一分鐘的k線數據
  • \"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱,合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"參考字段說明,K線類型,1min, 5min, 15min, 30min, 60min, 1day\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@kline_1min\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"K\",\"type\":\"\",\"description\":\"數據\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"}]},{\"type\":\"K\",\"key\":\"key2\",\"data\":[{\"name\":\"T\",\"type\":\"\",\"description\":\"這根K線的結束時間\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"這根K線期間末一筆成交價\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"這根K線期間最高成交價\"},{\"name\":\"i\",\"type\":\"\",\"description\":\"K線間隔\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"這根K線期間最低成交價\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"這根K線期間成交筆數\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"這根K線期間第一筆成交價\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"這根K線期間成交額\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"},{\"name\":\"t\",\"type\":\"\",\"description\":\"這根K線的起始時間\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"這根K線期間成交量\"}]},{\"type\":\"klineType\",\"key\":\"common\",\"data\":[{\"name\":\"1min\",\"description\":\"1min一分鐘K線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/02_kline_data.json\n// module id = klxE\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/spot/websocket/introduce/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"數據壓縮\"},{\"type\":\"normal\",\"text\":\"WebSocket 行情接口返回的所有數據都進行了 GZIP 壓縮,需要 client 在收到數據之後解壓。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce/02_data_compress.json\n// module id = ku8a\n// module chunks = 3","var map = {\n\t\"./01_get_common_symbols.json\": \"o8W7\",\n\t\"./02_get_ market_traders.json\": \"SDL0\",\n\t\"./03_get_market_depth.json\": \"2qJV\",\n\t\"./04_get_market_klines.json\": \"/lsz\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"kxYJ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market \\.json$\n// module id = kxYJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query History Stop Orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/historyStopOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/historyStopOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"symbol\":\"\",\"lastOrderId\":0,\"length\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"contract name\"},{\"name\":\"lastOrderId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Used for paging, fill in 0 for the first time; for subsequent requests, fill in the last order id from the previous return results.\"},{\"name\":\"length\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Length per request, max 100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"userId\",\"type\":\"string\",\"description\":\"User ID\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"contract name\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"description\":\"Stop Loss Price\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"description\":\"Take Profit Price\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"Order Amount\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Direction (Bid/Ask)\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"Entrust time of order\"},{\"name\":\"triggerTm\",\"type\":\"string\",\"description\":\"Trigger Time of Order\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/18_get_trade_allFillOrders_history.json\n// module id = kyJY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢用戶API Key權限\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/v1/account/apiRestrictions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiRestrictions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"ipRestrict\",\"type\":\"Boolean\",\"description\":\"是否限制ip訪問\"},{\"name\":\"createTime\",\"type\":\"Long\",\"description\":\"創建時間\"},{\"name\":\"permitsUniversalTransfer\",\"type\":\"Boolean\",\"description\":\"授權該密鑰可用於专用的万向劃轉接口\"},{\"name\":\"enableReading\",\"type\":\"Boolean\",\"description\":\"是否能讀取\"},{\"name\":\"enableFutures\",\"type\":\"Boolean\",\"description\":\"合約交易權限\"},{\"name\":\"enableSpotAndMarginTrading\",\"type\":\"Boolean\",\"description\":\"現货權限\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/permission/01_get_account_apiRestrictions.json\n// module id = l5cf\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Candlestick chart data\"},{\"type\":\"normal\",\"text\":\"Check the candlestick chart data of the filled price\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/kline\"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are not provided, the latest candlestick chart data will be returned by default.
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are provided, the latest candlestick chart data up to endTime will be returned by default.
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime is provided and endTime is not provided, the latest candlestick chart data starting from startTime will be returned by default.
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime is not provided and endTime is provided, the latest candlestick chart data up to endTime will be returned by default.
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters.\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Time interval, refer to field description\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Start time, unit: milliseconds\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"End time, unit: milliseconds\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Default value: 500 Maximum value: 1440\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"array\",\"description\":\"Candlestick chart array\"}]},{\"type\":\"The order of the elements in the candlestick chart array [subscript]\",\"key\":\"key5\",\"data\":[{\"name\":\"0\",\"type\":\"\",\"description\":\"Candlestick chart open time\"},{\"name\":\"1\",\"type\":\"\",\"description\":\"Open price\"},{\"name\":\"2\",\"type\":\"\",\"description\":\"Max. price\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"Min. price\"},{\"name\":\"4\",\"type\":\"\",\"description\":\"Close price\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"Filled price\"},{\"name\":\"6\",\"type\":\"\",\"description\":\"Candlestick chart close time\"},{\"name\":\"7\",\"type\":\"\",\"description\":\"Volume\"}]},{\"type\":\"interval\",\"key\":\"key12\",\"data\":[{\"name\":\"1m\",\"description\":\"1-minute candlestick chart\"},{\"name\":\"3m\",\"description\":\"3-minute candlestick chart\"},{\"name\":\"5m\",\"description\":\"5-minute candlestick chart\"},{\"name\":\"15m\",\"description\":\"15-minute candlestick chart\"},{\"name\":\"30m\",\"description\":\"30-minute candlestick chart\"},{\"name\":\"1h\",\"description\":\"1-hour candlestick chart\"},{\"name\":\"2h\",\"description\":\"2-hour candlestick chart\"},{\"name\":\"4h\",\"description\":\"4-hour candlestick chart\"},{\"name\":\"6h\",\"description\":\"6-hour candlestick chart\"},{\"name\":\"8h\",\"description\":\"8-hour candlestick chart\"},{\"name\":\"12h\",\"description\":\"12-hour candlestick chart\"},{\"name\":\"1d\",\"description\":\"1-day candlestick chart\"},{\"name\":\"3d\",\"description\":\"3-day candlestick chart\"},{\"name\":\"1w\",\"description\":\"Weekly candlestick chart\"},{\"name\":\"1M\",\"description\":\"Monthly candlestick chart\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/04_get_market_klines.json\n// module id = l6fp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Trade order test\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/order/test\"},{\"type\":\"warning\",\"text\":\"The participation and return are consistent with the ordering interface, but the actual order will not be placed, only the test results will be returned.The result is a fake order, and your funds will not be deducted. It will not appear on the real transaction panel and is only used to help you practice using the order interface\"},{\"type\":\"warning\",\"text\":\"Depending on the order type, certain parameters are mandatory:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: Mandatory Parameters: quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: Mandatory Parameters: quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: Mandatory Parameters: quantity、stopPrice、price
  • \"},{\"type\":\"html\",\"text\":\"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: Mandatory Parameters: quantity、stopPrice
  • \"},{\"type\":\"warning\",\"text\":\"The triggering of the conditional order must:\"},{\"type\":\"html\",\"text\":\"

    STOP/STOP_MARKET stop loss order:

    \"},{\"type\":\"html\",\"text\":\"
  • The accumulative quantity of the pending stop loss orders cannot be greater than the quantity of open positions
  • \"},{\"type\":\"html\",\"text\":\"
  • Buy: the mark price is higher than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • Sell: the mark price is lower than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    TAKE_PROFIT/TAKE_PROFIT_MARKET take profit order:

    \"},{\"type\":\"html\",\"text\":\"
  • The accumulative quantity of the pending take profit order cannot be greater than the position quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • Buy: the mark price is lower than or equal to the trigger price stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • Sell: the mark price is higher than or equal to the trigger price stopPrice
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order/test\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"type\":\"\",\"side\":\"\",\"positionSide\":\"\",\"price\":0,\"quantity\":0,\"stopPrice\":0,\"recvWindow\":0,\"timeInForce\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"order type LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, and only LONG or SHORT can be selected, the default is LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN not U$: quantity=U$/price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only required for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in Force, currently supports PostOnly, GTC, IOC, and FOK\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/16_post_trade_order_test.json\n// module id = l8OL\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"有限档深度信息\"},{\"type\":\"normal\",\"text\":\"每秒推送有限档深度信息。\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @depth,比如BTC-USDT@depth5, BTC-USDT@depth20, BTC-USDT@depth100\"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"level\",\"type\":\"string\",\"required\":\"是\",\"description\":\"档数, 如 5,10,20,50,100\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"卖方深度\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"买方深度\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price价格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume数量\"}]},{\"type\":\"level\",\"key\":\"common\",\"data\":[{\"name\":\"5\",\"type\":\"\",\"description\":\"5档\"},{\"name\":\"10\",\"type\":\"\",\"description\":\"10档\"},{\"name\":\"20\",\"type\":\"\",\"description\":\"20档\"},{\"name\":\"50\",\"type\":\"\",\"description\":\"50档\"},{\"name\":\"100\",\"type\":\"\",\"description\":\"100档\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/market/01_dept_info.json\n// module id = lI21\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"延長 Listen Key 有效期\"},{\"type\":\"normal\",\"text\":\"有效期延長至本次調用後60分鐘,建議每30分鐘發送一個 ping 。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"PUT /openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl -i -X PUT 'https://open-api.bingx.com/openApi/user/auth/userDataStream?listenKey=d84d39fe78762b39e202ba204bf3f7ebed43bbe7a481299779cb53479ea9677d'\"},{\"type\":\"normal\",\"text\":\"響應\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • http status 200 成功
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 204 沒有請求參數
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 404 沒有這個listenKey
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"PUT\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"listenKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"返回的listenKey\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/listenKey/02_put_listenKey.json\n// module id = lKnG\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"刪除子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"刪除子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/del\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/del\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/08_delete_sub_account_key.json\n// module id = lRf0\n// module chunks = 3","var map = {\n\t\".\": \"yr2O\",\n\t\"./\": \"yr2O\",\n\t\"./01_server_url\": \"wpxO\",\n\t\"./01_server_url.json\": \"wpxO\",\n\t\"./02_server_apply\": \"zCSH\",\n\t\"./02_server_apply.json\": \"zCSH\",\n\t\"./03_error_code\": \"Q+zo\",\n\t\"./03_error_code.json\": \"Q+zo\",\n\t\"./index\": \"yr2O\",\n\t\"./index.js\": \"yr2O\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"lYwG\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/basic ^.*$\n// module id = lYwG\n// module chunks = 3","var map = {\n\t\"./01_server_url.json\": \"wWlE\",\n\t\"./02_server_apply.json\": \"kiBh\",\n\t\"./03_error_code.json\": \"/sx7\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"lmzL\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic \\.json$\n// module id = lmzL\n// module chunks = 3","var map = {\n\t\".\": \"vfcf\",\n\t\"./\": \"vfcf\",\n\t\"./01_get_asset_transfer\": \"6y27\",\n\t\"./01_get_asset_transfer.json\": \"6y27\",\n\t\"./02_get_asset_transfer2\": \"TDIc\",\n\t\"./02_get_asset_transfer2.json\": \"TDIc\",\n\t\"./03_get_deposit_hisrec\": \"YAvn\",\n\t\"./03_get_deposit_hisrec.json\": \"YAvn\",\n\t\"./04_get_withdraw_history\": \"WNKq\",\n\t\"./04_get_withdraw_history.json\": \"WNKq\",\n\t\"./05_post_wallets_coins\": \"7r0K\",\n\t\"./05_post_wallets_coins.json\": \"7r0K\",\n\t\"./06_post_wallets_withdraw\": \"T4Os\",\n\t\"./06_post_wallets_withdraw.json\": \"T4Os\",\n\t\"./07_post_capital_innerTransfer_apply\": \"+HuI\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"+HuI\",\n\t\"./index\": \"vfcf\",\n\t\"./index.js\": \"vfcf\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"loNz\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/account ^.*$\n// module id = loNz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約基礎信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/contracts\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"contractId\",\"type\":\"string\",\"description\":\"合約ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"size\",\"type\":\"string\",\"description\":\"合約大小,例如0.0001 BTC\"},{\"name\":\"quantityPrecision\",\"type\":\"int\",\"description\":\"交易數量精度\"},{\"name\":\"pricePrecision\",\"type\":\"int\",\"description\":\"價格精度\"},{\"name\":\"feeRate\",\"type\":\"float64\",\"description\":\"交易手續費\"},{\"name\":\"tradeMinLimit\",\"type\":\"int\",\"description\":\"交易最小單位,單位為張\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"結算和保證金货幣資產\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"合約交易資產\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0下線, 1上線\"},{\"name\":\"maxLongLeverage\",\"type\":\"int\",\"description\":\"多頭交易的最大槓桿倍數\"},{\"name\":\"maxShortLeverage\",\"type\":\"int\",\"description\":\"空頭交易的最大槓桿倍數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/01_get_quote_contracts.json\n// module id = lrAs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Batch Placing Orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"Notes\",\"children\":[{\"type\":\"normal\",\"text\":\"For a limit order, the \\\"price\\\" parameter must be included.\"},{\"type\":\"normal\",\"text\":\"For a limit order, either \\\"quantity\\\" or \\\"quoteOrderQty\\\" must be included. If both parameters are provided, the server will prioritize the \\\"quantity\\\" parameter.\"},{\"type\":\"normal\",\"text\":\"For a market buy order, the \\\"quoteOrderQty\\\" parameter must be included.\"},{\"type\":\"normal\",\"text\":\"For a market sell order, the \\\"quantity\\\" parameter must be included.\"},{\"type\":\"normal\",\"text\":\"Orders created through the interface will not be displayed on the app and web pages.\"}]},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"type\":\"\",\"timeInForce\":0,\"quantity\":0,\"quoteOrderQty\":0,\"price\":0,\"recvWindow\":0}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"Yes\",\"description\":\"The request array for placing orders, limited to 5 orders.\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading symbol, for example: BTC-USDT, please use capital letters.\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Transaction type, BUY = buy SELL = sell\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Order type, MARKET = market price LIMIT = limit price\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"No\",\"description\":\"IOC = Limit IOC order, Immediate or Cancel; POC = Limit order, Post Only\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Order quantity, for example: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Order amount, for example: 100 USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Order price, for example: 10,000 USDT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Request validity time window, unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"array\",\"description\":\"Response array for a single order\"}]},{\"type\":\"order\",\"key\":\"key2\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading symbol, for example: BTC-USDT, please use capital letters.\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order number, please watch out for numeric overflow\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"Transaction timestamp, in milliseconds\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Order price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Order quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Filled amount\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Volume\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status, NEW = New order PENDING = Pending order PARTIALLY_FILLED = Partially filled order FILLED = Fully filled order CANCELED = Canceled order FAILED = Failed order\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type, MARKET = market price LIMIT = limit price\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Transaction type, BUY = buy SELL = sell\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/07_post_trade_batchOrders.json\n// module id = lyLM\n// module chunks = 3","var map = {\n\t\".\": \"tksP\",\n\t\"./\": \"tksP\",\n\t\"./01_post_trade_order\": \"Creq\",\n\t\"./01_post_trade_order.json\": \"Creq\",\n\t\"./02_post_trade_order_cancel\": \"PO50\",\n\t\"./02_post_trade_order_cancel.json\": \"PO50\",\n\t\"./03_get_trade_order\": \"/YEw\",\n\t\"./03_get_trade_order.json\": \"/YEw\",\n\t\"./04_get_trade_open_order\": \"bfDi\",\n\t\"./04_get_trade_open_order.json\": \"bfDi\",\n\t\"./05_get_trade_history_order\": \"dcc+\",\n\t\"./05_get_trade_history_order.json\": \"dcc+\",\n\t\"./06_get_account_balance\": \"S+dO\",\n\t\"./06_get_account_balance.json\": \"S+dO\",\n\t\"./07_post_trade_batchOrders\": \"QUO8\",\n\t\"./07_post_trade_batchOrders.json\": \"QUO8\",\n\t\"./index\": \"tksP\",\n\t\"./index.js\": \"tksP\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"m/B5\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade ^.*$\n// module id = m/B5\n// module chunks = 3","\nconst nodejs = `\n// npm install crypto-js -s \n// npm install axios -s \nimport CryptoJS from \"crypto-js\";\nimport axios from \"axios\";\nconst API_KEY = \"\"\nconst API_SECRET = \"\"\nconst HOST = \"HHOOSSTT\"\nconst api = AAPPII\nasync function main() {\n\n let parameters = \"\"\n for (const key in api.payload) {\n parameters += key+\"=\"+api.payload[key]+\"&\"\n }\n if (parameters) {\n parameters = parameters.substring(0, parameters.length - 1)\n }\n await bingXOpenApiTest(api.protocol, HOST, api.uri, api.method, API_KEY, API_SECRET, parameters)\n}\nmain().catch(console.err);\nasync function bingXOpenApiTest(protocol, host, api, method, API_KEY, API_SECRET, parameters) {\n const timestamp = new Date().getTime()\n if (parameters) {\n parameters = parameters+\"×tamp=\"+timestamp\n }else {\n parameters = \"timestamp=\"+timestamp\n }\n \n const sign = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(parameters, API_SECRET))\n const url = protocol+\"://\"+host+api+\"?\"+parameters+\"&signature=\"+sign\n console.log(\"protocol:\", protocol)\n console.log(\"method:\", method)\n console.log(\"host:\", host)\n console.log(\"api:\", api)\n console.log(\"parameters:\", parameters)\n console.log(\"sign:\", sign)\n console.log(method, url)\n const config = {\n method: method,\n url: url,\n headers: {\n 'X-BX-APIKEY': API_KEY,\n },\n transformResponse : (resp) => {\n return resp;\n }\n };\n const resp = await axios(config);\n console.log(resp.status);\n console.log(resp.data);\n}`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/javascript.js","module.exports = [{\"type\":\"hash\",\"text\":\"Unfilled Order Acquisition\"},{\"type\":\"normal\",\"text\":\"Query the details of unfilled orders within the current account over a certain period of time \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/pendingOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/pendingOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"Trigger time of order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Direction (Bid/Ask)\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"Order Type(Market/Limit)\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open/Close\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"Price\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"Order Amount\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"Ave. Price\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"Executed quantity\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"Fee\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"Update time of order\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/07_get_all_openOrders.json\n// module id = mQAj\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/swap/api/market/index.js","var map = {\n\t\"./01_create_listenKey.json\": \"8kVO\",\n\t\"./02_put_listenKey.json\": \"Rtfu\",\n\t\"./03_delete_listenKey.json\": \"LvyQ\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"mS5s\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/listenKey \\.json$\n// module id = mS5s\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"数字规范\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"为了保持跨平台时精度的完整性,十进制数字作为字符串返回。建议您在发起请求时也将数字转换为字符串以避免截断和精度错误\"},{\"type\":\"html\",\"text\":\"整数(如交易编号和顺序)不加引号\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/basic/03_digital_rule.json\n// module id = mcJU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Perpetual Swap Positions\"},{\"type\":\"normal\",\"text\":\"Retrieve information on users' positions of Perpetual Swap.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/positions\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position direction LONG/SHORT long/short\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Whether it is isolated margin mode, true: isolated margin mode false: cross margin\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"Position Amount\"},{\"name\":\"availableAmt\",\"type\":\"string\",\"description\":\"AvailableAmt Amount\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"unrealized profit and loss\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"realized profit and loss\"},{\"name\":\"initialMargin\",\"type\":\"string\",\"description\":\"Margin\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average opening price\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"leverage\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account/02_get_user_positions.json\n// module id = mp7j\n// module chunks = 3","var map = {\n\t\"./01_listenKey.json\": \"gOrG\",\n\t\"./02_balance.json\": \"Zg2x\",\n\t\"./03_order.json\": \"4X8p\",\n\t\"./04_setting.json\": \"M7Po\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"mzLI\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account \\.json$\n// module id = mzLI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query standard contract balance\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/balance\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/balance\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{}},\"params\":[{\"type\":\"Request(null)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"assets\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"total balance\"},{\"name\":\"crossWalletBalance\",\"type\":\"string\",\"description\":\"Cross position balance\"},{\"name\":\"crossUnPnl\",\"type\":\"string\",\"description\":\"Unrealized profit and loss of cross positions\"},{\"name\":\"availableBalance\",\"type\":\"string\",\"description\":\"Order available balance\"},{\"name\":\"maxWithdrawAmount\",\"type\":\"string\",\"description\":\"Maximum transferable balance\"},{\"name\":\"marginAvailable\",\"type\":\"bool\",\"description\":\"Can it be used as a joint bond\"},{\"name\":\"updateTime\",\"type\":\"number\",\"description\":\"timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/api/trade/03_get_contract_balance.json\n// module id = n0S/\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/swapV2/description\",\"name\":\"接口說明\",\"content\":[{\"type\":\"html\",\"text\":\"
  • GET方法的接口, 參數必須在query string中發送.
  • \"},{\"type\":\"html\",\"text\":\"
  • POST, PUT, 和 DELETE 方法的接口, 參數可以在 query string 中發送,也可以在 request body 中發送(content type application/x-www-form-urlencoded)。
    允许混合這两種方式發送參數。但如果同一個參數名在 query string 和 request body 中都有,query string 中的會被優先採用。
  • \"},{\"type\":\"html\",\"text\":\"
  • 對參數的順序不做要求。
  • \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/2_description.json\n// module id = n5PB\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscriptions\"},{\"type\":\"normal\",\"text\":\"After successfully establishing a connection with the Websocket server, the Websocket client sends the following request to subscribe to a specific topic: \"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"data to sub\\\" }\"},{\"type\":\"normal\",\"text\":\"After a successful subscription, the Websocket client will receive a confirmation message:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"normal\",\"text\":\"After that, once the subscribed data is updated, the Websocket client will receive the update message pushed by the server. \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/04_subscribe.json\n// module id = n8XW\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"一鍵平倉下單\"},{\"type\":\"normal\",\"text\":\"查詢持倉信息後,可根據倉位ID進行一鍵平倉操作。註意,一鍵平倉是以市價委託進行觸發的。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickClosePosition\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickClosePosition\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"positionId\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"一鍵平倉對應的倉位ID\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"一鍵平倉產生的委託訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/02_post_closeAllPositions.json\n// module id = nBfU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Rate Limits\"},{\"type\":\"html\",\"text\":\"If the request is too frequent, the system will automatically restrict the request and recover after a few minutes; Currently, BingX only restricts frequency based on IP, and all interfaces in the following categories share 1 IP frequency limit value\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"
  • Market Interface is the public interface. The rate limit of public interfaces is 60 requests every 1 second at most for each IP.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account Interface and Transaction Interface are private interfaces. Generally, the private interface rate limit is at most 20 requests every 1 second for each UID.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic/04_rate_limits.json\n// module id = nG30\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Freeze Unfreeze Sub Accounts\"},{\"type\":\"normal\",\"text\":\"Freeze/Unfreeze Sub Accounts\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/updateStatus\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/updateStatus\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"},{\"name\":\"freeze\",\"type\":\"bool\",\"required\":\"yes\",\"description\":\"Whether to freeze the account\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"Sub account uid\"},{\"name\":\"freeze\",\"type\":\"bool\",\"description\":\"Has it been frozen\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/09_update_sub_account_status.json\n// module id = nHln\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"全部一键平仓下单\"},{\"type\":\"normal\",\"text\":\"将当前账户下所有仓位进行一键平仓操作。注意,一键平仓是以市价委托进行触发的。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickCloseAllPositions\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickCloseAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"全部一键平仓产生的多个委托订单ID\"}]},{\"type\":\"orderId\",\"key\":\"response2\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/03_post_closeAllPositions.json\n// module id = nQs3\n// module chunks = 3","module.exports = [{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"註意需要獲取此類信息需要 websocket 鑒權,使用 listenKey,詳細方式查看 Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-ws-swap.bingbon.pro/ws\"},{\"type\":\"normal\",\"text\":\"訂閱賬戶數據流的stream名稱為 /$listenKey\"}]},{\"type\":\"hash\",\"text\":\"訂閱資產更新數據\"},{\"type\":\"normal\",\"text\":\"訂閱類型\"},{\"type\":\"code\",\"text\":\"dataType 為 ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"訂閱例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"} \"},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能類型:\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT(入金)\"},{\"type\":\"normal\",\"text\":\"WITHDRAW(出金)\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE(資金費用)\"},{\"type\":\"normal\",\"text\":\"ORDER(訂單變更)\"}]},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"數據類型\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賬戶更新事件\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"餘額信息\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"字段\\\"bc\\\"代表了钱包餘額的改變量,即 balance change,但註意其不包含倉位盈虧及交易手續費。\"}]}]},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/account/01_balance.json\n// module id = nWf4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an Order\"},{\"type\":\"normal\",\"text\":\"Cancel an order that the current account is in the current entrusted state.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/order\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/04_delete_trade_order.json\n// module id = nf3C\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤销全部订单\"},{\"type\":\"normal\",\"text\":\"将当前账户处于当前委托状态的全部订单进行撤销操作\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/allOpenOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOpenOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"撤销成功的订单列表\"},{\"name\":\"failed\",\"type\":\"结构数组\",\"description\":\"撤销失败的订单列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"错误信息提示\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"订单时间,单位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"成交金额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"原始委托数量\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交价\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手续费\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新时间,单位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/06_delete_trade_all_order.json\n// module id = nfgo\n// module chunks = 3","var map = {\n\t\"./01_create_api.json\": \"uqo+\",\n\t\"./02_permission_set.json\": \"U3vK\",\n\t\"./03_request_content.json\": \"HVe5\",\n\t\"./04_sign_discription.json\": \"huDF\",\n\t\"./05_request.json\": \"2oJ6\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"nhvi\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication \\.json$\n// module id = nhvi\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約基礎信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getAllContracts\"},{\"type\":\"code\",\"text\":\"example: https://api-swap-rest.bingbon.pro/api/v1/market/getAllContracts\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getAllContracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request(無)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"msg\",\"type\":\"\",\"description\":\"錯誤信息描述\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Array\"}]},{\"type\":\"Data\",\"key\":\"response1\",\"data\":[{\"name\":\"contractId\",\"type\":\"\",\"description\":\"合約ID\"},{\"name\":\"symbol\",\"type\":\"\",\"description\":\"合約產品符號,以A_B的形式返回\"},{\"name\":\"name\",\"type\":\"\",\"description\":\"合約產品名字\"},{\"name\":\"size\",\"type\":\"\",\"description\":\"合約大小,例如0.0001 BTC\"},{\"name\":\"minStep\",\"type\":\"\",\"description\":\"用戶輸入步長\"},{\"name\":\"volumePrecision\",\"type\":\"\",\"description\":\"交易數量精度\"},{\"name\":\"pricePrecision\",\"type\":\"\",\"description\":\"價格精度\"},{\"name\":\"quantityPrecision\",\"type\":\"\",\"description\":\"交易數量精度\"},{\"name\":\"feeRate\",\"type\":\"\",\"description\":\"交易手續費\"},{\"name\":\"tradeMinLimit\",\"type\":\"\",\"description\":\"交易最小單位,單位為張\"},{\"name\":\"currency\",\"type\":\"\",\"description\":\"結算和保證金货幣資產\"},{\"name\":\"asset\",\"type\":\"\",\"description\":\"合約交易資產\"},{\"name\":\"maxLongLeverage\",\"type\":\"\",\"description\":\"多頭交易的最大槓桿倍數\"},{\"name\":\"maxShortLeverage\",\"type\":\"\",\"description\":\"空頭交易的最大槓桿倍數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/01_get_quote_contracts.json\n// module id = nyHW\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"X4K5\",\n\t\"./02_data_compress.json\": \"uzUA\",\n\t\"./03_heart_beat.json\": \"JHlj\",\n\t\"./04_subscribe.json\": \"Gx8k\",\n\t\"./05_cancel_subscribe.json\": \"tVMD\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"o+2S\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce \\.json$\n// module id = o+2S\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"編輯子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"編輯子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/edit\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"},{\"name\":\"note\",\"type\":\"string\",\"required\":\"是\",\"description\":\"備註\"},{\"name\":\"permissions\",\"type\":\"Array\",\"required\":\"是\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"否\",\"description\":\"ip白名單\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"ip白名單\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"備註\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/07_post_edit_apikey.json\n// module id = o4h9\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"注意需要获取此类信息需要 websocket 鉴权,使用 listenKey,详细方式查看 Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"订阅账户数据流的stream名称为 /swap-market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"listenKey过期推送\"},{\"type\":\"normal\",\"text\":\"当前连接使用的有效listenKey过期时,user data stream 将会推送此事件。\"},{\"type\":\"normal\",\"text\":\"注意\",\"children\":[{\"type\":\"normal\",\"text\":\"此事件与websocket连接中断没有必然联系\"},{\"type\":\"normal\",\"text\":\"只有正在连接中的有效listenKey过期时才会收到此消息\"},{\"type\":\"normal\",\"text\":\"收到此消息后user data stream将不再更新,直到用户使用新的有效的listenKey\"}]},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型:listenKeyExpired\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间:1676964520421\"},{\"name\":\"listenKey\",\"type\":\"\",\"description\":\"失效的listenKey:53c1067059c5401e216ec0562f4e9741f49c3c18239a743653d844a50c4db6c0\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/account/01_listenKey.json\n// module id = o5vU\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swap/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"一键平仓下单\"},{\"type\":\"normal\",\"text\":\"查询持仓信息后,可根据仓位ID进行一键平仓操作。注意,一键平仓是以市价委托进行触发的。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickClosePosition\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickClosePosition\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"positionId\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"一键平仓对应的仓位ID\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"一键平仓产生的委托订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/02_post_closeAllPositions.json\n// module id = o80Q\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢交易品種\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/common/symbols\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/common/symbols\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbols\",\"type\":\"Array\",\"description\":\"品種信息列表, 元素參考下表\"}]},{\"type\":\"symbol\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"tickSize\",\"type\":\"float64\",\"description\":\"價格步長\"},{\"name\":\"stepSize\",\"type\":\"float64\",\"description\":\"數量步長\"},{\"name\":\"minQty\",\"type\":\"float64\",\"description\":\"最小交易數量\"},{\"name\":\"maxQty\",\"type\":\"float64\",\"description\":\"最大交易數量\"},{\"name\":\"minNotional\",\"type\":\"float64\",\"description\":\"最小交易金額\"},{\"name\":\"maxNotional\",\"type\":\"float64\",\"description\":\"最大交易金額\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0下線, 1上線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/01_get_common_symbols.json\n// module id = o8W7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢止盈止損訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/pendingStopOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/pendingStopOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"symbol\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用戶id\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單id\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合約名稱\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"倉位id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"description\":\"止損價格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"description\":\"止盈價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid買入, Ask賣出\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"委託時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/17_get_trade_allFillOrders.json\n// module id = o9VI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"请求交互\"},{\"type\":\"warning\",\"text\":\"REST访问的根URL: https://api-swap-rest.bingbon.pro\"},{\"type\":\"html\",\"text\":\"所有请求基于Https协议,请求头信息中Content-Type 需要统一设置为:'application/json’。 \"},{\"type\":\"html\",\"text\":\"请求交互说明\"},{\"type\":\"html\",\"text\":\"
  • 请求参数:根据接口请求参数规定进行参数封装。
  • \"},{\"type\":\"html\",\"text\":\"
  • 提交请求参数:将封装好的请求参数通过POST/GET/DELETE等方式提交至服务器。
  • \"},{\"type\":\"html\",\"text\":\"
  • 服务器响应:服务器首先对用户请求数据进行参数安全校验,通过校验后根据业务逻辑将响应数据以JSON格式返回给用户。
  • \"},{\"type\":\"html\",\"text\":\"
  • 数据处理:对服务器响应数据进行处理。
  • \"},{\"type\":\"html\",\"text\":\"成功\"},{\"type\":\"html\",\"text\":\"
  • HTTP状态码200表示成功响应,并可能包含内容。如果响应含有内容,则将显示在相应的返回内容里面。
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication/05_request.json\n// module id = oR0W\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"深度信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/depth\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":20}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默認20,可選值:[5, 10, 20, 50, 100, 500, 1000]\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"係統時間,單位:毫秒\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"賣方深度。第一個元素價格,第二個元素數量\"},{\"name\":\"bids\",\"type\":\"array\",\"description\":\"買方深度。第一個元素價格,第二個元素數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/03_get_quote_depth.json\n// module id = obcS\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/spot/websocket/account/index.js","module.exports = {\"module\":\"standard\",\"path\":\"/standard/introduce\",\"name\":\"介紹\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了標准合約交易業務相關API的使用方法介紹。\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/1_introduce.json\n// module id = okpR\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/listenKey/index.js","var map = {\n\t\".\": \"pk3M\",\n\t\"./\": \"pk3M\",\n\t\"./01_post_user_balance\": \"EOtf\",\n\t\"./01_post_user_balance.json\": \"EOtf\",\n\t\"./02_post_user_positions\": \"0EGA\",\n\t\"./02_post_user_positions.json\": \"0EGA\",\n\t\"./index\": \"pk3M\",\n\t\"./index.js\": \"pk3M\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ouvd\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/account ^.*$\n// module id = ouvd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"One-Click Close All Positions\"},{\"type\":\"normal\",\"text\":\"Close all positions within the current account by one click. Please note that the one-click closed positions are traded at market price.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickCloseAllPositions\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickCloseAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"Multiple Order IDs generated by one-click close all\"}]},{\"type\":\"orderId\",\"key\":\"response2\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"order ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/03_post_closeAllPositions.json\n// module id = ovOx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Latest Price of a Trading Pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/price\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT,If no transaction pair parameters are sent, all transaction pair information will be returned\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"price\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"matching engine time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/02_get_quote_price.json\n// module id = owTM\n// module chunks = 3","module.exports = [{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"注意需要获取此类信息需要 websocket 鉴权,使用 listenKey,详细方式查看 Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-ws-swap.bingbon.pro/ws\"},{\"type\":\"normal\",\"text\":\"订阅账户数据流的stream名称为 /$listenKey\"}]},{\"type\":\"hash\",\"text\":\"订阅资产更新数据\"},{\"type\":\"normal\",\"text\":\"订阅类型\"},{\"type\":\"code\",\"text\":\"dataType 为 ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"订阅例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"} \"},{\"type\":\"normal\",\"text\":\"字段\\\"m\\\"代表了事件推出的原因,包含了以下可能类型:\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT(入金)\"},{\"type\":\"normal\",\"text\":\"WITHDRAW(出金)\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE(资金费用)\"},{\"type\":\"normal\",\"text\":\"ORDER(订单变更)\"}]},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"数据类型\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"账户更新事件\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"事件推出原因\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"余额信息\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"字段\\\"bc\\\"代表了钱包余额的改变量,即 balance change,但注意其不包含仓位盈亏及交易手续费。\"}]}]},{\"type\":\"html\",\"text\":\"
  • 更多返回错误代码请看首页的错误代码描述
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/websocket/account/01_balance.json\n// module id = p0H6\n// module chunks = 3","var map = {\n\t\".\": \"zOyK\",\n\t\"./\": \"zOyK\",\n\t\"./01_trade_info\": \"eqGc\",\n\t\"./01_trade_info.json\": \"eqGc\",\n\t\"./02_kline_data\": \"VLKD\",\n\t\"./02_kline_data.json\": \"VLKD\",\n\t\"./03_depth_info\": \"9R9w\",\n\t\"./03_depth_info.json\": \"9R9w\",\n\t\"./index\": \"zOyK\",\n\t\"./index.js\": \"zOyK\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"p8mx\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/market ^.*$\n// module id = p8mx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"槓桿倍數和保證金模式等配置更新推送\"},{\"type\":\"normal\",\"text\":\"當賬戶配置發生變化時會推送此類事件類型統一為 ACCOUNT_CONFIG_UPDATE\"},{\"type\":\"normal\",\"text\":\"當交易對槓桿倍數發生變化時推送消息體會包含對象ac表示交易對賬戶配置,其中s代表具體的交易對,l代表多倉槓桿倍數,S代表空倉槓桿倍數,mt代表保證金模式。\"},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型:ACCOUNT_CONFIG_UPDATE\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間:1676603102163\"},{\"name\":\"ac\",\"type\":\"obj\",\"description\":\"交易<對象>\"}]},{\"type\":\"ac\",\"key\":\"common\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對:BTC-USDT\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"多倉槓桿倍數:12\"},{\"name\":\"S\",\"type\":\"\",\"description\":\"空倉槓桿倍數:9\"},{\"name\":\"mt\",\"type\":\"\",\"description\":\"保證金模式:cross\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account/04_setting.json\n// module id = pHnt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"全部一鍵平倉下單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶下所有倉位進行一鍵平倉操作。註意,一鍵平倉是以市價委託進行觸發的。 \"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/closeAllPositions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"全部一鍵平倉產生的多個委託訂單號\"},{\"name\":\"failed\",\"type\":\"結构數組\",\"description\":\"平倉失敗的訂單號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/03_post_closeAllPositions.json\n// module id = pKuc\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < 4; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/swapV2/api/basic/index_share_to_v1.js","var map = {\n\t\".\": \"W+Bc\",\n\t\"./\": \"W+Bc\",\n\t\"./01_get_account_apiRestrictions\": \"Xu0+\",\n\t\"./01_get_account_apiRestrictions.json\": \"Xu0+\",\n\t\"./index\": \"W+Bc\",\n\t\"./index.js\": \"W+Bc\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"pYGg\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/permission ^.*$\n// module id = pYGg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶列表\"},{\"type\":\"normal\",\"text\":\"查詢子賬戶列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/list\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/list\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"否\",\"description\":\"子賬戶uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"required\":\"否\",\"description\":\"子賬戶用戶名\"},{\"name\":\"isFeeze\",\"type\":\"bool\",\"required\":\"否\",\"description\":\"是否凍結\"},{\"name\":\"page\",\"type\":\"int\",\"required\":\"是\",\"description\":\"分頁頁碼,啟始為1\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"是\",\"description\":\"分頁大小,最大100\"},{\"name\":\"timestamp\",\"type\":\"long\",\"required\":\"是\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子賬戶uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"description\":\"子賬戶用戶名\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"子賬戶備註信息\"},{\"name\":\"freeze\",\"type\":\"bool\",\"description\":\"是否已經凍結\"},{\"name\":\"createTime\",\"type\":\"long\",\"description\":\"創建時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/03_post_fetch_sub_account_list.json\n// module id = pZuE\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"Note that obtaining such information requires websocket authentication, use listenKey, and check the Listen Key\"},{\"type\":\"normal\",\"text\":\"The websocket interface is wss://open-api-ws.bingx.com/market\"},{\"type\":\"normal\",\"text\":\"The stream name of the subscription account data stream is /market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"Subscription order update data\"},{\"type\":\"normal\",\"text\":\"Subscription Type\"},{\"type\":\"code\",\"text\":\"dataType: spot.executionReport\"},{\"type\":\"normal\",\"text\":\"Subscription example\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The data type of the subscription, for example:spot.executionReport\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"Event Type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"trading pair\"},{\"name\":\"S\",\"type\":\"\",\"description\":\"Order direction\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"order type\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"Order original quantity\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"Original order price\"},{\"name\":\"x\",\"type\":\"\",\"description\":\"Event Type\"},{\"name\":\"X\",\"type\":\"\",\"description\":\"order status\"},{\"name\":\"i\",\"type\":\"\",\"description\":\"Order ID\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Last order transaction volume\"},{\"name\":\"z\",\"type\":\"\",\"description\":\"Accumulated transaction volume of orders\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"Last transaction price of the order\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"Number of handling fees\"},{\"name\":\"N\",\"type\":\"\",\"description\":\"Handling fee asset category\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"transaction time\"},{\"name\":\"t\",\"type\":\"\",\"description\":\"Transaction ID\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"Order creation time\"},{\"name\":\"Z\",\"type\":\"\",\"description\":\"Accumulated transaction amount of orders\"},{\"name\":\"Y\",\"type\":\"\",\"description\":\"Last transaction amount of the order\"},{\"name\":\"Q\",\"type\":\"\",\"description\":\"Original order amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/account/01_executionReport.json\n// module id = pjpR\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swap/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Withdraw\"},{\"type\":\"normal\",\"text\":\"Specify user account to initiate coin withdrawal\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/wallets/v1/capital/withdraw/apply\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"network\":\"ERC20\",\"address\":\"0xxxxxxxxxxxxxx\",\"addressTag\":\"\",\"amount\":20,\"walletType\":1}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Coin name\"},{\"name\":\"network\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Network name, use default network if not transmitted\"},{\"name\":\"address\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Withdrawal address\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Withdrawal amount\"},{\"name\":\"walletType\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Account type: 1 fund account, 2 standard account, 3 perpetual account\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"Unique identifier of the withdrawal record, this field is not returned during internal transfer of withdrawal\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/06_post_wallets_withdraw.json\n// module id = puhI\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/spot/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingXAPI. \"},{\"type\":\"normal\",\"text\":\"You can use our API to access market data endpoints of spot trading. The market data API is publicly accessible and provides market data, statistics, order book depth of a Trading Pair. \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/1_introduce.json\n// module id = puzn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"调整开仓杠杆\"},{\"type\":\"normal\",\"text\":\"调整用户在指定symbol合约的开仓杠杆。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/leverage\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"leverage\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"多仓或者空仓的杠杆,LONG表示多仓,SHORT表示空仓\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"leverage\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"杠杆倍数\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"leverage\",\"type\":\"int64\",\"description\":\"杠杆倍数\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/12_post_trade_leverage.json\n// module id = pyFj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"請求內容\"},{\"type\":\"normal\",\"text\":\"所有REST請求都必須包含以下參數:\",\"children\":[{\"type\":\"normal\",\"text\":\"API Key作為一個字符串。\"},{\"type\":\"normal\",\"text\":\"sign 使用一定算法得出的簽名(請參閱簽名信息)。\"},{\"type\":\"normal\",\"text\":\"timestamp 作為您的請求的時間戳。\"},{\"type\":\"normal\",\"text\":\"所有請求都應該含有application/json類型內容,併且是有效的JSON。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/authentication/03_request_content.json\n// module id = q1lS\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Current Funding Rate\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestFunding\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestFunding\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"fundingRate\",\"type\":\"float64\",\"description\":\"Current Funding Rate\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"current mark price\"},{\"name\":\"leftSeconds\",\"type\":\"float64\",\"description\":\"Time left for the next settlement, in seconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/05_get_quote_ premiumIndex.json\n// module id = qG6H\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Symbols\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/common/symbols\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/common/symbols\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbols\",\"type\":\"Array\",\"description\":\"Symbol list, refer to the table below for order fields\"}]},{\"type\":\"symbol\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"tickSize\",\"type\":\"float64\",\"description\":\"Price step\"},{\"name\":\"stepSize\",\"type\":\"float64\",\"description\":\"Quantity step\"},{\"name\":\"minQty\",\"type\":\"float64\",\"description\":\"Minimum transaction quantity\"},{\"name\":\"maxQty\",\"type\":\"float64\",\"description\":\"Maximum transaction quantity\"},{\"name\":\"minNotional\",\"type\":\"float64\",\"description\":\"Minimum transaction amount\"},{\"name\":\"maxNotional\",\"type\":\"float64\",\"description\":\"Maximum transaction amount\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0 offline, 1 online\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/01_get_common_symbols.json\n// module id = qHSP\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/spot/api/basic/index.js","var map = {\n\t\".\": \"XWMS\",\n\t\"./\": \"XWMS\",\n\t\"./01_trade_info\": \"jcbY\",\n\t\"./01_trade_info.json\": \"jcbY\",\n\t\"./02_kline_data\": \"3EGE\",\n\t\"./02_kline_data.json\": \"3EGE\",\n\t\"./03_depth_info\": \"fsqo\",\n\t\"./03_depth_info.json\": \"fsqo\",\n\t\"./index\": \"XWMS\",\n\t\"./index.js\": \"XWMS\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"qRu6\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market ^.*$\n// module id = qRu6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新價格\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/price\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母,不發送交易對參數,則會返回所有交易對信息\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"價格\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"撮合引擎時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/02_get_quote_price.json\n// module id = r2l6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"当前最优挂单\"},{\"type\":\"normal\",\"text\":\"获取当前最优挂单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/bookTicker\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"bid_price\",\"type\":\"float64\",\"description\":\"最优买单价\"},{\"name\":\"bid_qty\",\"type\":\"float64\",\"description\":\"挂单量\"},{\"name\":\"ask_price\",\"type\":\"float64\",\"description\":\"最优卖单价\"},{\"name\":\"ask_qty\",\"type\":\"float64\",\"description\":\"挂单量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade/20_get_trade_quote_bookTicker.json\n// module id = rEFa\n// module chunks = 3","var map = {\n\t\"./01_post_user_balance.json\": \"emHW\",\n\t\"./02_post_user_positions.json\": \"HU7E\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"rORl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/account \\.json$\n// module id = rORl\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"One-Click Close Position\"},{\"type\":\"normal\",\"text\":\"After querying the position information, you can close the position by one-click based on the position ID. Please note that the one-click closed position is traded at market price. \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickClosePosition\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickClosePosition\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"positionId\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"ID of the position needs to be closed with one click\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID generated by one-click close\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/02_post_closeAllPositions.json\n// module id = rac6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"K线数据\"},{\"type\":\"normal\",\"text\":\"查询成交价格的K线数据。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/kline\"},{\"type\":\"html\",\"text\":\"
  • 如果未发送 startTime 和 endTime ,默认返回最新的k线数据
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果发送 startTime 和 endTime ,默认返回截止 endTime 的最新的k线数据
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果发送 startTime 但不发送 endTime ,默认返回 startTime 开始的最新的k线数据
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果不发送 startTime 但发送 endTime ,默认返回截止 endTime 最新的k线数据
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"时间间隔,参考字段说明\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"默认值:500 最大值:1000\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"array\",\"description\":\"kline数组\"}]},{\"type\":\"kline数组内元素顺序[下标]\",\"key\":\"key5\",\"data\":[{\"name\":\"0\",\"type\":\"\",\"description\":\"K线开盘时间\"},{\"name\":\"1\",\"type\":\"\",\"description\":\"开盘价\"},{\"name\":\"2\",\"type\":\"\",\"description\":\"最高价\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"最低价\"},{\"name\":\"4\",\"type\":\"\",\"description\":\"收盘价\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"成交量\"},{\"name\":\"6\",\"type\":\"\",\"description\":\"K线收盘时间\"},{\"name\":\"7\",\"type\":\"\",\"description\":\"成交额\"}]},{\"type\":\"interval\",\"key\":\"key12\",\"data\":[{\"name\":\"1m\",\"description\":\"一分钟K线\"},{\"name\":\"3m\",\"description\":\"三分钟K线\"},{\"name\":\"5m\",\"description\":\"五分钟K线\"},{\"name\":\"15m\",\"description\":\"十五分钟K线\"},{\"name\":\"30m\",\"description\":\"三十分钟K线\"},{\"name\":\"1h\",\"description\":\"一小时K线\"},{\"name\":\"2h\",\"description\":\"两小时K线\"},{\"name\":\"4h\",\"description\":\"四小时K线\"},{\"name\":\"6h\",\"description\":\"六小时K线\"},{\"name\":\"8h\",\"description\":\"八小时K线\"},{\"name\":\"12h\",\"description\":\"12小时K线\"},{\"name\":\"1d\",\"description\":\"1日K线\"},{\"name\":\"3d\",\"description\":\"3日K线\"},{\"name\":\"1w\",\"description\":\"周K线\"},{\"name\":\"1M\",\"description\":\"月K线\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/market/04_get_market_klines.json\n// module id = rdtp\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"eqGc\",\n\t\"./02_kline_data.json\": \"VLKD\",\n\t\"./03_depth_info.json\": \"9R9w\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"s2uN\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/market \\.json$\n// module id = s2uN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"获取账户损益资金流水\"},{\"type\":\"normal\",\"text\":\"查询当前账户下永续合约的资金流水。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/income\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 如果startTime 和 endTime 均未发送, 只会返回最近7天的数据。
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果incomeType没有发送,返回所有类型账户损益资金流水。
  • \"},{\"type\":\"html\",\"text\":\"
  • 仅保留最近3个月的数据。
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"incomeType\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"incomeType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"收益类型,见上方说明\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"返回的结果集数量 默认值:100 最大值:1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求的时间戳,单位为毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"incomeType\",\"type\":\"string\",\"description\":\"资金流类型\"},{\"name\":\"income\",\"type\":\"string\",\"description\":\"资金流数量,正数代表流入,负数代表流出\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"资产内容\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"备注信息,取决于流水类型\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"时间,单位:毫秒\"},{\"name\":\"tranId\",\"type\":\"string\",\"description\":\"划转id\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"引起流水产生的原始交易ID\"}]},{\"type\":\"incomeType\",\"key\":\"common\",\"data\":[{\"name\":\"TRANSFER\",\"type\":\"\",\"description\":\"转账\"},{\"name\":\"REALIZED_PNL\",\"type\":\"\",\"description\":\"已实现盈亏\"},{\"name\":\"FUNDING_FEE\",\"type\":\"\",\"description\":\"资金费用\"},{\"name\":\"TRADING_FEE\",\"type\":\"\",\"description\":\"手续费\"},{\"name\":\"INSURANCE_CLEAR\",\"type\":\"\",\"description\":\"强平\"},{\"name\":\"TRIAL_FUND\",\"type\":\"\",\"description\":\"体验金\"},{\"name\":\"ADL\",\"type\":\"\",\"description\":\"自动减仓\"},{\"name\":\"SYSTEM_DEDUCTION\",\"type\":\"\",\"description\":\"系统扣除\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/account/03_get_user_income.json\n// module id = s67u\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新标记价格和资金费率\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/premiumIndex\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"lastFundingRate\",\"type\":\"string\",\"description\":\"最近更新的资金费率\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"当前的标记价格\"},{\"name\":\"indexPrice\",\"type\":\"string\",\"description\":\"指数价格\"},{\"name\":\"nextFundingTime\",\"type\":\"int64\",\"description\":\"下次结算剩余时间,单位为毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/05_get_quote_ premiumIndex.json\n// module id = s6Wv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Order History\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/trade/historyOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Notice:\",\"children\":[{\"type\":\"normal\",\"text\":\"If orderId is set, orders >= orderId. Otherwise, the most recent orders will be returned.\"},{\"type\":\"normal\",\"text\":\"If startTime and endTime are provided, orderId is not required.\"}]},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"pageIndex\":0,\"pageSize\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start timestamp, Unit: ms\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End timestamp, Unit: ms\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Page number, must greather than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Page size,Max 100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"Order list,max length is 2000, refer to the table below for order fields\"}]},{\"type\":\"order\",\"key\":\"response1\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Original quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote asset transacted quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Order timestamp\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Update timestamp\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"Original quote order quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/05_get_trade_history_order.json\n// module id = s6dj\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/spot/api/basic/index.js","var map = {\n\t\"./01_post_trade_order.json\": \"F99G\",\n\t\"./02_post_trade_order_cancel.json\": \"vNX1\",\n\t\"./03_get_trade_order.json\": \"AGDW\",\n\t\"./04_get_trade_open_order.json\": \"HFP1\",\n\t\"./05_get_trade_history_order.json\": \"Vx5o\",\n\t\"./06_get_account_balance.json\": \"hi8+\",\n\t\"./07_post_trade_batchOrders.json\": \"hNbe\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"sHu4\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade \\.json$\n// module id = sHu4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"創建子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"創建子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/subAccount/v1/apiKey/create\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"note\",\"type\":\"string\",\"required\":\"是\",\"description\":\"備註\"},{\"name\":\"permissions\",\"type\":\"Array\",\"required\":\"是\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"否\",\"description\":\"ip白名單\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"description\":\"\"},{\"name\":\"apiSecret\",\"type\":\"string\",\"description\":\"api秘鑰\"},{\"name\":\"permissions\",\"type\":\"Array\",\"description\":\"許可權,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"description\":\"ip白名單\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"備註\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/05_create_sub_accuont_key.json\n// module id = sYD+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel a Batch of Orders\"},{\"type\":\"normal\",\"text\":\"Batch cancellation of some of the orders whose current account is in the current entrusted state.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE /openApi/swap/v2/trade/batchOrders\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderIdList\":[0],\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderIdList\",\"type\":\"LIST\",\"required\":\"no\",\"description\":\"system order number, up to 10 orders [1234567,2345678]\"},{\"name\":\"ClientOrderIDList\",\"type\":\"LIST\",\"required\":\"no\",\"description\":\"Customized order ID for users, up to 10 orders [1234567,2345678]\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"},{\"name\":\"success\",\"type\":\"LIST\",\"description\":\"list of successfully canceled orders\"},{\"name\":\"failed\",\"type\":\"array\",\"description\":\"list of failed orders\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"Error Details Description\"}]},{\"type\":\"Order\",\"key\":\"order\",\"data\":[{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"order type\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"position side\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/05_delete_trade_batch_order.json\n// module id = siG2\n// module chunks = 3","var map = {\n\t\"./01_executionReport.json\": \"pjpR\",\n\t\"./02_ account_update.json\": \"5y10\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"smlZ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/account \\.json$\n// module id = smlZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢標准合約餘額\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/balance\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/balance\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{}},\"params\":[{\"type\":\"Request(無)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"資產\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"总餘額\"},{\"name\":\"crossWalletBalance\",\"type\":\"string\",\"description\":\"全倉餘額\"},{\"name\":\"crossUnPnl\",\"type\":\"string\",\"description\":\"全倉持倉未實現盈虧\"},{\"name\":\"availableBalance\",\"type\":\"string\",\"description\":\"下單可用餘額\"},{\"name\":\"maxWithdrawAmount\",\"type\":\"string\",\"description\":\"最大可轉出餘額\"},{\"name\":\"marginAvailable\",\"type\":\"bool\",\"description\":\"是否可用作聯合保證金\"},{\"name\":\"updateTime\",\"type\":\"number\",\"description\":\"時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade/03_get_contract_balance.json\n// module id = smla\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷訂單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的某個訂單進行撤銷操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/cancelOrder\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/cancelOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"\",\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"訂單ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/04_delete_trade_order.json\n// module id = t6GP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"签名说明\"},{\"type\":\"html\",\"text\":\"signature 请求参数使用HMAC SHA256方法加密而得到的。\"},{\"type\":\"html\",\"text\":\"例如:对于调整币种杠杆请求参数进行签名\"},{\"type\":\"html\",\"text\":\"
  • 接口参数
  • \"},{\"type\":\"html\",\"text\":\"

    symbol=BTC-USDT
    timestamp=1667872120843
    side=LONG
    leverage=6

    \"},{\"type\":\"html\",\"text\":\"
  • api信息
  • \"},{\"type\":\"html\",\"text\":\"

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    \"},{\"type\":\"html\",\"text\":\"
  • 参数通过query string发送示例
  • \"},{\"type\":\"html\",\"text\":\"1. 对接口参数进行拼接: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6

    2. 对拼接好的参数字符串使用secretKey生成签名: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 发送请求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'\"},{\"type\":\"html\",\"text\":\"
  • 参数通过request body发送示例
  • \"},{\"type\":\"html\",\"text\":\"1. 对接口参数进行拼接: symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6
    2. 对拼接好的参数字符串使用secretKey生成签名: 4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 发送请求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage' -d 'symbol=BTC-USDT×tamp=1667872120843&side=LONG&leverage=6&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf' \"},{\"type\":\"html\",\"text\":\"
  • 参数通过query string和request body发送示例
  • \"},{\"type\":\"html\",\"text\":\"queryString: symbol=BTC-USDT×tamp=1668159715051
    requestBody: side=LONG&leverage=6 \"},{\"type\":\"html\",\"text\":\"1. 对接口参数进行拼接: symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6
    2. 对拼接好的参数字符串使用secretKey生成签名: 8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d
    \"},{\"type\":\"code\",\"text\":\" echo -n \\\"symbol=BTC-USDT×tamp=1668159715051side=LONG&leverage=6\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex\"},{\"type\":\"html\",\"text\":\"3. 发送请求\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' -X POST 'https://open-api.bingx.com/openApi/swap/v2/trade/leverage?symbol=BTC-USDT×tamp=1668159715051&signature=8b756b01e7a30f02e19c58a91ab01b29528694316b08a51ecb8dd072942bd47d' -d 'side=LONG&leverage=6' \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/authentication/04_sign_discription.json\n// module id = t9kx\n// module chunks = 3","var map = {\n\t\"./2023-06-03.json\": \"jVl+\",\n\t\"./2023-07-29.json\": \"MfXY\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"tMb9\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog \\.json$\n// module id = tMb9\n// module chunks = 3","var map = {\n\t\"./01_post_trade_order.json\": \"Creq\",\n\t\"./02_post_trade_order_cancel.json\": \"PO50\",\n\t\"./03_get_trade_order.json\": \"/YEw\",\n\t\"./04_get_trade_open_order.json\": \"bfDi\",\n\t\"./05_get_trade_history_order.json\": \"dcc+\",\n\t\"./06_get_account_balance.json\": \"S+dO\",\n\t\"./07_post_trade_batchOrders.json\": \"QUO8\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"tV9l\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade \\.json$\n// module id = tV9l\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"取消订阅\"},{\"type\":\"normal\",\"text\":\"取消订阅的格式如下:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"unsub\\\", \\\"dataType\\\": \\\"data to unsub\\\"}\"},{\"type\":\"normal\",\"text\":\"取消订阅成功确认:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce/05_cancel_subscribe.json\n// module id = tVMD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"延长 Listen Key 有效期\"},{\"type\":\"normal\",\"text\":\"有效期延长至本次调用后60分钟,建议每30分钟发送一个 ping 。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"PUT /openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl -i -X PUT 'https://open-api.bingx.com/openApi/user/auth/userDataStream?listenKey=d84d39fe78762b39e202ba204bf3f7ebed43bbe7a481299779cb53479ea9677d'\"},{\"type\":\"normal\",\"text\":\"响应\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • http status 200 成功
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 204 没有请求参数
  • \"},{\"type\":\"html\",\"text\":\"
  • http status 404 没有这个listenKey
  • \"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"PUT\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"listenKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"返回的listenKey\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/listenKey/02_put_listenKey.json\n// module id = tXGI\n// module chunks = 3","var map = {\n\t\".\": \"ftyM\",\n\t\"./\": \"ftyM\",\n\t\"./01_get_quote_contracts\": \"kQGv\",\n\t\"./01_get_quote_contracts.json\": \"kQGv\",\n\t\"./02_get_quote_price\": \"wZoS\",\n\t\"./02_get_quote_price.json\": \"wZoS\",\n\t\"./03_get_quote_depth\": \"TsMJ\",\n\t\"./03_get_quote_depth.json\": \"TsMJ\",\n\t\"./04_get_quote_ trades\": \"ceUr\",\n\t\"./04_get_quote_ trades.json\": \"ceUr\",\n\t\"./05_get_quote_ premiumIndex\": \"s6Wv\",\n\t\"./05_get_quote_ premiumIndex.json\": \"s6Wv\",\n\t\"./06_get_quote_ fundingRate\": \"PQJ1\",\n\t\"./06_get_quote_ fundingRate.json\": \"PQJ1\",\n\t\"./07_get_quote_ klines\": \"MMY+\",\n\t\"./07_get_quote_ klines.json\": \"MMY+\",\n\t\"./08_get_quote_openInterest\": \"FnYD\",\n\t\"./08_get_quote_openInterest.json\": \"FnYD\",\n\t\"./09_get_quote_ ticker\": \"YBd1\",\n\t\"./09_get_quote_ ticker.json\": \"YBd1\",\n\t\"./index\": \"ftyM\",\n\t\"./index.js\": \"ftyM\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"taDK\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market ^.*$\n// module id = taDK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询强平订单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/forceOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/forceOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"autoCloseType\":\"\",\"lastOrderId\":\"\",\"length\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"Liquidation 表示强平订单, ADL 表示减仓订单\"},{\"name\":\"lastOrderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"用于分页, 第一次填写0, 后续填写前一次返回结果里面的最后一个订单id\"},{\"name\":\"length\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每次请求的长度, 最大值为100\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合约名称\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"订单类型, Limit是限价单, Market是市价单\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Liquidation 表示强平订单, ADL 表示减仓订单\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"破产价格\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"成交时间\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交数量\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单id\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid买入, Ask卖出\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手续费\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/13_get_trade_forceOrders.json\n// module id = tc3t\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/api/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"杠杆倍数和保证金模式等配置更新推送\"},{\"type\":\"normal\",\"text\":\"当账户配置发生变化时会推送此类事件类型统一为 ACCOUNT_CONFIG_UPDATE\"},{\"type\":\"normal\",\"text\":\"当交易对杠杆倍数发生变化时推送消息体会包含对象ac表示交易对账户配置,其中s代表具体的交易对,l代表多仓杠杆倍数,S代表空仓杠杆倍数,mt代表保证金模式。\"},{\"type\":\"html\",\"text\":\"
  • 更多返回错误代码请看首页的错误代码描述
  • \"},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型:ACCOUNT_CONFIG_UPDATE\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间:1676603102163\"},{\"name\":\"ac\",\"type\":\"obj\",\"description\":\"交易<对象>\"}]},{\"type\":\"ac\",\"key\":\"common\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对:BTC-USDT\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"多仓杠杆倍数:12\"},{\"name\":\"S\",\"type\":\"\",\"description\":\"空仓杠杆倍数:9\"},{\"name\":\"mt\",\"type\":\"\",\"description\":\"保证金模式:cross\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/account/04_setting.json\n// module id = tdzN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询账户信息\"},{\"type\":\"normal\",\"text\":\"查询当前账户下永续合约资产的相关信息。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/getBalance\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/getBalance\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"currency\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口秘钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约资产\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用户ID\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"用户资产\"},{\"name\":\"balance\",\"type\":\"float64\",\"description\":\"资产余额\"},{\"name\":\"equity\",\"type\":\"float64\",\"description\":\"资产净值\"},{\"name\":\"unrealisedPNL\",\"type\":\"float64\",\"description\":\"未实现盈亏\"},{\"name\":\"realisedPNL\",\"type\":\"float64\",\"description\":\"已实现盈亏\"},{\"name\":\"availableMargin\",\"type\":\"float64\",\"description\":\"可用保证金\"},{\"name\":\"usedMargin\",\"type\":\"float64\",\"description\":\"已用保证金\"},{\"name\":\"freezedMargin\",\"type\":\"float64\",\"description\":\"冻结保证金\"},{\"name\":\"longLeverage\",\"type\":\"float64\",\"description\":\"做多杠杆\"},{\"name\":\"shortLeverage\",\"type\":\"float64\",\"description\":\"做空杠杆\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/account/01_post_user_balance.json\n// module id = tiO5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱逐筆交易\"},{\"type\":\"normal\",\"text\":\"逐筆交易推送每一筆成交的信息。成交,或者說交易的定義是僅有一個吃單者與一個掛單者相互交易\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @trade,比如BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@trade\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"trade\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"BTC-USDT\",\"description\":\"交易對\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"交易ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"成交價格\"},{\"name\":\"q\",\"type\":\"0.007146\",\"description\":\"成交數量\"},{\"name\":\"T\",\"type\":\"1649832413512\",\"description\":\"成交時間\"},{\"name\":\"m\",\"type\":\"true\",\"description\":\"買方是否是做市方。如true,則此次成交是一個主動賣出單,否則是一個主動買入單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/01_trade_info.json\n// module id = tk7z\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/spot/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"position\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/allPosition\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/allPosition\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"request(null)\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"initialMargin\",\"type\":\"number\",\"description\":\"Margin\"},{\"name\":\"leverage\",\"type\":\"number\",\"description\":\"Leverage\"},{\"name\":\"unrealizedProfit\",\"type\":\"number\",\"description\":\"Position unrealized profit and loss\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Whether it is isolated margin mode\"},{\"name\":\"entryPrice\",\"type\":\"number\",\"description\":\"Holding cost price\"},{\"name\":\"positionSide\",\"type\":\"number\",\"description\":\"Position direction, LONG and SHORT\"},{\"name\":\"positionAmt\",\"type\":\"number\",\"description\":\"Transaction data\"},{\"name\":\"currentPrice\",\"type\":\"number\",\"description\":\"Current price. When there is no closing price, the current price will be returned\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"opening time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/api/trade/01_get_contract_allPosition.json\n// module id = ttu5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"订单最新成交记录\"},{\"type\":\"normal\",\"text\":\"逐笔交易推送每一笔成交的信息。成交,或者说交易的定义是仅有一个吃单者与一个挂单者相互交易\"},{\"type\":\"normal\",\"text\":\"订阅类型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 为 @trade,比如BTC-USDT@trade ETH-USDT@trade\"},{\"type\":\"normal\",\"text\":\"订阅参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"成交时间\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"买方是否是做市方。如true,则此次成交是一个主动卖出单,否则是一个主动买入单。\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"price价格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/market/02_latest_records.json\n// module id = u+VH\n// module chunks = 3","var map = {\n\t\".\": \"F5V+\",\n\t\"./\": \"F5V+\",\n\t\"./01_create_api\": \"KMXO\",\n\t\"./01_create_api.json\": \"KMXO\",\n\t\"./03_request_content\": \"DZHm\",\n\t\"./03_request_content.json\": \"DZHm\",\n\t\"./04_sign_discription\": \"gBMP\",\n\t\"./04_sign_discription.json\": \"gBMP\",\n\t\"./05_request\": \"4UQG\",\n\t\"./05_request.json\": \"4UQG\",\n\t\"./index\": \"F5V+\",\n\t\"./index.js\": \"F5V+\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"u4hn\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/authentication ^.*$\n// module id = u4hn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query transaction records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/trades\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\",\"limit\":100}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"default 100, max 100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"long\",\"description\":\"transaction id\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"price\"},{\"name\":\"qty\",\"type\":\"float64\",\"description\":\"quantity\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"time\"},{\"name\":\"isBuyerMaker\",\"type\":\"boolean\",\"description\":\"Buyer or not\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/02_get_ market_traders.json\n// module id = u7QQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢持倉信息\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約的持倉信息與盈虧情况。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/positions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"倉位ID\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"倉位方向 LONG/SHORT 多/空\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"是否是逐倉模式, true:逐倉模式 false:全倉\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"持倉數量\"},{\"name\":\"availableAmt\",\"type\":\"string\",\"description\":\"可平倉數量\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"未實現盈虧\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"已實現盈虧\"},{\"name\":\"initialMargin\",\"type\":\"string\",\"description\":\"保證金\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"開倉均價\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"槓桿\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/account/02_get_user_positions.json\n// module id = uAAZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"全部一鍵平倉下單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶下所有倉位進行一鍵平倉操作。註意,一鍵平倉是以市價委託進行觸發的。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/oneClickCloseAllPositions\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/oneClickCloseAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"Int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"orders\",\"type\":\"Array\",\"description\":\"全部一鍵平倉產生的多個委託訂單ID\"}]},{\"type\":\"orderId\",\"key\":\"response2\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/03_post_closeAllPositions.json\n// module id = uKtQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Requests\"},{\"type\":\"warning\",\"text\":\"Root URL for REST access: https://open-api.bingx.com\"},{\"type\":\"html\",\"text\":\"Request Description\"},{\"type\":\"html\",\"text\":\"
  • Request parameter: Parameter encapsulation is performed according to the interface request parameter specification.
  • \"},{\"type\":\"html\",\"text\":\"
  • Submit request parameters: Submit the encapsulated request parameters to the server through POST/GET/DELETE, etc.
  • \"},{\"type\":\"html\",\"text\":\"
  • Server response: The server first performs parameter security verification on the user request data, and returns the response data to the user in JSON format after passing the verification according to the business logic.
  • \"},{\"type\":\"html\",\"text\":\"
  • Data processing: process the server response data.
  • \"},{\"type\":\"html\",\"text\":\"Success\"},{\"type\":\"html\",\"text\":\"
  • A successful response is indicated by HTTP status code 200 and may optionally contain a body. If the response has a body, it will be included under each resource below.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication/05_request.json\n// module id = uSYo\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢止盈止損歷史訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/historyStopOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/historyStopOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"symbol\":\"\",\"lastOrderId\":0,\"length\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱\"},{\"name\":\"lastOrderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"用於分頁, 第一次填寫0, 後續填寫前一次返回結果裡面的最後一個訂單id\"},{\"name\":\"length\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每次請求的長度, 最大值為100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"userId\",\"type\":\"string\",\"description\":\"用戶id\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單id\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合約名稱\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"倉位id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"description\":\"止損價格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"description\":\"止盈價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid買入, Ask賣出\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"訂單狀態\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"委託時間\"},{\"name\":\"triggerTm\",\"type\":\"string\",\"description\":\"觸發時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/18_get_trade_allFillOrders_history.json\n// module id = uTRy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"接入方式\"},{\"type\":\"normal\",\"text\":\"行情Websocket的接入URL:wss://open-api-swap.bingx.com/swap-market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce/01_connect.json\n// module id = uUP9\n// module chunks = 3","module.exports = {\"module\":\"standard\",\"path\":\"/standard/introduce\",\"name\":\"介绍\",\"content\":[{\"type\":\"html\",\"text\":\"欢迎使用BingX开发者文档。\"},{\"type\":\"normal\",\"text\":\"本文档提供了标准合约交易业务相关API的使用方法介绍。\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/standard/1_introduce.json\n// module id = uXeI\n// module chunks = 3","module.exports = [{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"Note that obtaining such information requires websocket authentication, use listenKey, and check the Listen Key\"},{\"type\":\"normal\",\"text\":\"The websocket interface is wss://open-ws-swap.bingbon.pro/ws\"},{\"type\":\"normal\",\"text\":\"The stream name of the subscription account data stream is /$listenKey\"}]},{\"type\":\"hash\",\"text\":\"Subscribe to account balance push\"},{\"type\":\"normal\",\"text\":\"Subscription Type\"},{\"type\":\"code\",\"text\":\"dataType is ACCOUNT_UPDATE\"},{\"type\":\"normal\",\"text\":\"Subscription Example\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"} \"},{\"type\":\"normal\",\"text\":\"The field \\\"m\\\" represents the reason for the launch of the event, including the following possible types: -DEPOSIT\",\"children\":[{\"type\":\"normal\",\"text\":\"DEPOSIT\"},{\"type\":\"normal\",\"text\":\"WITHDRAW\"},{\"type\":\"normal\",\"text\":\"FUNDING_FEE\"},{\"type\":\"normal\",\"text\":\"ORDER\"}]},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Data Type\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event Time\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event Type\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"account update event\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"event launch reason\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"\"},{\"name\":\"bc\",\"type\":\"\",\"description\":\"Balance Change except PnL and Commission\"}]}]},{\"type\":\"html\",\"text\":\"
  • For more about return error codes, please see the error code description on the homepage.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/websocket/account/01_balance.json\n// module id = uiwf\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"創建API\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"很多接口需要API Key才可以訪問,在對請求進行簽名之前,您必須通過BingX網站【用戶中心】-【API管理】創建一個API key。 創建key後,您將獲得2個必須記住的信息: API key和Secret key.\"},{\"type\":\"normal\",\"text\":\"設置API key的同時,為了安全,建議設置IP訪問白名單.\"},{\"type\":\"normal\",\"text\":\"永遠不要把你的API key/Secret key告訴給任何人.\"}]},{\"type\":\"warning\",\"text\":\"如果不小心洩露了API key,請立刻删除此API key, 併可以另外生產新的API key.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication/01_create_api.json\n// module id = uqo+\n// module chunks = 3","var map = {\n\t\".\": \"R86N\",\n\t\"./\": \"R86N\",\n\t\"./01_connect\": \"X4K5\",\n\t\"./01_connect.json\": \"X4K5\",\n\t\"./02_data_compress\": \"uzUA\",\n\t\"./02_data_compress.json\": \"uzUA\",\n\t\"./03_heart_beat\": \"JHlj\",\n\t\"./03_heart_beat.json\": \"JHlj\",\n\t\"./04_subscribe\": \"Gx8k\",\n\t\"./04_subscribe.json\": \"Gx8k\",\n\t\"./05_cancel_subscribe\": \"tVMD\",\n\t\"./05_cancel_subscribe.json\": \"tVMD\",\n\t\"./index\": \"R86N\",\n\t\"./index.js\": \"R86N\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"uuCY\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce ^.*$\n// module id = uuCY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query sub account list\"},{\"type\":\"normal\",\"text\":\"Query sub account list\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/subAccount/v1/list\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/list\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Sub account uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Sub account username\"},{\"name\":\"isFeeze\",\"type\":\"bool\",\"required\":\"no\",\"description\":\"Freeze or not\"},{\"name\":\"page\",\"type\":\"int\",\"required\":\"yes\",\"description\":\"Page number, starting with 1\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"yes\",\"description\":\"Paging size, maximum 100\"},{\"name\":\"timestamp\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"Sub account uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"description\":\"Sub account username\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"Sub account note information\"},{\"name\":\"freeze\",\"type\":\"bool\",\"description\":\"Has it been frozen\"},{\"name\":\"createTime\",\"type\":\"long\",\"description\":\"Creation time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/03_post_fetch_sub_account_list.json\n// module id = uuPR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"常見錯誤碼\"},{\"type\":\"html\",\"text\":\"

    常見HTTP錯誤碼:

    \"},{\"type\":\"html\",\"text\":\"
  • 4XX 錯誤碼用於指示錯誤的請求內容、行為、格式
  • \"},{\"type\":\"html\",\"text\":\"
  • 5XX 錯誤碼用於指示Bingx服務側的問題
  • \"},{\"type\":\"html\",\"text\":\"

    常見業務錯誤碼:

    \"},{\"type\":\"html\",\"text\":\"
  • 100001 - 簽名驗證失敗
  • \"},{\"type\":\"html\",\"text\":\"
  • 100202 - 餘額不足
  • \"},{\"type\":\"html\",\"text\":\"
  • 100400 - 參數錯誤
  • \"},{\"type\":\"html\",\"text\":\"
  • 100440 - 下單價格跟市場市場價格偏离太远
  • \"},{\"type\":\"html\",\"text\":\"
  • 100500 - 服務器內部錯誤
  • \"},{\"type\":\"html\",\"text\":\"
  • 100503 - 服務器繁忙
  • \"},{\"type\":\"html\",\"text\":\"

    註意:

    \"},{\"type\":\"html\",\"text\":\"
  • 如果失敗,response body 帶有錯誤描述信息
  • \"},{\"type\":\"html\",\"text\":\"
  • 每個接口都有可能抛出異常
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic/03_error_code.json\n// module id = uv3h\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"数据压缩\"},{\"type\":\"normal\",\"text\":\"WebSocket 行情接口返回的所有数据都进行了 GZIP 压缩,需要 client 在收到数据之后解压。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/websocket/introduce/02_data_compress.json\n// module id = uzUA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"數字規範\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"為了保持跨平台時精度的完整性,十進制數字作為字符串返回。建議您在發起請求時也将數字轉換為字符串以避免截斷和精度錯誤\"},{\"type\":\"html\",\"text\":\"整數(如交易編號和順序)不加引號\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/03_digital_rule.json\n// module id = v0HI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易下單\"},{\"type\":\"normal\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/swap/v2/trade/order\"},{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRIGGER_LIMIT, STOP, TAKE_PROFIT: 強制要求參數 quantity、stopPrice、price
  • \"},{\"type\":\"html\",\"text\":\"
  • STOP_MARKET, TAKE_PROFIT_MARKET, TRIGGER_MARKET: 強制要求參數 quantity、stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    1. 開/平倉:如何使用同一個接口 開倉(多/空),平倉(多/空)?請參考如下request payload組合:

    \"},{\"type\":\"html\",\"text\":\"

    open/buy LONG: side=BUY & positionSide=LONG
    close/sell LONG: side=SELL & positionSide=LONG
    open/sell SHORT: side=SELL & positionSide=SHORT
    close/buy SHORT: side=BUY & positionSide=SHORT

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"MARKET\\\", \\\"quantity\\\": 5}

    \"},{\"type\":\"html\",\"text\":\"

    2. 設置止盈止損:本接口也可用於設置止盈止損,但需要先開倉; 當前止盈止損價格只支持默認的標記價格,暫不支持最新和指數價格選項

    \"},{\"type\":\"html\",\"text\":\"

    {\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"quantity\\\": 3, \\\"stopPrice\\\": 31968.0}

    \"},{\"type\":\"warning\",\"text\":\"條件單的觸發必須:\"},{\"type\":\"html\",\"text\":\"

    STOP/STOP_MARKET 止損單:

    \"},{\"type\":\"html\",\"text\":\"
  • 已掛止損單累加數量不能大於持倉數量
  • \"},{\"type\":\"html\",\"text\":\"
  • 買入: 標記價格高於等於觸發價stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • 賣出: 標記價格低於等於觸發價stopPrice
  • \"},{\"type\":\"html\",\"text\":\"

    TAKE_PROFIT/TAKE_PROFIT_MARKET 止盈單:

    \"},{\"type\":\"html\",\"text\":\"
  • 已掛止盈單累加數量不能大於持倉數量
  • \"},{\"type\":\"html\",\"text\":\"
  • 買入: 標記價格低於等於觸發價stopPrice
  • \"},{\"type\":\"html\",\"text\":\"
  • 賣出: 標記價格高於等於觸發價stopPrice
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"type\":\"\",\"side\":\"\",\"positionSide\":\"\",\"price\":0,\"quantity\":0,\"stopPrice\":0,\"recvWindow\":0,\"timeInForce\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"訂單類型 LIMIT, MARKET, STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, TRIGGER_LIMIT, TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持倉方向,且僅可選擇 LONG 或 SHORT,默認LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持輸入U$:quantity=U$/price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC和FOK\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/01_post_trade_order.json\n// module id = vDBD\n// module chunks = 3","var map = {\n\t\".\": \"B9Yr\",\n\t\"./\": \"B9Yr\",\n\t\"./01_post_trade_order\": \"TDl7\",\n\t\"./01_post_trade_order.json\": \"TDl7\",\n\t\"./02_post_closeAllPositions\": \"o80Q\",\n\t\"./02_post_closeAllPositions.json\": \"o80Q\",\n\t\"./03_post_closeAllPositions\": \"nQs3\",\n\t\"./03_post_closeAllPositions.json\": \"nQs3\",\n\t\"./04_delete_trade_order\": \"KJWq\",\n\t\"./04_delete_trade_order.json\": \"KJWq\",\n\t\"./05_delete_trade_batch_order\": \"w9O3\",\n\t\"./05_delete_trade_batch_order.json\": \"w9O3\",\n\t\"./06_delete_trade_all_order\": \"KZXS\",\n\t\"./06_delete_trade_all_order.json\": \"KZXS\",\n\t\"./07_get_all_openOrders\": \"0FzS\",\n\t\"./07_get_all_openOrders.json\": \"0FzS\",\n\t\"./08_get_trade_order\": \"xd76\",\n\t\"./08_get_trade_order.json\": \"xd76\",\n\t\"./09_get_trade_marginType\": \"/RL+\",\n\t\"./09_get_trade_marginType.json\": \"/RL+\",\n\t\"./10_post_trade_marginType\": \"Fg4Y\",\n\t\"./10_post_trade_marginType.json\": \"Fg4Y\",\n\t\"./11_get_trade_leverage\": \"EtCx\",\n\t\"./11_get_trade_leverage.json\": \"EtCx\",\n\t\"./12_post_trade_leverage\": \"hkx8\",\n\t\"./12_post_trade_leverage.json\": \"hkx8\",\n\t\"./13_get_trade_forceOrders\": \"tc3t\",\n\t\"./13_get_trade_forceOrders.json\": \"tc3t\",\n\t\"./14_get_trade_allOrders\": \"K+iN\",\n\t\"./14_get_trade_allOrders.json\": \"K+iN\",\n\t\"./15_post_trade_positionMargin\": \"vzun\",\n\t\"./15_post_trade_positionMargin.json\": \"vzun\",\n\t\"./16_post_trade_order_test\": \"IS5C\",\n\t\"./16_post_trade_order_test.json\": \"IS5C\",\n\t\"./17_get_trade_allFillOrders\": \"Z792\",\n\t\"./17_get_trade_allFillOrders.json\": \"Z792\",\n\t\"./18_get_trade_allFillOrders_history\": \"2Oo8\",\n\t\"./18_get_trade_allFillOrders_history.json\": \"2Oo8\",\n\t\"./index\": \"B9Yr\",\n\t\"./index.js\": \"B9Yr\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"vMU+\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade ^.*$\n// module id = vMU+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/cancel\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品种, 例如: BTC-USDT, 请使用大写字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"订单id\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID,限制字符长度1-40,不同订单不可使用相同的clientOrderId,仅支持2个小时的查询范围\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"请求有效时间空窗值, 单位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"请求时间戳, 单位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品种\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单号\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"下单数量\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交数量\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"成交额\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态, NEW新订单 PENDING委托中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤销 FAILED失败\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单类型, MARKET市价 LIMIT限价\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易类型, BUY买 SELL卖\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用户自定义订单ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/trade/02_post_trade_order_cancel.json\n// module id = vNX1\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swapV2/api/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Get Ticker\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getTicker\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair symbol,There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair symbol\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"Price change, in USDT\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"Price change expressed as a percentage\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"The price for the last trade\"},{\"name\":\"lastVolume\",\"type\":\"string\",\"description\":\"The volume for the last trade\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"Highest price during 24h\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"Volume during last 24h in base currency\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Volume during last 24h, in USDT\"},{\"name\":\"dayVolume\",\"type\":\"string\",\"description\":\"24-hour turnover, the unit is USDT\"},{\"name\":\"openPrice\",\"type\":\"int64\",\"description\":\"24h open price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/10_get_quote_openInterest.json\n// module id = vVjE\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/authentication/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"訂單最新成交記录\"},{\"type\":\"normal\",\"text\":\"訂閱單個合約的逐筆成交明細\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 market.trade.detail.$Symbol,比如market.trade.detail.BTC-USDT\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱,合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"是否有錯誤信息,0為正常,1為有錯誤\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 market.tradeDetail.BTC-USDT\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"trades\",\"type\":\"\",\"description\":\"逐筆成交\"},{\"name\":\"time\",\"type\":\"\",\"description\":\"成交時間\"},{\"name\":\"makerSide\",\"type\":\"\",\"description\":\"吃單方向(Bid / Ask 買/賣)\"},{\"name\":\"price\",\"type\":\"\",\"description\":\"成交價格\"},{\"name\":\"volume\",\"type\":\"\",\"description\":\"成交數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/websocket/market/02_latest_records.json\n// module id = vXfi\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get K-Line Data\"},{\"type\":\"normal\",\"text\":\"Get the latest Kline Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getLatestKline\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getLatestKline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The type of K-Line (minutes, hours, weeks etc.)\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1min Kline\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3 min Kline\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"m5 min Kline\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15 min Kline\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30 min Kline\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1-hour Kline\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2-hour Kline\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4-hour Kline\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6-hour Kline\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12-hour Kline\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1DKline\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W Kline\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1-Month Kline\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"Opening Price\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"Closing Price\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"High Price\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"Low Price\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"transaction volume\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"The timestamp of K-Line,Unit: ms\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/07_get_quote_ klines.json\n// module id = vZVR\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/api/account/index.js","var map = {\n\t\"./01_post_trade_order.json\": \"db2W\",\n\t\"./02_post_trade_batch_order.json\": \"0L/C\",\n\t\"./03_post_closeAllPositions.json\": \"4yOc\",\n\t\"./04_delete_trade_order.json\": \"70Y8\",\n\t\"./05_delete_trade_batch_order.json\": \"kYAZ\",\n\t\"./06_delete_trade_all_order.json\": \"nfgo\",\n\t\"./07_get_all_openOrders.json\": \"7rHQ\",\n\t\"./08_get_trade_order.json\": \"j4v/\",\n\t\"./09_get_trade_marginType.json\": \"0wg/\",\n\t\"./10_post_trade_marginType.json\": \"PTH3\",\n\t\"./11_get_trade_leverage.json\": \"dLDu\",\n\t\"./12_post_trade_leverage.json\": \"pyFj\",\n\t\"./13_get_trade_forceOrders.json\": \"PyiJ\",\n\t\"./14_get_trade_allOrders.json\": \"fFLq\",\n\t\"./15_post_trade_positionMargin.json\": \"5DAQ\",\n\t\"./16_post_trade_order_test.json\": \"IdRU\",\n\t\"./17_get_trade_allFillOrders.json\": \"Y5kV\",\n\t\"./18_get_trade_income_export.json\": \"DLoG\",\n\t\"./19_get_trade_user_commissionRate.json\": \"I7Id\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"rEFa\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"vhCT\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/trade \\.json$\n// module id = vhCT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel All Orders\"},{\"type\":\"normal\",\"text\":\"Cancel all orders that are currently in a unfilled state\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/cancelAll\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/cancelAll\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"error code, 0 means successfully response, others means response failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error Details Description\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/06_delete_trade_all_order.json\n// module id = vl+M\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Data Compression\"},{\"type\":\"normal\",\"text\":\"All response data from Websocket server are compressed into GZIP format. Clients have to decompress them for further use.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/02_data_compress.json\n// module id = vuQY\n// module chunks = 3","var map = {\n\t\"./01_dept_info.json\": \"bFzX\",\n\t\"./02_latest_records.json\": \"cRtg\",\n\t\"./03_kline_data.json\": \"WbRb\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"vwsV\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market \\.json$\n// module id = vwsV\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"设置止盈止损订单\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/stopOrder\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/stopOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"positionId\":\"\",\"orderId\":\"\",\"stopLossPrice\":0,\"takeProfitPrice\":0,\"entrustVolume\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"持仓id\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"止盈止损订单id\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止损价格\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"止盈价格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"委托数量\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"止盈止损订单id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/15_post_trade_positionMargin.json\n// module id = vzun\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询持仓信息\"},{\"type\":\"normal\",\"text\":\"查询当前账户下永续合约的持仓信息与盈亏情况。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/getPositions\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/getPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"currency\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合约品种\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"资产类型\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"仓位ID\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"仓位方向 LONG/SHORT 多/空\"},{\"name\":\"marginMode\",\"type\":\"string\",\"description\":\"保证金模式 Cross/Isolated 全仓/逐仓\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"持仓数量\"},{\"name\":\"availableVolume\",\"type\":\"float64\",\"description\":\"可平仓数量\"},{\"name\":\"unrealisedPNL\",\"type\":\"float64\",\"description\":\"未实现盈亏\"},{\"name\":\"realisedPNL\",\"type\":\"float64\",\"description\":\"已实现盈亏\"},{\"name\":\"margin\",\"type\":\"float64\",\"description\":\"保证金\"},{\"name\":\"avgPrice\",\"type\":\"float64\",\"description\":\"开仓均价\"},{\"name\":\"liquidatedPrice\",\"type\":\"float64\",\"description\":\"预估强平价\"},{\"name\":\"leverage\",\"type\":\"float64\",\"description\":\"杠杆\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/account/02_post_user_positions.json\n// module id = w+Bj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"The latest Trade of a Trading Pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getMarketTrades\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getMarketTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"time\",\"type\":\"date\",\"description\":\"transaction time\"},{\"name\":\"makerSide\",\"type\":\"string\",\"description\":\"Direction (Buy / Sell)\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"transaction price\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Executed quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/market/04_get_quote_ trades.json\n// module id = w+Dc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量撤销订单\"},{\"type\":\"normal\",\"text\":\"将当前账户处于当前委托状态的部分订单进行批量撤销操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/batchCancelOrders\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/batchCancelOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"oids\":\"\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"oids\",\"type\":\"string\",\"required\":\"是\",\"description\":\"订单ID列表,多个订单id用逗号进行分隔\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息提示\"},{\"name\":\"Success\",\"type\":\"Array\",\"description\":\"撤销成功的订单ID列表\"},{\"name\":\"Failed\",\"type\":\"结构数组\",\"description\":\"撤销失败的订单列表\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"订单ID\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"错误码,0表示成功,不为0表示异常失败\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"description\":\"错误信息提示\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/05_delete_trade_batch_order.json\n// module id = w9O3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Service Address\"},{\"type\":\"code\",\"text\":\"https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 200 status code indicates a successful response. The response body might contain a message which will be displayed accordingly.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic/01_server_url.json\n// module id = wWlE\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swap/websocket/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"最新价格\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/price\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易对, 例如: BTC-USDT, 请使用大写字母,不发送交易对参数,则会返回所有交易对信息\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易对, 例如: BTC-USDT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"价格\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"撮合引擎时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swapV2/api/market/02_get_quote_price.json\n// module id = wZoS\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Access\"},{\"type\":\"normal\",\"text\":\"the base URL of Websocket Market Data :wss://open-api-swap.bingx.com/swap-market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/01_connect.json\n// module id = wa9k\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/standard/api/trade/index.js","var map = {\n\t\".\": \"W/J5\",\n\t\"./\": \"W/J5\",\n\t\"./2023-06-03\": \"/bR7\",\n\t\"./2023-06-03.json\": \"/bR7\",\n\t\"./2023-07-29\": \"IOcs\",\n\t\"./2023-07-29.json\": \"IOcs\",\n\t\"./index\": \"W/J5\",\n\t\"./index.js\": \"W/J5\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"wcqk\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog ^.*$\n// module id = wcqk\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Create an Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/order\"},{\"type\":\"normal\",\"text\":\"Notice:\",\"children\":[{\"type\":\"normal\",\"text\":\"For limit orders, price is required.\"},{\"type\":\"normal\",\"text\":\"or limit orders, either quantity or quoteOrderQty is required. When two parameters are passed at the same time, the server uses the parameter quantity first.\"},{\"type\":\"normal\",\"text\":\"For buy-side market orders, quoteOrderQty is required.\"},{\"type\":\"normal\",\"text\":\"For sell-side market orders, quantity is required.\"},{\"type\":\"normal\",\"text\":\"Orders created by the interface will not be displayed on the APP and web pages.\"}]},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"\",\"type\":\"\",\"timeInForce\":0,\"quantity\":0,\"quoteOrderQty\":0,\"price\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"BUY/SELL\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"IOC, POC\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, e.g., 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Quote order quantity, e.g., 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, e.g., 10000USDT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"Transaction timestamp\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Original quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote asset transacted quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/01_post_trade_order.json\n// module id = wpBa\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"服务地址\"},{\"type\":\"code\",\"text\":\"https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP状态码200表示成功响应,并可能包含内容。如果响应含有内容,则将显示在相应的返回内容里面。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/basic/01_server_url.json\n// module id = wpxO\n// module chunks = 3","var map = {\n\t\".\": \"bShK\",\n\t\"./\": \"bShK\",\n\t\"./01_get_quote_contracts\": \"54oK\",\n\t\"./01_get_quote_contracts.json\": \"54oK\",\n\t\"./02_get_quote_price\": \"cR4p\",\n\t\"./02_get_quote_price.json\": \"cR4p\",\n\t\"./03_get_quote_depth\": \"xUQL\",\n\t\"./03_get_quote_depth.json\": \"xUQL\",\n\t\"./04_get_quote_ trades\": \"Ua/t\",\n\t\"./04_get_quote_ trades.json\": \"Ua/t\",\n\t\"./05_get_quote_ premiumIndex\": \"LmIK\",\n\t\"./05_get_quote_ premiumIndex.json\": \"LmIK\",\n\t\"./06_get_quote_ fundingRate\": \"4uFH\",\n\t\"./06_get_quote_ fundingRate.json\": \"4uFH\",\n\t\"./07_get_quote_ klines\": \"NO1N\",\n\t\"./07_get_quote_ klines.json\": \"NO1N\",\n\t\"./08_get_quote_ klines_history\": \"yHie\",\n\t\"./08_get_quote_ klines_history.json\": \"yHie\",\n\t\"./09_get_quote_ ticker\": \"FICX\",\n\t\"./09_get_quote_ ticker.json\": \"FICX\",\n\t\"./10_get_quote_openInterest\": \"NpYN\",\n\t\"./10_get_quote_openInterest.json\": \"NpYN\",\n\t\"./index\": \"bShK\",\n\t\"./index.js\": \"bShK\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"wsrT\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market ^.*$\n// module id = wsrT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"頻率限制\"},{\"type\":\"html\",\"text\":\"如果請求過於頻繁係統将自動限制請求,幾分鐘後,會自動恢復;當前BingX只根據IP進行頻率限制,以下分類的所有接口共享一個IP頻率限制值\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"
  • 行情接口:通過IP限制公共接口的調用,每1秒最多60個請求。
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬戶和交易接口:通過用戶ID限制私人接口的調用,每1秒最多20個請求。
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/04_rate_limits.json\n// module id = x6dl\n// module chunks = 3","var map = {\n\t\".\": \"o7Jb\",\n\t\"./\": \"o7Jb\",\n\t\"./01_post_user_balance\": \"tiO5\",\n\t\"./01_post_user_balance.json\": \"tiO5\",\n\t\"./02_post_user_positions\": \"w+Bj\",\n\t\"./02_post_user_positions.json\": \"w+Bj\",\n\t\"./index\": \"o7Jb\",\n\t\"./index.js\": \"o7Jb\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"x724\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/account ^.*$\n// module id = x724\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶手續費率\"},{\"type\":\"normal\",\"text\":\"獲取當前用戶的手續費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/commissionRate\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"takerCommissionRate\",\"type\":\"float64\",\"description\":\"吃單手續費率\"},{\"name\":\"makerCommissionRate\",\"type\":\"float64\",\"description\":\"掛單手續費率\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/19_get_trade_user_commissionRate.json\n// module id = x8dX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscriptions\"},{\"type\":\"normal\",\"text\":\"After successfully establishing a connection with the Websocket server, the Websocket client sends the following request to subscribe to a specific topic: \"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"sub\\\", \\\"dataType\\\": \\\"data to sub\\\" }\"},{\"type\":\"html\",\"text\":\"
  • ID is the unique ID passed in by the user, which will be returned when returned, used for distinguishing idempotence checks by the user
  • \"},{\"type\":\"normal\",\"text\":\"After a successful subscription, the Websocket client will receive a confirmation message:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"normal\",\"text\":\"After that, once the subscribed data is updated, the Websocket client will receive the update message pushed by the server.\"},{\"type\":\"html\",\"text\":\"
  • Code Error Code Description
  • \"},{\"type\":\"html\",\"text\":\"

    0:\\\"SUCCESS\\\"
    /**
    * 100xxx is a universal status code.
    */
    // No data found in server search
    100204:\\\"SEARCH_NO_CONTENT\\\"

    // Duplicate Request
    100205:\\\"REPEAT_REQUEST\\\"

    // Client request parameter error
    100400:\\\"ILLEGAL_ARGUMENT\\\"

    // Client authentication failed
    100401:\\\"AUTHENTICATION_FAIL\\\"

    // Client permission verification failed
    100403:\\\"AUTHORIZATION_FAIL\\\"

    // Client request frequency limit
    100410:\\\"FREQUENCY_LIMIT\\\"

    // Server error
    100500:\\\"INTERNAL_SERVER_ERROR\\\"

    // Server Busy
    100503:\\\"SERVER_BUSY\\\"

    \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce/04_subscribe.json\n// module id = xBhx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢資金費率歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getHistoryFunding\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getHistoryFunding\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"historyId\",\"type\":\"string\",\"description\":\"歷史ID號\"},{\"name\":\"fundingRate\",\"type\":\"float64\",\"description\":\"資金費率\"},{\"name\":\"fairPrice\",\"type\":\"float64\",\"description\":\"標記價格\"},{\"name\":\"interval\",\"type\":\"string\",\"description\":\"資金費率結算週期,單位:小時\"},{\"name\":\"time\",\"type\":\"date\",\"description\":\"結算時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/market/06_get_quote_ fundingRate.json\n// module id = xDG3\n// module chunks = 3","var map = {\n\t\"./01_listenKey.json\": \"jg15\",\n\t\"./02_balance.json\": \"W9nQ\",\n\t\"./03_order.json\": \"/xkA\",\n\t\"./04_setting.json\": \"pHnt\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"xE4z\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account \\.json$\n// module id = xE4z\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/historyOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/historyOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"lastOrderId\":\"\",\"length\":0,\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"lastOrderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"用於分頁, 第一次填寫0, 後續填寫前一次返回結果裡面的最後一個訂單id\"},{\"name\":\"length\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每次請求的長度, 最大值為100\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單id\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向, Bid買入, Ask賣出\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open表示開倉, Close表示平倉, ADL表示自動減倉, Liquidation表示爆倉強平\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"訂單類型, Limit是限價單, Market是市價單\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交數量\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"成交價格\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手續費\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"訂單狀態(Filled or PartiallyFilled, Pending, Cancelled, Failed)\"},{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"委託時間\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"更新時間\"}]},{\"type\":\"OrderStatus\",\"key\":\"key1\",\"data\":[{\"name\":\"Pending\",\"type\":\"\",\"description\":\"尚未成交\"},{\"name\":\"PartiallyFilled\",\"type\":\"\",\"description\":\"部分成交\"},{\"name\":\"Cancelled\",\"type\":\"\",\"description\":\"已撤銷\"},{\"name\":\"Filled\",\"type\":\"\",\"description\":\"已完成\"},{\"name\":\"Failed\",\"type\":\"\",\"description\":\"失敗\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/14_get_trade_allOrders.json\n// module id = xKz7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/spot/v1/trade/cancel\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same clientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Original quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote asset transacted quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW, PENDING, PARTIALLY_FILLED, FILLED, CANCELED, FAILED\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET/LIMIT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/02_post_trade_order_cancel.json\n// module id = xNnB\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/spot/introduce\",\"name\":\"介绍\",\"content\":[{\"type\":\"html\",\"text\":\"欢迎使用BingX开发者文档。\"},{\"type\":\"normal\",\"text\":\"本文档提供了现货交易业务的账户管理、行情查询、交易功能等相关API的使用方法介绍。 行情API提供市场的公开的行情数据接口,账户和交易API需要身份验证,提供下单、撤单,查询订单和帐户信息等功能。 \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/1_introduce.json\n// module id = xTSi\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\" K-Line Data\"},{\"type\":\"normal\",\"text\":\"Get the latest Kline Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/quote/klines\"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are not sent, the latest k-line data will be returned by default
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"\",\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"time interval, refer to field description\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: millisecond\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: millisecond\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"default: 500 maximum: 1440\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"open\",\"type\":\"float64\",\"description\":\"Opening Price\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"Closing Price\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"High Price\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"Low Price\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"transaction volume\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"k-line time stamp, unit milliseconds\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"1 min Kline\"},{\"name\":\"3m\",\"description\":\"3 min Kline\"},{\"name\":\"5m\",\"description\":\"5 min Kline\"},{\"name\":\"15m\",\"description\":\"15 min Kline\"},{\"name\":\"30m\",\"description\":\"30 min Kline\"},{\"name\":\"1h\",\"description\":\"1-hour Kline\"},{\"name\":\"2h\",\"description\":\"2-hour Kline\"},{\"name\":\"4h\",\"description\":\"4-hour Kline\"},{\"name\":\"6h\",\"description\":\"6-hour Kline\"},{\"name\":\"8h\",\"description\":\"8-hour Kline\"},{\"name\":\"12h\",\"description\":\"12-hour Kline\"},{\"name\":\"1d\",\"description\":\"1-Day Kline\"},{\"name\":\"3d\",\"description\":\"3-Day Kline\"},{\"name\":\"1w\",\"description\":\"1-Week Kline\"},{\"name\":\"1M\",\"description\":\"1-Month Kline\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/07_get_quote_ klines.json\n// module id = xU+M\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询合约交易深度\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getMarketDepth\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getMarketDepth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"level\":\"5\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"level\",\"type\":\"int\",\"required\":\"否\",\"description\":\"层数,若为空,则默认返回5层\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"是否有错误信息,0为正常,1为有错误\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"错误信息描述\"},{\"name\":\"data\",\"type\":\"array\",\"description\":\"\"}]},{\"type\":\"data\",\"key\":\"response1\",\"data\":[{\"name\":\"asks\",\"type\":\"array[depth]\",\"description\":\"卖方深度\"},{\"name\":\"bids\",\"type\":\"array[depth]\",\"description\":\"买方深度\"}]},{\"type\":\"depth\",\"key\":\"response2\",\"data\":[{\"name\":\"p\",\"type\":\"float64\",\"description\":\"price价格\"},{\"name\":\"v\",\"type\":\"float64\",\"description\":\"volume数量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/03_get_quote_depth.json\n// module id = xUQL\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"请求内容\"},{\"type\":\"normal\",\"text\":\"请求需要鉴权的接口必须包含以下信息:\",\"children\":[{\"type\":\"normal\",\"text\":\"请求头带上 X-BX-APIKEY 传递 API Key。\"},{\"type\":\"normal\",\"text\":\"请求参数带上 signature 使用签名算法得出的签名。\"},{\"type\":\"normal\",\"text\":\"timestamp 作为您的请求的时间戳,单位是毫秒。服务器收到请求时会判断请求中的时间戳,如果是5000毫秒之前发出的,则请求会被认为无效。这个时间空窗值可以通过发送可选参数recvWindow来定义。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/authentication/03_request_content.json\n// module id = xXiq\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query depth information\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/spot/v1/market/depth\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"\",\"limit\":100}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"default 20, max 100\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"bids\",\"type\":\"array\",\"description\":\"first element price, second element quantity\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"first element price, second element quantity\"},{\"name\":\"ts\",\"type\":\"int\",\"description\":\"Timestamp of depth, Unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/03_get_market_depth.json\n// module id = xaTv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询订单详情\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/queryOrderStatus\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/queryOrderStatus\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"\",\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密钥\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"发起请求的时间戳,单位为毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"订单ID\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"订单委托时间\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向(Bid/Ask 买/卖)\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"委托类型(Market/Limit 市价/限价)\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open/Close 开仓/平仓\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"委托价格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委托数量\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"成交均价\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交数量\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单号\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"订单状态(Filled or PartiallyFilled, Pending, Cancelled, Failed)\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈亏\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手续费\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"订单更新时间\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/trade/08_get_trade_order.json\n// module id = xd76\n// module chunks = 3","var map = {\n\t\"./01_create_api.json\": \"KTad\",\n\t\"./03_request_content.json\": \"YdSN\",\n\t\"./04_sign_discription.json\": \"XBGg\",\n\t\"./05_request.json\": \"oR0W\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"xdDZ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/authentication \\.json$\n// module id = xdDZ\n// module chunks = 3","var map = {\n\t\".\": \"yjnE\",\n\t\"./\": \"yjnE\",\n\t\"./01_create_api\": \"uqo+\",\n\t\"./01_create_api.json\": \"uqo+\",\n\t\"./02_permission_set\": \"U3vK\",\n\t\"./02_permission_set.json\": \"U3vK\",\n\t\"./03_request_content\": \"HVe5\",\n\t\"./03_request_content.json\": \"HVe5\",\n\t\"./04_sign_discription\": \"huDF\",\n\t\"./04_sign_discription.json\": \"huDF\",\n\t\"./05_request\": \"2oJ6\",\n\t\"./05_request.json\": \"2oJ6\",\n\t\"./index\": \"yjnE\",\n\t\"./index.js\": \"yjnE\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"xp0F\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/authentication ^.*$\n// module id = xp0F\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query account uid\"},{\"type\":\"normal\",\"text\":\"Query account uid\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /openApi/account/v1/uid\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/02_post_fetch_uid.json\n// module id = xx9R\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/spot/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingXAPI. \"},{\"type\":\"normal\",\"text\":\"You can use our API to access market data endpoints of spot trading. The market data API is publicly accessible and provides market data, statistics, order book depth of a Trading Pair. \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/1_introduce.json\n// module id = y1S6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"歷史訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/contract/v1/allOrders\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/contract/v1/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":0,\"startTime\":0,\"endTime\":0,\"limit\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對,格式類似:BTC-USDT,必傳\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"訂單ID,選填\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間,選填\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,選填\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"數量,選填\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"avgPrice\",\"type\":\"number\",\"description\":\"平倉價\"},{\"name\":\"cumQuote\",\"type\":\"number\",\"description\":\"交易額\"},{\"name\":\"executedQty\",\"type\":\"number\",\"description\":\"成交量\"},{\"name\":\"orderId\",\"type\":\"number\",\"description\":\"係統訂單號\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向,LONG 和 SHORT\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態 CLOSED\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"幣對,格式類似:BTC-USDT\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"訂單時間\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間\"},{\"name\":\"margin\",\"type\":\"number\",\"description\":\"保證金\"},{\"name\":\"leverage\",\"type\":\"number\",\"description\":\"槓桿數\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"是否是逐倉模式\"},{\"name\":\"closePrice\",\"type\":\"number\",\"description\":\"平倉價\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"持倉訂單號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade/02_get_contract_allOrders.json\n// module id = y5ws\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place a Stop Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/stopOrder\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/stopOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"apiKey\":\"\",\"positionId\":\"\",\"orderId\":\"\",\"stopLossPrice\":0,\"takeProfitPrice\":0,\"entrustVolume\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Interface Key\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Timestamp of initiating the request, unit: ms\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Position ID\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Stop Order ID\"},{\"name\":\"stopLossPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Stop Loss Price\"},{\"name\":\"takeProfitPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Take Profit Price\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Order Amount\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Stop Order ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swap/api/trade/15_post_trade_positionMargin.json\n// module id = y7gJ\n// module chunks = 3","const nodejs = `const WebSocket = require('ws');\nconst zlib = require('zlib');\n\nconst path = \"wss://open-api-ws.bingx.com/market\"; \nconst CHANNEL = { \"id\": \"test\", \"reqType\": \"sub\", \"dataType\": \"BTC-USDT@depth\" }; \n\nlet socket;\nlet receivedMessage = \"\";\n\nfunction init() {\n socket = new WebSocket(path);\n socket.on('open', onOpen);\n socket.on('message', onMessage);\n socket.on('error', onError);\n // socket.on('close', onClose);\n}\n\nfunction onOpen() {\n console.log(\"WebSocket connected\");\n socket.send(JSON.stringify(CHANNEL));\n}\n\nfunction onError(error) {\n console.log(\"WebSocket error:\", error);\n}\n\nfunction onMessage(message) {\n const buf = Buffer.from(message);\n const decodedMsg = zlib.gunzipSync(buf).toString('utf-8');\n console.log(decodedMsg);\n if (decodedMsg === \"Ping\") {\n socket.send('Pong');\n console.log('Pong');\n }\n receivedMessage = decodedMsg;\n}\n\n// function onClose() {\n// console.log(\"WebSocket closed\");\n// }\n\ninit();`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/nodejs.js","var map = {\n\t\"./2023-06-03.json\": \"/bR7\",\n\t\"./2023-07-29.json\": \"IOcs\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yEDo\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog \\.json$\n// module id = yEDo\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查询K线历史数据\"},{\"type\":\"normal\",\"text\":\"查询一段时间周期内成交价格的K线历史数据。\"},{\"type\":\"normal\",\"text\":\"HTTP 请求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /api/v1/market/getHistoryKlines\"},{\"type\":\"normal\",\"text\":\"接口参数\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/market/getHistoryKlines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"klineType\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合约名称, 合约名称中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"klineType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"k线类型,参考字段说明,如分钟,小时,周等\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"起始时间戳,单位毫秒\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"结束时间戳,单位毫秒\"}]},{\"type\":\"klineType\",\"key\":\"key1\",\"data\":[{\"name\":\"1\",\"type\":\"\",\"description\":\"1m一分钟K线\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"3m三分钟K线\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"5m五分钟K线\"},{\"name\":\"15\",\"type\":\"\",\"description\":\"15m十五分钟K线\"},{\"name\":\"30\",\"type\":\"\",\"description\":\"30m三十分钟K线\"},{\"name\":\"60\",\"type\":\"\",\"description\":\"1h一小时K线\"},{\"name\":\"120\",\"type\":\"\",\"description\":\"2h两小时K线\"},{\"name\":\"240\",\"type\":\"\",\"description\":\"4h四小时K线\"},{\"name\":\"360\",\"type\":\"\",\"description\":\"6h六小时K线\"},{\"name\":\"720\",\"type\":\"\",\"description\":\"12h十二小时K线\"},{\"name\":\"1D\",\"type\":\"\",\"description\":\"1D日K线\"},{\"name\":\"1W\",\"type\":\"\",\"description\":\"1W周K线\"},{\"name\":\"1M\",\"type\":\"\",\"description\":\"1M月K线\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"Array\",\"description\":\"K线数据\"},{\"name\":\"open\",\"type\":\"float64\",\"description\":\"开盘价\"},{\"name\":\"close\",\"type\":\"float64\",\"description\":\"收盘价\"},{\"name\":\"high\",\"type\":\"float64\",\"description\":\"最高价\"},{\"name\":\"low\",\"type\":\"float64\",\"description\":\"最低价\"},{\"name\":\"volume\",\"type\":\"float64\",\"description\":\"交易数量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"k线时间戳,单位毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/swap/api/market/08_get_quote_ klines_history.json\n// module id = yHie\n// module chunks = 3","var map = {\n\t\".\": \"Ygbz\",\n\t\"./\": \"Ygbz\",\n\t\"./2023-06-03\": \"N36O\",\n\t\"./2023-06-03.json\": \"N36O\",\n\t\"./2023-07-29\": \"L1Q8\",\n\t\"./2023-07-29.json\": \"L1Q8\",\n\t\"./index\": \"Ygbz\",\n\t\"./index.js\": \"Ygbz\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yIQg\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/changelog ^.*$\n// module id = yIQg\n// module chunks = 3","var map = {\n\t\".\": \"NGON\",\n\t\"./\": \"NGON\",\n\t\"./01_post_user_balance\": \"emHW\",\n\t\"./01_post_user_balance.json\": \"emHW\",\n\t\"./02_post_user_positions\": \"HU7E\",\n\t\"./02_post_user_positions.json\": \"HU7E\",\n\t\"./index\": \"NGON\",\n\t\"./index.js\": \"NGON\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yJKW\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/account ^.*$\n// module id = yJKW\n// module chunks = 3","var map = {\n\t\"./01_get_common_symbols.json\": \"qHSP\",\n\t\"./02_get_ market_traders.json\": \"u7QQ\",\n\t\"./03_get_market_depth.json\": \"xaTv\",\n\t\"./04_get_market_klines.json\": \"l6fp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yKUo\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market \\.json$\n// module id = yKUo\n// module chunks = 3","\nconst python = `\nimport json\nimport websocket\nimport gzip\nimport io\nURL=\"wss://open-api-ws.bingx.com/market\" # replace a correct url you need in here \nCHANNEL= {\"id\":\"24dd0e35-56a4-4f7a-af8a-394c7060909c\",\"dataType\":\"BTC-USDT@trade\"} # this is just a demo channel, replace your topic you need in here \nclass Feed(object):\n\n def __init__(self):\n self.url = URL \n self.ws = None\n\n def on_open(self, ws):\n print('WebSocket connected')\n subStr = json.dumps(CHANNEL)\n ws.send(subStr)\n print(\"Subscribed to :\",subStr)\n\n def on_data(self, ws, string, type, continue_flag):\n compressed_data = gzip.GzipFile(fileobj=io.BytesIO(string), mode='rb')\n decompressed_data = compressed_data.read()\n utf8_data = decompressed_data.decode('utf-8')\n print(utf8_data)\n\n def on_message(self, ws, message):\n compressed_data = gzip.GzipFile(fileobj=io.BytesIO(message), mode='rb')\n decompressed_data = compressed_data.read()\n utf8_data = decompressed_data.decode('utf-8')\n print(utf8_data) #this is the message you need \n if utf8_data == \"Ping\": # this is very important , if you receive 'Ping' you need to send 'Pong' \n ws.send(\"Pong\")\n\n def on_error(self, ws, error):\n print(error)\n\n def on_close(self, ws, close_status_code, close_msg):\n print('The connection is closed!')\n\n def start(self):\n self.ws = websocket.WebSocketApp(\n self.url,\n on_open=self.on_open,\n on_message=self.on_message,\n # on_data=self.on_data,\n on_error=self.on_error,\n on_close=self.on_close,\n )\n self.ws.run_forever()\n\n\nif __name__ == \"__main__\":\n feed = Feed()\n feed.start()`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/python.js","module.exports = [{\"type\":\"hash\",\"text\":\"數據壓縮\"},{\"type\":\"normal\",\"text\":\"WebSocket 行情接口返回的所有數據都進行了 GZIP 壓縮,需要 client 在收到數據之後解壓。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/02_data_compress.json\n// module id = yOH9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"数据压缩\"},{\"type\":\"normal\",\"text\":\"WebSocket 行情接口返回的所有数据都进行了 GZIP 压缩,需要 client 在收到数据之后解压。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/introduce/02_data_compress.json\n// module id = yd9p\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-tw/authentication/index.js","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/api/basic/index.js","var map = {\n\t\"./01_post_trade_order.json\": \"wpBa\",\n\t\"./02_post_trade_order_cancel.json\": \"xNnB\",\n\t\"./03_get_trade_order.json\": \"EDR3\",\n\t\"./04_get_trade_open_order.json\": \"V7qZ\",\n\t\"./05_get_trade_history_order.json\": \"s6dj\",\n\t\"./06_get_account_balance.json\": \"YYU2\",\n\t\"./07_post_trade_batchOrders.json\": \"lyLM\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"ysN2\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade \\.json$\n// module id = ysN2\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/en-US/swapV2/api/account/index.js","var map = {\n\t\"./01_connect.json\": \"XKjN\",\n\t\"./02_data_compress.json\": \"0Ts9\",\n\t\"./03_heart_beat.json\": \"Bdxm\",\n\t\"./04_subscribe.json\": \"xBhx\",\n\t\"./05_cancel_subscribe.json\": \"hlb8\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"yx4H\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce \\.json$\n// module id = yx4H\n// module chunks = 3","module.exports = [{\"type\":\"html\",\"text\":\"注意需要获取此类信息需要 websocket 鉴权,使用 listenKey,详细方式查看 Listen Key\"},{\"type\":\"normal\",\"text\":\"websocket接口是 wss://open-api-ws.bingx.com/market\"},{\"type\":\"normal\",\"text\":\"订阅账户数据流的stream名称为 /market?listenKey=\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\"},{\"type\":\"hash\",\"text\":\"订阅订单更新数据\"},{\"type\":\"normal\",\"text\":\"订阅类型\"},{\"type\":\"code\",\"text\":\"dataType 为 spot.executionReport\"},{\"type\":\"normal\",\"text\":\"订阅例子\"},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},{\"type\":\"normal\",\"text\":\"推送数据\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"订阅的数据类型, 例如: spot.executionReport\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送内容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件时间\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易对\"},{\"name\":\"S\",\"type\":\"\",\"description\":\"订单方向\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"订单类型\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"订单原始数量\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"订单原始价格\"},{\"name\":\"x\",\"type\":\"\",\"description\":\"事件类型\"},{\"name\":\"X\",\"type\":\"\",\"description\":\"订单状态\"},{\"name\":\"i\",\"type\":\"\",\"description\":\"订单id\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"订单末次成交量\"},{\"name\":\"z\",\"type\":\"\",\"description\":\"订单累计已成交量\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"订单末次成交价格\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"手续费数量\"},{\"name\":\"N\",\"type\":\"\",\"description\":\"手续费资产类别\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"成交时间\"},{\"name\":\"t\",\"type\":\"\",\"description\":\"成交ID\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"订单创建时间\"},{\"name\":\"Z\",\"type\":\"\",\"description\":\"订单累计已成交金额\"},{\"name\":\"Y\",\"type\":\"\",\"description\":\"订单末次成交金额\"},{\"name\":\"Q\",\"type\":\"\",\"description\":\"订单原始金额\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/account/01_executionReport.json\n// module id = yydQ\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/spot/introduce\",\"name\":\"介紹\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/1_introduce.json\n// module id = z74M\n// module chunks = 3","var map = {\n\t\".\": \"3Fwp\",\n\t\"./\": \"3Fwp\",\n\t\"./01_listenKey\": \"jg15\",\n\t\"./01_listenKey.json\": \"jg15\",\n\t\"./02_balance\": \"W9nQ\",\n\t\"./02_balance.json\": \"W9nQ\",\n\t\"./03_order\": \"/xkA\",\n\t\"./03_order.json\": \"/xkA\",\n\t\"./04_setting\": \"pHnt\",\n\t\"./04_setting.json\": \"pHnt\",\n\t\"./index\": \"3Fwp\",\n\t\"./index.js\": \"3Fwp\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"z9PL\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/account ^.*$\n// module id = z9PL\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"服务申请\"},{\"type\":\"normal\",\"text\":\"目前API内测中,申请页面即将开放,请耐心等待。如有其他需求,欢迎联系客服。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/api/basic/02_server_apply.json\n// module id = zCSH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe K-Line Data\"},{\"type\":\"normal\",\"text\":\"Subscribe to market k-line data of one trading pair\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @kline_ E.g. BTC-USDT@kline_1m\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • For more about return error codes, please see the error code description on the homepage.
  • \"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The type of K-Line ( minutes, hours, weeks etc.)\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"With regards to error messages, 0 means normal, and 1 means error\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of subscribed data, such as market.depth.BTC-USDT.step0.level5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"Closing Price\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"High Price\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Low Price\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"Opening Price\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"volume\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"trading pair\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"1 min Kline\"},{\"name\":\"3m\",\"description\":\"3 min Kline\"},{\"name\":\"5m\",\"description\":\"5 min Kline\"},{\"name\":\"15m\",\"description\":\"15 min Kline\"},{\"name\":\"30m\",\"description\":\"30 min Kline\"},{\"name\":\"1h\",\"description\":\"1-hour Kline\"},{\"name\":\"2h\",\"description\":\"2-hour Kline\"},{\"name\":\"4h\",\"description\":\"4-hour Kline\"},{\"name\":\"6h\",\"description\":\"6-hour Kline\"},{\"name\":\"8h\",\"description\":\"8-hour Kline\"},{\"name\":\"12h\",\"description\":\"12-hour Kline\"},{\"name\":\"1d\",\"description\":\"1-Day Kline\"},{\"name\":\"3d\",\"description\":\"3-Day Kline\"},{\"name\":\"1w\",\"description\":\"1-Week Kline\"},{\"name\":\"1M\",\"description\":\"1-Month Kline\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/03_kline_data.json\n// module id = zKQU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢賬戶信息\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約資產的相關信息。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/user/balance\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"錯誤信息提示\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"用戶資產\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"資產餘額\"},{\"name\":\"equity\",\"type\":\"string\",\"description\":\"資產淨值\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"未實現盈虧\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"已實現盈虧\"},{\"name\":\"availableMargin\",\"type\":\"string\",\"description\":\"可用保證金\"},{\"name\":\"usedMargin\",\"type\":\"string\",\"description\":\"已用保證金\"},{\"name\":\"freezedMargin\",\"type\":\"string\",\"description\":\"凍結保證金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/account/01_get_user_balance.json\n// module id = zKw2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Server Time\"},{\"type\":\"html\",\"text\":\"

    HTTP Request

    \"},{\"type\":\"code\",\"text\":\"GET /openApi/swap/v2/server/time\"},{\"type\":\"html\",\"text\":\"

    Parameters: null

    \"},{\"type\":\"html\",\"text\":\"
  • code - int64 - error code, 0 means successfully response, others means response failure
  • \"},{\"type\":\"html\",\"text\":\"
  • msg - string - Error Details Description
  • \"},{\"type\":\"html\",\"text\":\"
  • serverTime - int64 - The current time of the system,unit: ms
  • \"},{\"type\":\"code\",\"text\":\"{\\\"code\\\": 0,\\\"msg\\\": \\\"\\\",\\\"data\\\": {\\\"serverTime\\\": 1675319535362}}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic/05_system_time.json\n// module id = zNUa\n// module chunks = 3","\nconst paths = require.context('./', true, /\\.json$/).keys();\nlet content = []\nfor (let i = 0; i < paths.length; i++) {\n const file = require(`${paths[i]}`)\n content = content.concat(file)\n}\nexport const Data = content\n\n\n\n// WEBPACK FOOTER //\n// ./src/config/zh-hans/spot/websocket/market/index.js","var map = {\n\t\"./en-US/authentication/01_create_api.json\": \"+Rge\",\n\t\"./en-US/authentication/02_permission_set.json\": \"UG8z\",\n\t\"./en-US/authentication/03_request_content.json\": \"hS6o\",\n\t\"./en-US/authentication/04_sign_discription.json\": \"9KKA\",\n\t\"./en-US/authentication/05_request.json\": \"uSYo\",\n\t\"./en-US/changelog/2023-06-03.json\": \"/bR7\",\n\t\"./en-US/changelog/2023-07-29.json\": \"IOcs\",\n\t\"./en-US/common/1_introduce.json\": \"puzn\",\n\t\"./en-US/common/api/permission/01_get_account_apiRestrictions.json\": \"Xu0+\",\n\t\"./en-US/common/api/subAccount/01_create_sub_accuont.json\": \"+6hF\",\n\t\"./en-US/common/api/subAccount/02_post_fetch_uid.json\": \"xx9R\",\n\t\"./en-US/common/api/subAccount/03_post_fetch_sub_account_list.json\": \"uuPR\",\n\t\"./en-US/common/api/subAccount/04_get_sub_account_spot_balance.json\": \"PVSb\",\n\t\"./en-US/common/api/subAccount/05_create_sub_accuont_key.json\": \"eSSt\",\n\t\"./en-US/common/api/subAccount/06_get_api_key_info.json\": \"MQqI\",\n\t\"./en-US/common/api/subAccount/07_post_edit_apikey.json\": \"Jwag\",\n\t\"./en-US/common/api/subAccount/08_delete_sub_account_key.json\": \"J2bY\",\n\t\"./en-US/common/api/subAccount/09_update_sub_account_status.json\": \"nHln\",\n\t\"./en-US/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\": \"HQ8m\",\n\t\"./en-US/common/api/subAccount/11.post_wallet_subInnerTransfer.json\": \"+W0b\",\n\t\"./en-US/listenKey/01_create_listenKey.json\": \"8kVO\",\n\t\"./en-US/listenKey/02_put_listenKey.json\": \"Rtfu\",\n\t\"./en-US/listenKey/03_delete_listenKey.json\": \"LvyQ\",\n\t\"./en-US/spot/1_introduce.json\": \"y1S6\",\n\t\"./en-US/spot/api/account/01_get_asset_transfer.json\": \"bSWG\",\n\t\"./en-US/spot/api/account/02_get_asset_transfer2.json\": \"gp5h\",\n\t\"./en-US/spot/api/account/03_get_deposit_hisrec.json\": \"OW9C\",\n\t\"./en-US/spot/api/account/04_get_withdraw_history.json\": \"VVr3\",\n\t\"./en-US/spot/api/account/05_post_wallets_coins.json\": \"Bxps\",\n\t\"./en-US/spot/api/account/06_post_wallets_withdraw.json\": \"puhI\",\n\t\"./en-US/spot/api/account/07_post_capital_innerTransfer_apply.json\": \"KPNz\",\n\t\"./en-US/spot/api/basic/01_server_url.json\": \"wWlE\",\n\t\"./en-US/spot/api/basic/02_server_apply.json\": \"kiBh\",\n\t\"./en-US/spot/api/basic/03_error_code.json\": \"/sx7\",\n\t\"./en-US/spot/api/market/01_get_common_symbols.json\": \"qHSP\",\n\t\"./en-US/spot/api/market/02_get_ market_traders.json\": \"u7QQ\",\n\t\"./en-US/spot/api/market/03_get_market_depth.json\": \"xaTv\",\n\t\"./en-US/spot/api/market/04_get_market_klines.json\": \"l6fp\",\n\t\"./en-US/spot/api/trade/01_post_trade_order.json\": \"wpBa\",\n\t\"./en-US/spot/api/trade/02_post_trade_order_cancel.json\": \"xNnB\",\n\t\"./en-US/spot/api/trade/03_get_trade_order.json\": \"EDR3\",\n\t\"./en-US/spot/api/trade/04_get_trade_open_order.json\": \"V7qZ\",\n\t\"./en-US/spot/api/trade/05_get_trade_history_order.json\": \"s6dj\",\n\t\"./en-US/spot/api/trade/06_get_account_balance.json\": \"YYU2\",\n\t\"./en-US/spot/api/trade/07_post_trade_batchOrders.json\": \"lyLM\",\n\t\"./en-US/spot/websocket/account/01_executionReport.json\": \"pjpR\",\n\t\"./en-US/spot/websocket/account/02_ account_update.json\": \"5y10\",\n\t\"./en-US/spot/websocket/introduce/01_connect.json\": \"XKjN\",\n\t\"./en-US/spot/websocket/introduce/02_data_compress.json\": \"0Ts9\",\n\t\"./en-US/spot/websocket/introduce/03_heart_beat.json\": \"Bdxm\",\n\t\"./en-US/spot/websocket/introduce/04_subscribe.json\": \"xBhx\",\n\t\"./en-US/spot/websocket/introduce/05_cancel_subscribe.json\": \"hlb8\",\n\t\"./en-US/spot/websocket/market/01_trade_info.json\": \"jcbY\",\n\t\"./en-US/spot/websocket/market/02_kline_data.json\": \"3EGE\",\n\t\"./en-US/spot/websocket/market/03_depth_info.json\": \"fsqo\",\n\t\"./en-US/standard/1_introduce.json\": \"HGsQ\",\n\t\"./en-US/standard/api/trade/01_get_contract_allPosition.json\": \"ttu5\",\n\t\"./en-US/standard/api/trade/02_get_contract_allOrders.json\": \"RhU9\",\n\t\"./en-US/standard/api/trade/03_get_contract_balance.json\": \"n0S/\",\n\t\"./en-US/swap/1_introduce.json\": \"ZZch\",\n\t\"./en-US/swap/api/account/01_post_user_balance.json\": \"EOtf\",\n\t\"./en-US/swap/api/account/02_post_user_positions.json\": \"0EGA\",\n\t\"./en-US/swap/api/authentication/01_create_api.json\": \"KMXO\",\n\t\"./en-US/swap/api/authentication/03_request_content.json\": \"DZHm\",\n\t\"./en-US/swap/api/authentication/04_sign_discription.json\": \"gBMP\",\n\t\"./en-US/swap/api/authentication/05_request.json\": \"4UQG\",\n\t\"./en-US/swap/api/basic/05_system_time.json\": \"edi2\",\n\t\"./en-US/swap/api/market/01_get_quote_contracts.json\": \"SYVa\",\n\t\"./en-US/swap/api/market/02_get_quote_price.json\": \"eT6P\",\n\t\"./en-US/swap/api/market/03_get_quote_depth.json\": \"55v+\",\n\t\"./en-US/swap/api/market/04_get_quote_ trades.json\": \"w+Dc\",\n\t\"./en-US/swap/api/market/05_get_quote_ premiumIndex.json\": \"qG6H\",\n\t\"./en-US/swap/api/market/06_get_quote_ fundingRate.json\": \"2iez\",\n\t\"./en-US/swap/api/market/07_get_quote_ klines.json\": \"vZVR\",\n\t\"./en-US/swap/api/market/08_get_quote_ klines_history.json\": \"JZdI\",\n\t\"./en-US/swap/api/market/09_get_quote_ ticker.json\": \"4AkN\",\n\t\"./en-US/swap/api/market/10_get_quote_openInterest.json\": \"vVjE\",\n\t\"./en-US/swap/api/trade/01_post_trade_order.json\": \"e3ud\",\n\t\"./en-US/swap/api/trade/02_post_closeAllPositions.json\": \"rac6\",\n\t\"./en-US/swap/api/trade/03_post_closeAllPositions.json\": \"ovOx\",\n\t\"./en-US/swap/api/trade/04_delete_trade_order.json\": \"+Jww\",\n\t\"./en-US/swap/api/trade/05_delete_trade_batch_order.json\": \"GLwn\",\n\t\"./en-US/swap/api/trade/06_delete_trade_all_order.json\": \"vl+M\",\n\t\"./en-US/swap/api/trade/07_get_all_openOrders.json\": \"mQAj\",\n\t\"./en-US/swap/api/trade/08_get_trade_order.json\": \"50QL\",\n\t\"./en-US/swap/api/trade/09_get_trade_marginType.json\": \"8FLz\",\n\t\"./en-US/swap/api/trade/10_post_trade_marginType.json\": \"Hwtn\",\n\t\"./en-US/swap/api/trade/11_get_trade_leverage.json\": \"Toje\",\n\t\"./en-US/swap/api/trade/12_post_trade_leverage.json\": \"XqXJ\",\n\t\"./en-US/swap/api/trade/13_get_trade_forceOrders.json\": \"GZ+E\",\n\t\"./en-US/swap/api/trade/14_get_trade_allOrders.json\": \"JRHj\",\n\t\"./en-US/swap/api/trade/15_post_trade_positionMargin.json\": \"y7gJ\",\n\t\"./en-US/swap/api/trade/16_post_trade_order_test.json\": \"EhS2\",\n\t\"./en-US/swap/api/trade/17_get_trade_allFillOrders.json\": \"GFCe\",\n\t\"./en-US/swap/api/trade/18_get_trade_allFillOrders_history.json\": \"kyJY\",\n\t\"./en-US/swap/websocket/account/01_balance.json\": \"uiwf\",\n\t\"./en-US/swap/websocket/market/01_dept_info.json\": \"/s4V\",\n\t\"./en-US/swap/websocket/market/02_latest_records.json\": \"VUGM\",\n\t\"./en-US/swap/websocket/market/03_kline_data.json\": \"3Jmd\",\n\t\"./en-US/swapV2/1_introduce.json\": \"goAe\",\n\t\"./en-US/swapV2/2_description.json\": \"5MML\",\n\t\"./en-US/swapV2/api/account/01_get_user_balance.json\": \"W4Cx\",\n\t\"./en-US/swapV2/api/account/02_get_user_positions.json\": \"mp7j\",\n\t\"./en-US/swapV2/api/account/03_get_user_income.json\": \"h0vl\",\n\t\"./en-US/swapV2/api/basic/01_error_code.json\": \"+lFy\",\n\t\"./en-US/swapV2/api/basic/02_timestamp.json\": \"VQr5\",\n\t\"./en-US/swapV2/api/basic/03_digital_rule.json\": \"C2jk\",\n\t\"./en-US/swapV2/api/basic/04_rate_limits.json\": \"nG30\",\n\t\"./en-US/swapV2/api/basic/05_system_time.json\": \"zNUa\",\n\t\"./en-US/swapV2/api/market/01_get_quote_contracts.json\": \"DcMO\",\n\t\"./en-US/swapV2/api/market/02_get_quote_price.json\": \"owTM\",\n\t\"./en-US/swapV2/api/market/03_get_quote_depth.json\": \"e+0O\",\n\t\"./en-US/swapV2/api/market/04_get_quote_ trades.json\": \"PqB/\",\n\t\"./en-US/swapV2/api/market/05_get_quote_ premiumIndex.json\": \"Tk4L\",\n\t\"./en-US/swapV2/api/market/06_get_quote_ fundingRate.json\": \"YtyA\",\n\t\"./en-US/swapV2/api/market/07_get_quote_ klines.json\": \"xU+M\",\n\t\"./en-US/swapV2/api/market/08_get_quote_openInterest.json\": \"j4uq\",\n\t\"./en-US/swapV2/api/market/09_get_quote_ ticker.json\": \"LWb5\",\n\t\"./en-US/swapV2/api/trade/01_post_trade_order.json\": \"YLkf\",\n\t\"./en-US/swapV2/api/trade/02_post_trade_batch_order.json\": \"/bqr\",\n\t\"./en-US/swapV2/api/trade/03_post_closeAllPositions.json\": \"jBL/\",\n\t\"./en-US/swapV2/api/trade/04_delete_trade_order.json\": \"nf3C\",\n\t\"./en-US/swapV2/api/trade/05_delete_trade_batch_order.json\": \"siG2\",\n\t\"./en-US/swapV2/api/trade/06_delete_trade_all_order.json\": \"/Fs7\",\n\t\"./en-US/swapV2/api/trade/07_get_all_openOrders.json\": \"jxdV\",\n\t\"./en-US/swapV2/api/trade/08_get_trade_order.json\": \"1xud\",\n\t\"./en-US/swapV2/api/trade/09_get_trade_marginType.json\": \"Qa4f\",\n\t\"./en-US/swapV2/api/trade/10_post_trade_marginType.json\": \"WCFx\",\n\t\"./en-US/swapV2/api/trade/11_get_trade_leverage.json\": \"Nux4\",\n\t\"./en-US/swapV2/api/trade/12_post_trade_leverage.json\": \"j3Xb\",\n\t\"./en-US/swapV2/api/trade/13_get_trade_forceOrders.json\": \"fUN5\",\n\t\"./en-US/swapV2/api/trade/14_get_trade_allOrders.json\": \"iu9b\",\n\t\"./en-US/swapV2/api/trade/15_post_trade_positionMargin.json\": \"i3k4\",\n\t\"./en-US/swapV2/api/trade/16_post_trade_order_test.json\": \"l8OL\",\n\t\"./en-US/swapV2/api/trade/17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./en-US/swapV2/api/trade/18_get_trade_income_export.json\": \"JOGY\",\n\t\"./en-US/swapV2/api/trade/19_get_trade_user_commissionRate.json\": \"2Faq\",\n\t\"./en-US/swapV2/api/trade/20_get_trade_quote_bookTicker.json\": \"Oo3B\",\n\t\"./en-US/swapV2/websocket/account/01_listenKey.json\": \"gOrG\",\n\t\"./en-US/swapV2/websocket/account/02_balance.json\": \"Zg2x\",\n\t\"./en-US/swapV2/websocket/account/03_order.json\": \"4X8p\",\n\t\"./en-US/swapV2/websocket/account/04_setting.json\": \"M7Po\",\n\t\"./en-US/swapV2/websocket/introduce/01_connect.json\": \"wa9k\",\n\t\"./en-US/swapV2/websocket/introduce/02_data_compress.json\": \"vuQY\",\n\t\"./en-US/swapV2/websocket/introduce/03_heart_beat.json\": \"il07\",\n\t\"./en-US/swapV2/websocket/introduce/04_subscribe.json\": \"n8XW\",\n\t\"./en-US/swapV2/websocket/introduce/05_cancel_subscribe.json\": \"7k03\",\n\t\"./en-US/swapV2/websocket/market/01_dept_info.json\": \"VbHA\",\n\t\"./en-US/swapV2/websocket/market/02_latest_records.json\": \"4L7x\",\n\t\"./en-US/swapV2/websocket/market/03_kline_data.json\": \"zKQU\",\n\t\"./zh-hans/authentication/01_create_api.json\": \"bY49\",\n\t\"./zh-hans/authentication/02_permission_set.json\": \"44OD\",\n\t\"./zh-hans/authentication/03_request_content.json\": \"xXiq\",\n\t\"./zh-hans/authentication/04_sign_discription.json\": \"t9kx\",\n\t\"./zh-hans/authentication/05_request.json\": \"bIA2\",\n\t\"./zh-hans/changelog/2023-06-03.json\": \"N36O\",\n\t\"./zh-hans/changelog/2023-07-29.json\": \"L1Q8\",\n\t\"./zh-hans/common/1_introduce.json\": \"L7p1\",\n\t\"./zh-hans/common/api/permission/01_get_account_apiRestrictions.json\": \"2ni1\",\n\t\"./zh-hans/common/api/subAccount/01_create_sub_accuont.json\": \"5mnu\",\n\t\"./zh-hans/common/api/subAccount/02_post_fetch_uid.json\": \"Ou1A\",\n\t\"./zh-hans/common/api/subAccount/03_post_fetch_sub_account_list.json\": \"3YFN\",\n\t\"./zh-hans/common/api/subAccount/04_get_sub_account_spot_balance.json\": \"OVDJ\",\n\t\"./zh-hans/common/api/subAccount/05_create_sub_accuont_key.json\": \"9vIT\",\n\t\"./zh-hans/common/api/subAccount/06_get_api_key_info.json\": \"SwSY\",\n\t\"./zh-hans/common/api/subAccount/07_post_edit_apikey.json\": \"Mwd2\",\n\t\"./zh-hans/common/api/subAccount/08_delete_sub_account_key.json\": \"Y8uX\",\n\t\"./zh-hans/common/api/subAccount/09_update_sub_account_status.json\": \"Tupg\",\n\t\"./zh-hans/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\": \"YzmL\",\n\t\"./zh-hans/common/api/subAccount/11.post_wallet_subInnerTransfer.json\": \"fe6F\",\n\t\"./zh-hans/listenKey/01_create_listenKey.json\": \"Yto4\",\n\t\"./zh-hans/listenKey/02_put_listenKey.json\": \"tXGI\",\n\t\"./zh-hans/listenKey/03_delete_listenKey.json\": \"BnJY\",\n\t\"./zh-hans/spot/1_introduce.json\": \"xTSi\",\n\t\"./zh-hans/spot/api/account/01_get_asset_transfer.json\": \"6y27\",\n\t\"./zh-hans/spot/api/account/02_get_asset_transfer2.json\": \"TDIc\",\n\t\"./zh-hans/spot/api/account/03_get_deposit_hisrec.json\": \"YAvn\",\n\t\"./zh-hans/spot/api/account/04_get_withdraw_history.json\": \"WNKq\",\n\t\"./zh-hans/spot/api/account/05_post_wallets_coins.json\": \"7r0K\",\n\t\"./zh-hans/spot/api/account/06_post_wallets_withdraw.json\": \"T4Os\",\n\t\"./zh-hans/spot/api/account/07_post_capital_innerTransfer_apply.json\": \"+HuI\",\n\t\"./zh-hans/spot/api/basic/01_server_url.json\": \"wpxO\",\n\t\"./zh-hans/spot/api/basic/02_server_apply.json\": \"zCSH\",\n\t\"./zh-hans/spot/api/basic/03_error_code.json\": \"Q+zo\",\n\t\"./zh-hans/spot/api/market/01_get_common_symbols.json\": \"HzkI\",\n\t\"./zh-hans/spot/api/market/02_get_ market_traders.json\": \"CPhe\",\n\t\"./zh-hans/spot/api/market/03_get_market_depth.json\": \"gUOZ\",\n\t\"./zh-hans/spot/api/market/04_get_market_klines.json\": \"rdtp\",\n\t\"./zh-hans/spot/api/trade/01_post_trade_order.json\": \"F99G\",\n\t\"./zh-hans/spot/api/trade/02_post_trade_order_cancel.json\": \"vNX1\",\n\t\"./zh-hans/spot/api/trade/03_get_trade_order.json\": \"AGDW\",\n\t\"./zh-hans/spot/api/trade/04_get_trade_open_order.json\": \"HFP1\",\n\t\"./zh-hans/spot/api/trade/05_get_trade_history_order.json\": \"Vx5o\",\n\t\"./zh-hans/spot/api/trade/06_get_account_balance.json\": \"hi8+\",\n\t\"./zh-hans/spot/api/trade/07_post_trade_batchOrders.json\": \"hNbe\",\n\t\"./zh-hans/spot/websocket/account/01_executionReport.json\": \"yydQ\",\n\t\"./zh-hans/spot/websocket/account/02_ account_update.json\": \"Wg+8\",\n\t\"./zh-hans/spot/websocket/introduce/01_connect.json\": \"9f4O\",\n\t\"./zh-hans/spot/websocket/introduce/02_data_compress.json\": \"yd9p\",\n\t\"./zh-hans/spot/websocket/introduce/03_heart_beat.json\": \"aeFT\",\n\t\"./zh-hans/spot/websocket/introduce/04_subscribe.json\": \"KaHo\",\n\t\"./zh-hans/spot/websocket/introduce/05_cancel_subscribe.json\": \"zovs\",\n\t\"./zh-hans/spot/websocket/market/01_trade_info.json\": \"eqGc\",\n\t\"./zh-hans/spot/websocket/market/02_kline_data.json\": \"VLKD\",\n\t\"./zh-hans/spot/websocket/market/03_depth_info.json\": \"9R9w\",\n\t\"./zh-hans/standard/1_introduce.json\": \"uXeI\",\n\t\"./zh-hans/standard/api/trade/01_get_contract_allPosition.json\": \"Bfwk\",\n\t\"./zh-hans/standard/api/trade/02_get_contract_allOrders.json\": \"HijD\",\n\t\"./zh-hans/standard/api/trade/03_get_contract_balance.json\": \"+25w\",\n\t\"./zh-hans/swap/1_introduce.json\": \"Agv/\",\n\t\"./zh-hans/swap/api/account/01_post_user_balance.json\": \"tiO5\",\n\t\"./zh-hans/swap/api/account/02_post_user_positions.json\": \"w+Bj\",\n\t\"./zh-hans/swap/api/authentication/01_create_api.json\": \"KTad\",\n\t\"./zh-hans/swap/api/authentication/03_request_content.json\": \"YdSN\",\n\t\"./zh-hans/swap/api/authentication/04_sign_discription.json\": \"XBGg\",\n\t\"./zh-hans/swap/api/authentication/05_request.json\": \"oR0W\",\n\t\"./zh-hans/swap/api/basic/05_system_time.json\": \"JLZd\",\n\t\"./zh-hans/swap/api/market/01_get_quote_contracts.json\": \"54oK\",\n\t\"./zh-hans/swap/api/market/02_get_quote_price.json\": \"cR4p\",\n\t\"./zh-hans/swap/api/market/03_get_quote_depth.json\": \"xUQL\",\n\t\"./zh-hans/swap/api/market/04_get_quote_ trades.json\": \"Ua/t\",\n\t\"./zh-hans/swap/api/market/05_get_quote_ premiumIndex.json\": \"LmIK\",\n\t\"./zh-hans/swap/api/market/06_get_quote_ fundingRate.json\": \"4uFH\",\n\t\"./zh-hans/swap/api/market/07_get_quote_ klines.json\": \"NO1N\",\n\t\"./zh-hans/swap/api/market/08_get_quote_ klines_history.json\": \"yHie\",\n\t\"./zh-hans/swap/api/market/09_get_quote_ ticker.json\": \"FICX\",\n\t\"./zh-hans/swap/api/market/10_get_quote_openInterest.json\": \"NpYN\",\n\t\"./zh-hans/swap/api/trade/01_post_trade_order.json\": \"TDl7\",\n\t\"./zh-hans/swap/api/trade/02_post_closeAllPositions.json\": \"o80Q\",\n\t\"./zh-hans/swap/api/trade/03_post_closeAllPositions.json\": \"nQs3\",\n\t\"./zh-hans/swap/api/trade/04_delete_trade_order.json\": \"KJWq\",\n\t\"./zh-hans/swap/api/trade/05_delete_trade_batch_order.json\": \"w9O3\",\n\t\"./zh-hans/swap/api/trade/06_delete_trade_all_order.json\": \"KZXS\",\n\t\"./zh-hans/swap/api/trade/07_get_all_openOrders.json\": \"0FzS\",\n\t\"./zh-hans/swap/api/trade/08_get_trade_order.json\": \"xd76\",\n\t\"./zh-hans/swap/api/trade/09_get_trade_marginType.json\": \"/RL+\",\n\t\"./zh-hans/swap/api/trade/10_post_trade_marginType.json\": \"Fg4Y\",\n\t\"./zh-hans/swap/api/trade/11_get_trade_leverage.json\": \"EtCx\",\n\t\"./zh-hans/swap/api/trade/12_post_trade_leverage.json\": \"hkx8\",\n\t\"./zh-hans/swap/api/trade/13_get_trade_forceOrders.json\": \"tc3t\",\n\t\"./zh-hans/swap/api/trade/14_get_trade_allOrders.json\": \"K+iN\",\n\t\"./zh-hans/swap/api/trade/15_post_trade_positionMargin.json\": \"vzun\",\n\t\"./zh-hans/swap/api/trade/16_post_trade_order_test.json\": \"IS5C\",\n\t\"./zh-hans/swap/api/trade/17_get_trade_allFillOrders.json\": \"Z792\",\n\t\"./zh-hans/swap/api/trade/18_get_trade_allFillOrders_history.json\": \"2Oo8\",\n\t\"./zh-hans/swap/websocket/account/01_balance.json\": \"p0H6\",\n\t\"./zh-hans/swap/websocket/market/01_dept_info.json\": \"I7QH\",\n\t\"./zh-hans/swap/websocket/market/02_latest_records.json\": \"fkpZ\",\n\t\"./zh-hans/swap/websocket/market/03_kline_data.json\": \"I7+s\",\n\t\"./zh-hans/swapV2/1_introduce.json\": \"IEXP\",\n\t\"./zh-hans/swapV2/2_description.json\": \"Tp48\",\n\t\"./zh-hans/swapV2/api/account/01_get_user_balance.json\": \"DLRo\",\n\t\"./zh-hans/swapV2/api/account/02_get_user_positions.json\": \"Knhz\",\n\t\"./zh-hans/swapV2/api/account/03_get_user_income.json\": \"s67u\",\n\t\"./zh-hans/swapV2/api/basic/01_error_code.json\": \"JIJP\",\n\t\"./zh-hans/swapV2/api/basic/02_timestamp.json\": \"4KP5\",\n\t\"./zh-hans/swapV2/api/basic/03_digital_rule.json\": \"mcJU\",\n\t\"./zh-hans/swapV2/api/basic/04_rate_limits.json\": \"8Dwn\",\n\t\"./zh-hans/swapV2/api/basic/05_system_time.json\": \"CtfW\",\n\t\"./zh-hans/swapV2/api/market/01_get_quote_contracts.json\": \"kQGv\",\n\t\"./zh-hans/swapV2/api/market/02_get_quote_price.json\": \"wZoS\",\n\t\"./zh-hans/swapV2/api/market/03_get_quote_depth.json\": \"TsMJ\",\n\t\"./zh-hans/swapV2/api/market/04_get_quote_ trades.json\": \"ceUr\",\n\t\"./zh-hans/swapV2/api/market/05_get_quote_ premiumIndex.json\": \"s6Wv\",\n\t\"./zh-hans/swapV2/api/market/06_get_quote_ fundingRate.json\": \"PQJ1\",\n\t\"./zh-hans/swapV2/api/market/07_get_quote_ klines.json\": \"MMY+\",\n\t\"./zh-hans/swapV2/api/market/08_get_quote_openInterest.json\": \"FnYD\",\n\t\"./zh-hans/swapV2/api/market/09_get_quote_ ticker.json\": \"YBd1\",\n\t\"./zh-hans/swapV2/api/trade/01_post_trade_order.json\": \"db2W\",\n\t\"./zh-hans/swapV2/api/trade/02_post_trade_batch_order.json\": \"0L/C\",\n\t\"./zh-hans/swapV2/api/trade/03_post_closeAllPositions.json\": \"4yOc\",\n\t\"./zh-hans/swapV2/api/trade/04_delete_trade_order.json\": \"70Y8\",\n\t\"./zh-hans/swapV2/api/trade/05_delete_trade_batch_order.json\": \"kYAZ\",\n\t\"./zh-hans/swapV2/api/trade/06_delete_trade_all_order.json\": \"nfgo\",\n\t\"./zh-hans/swapV2/api/trade/07_get_all_openOrders.json\": \"7rHQ\",\n\t\"./zh-hans/swapV2/api/trade/08_get_trade_order.json\": \"j4v/\",\n\t\"./zh-hans/swapV2/api/trade/09_get_trade_marginType.json\": \"0wg/\",\n\t\"./zh-hans/swapV2/api/trade/10_post_trade_marginType.json\": \"PTH3\",\n\t\"./zh-hans/swapV2/api/trade/11_get_trade_leverage.json\": \"dLDu\",\n\t\"./zh-hans/swapV2/api/trade/12_post_trade_leverage.json\": \"pyFj\",\n\t\"./zh-hans/swapV2/api/trade/13_get_trade_forceOrders.json\": \"PyiJ\",\n\t\"./zh-hans/swapV2/api/trade/14_get_trade_allOrders.json\": \"fFLq\",\n\t\"./zh-hans/swapV2/api/trade/15_post_trade_positionMargin.json\": \"5DAQ\",\n\t\"./zh-hans/swapV2/api/trade/16_post_trade_order_test.json\": \"IdRU\",\n\t\"./zh-hans/swapV2/api/trade/17_get_trade_allFillOrders.json\": \"Y5kV\",\n\t\"./zh-hans/swapV2/api/trade/18_get_trade_income_export.json\": \"DLoG\",\n\t\"./zh-hans/swapV2/api/trade/19_get_trade_user_commissionRate.json\": \"I7Id\",\n\t\"./zh-hans/swapV2/api/trade/20_get_trade_quote_bookTicker.json\": \"rEFa\",\n\t\"./zh-hans/swapV2/websocket/account/01_listenKey.json\": \"o5vU\",\n\t\"./zh-hans/swapV2/websocket/account/02_balance.json\": \"1n2Z\",\n\t\"./zh-hans/swapV2/websocket/account/03_order.json\": \"79KP\",\n\t\"./zh-hans/swapV2/websocket/account/04_setting.json\": \"tdzN\",\n\t\"./zh-hans/swapV2/websocket/introduce/01_connect.json\": \"X4K5\",\n\t\"./zh-hans/swapV2/websocket/introduce/02_data_compress.json\": \"uzUA\",\n\t\"./zh-hans/swapV2/websocket/introduce/03_heart_beat.json\": \"JHlj\",\n\t\"./zh-hans/swapV2/websocket/introduce/04_subscribe.json\": \"Gx8k\",\n\t\"./zh-hans/swapV2/websocket/introduce/05_cancel_subscribe.json\": \"tVMD\",\n\t\"./zh-hans/swapV2/websocket/market/01_dept_info.json\": \"lI21\",\n\t\"./zh-hans/swapV2/websocket/market/02_latest_records.json\": \"u+VH\",\n\t\"./zh-hans/swapV2/websocket/market/03_kline_data.json\": \"TV6R\",\n\t\"./zh-tw/authentication/01_create_api.json\": \"uqo+\",\n\t\"./zh-tw/authentication/02_permission_set.json\": \"U3vK\",\n\t\"./zh-tw/authentication/03_request_content.json\": \"HVe5\",\n\t\"./zh-tw/authentication/04_sign_discription.json\": \"huDF\",\n\t\"./zh-tw/authentication/05_request.json\": \"2oJ6\",\n\t\"./zh-tw/changelog/2023-06-03.json\": \"jVl+\",\n\t\"./zh-tw/changelog/2023-07-29.json\": \"MfXY\",\n\t\"./zh-tw/common/1_introduce.json\": \"+Vb3\",\n\t\"./zh-tw/common/api/permission/01_get_account_apiRestrictions.json\": \"l5cf\",\n\t\"./zh-tw/common/api/subAccount/01_create_sub_accuont.json\": \"Kq29\",\n\t\"./zh-tw/common/api/subAccount/02_post_fetch_uid.json\": \"MZqr\",\n\t\"./zh-tw/common/api/subAccount/03_post_fetch_sub_account_list.json\": \"pZuE\",\n\t\"./zh-tw/common/api/subAccount/04_get_sub_account_spot_balance.json\": \"a8qg\",\n\t\"./zh-tw/common/api/subAccount/05_create_sub_accuont_key.json\": \"sYD+\",\n\t\"./zh-tw/common/api/subAccount/06_get_api_key_info.json\": \"azxt\",\n\t\"./zh-tw/common/api/subAccount/07_post_edit_apikey.json\": \"o4h9\",\n\t\"./zh-tw/common/api/subAccount/08_delete_sub_account_key.json\": \"lRf0\",\n\t\"./zh-tw/common/api/subAccount/09_update_sub_account_status.json\": \"K/yH\",\n\t\"./zh-tw/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\": \"JAIK\",\n\t\"./zh-tw/common/api/subAccount/11.post_wallet_subInnerTransfer.json\": \"zbJw\",\n\t\"./zh-tw/listenKey/01_create_listenKey.json\": \"KCrj\",\n\t\"./zh-tw/listenKey/02_put_listenKey.json\": \"lKnG\",\n\t\"./zh-tw/listenKey/03_delete_listenKey.json\": \"+Xv4\",\n\t\"./zh-tw/spot/1_introduce.json\": \"z74M\",\n\t\"./zh-tw/spot/api/account/01_get_asset_transfer.json\": \"zvGN\",\n\t\"./zh-tw/spot/api/account/02_get_asset_transfer2.json\": \"ah5Z\",\n\t\"./zh-tw/spot/api/account/03_get_deposit_hisrec.json\": \"PFmh\",\n\t\"./zh-tw/spot/api/account/04_get_withdraw_history.json\": \"bMv0\",\n\t\"./zh-tw/spot/api/account/05_post_wallets_coins.json\": \"Dy32\",\n\t\"./zh-tw/spot/api/account/06_post_wallets_withdraw.json\": \"KB+u\",\n\t\"./zh-tw/spot/api/account/07_post_capital_innerTransfer_apply.json\": \"iYO+\",\n\t\"./zh-tw/spot/api/basic/01_server_url.json\": \"FVkd\",\n\t\"./zh-tw/spot/api/basic/02_server_apply.json\": \"GUKh\",\n\t\"./zh-tw/spot/api/basic/03_error_code.json\": \"uv3h\",\n\t\"./zh-tw/spot/api/market/01_get_common_symbols.json\": \"o8W7\",\n\t\"./zh-tw/spot/api/market/02_get_ market_traders.json\": \"SDL0\",\n\t\"./zh-tw/spot/api/market/03_get_market_depth.json\": \"2qJV\",\n\t\"./zh-tw/spot/api/market/04_get_market_klines.json\": \"/lsz\",\n\t\"./zh-tw/spot/api/trade/01_post_trade_order.json\": \"Creq\",\n\t\"./zh-tw/spot/api/trade/02_post_trade_order_cancel.json\": \"PO50\",\n\t\"./zh-tw/spot/api/trade/03_get_trade_order.json\": \"/YEw\",\n\t\"./zh-tw/spot/api/trade/04_get_trade_open_order.json\": \"bfDi\",\n\t\"./zh-tw/spot/api/trade/05_get_trade_history_order.json\": \"dcc+\",\n\t\"./zh-tw/spot/api/trade/06_get_account_balance.json\": \"S+dO\",\n\t\"./zh-tw/spot/api/trade/07_post_trade_batchOrders.json\": \"QUO8\",\n\t\"./zh-tw/spot/websocket/account/01_executionReport.json\": \"H6dO\",\n\t\"./zh-tw/spot/websocket/account/02_ account_update.json\": \"bZVt\",\n\t\"./zh-tw/spot/websocket/introduce/01_connect.json\": \"itMl\",\n\t\"./zh-tw/spot/websocket/introduce/02_data_compress.json\": \"yOH9\",\n\t\"./zh-tw/spot/websocket/introduce/03_heart_beat.json\": \"hrCt\",\n\t\"./zh-tw/spot/websocket/introduce/04_subscribe.json\": \"jYwr\",\n\t\"./zh-tw/spot/websocket/introduce/05_cancel_subscribe.json\": \"cspZ\",\n\t\"./zh-tw/spot/websocket/market/01_trade_info.json\": \"tk7z\",\n\t\"./zh-tw/spot/websocket/market/02_kline_data.json\": \"klxE\",\n\t\"./zh-tw/spot/websocket/market/03_depth_info.json\": \"ADmP\",\n\t\"./zh-tw/standard/1_introduce.json\": \"okpR\",\n\t\"./zh-tw/standard/api/trade/01_get_contract_allPosition.json\": \"IW/r\",\n\t\"./zh-tw/standard/api/trade/02_get_contract_allOrders.json\": \"y5ws\",\n\t\"./zh-tw/standard/api/trade/03_get_contract_balance.json\": \"smla\",\n\t\"./zh-tw/swap/1_introduce.json\": \"JXoq\",\n\t\"./zh-tw/swap/api/account/01_post_user_balance.json\": \"emHW\",\n\t\"./zh-tw/swap/api/account/02_post_user_positions.json\": \"HU7E\",\n\t\"./zh-tw/swap/api/authentication/01_create_api.json\": \"KHR7\",\n\t\"./zh-tw/swap/api/authentication/03_request_content.json\": \"q1lS\",\n\t\"./zh-tw/swap/api/authentication/04_sign_discription.json\": \"OWlA\",\n\t\"./zh-tw/swap/api/authentication/05_request.json\": \"auLt\",\n\t\"./zh-tw/swap/api/basic/05_system_time.json\": \"14TU\",\n\t\"./zh-tw/swap/api/market/01_get_quote_contracts.json\": \"nyHW\",\n\t\"./zh-tw/swap/api/market/02_get_quote_price.json\": \"kQ2M\",\n\t\"./zh-tw/swap/api/market/03_get_quote_depth.json\": \"YP5V\",\n\t\"./zh-tw/swap/api/market/04_get_quote_ trades.json\": \"0TqQ\",\n\t\"./zh-tw/swap/api/market/05_get_quote_ premiumIndex.json\": \"+92Z\",\n\t\"./zh-tw/swap/api/market/06_get_quote_ fundingRate.json\": \"xDG3\",\n\t\"./zh-tw/swap/api/market/07_get_quote_ klines.json\": \"bDbK\",\n\t\"./zh-tw/swap/api/market/08_get_quote_ klines_history.json\": \"keYE\",\n\t\"./zh-tw/swap/api/market/09_get_quote_ ticker.json\": \"VOPx\",\n\t\"./zh-tw/swap/api/market/10_get_quote_openInterest.json\": \"baSA\",\n\t\"./zh-tw/swap/api/trade/01_post_trade_order.json\": \"kJLu\",\n\t\"./zh-tw/swap/api/trade/02_post_closeAllPositions.json\": \"nBfU\",\n\t\"./zh-tw/swap/api/trade/03_post_closeAllPositions.json\": \"uKtQ\",\n\t\"./zh-tw/swap/api/trade/04_delete_trade_order.json\": \"t6GP\",\n\t\"./zh-tw/swap/api/trade/05_delete_trade_batch_order.json\": \"A1ZI\",\n\t\"./zh-tw/swap/api/trade/06_delete_trade_all_order.json\": \"40ny\",\n\t\"./zh-tw/swap/api/trade/07_get_all_openOrders.json\": \"Z2yu\",\n\t\"./zh-tw/swap/api/trade/08_get_trade_order.json\": \"zUzZ\",\n\t\"./zh-tw/swap/api/trade/09_get_trade_marginType.json\": \"FEZH\",\n\t\"./zh-tw/swap/api/trade/10_post_trade_marginType.json\": \"W+/z\",\n\t\"./zh-tw/swap/api/trade/11_get_trade_leverage.json\": \"Latl\",\n\t\"./zh-tw/swap/api/trade/12_post_trade_leverage.json\": \"5ewk\",\n\t\"./zh-tw/swap/api/trade/13_get_trade_forceOrders.json\": \"HJU1\",\n\t\"./zh-tw/swap/api/trade/14_get_trade_allOrders.json\": \"xKz7\",\n\t\"./zh-tw/swap/api/trade/15_post_trade_positionMargin.json\": \"RvjO\",\n\t\"./zh-tw/swap/api/trade/16_post_trade_order_test.json\": \"WKtD\",\n\t\"./zh-tw/swap/api/trade/17_get_trade_allFillOrders.json\": \"o9VI\",\n\t\"./zh-tw/swap/api/trade/18_get_trade_allFillOrders_history.json\": \"uTRy\",\n\t\"./zh-tw/swap/websocket/account/01_balance.json\": \"nWf4\",\n\t\"./zh-tw/swap/websocket/market/01_dept_info.json\": \"PNFl\",\n\t\"./zh-tw/swap/websocket/market/02_latest_records.json\": \"vXfi\",\n\t\"./zh-tw/swap/websocket/market/03_kline_data.json\": \"H59N\",\n\t\"./zh-tw/swapV2/1_introduce.json\": \"5GrR\",\n\t\"./zh-tw/swapV2/2_description.json\": \"n5PB\",\n\t\"./zh-tw/swapV2/api/account/01_get_user_balance.json\": \"zKw2\",\n\t\"./zh-tw/swapV2/api/account/02_get_user_positions.json\": \"uAAZ\",\n\t\"./zh-tw/swapV2/api/account/03_get_user_income.json\": \"clol\",\n\t\"./zh-tw/swapV2/api/basic/01_error_code.json\": \"INR5\",\n\t\"./zh-tw/swapV2/api/basic/02_timestamp.json\": \"gE9e\",\n\t\"./zh-tw/swapV2/api/basic/03_digital_rule.json\": \"v0HI\",\n\t\"./zh-tw/swapV2/api/basic/04_rate_limits.json\": \"x6dl\",\n\t\"./zh-tw/swapV2/api/basic/05_system_time.json\": \"i6gS\",\n\t\"./zh-tw/swapV2/api/market/01_get_quote_contracts.json\": \"lrAs\",\n\t\"./zh-tw/swapV2/api/market/02_get_quote_price.json\": \"r2l6\",\n\t\"./zh-tw/swapV2/api/market/03_get_quote_depth.json\": \"obcS\",\n\t\"./zh-tw/swapV2/api/market/04_get_quote_ trades.json\": \"KY9U\",\n\t\"./zh-tw/swapV2/api/market/05_get_quote_ premiumIndex.json\": \"5xUh\",\n\t\"./zh-tw/swapV2/api/market/06_get_quote_ fundingRate.json\": \"dEdI\",\n\t\"./zh-tw/swapV2/api/market/07_get_quote_ klines.json\": \"UTAD\",\n\t\"./zh-tw/swapV2/api/market/08_get_quote_openInterest.json\": \"0IKX\",\n\t\"./zh-tw/swapV2/api/market/09_get_quote_ ticker.json\": \"Y7KR\",\n\t\"./zh-tw/swapV2/api/trade/01_post_trade_order.json\": \"vDBD\",\n\t\"./zh-tw/swapV2/api/trade/02_post_trade_batch_order.json\": \"Crrt\",\n\t\"./zh-tw/swapV2/api/trade/03_post_closeAllPositions.json\": \"pKuc\",\n\t\"./zh-tw/swapV2/api/trade/04_delete_trade_order.json\": \"9V8o\",\n\t\"./zh-tw/swapV2/api/trade/05_delete_trade_batch_order.json\": \"hIfT\",\n\t\"./zh-tw/swapV2/api/trade/06_delete_trade_all_order.json\": \"Nw8z\",\n\t\"./zh-tw/swapV2/api/trade/07_get_all_openOrders.json\": \"Ewmn\",\n\t\"./zh-tw/swapV2/api/trade/08_get_trade_order.json\": \"/1k/\",\n\t\"./zh-tw/swapV2/api/trade/09_get_trade_marginType.json\": \"7mzI\",\n\t\"./zh-tw/swapV2/api/trade/10_post_trade_marginType.json\": \"WVbz\",\n\t\"./zh-tw/swapV2/api/trade/11_get_trade_leverage.json\": \"/Kh3\",\n\t\"./zh-tw/swapV2/api/trade/12_post_trade_leverage.json\": \"ZoHP\",\n\t\"./zh-tw/swapV2/api/trade/13_get_trade_forceOrders.json\": \"9bR8\",\n\t\"./zh-tw/swapV2/api/trade/14_get_trade_allOrders.json\": \"7bgg\",\n\t\"./zh-tw/swapV2/api/trade/15_post_trade_positionMargin.json\": \"QHIT\",\n\t\"./zh-tw/swapV2/api/trade/16_post_trade_order_test.json\": \"Hhes\",\n\t\"./zh-tw/swapV2/api/trade/17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./zh-tw/swapV2/api/trade/18_get_trade_income_export.json\": \"TDt4\",\n\t\"./zh-tw/swapV2/api/trade/19_get_trade_user_commissionRate.json\": \"x8dX\",\n\t\"./zh-tw/swapV2/api/trade/20_get_trade_quote_bookTicker.json\": \"SGv/\",\n\t\"./zh-tw/swapV2/websocket/account/01_listenKey.json\": \"jg15\",\n\t\"./zh-tw/swapV2/websocket/account/02_balance.json\": \"W9nQ\",\n\t\"./zh-tw/swapV2/websocket/account/03_order.json\": \"/xkA\",\n\t\"./zh-tw/swapV2/websocket/account/04_setting.json\": \"pHnt\",\n\t\"./zh-tw/swapV2/websocket/introduce/01_connect.json\": \"uUP9\",\n\t\"./zh-tw/swapV2/websocket/introduce/02_data_compress.json\": \"ku8a\",\n\t\"./zh-tw/swapV2/websocket/introduce/03_heart_beat.json\": \"QDPd\",\n\t\"./zh-tw/swapV2/websocket/introduce/04_subscribe.json\": \"f4mz\",\n\t\"./zh-tw/swapV2/websocket/introduce/05_cancel_subscribe.json\": \"IhWV\",\n\t\"./zh-tw/swapV2/websocket/market/01_dept_info.json\": \"bFzX\",\n\t\"./zh-tw/swapV2/websocket/market/02_latest_records.json\": \"cRtg\",\n\t\"./zh-tw/swapV2/websocket/market/03_kline_data.json\": \"WbRb\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"zQIm\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config \\.json$\n// module id = zQIm\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢訂單詳情\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"POST /api/v1/user/queryOrderStatus\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/api/v1/user/queryOrderStatus\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"\",\"symbol\":\"BTC-USDT\",\"apiKey\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"接口密鑰\"},{\"name\":\"timestamp\",\"type\":\"string\",\"required\":\"是\",\"description\":\"發起請求的時間戳,單位為毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱中需有\\\"-\\\",如BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"訂單ID\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"entrustTm\",\"type\":\"string\",\"description\":\"訂單委託時間\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易方向(Bid/Ask 買/賣)\"},{\"name\":\"tradeType\",\"type\":\"string\",\"description\":\"委託類型(Market/Limit 市價/限價)\"},{\"name\":\"action\",\"type\":\"string\",\"description\":\"Open/Close 開倉/平倉\"},{\"name\":\"entrustPrice\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"entrustVolume\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"avgFilledPrice\",\"type\":\"float64\",\"description\":\"成交均價\"},{\"name\":\"filledVolume\",\"type\":\"float64\",\"description\":\"成交數量\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態(Filled or PartiallyFilled, Pending, Cancelled, Failed)\"},{\"name\":\"profit\",\"type\":\"float64\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"手續費\"},{\"name\":\"updateTm\",\"type\":\"string\",\"description\":\"訂單更新時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swap/api/trade/08_get_trade_order.json\n// module id = zUzZ\n// module chunks = 3","const php = `php\n \"AAPPII\",\n \"method\" => \"MMEETTHHOODD\",\n // \"payload\" => [\n // \"symbol\" => \"BTC-USDT\"\n // ],\n \"payload\" => [\n \"example_parameter\" => \"\"\n ],\n \"protocol\" => \"https\"\n ];\n\n doRequest($api[\"protocol\"], $HOST, $api[\"uri\"], $api[\"method\"], $API_KEY, $API_SECRET, $api[\"payload\"]);\n}\n\nfunction doRequest($protocol, $host, $api, $method, $API_KEY, $API_SECRET, $payload)\n{\n $timestamp = round(microtime(true) * 1000);\n $parameters = \"timestamp=\" . $timestamp;\n\n if ($payload != null) {\n foreach ($payload as $key => $value) {\n $parameters .= \"&$key=$value\";\n }\n }\n\n $sign = calculateHmacSha256($parameters, $API_SECRET);\n $url = \"{$protocol}://{$host}{$api}?{$parameters}&signature={$sign}\";\n\n echo \"protocol: {$protocol}\\n\";\n echo \"method: {$method}\\n\";\n echo \"host: {$host}\\n\";\n echo \"api: {$api}\\n\";\n echo \"parameters: {$parameters}\\n\";\n echo \"sign: {$sign}\\n\";\n echo \"{$method} {$url}\\n\";\n\n $options = [\n \"http\" => [\n \"header\" => \"X-BX-APIKEY: {$API_KEY}\\r\\n\"\n ],\n \"ssl\" => [\n \"verify_peer\" => false,\n \"verify_peer_name\" => false\n ]\n ];\n\n $context = stream_context_create($options);\n $response = file_get_contents($url, false, $context);\n\n echo \"Response body: {$response}\\n\";\n}\n\nfunction calculateHmacSha256($input, $key)\n{\n $hash = hash_hmac(\"sha256\", $input, $key, true);\n $hashHex = bin2hex($hash);\n return strtolower($hashHex);\n}\n\nmain();`\nexport default php\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/php.js","module.exports = [{\"type\":\"hash\",\"text\":\"子賬戶內部轉賬\"},{\"type\":\"normal\",\"text\":\"同一主賬戶下子賬戶在bingx平台內互相轉賬,子子內轉、子母內轉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subInnerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"coin\":\"USDT\",\"userAccountType\":3,\"userAccount\":\"bran***@**.com\",\"amount\":10,\"walletType\":1,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"userAccountType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"用戶賬號類型 1=uid 2=手機號 3=郵箱\"},{\"name\":\"userAccount\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用戶賬戶: uid、電話、郵箱\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"轉賬數額\"},{\"name\":\"callingCode\",\"type\":\"string\",\"required\":\"否\",\"description\":\"電話區號\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"賬戶類型,1 資金賬戶;2 標合賬戶;3 永續賬戶\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"提幣記錄唯一標識,該字段在提幣走內轉時不返回\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/11.post_wallet_subInnerTransfer.json\n// module id = zbJw\n// module chunks = 3","var map = {\n\t\".\": \"b9rl\",\n\t\"./\": \"b9rl\",\n\t\"./01_create_sub_accuont\": \"Kq29\",\n\t\"./01_create_sub_accuont.json\": \"Kq29\",\n\t\"./02_post_fetch_uid\": \"MZqr\",\n\t\"./02_post_fetch_uid.json\": \"MZqr\",\n\t\"./03_post_fetch_sub_account_list\": \"pZuE\",\n\t\"./03_post_fetch_sub_account_list.json\": \"pZuE\",\n\t\"./04_get_sub_account_spot_balance\": \"a8qg\",\n\t\"./04_get_sub_account_spot_balance.json\": \"a8qg\",\n\t\"./05_create_sub_accuont_key\": \"sYD+\",\n\t\"./05_create_sub_accuont_key.json\": \"sYD+\",\n\t\"./06_get_api_key_info\": \"azxt\",\n\t\"./06_get_api_key_info.json\": \"azxt\",\n\t\"./07_post_edit_apikey\": \"o4h9\",\n\t\"./07_post_edit_apikey.json\": \"o4h9\",\n\t\"./08_delete_sub_account_key\": \"lRf0\",\n\t\"./08_delete_sub_account_key.json\": \"lRf0\",\n\t\"./09_update_sub_account_status\": \"K/yH\",\n\t\"./09_update_sub_account_status.json\": \"K/yH\",\n\t\"./10.post_wallet_authorize_innerTransfer\": \"JAIK\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"JAIK\",\n\t\"./11.post_wallet_subInnerTransfer\": \"zbJw\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"zbJw\",\n\t\"./index\": \"b9rl\",\n\t\"./index.js\": \"b9rl\"\n};\nfunction webpackContext(req) {\n\treturn __webpack_require__(webpackContextResolve(req));\n};\nfunction webpackContextResolve(req) {\n\tvar id = map[req];\n\tif(!(id + 1)) // check for number or string\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\treturn id;\n};\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"zol2\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount ^.*$\n// module id = zol2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"取消订阅\"},{\"type\":\"normal\",\"text\":\"取消订阅的格式如下:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"reqType\\\": \\\"unsub\\\", \\\"dataType\\\": \\\"data to unsub\\\"}\"},{\"type\":\"normal\",\"text\":\"取消订阅成功确认:\"},{\"type\":\"code\",\"text\":\"{ \\\"id\\\": \\\"id1\\\", \\\"code\\\": 0, \\\"msg\\\": \\\"\\\" }\"},{\"type\":\"html\",\"text\":\"

    symbol说明

    \"},{\"type\":\"warning\",\"text\":\"symbol必须全大写\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-hans/spot/websocket/introduce/05_cancel_subscribe.json\n// module id = zovs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶万向劃轉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"GET /openApi/api/v3/get/asset/transfer\"},{\"type\":\"code\",\"text\":\"curl --location --request GET 'https://open-api.bingx.com/openApi/api/v3/get/asset/transfer?type=FUND_PFUTURES&asset=USDT&amount=100×tamp=1670215150028&signature=ecc819d72515095039b7b383310f718584af4cf70106b57609bc59473185c9a3'\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/get/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_SFUTURES\",\"asset\":\"USDT\",\"amount\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"是\",\"description\":\"劃轉類型\"},{\"name\":\"asset\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣的名稱 例如USDT\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"required\":\"是\",\"description\":\"交易金額\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"FUND_SFUTURES\",\"type\":\"\",\"description\":\"資金賬戶->標准合約\"},{\"name\":\"SFUTURES_FUND\",\"type\":\"\",\"description\":\"標准合約->資金賬戶\"},{\"name\":\"FUND_PFUTURES\",\"type\":\"\",\"description\":\"資金賬戶->永續合約\"},{\"name\":\"PFUTURES_FUND\",\"type\":\"\",\"description\":\"永續合約->資金賬戶\"},{\"name\":\"SFUTURES_PFUTURES\",\"type\":\"\",\"description\":\"標准合約->永續合約\"},{\"name\":\"PFUTURES_SFUTURES\",\"type\":\"\",\"description\":\"永續合約->標准合約\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"交易ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/01_get_asset_transfer.json\n// module id = zvGN\n// module chunks = 3"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/manifest.28d70e5f0dfcac2b09de.js b/static/js/manifest.a33a986912d2e58c86db.js similarity index 87% rename from static/js/manifest.28d70e5f0dfcac2b09de.js rename to static/js/manifest.a33a986912d2e58c86db.js index fc6d27d1..711a619d 100644 --- a/static/js/manifest.28d70e5f0dfcac2b09de.js +++ b/static/js/manifest.a33a986912d2e58c86db.js @@ -1,2 +1,2 @@ -!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s