diff --git a/index.html b/index.html index c6cf61cb..897a16c0 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/app.47d914a6d0e4f66fb841.js b/static/js/app.47d914a6d0e4f66fb841.js deleted file mode 100644 index deb3ffb1..00000000 --- a/static/js/app.47d914a6d0e4f66fb841.js +++ /dev/null @@ -1,2 +0,0 @@ -webpackJsonp([3],{"+29D":function(e,t){e.exports=[{type:"title",text:"2023-12-08"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"html",text:"現貨:24小時價格變動新增價格百分之字段"},{type:"html",text:"現貨:查詢委託訂單列表支持symbol非必填,不填寫symbol字段會返回用戶所有幣對的當前委託單"},{type:"html",text:"永續一鍵平倉接口: 新增”symbol“非必填string字段,不填市價平倉所有幣對持倉,填寫後市價平掉對應幣對倉位"},{type:"html",text:"永續撤銷全部訂單接口: 1,入參”symbol“改為非必填,不填時撤銷所有訂單,填入時撤銷對應幣對的訂單 2,入參新增”type“非必填字段,填寫時撤銷指定類型的訂單,不填撤銷所有訂單類型的訂單"},{type:"html",text:"子賬戶:查詢子賬戶列表:調整入參字段limit:最大1000"},{type:"html",text:"子賬戶:創建子賬戶apikey:入參字段permissions,新增參數值:5-提幣"}]}]},"+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:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/create",protocol:"https",method:"POST",payload:{recvWindow:1e4,subAccountString:"abc123456"},response:{code:0,timestamp:1702288510557,data:{subUid:"16777654",subAccountString:"abc123456"}}},params:[{type:"Request",key:"request",data:[{name:"subAccountString",type:"string",required:"yes",description:"Sub account username(Starting with a letter, containing a number, and longer than 6 characters)"},{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"}]}]}]},"+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:"common",path:"/zh-tw/common/introduce",name:"聯繫我們",content:[{type:"html",text:"歡迎使用BingX開發者文檔。"},{type:"normal",text:"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 "},{type:"html",text:"如有問題反饋可加入:API問題telegram電報群"}]}},"+W0b":function(e,t){e.exports=[{type:"hash",text:"Sub-account internal transfer"},{type:"html",text:"Used for transferring funds between sub-accounts within the Bingx platform (sub-account to sub-account, sub-account to main account). This api cannot be used for transferring funds within the main account or from the main account to a sub-account. To initiate transfers within the main account, please use the dedicated api (Main) User Internal Transfer."},{type:"html",text:"This api requires the main account API KEY permission to be set as 'allow sub-account transfer'. You can go to configure API KEY permissions."},{type:"html",text:"Note: Before using this interface, please make sure that the corresponding sub-account has been authorized for internal transfers. You can use the api Authorize Sub-Account Internal Transfers."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply",protocol:"https",method:"POST",payload:{amount:20,coin:"usdt",userAccount:"16689999",userAccountType:1,walletType:1},response:{code:0,timestamp:1702520425652,data:{id:"12*******12"}}},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 for telephone, required when userAccountType=2."},{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:"The platform returns the unique ID of the internal transfer record."}]}]}]},"+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 https://open-api.bingx.com/openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"normal",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"}]}]}]},"+dFG":function(e,t){e.exports=[{type:"hash",text:"Connection Limits"},{type:"normal",text:"A single websocket is limited to a maximum of 200 connections; exceeding this will return error code 100416."},{type:"normal",text:"A single IP is limited to a maximum of 60 websockets; exceeding this will return error code 100419."}]},"+eKI":function(e,t){e.exports=[{type:"hash",text:"Query Multi-Assets Margin"},{type:"normal",text:"Query multi-assets margin"},{type:"warning",text:"Only available for live trading, live trading domain: https://open-api.bingx.com"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"normal",text:"Interface Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/user/marginAssets",protocol:"https",method:"GET",payload:{timestamp:1730863321895},response:{code:0,msg:"",data:[{currency:"USDC",totalAmount:"0.00000000",availableTransfer:"0.00000000",latestMortgageAmount:"0.00000000"},{currency:"USDT",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"},{currency:"BTC",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"},{currency:"ETH",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"}]},errors:[{desc:"",sample:{code:109500,msg:"Account Service Unavailable, err:symbol not exist",data:{}}}]},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 in milliseconds"}]},{type:"Response",key:"response",data:[{name:"currency",type:"string",description:"Margin assets, such as BTC and ETH etc."},{name:"totalAmount",type:"string",description:"Total amount of margin assets."},{name:"availableTransfer",type:"string",description:"Current available amount for transfer out, dynamic data needs to be re-queried and calculated after each transfer."},{name:"latestMortgageAmount",type:"string",description:"Latest collateral amount available."}]}]}]},"+eZJ":function(e,t,i){var r={"./00_post_trade_order.json":"JG85","./01_get_commissionRate.json":"3Csz","./01_get_leverage.json":"6Wqe","./03_post_leverage.json":"HWdZ","./04_post_allOpenOrders.json":"xM9z","./05_post_closeAllPositions.json":"A11g","./06_get_positions.json":"Uqg4","./07_get_balance.json":"DyCG","./08_get_forceOrders.json":"79Xw","./09_get_allFillOrders.json":"KXGF","./10_delete_trade_order.json":"Mwlf","./11_get_all_openOrders.json":"Ui0Y","./12_get_trade_order.json":"nj2w","./14_get_trade_allOrders.json":"BW7b","./15_get_margin_type.json":"Qb5x","./16_post_margin_type.json":"dI3A","./17_post_trade_positionMargin.json":"2WEb"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="+eZJ"},"+hJF":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("Wd1J").keys(),n=[],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:"
  • 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:"
  • 80020 - risk forbidden
  • "},{type:"html",text:"
  • 100004 - Permission denied as the API key was created without the permission
  • "},{type:"html",text:"
  • 100419 - IP does not match IP whitelist
  • "},{type:"html",text:"
  • 101204 - Insufficient margin
  • "},{type:"html",text:"
  • 80013 - The number of your entrusted orders has reached the system limit. If you need to place an order, please cancel other orders first
  • "},{type:"html",text:"
  • 80018 - order is already filled
  • "},{type:"html",text:"
  • 80019 - The order is being processed. Please use the allOrders api to retrieve the order details later
  • "},{type:"normal",text:"100400",children:[{type:"html",text:"arguments invalid"},{type:"html",text:"miss arguments"}]},{type:"html",text:"
  • 100412 - Null signature
  • "},{type:"html",text:"
  • 100413 - Incorrect apiKey
  • "},{type:"html",text:"
  • 100421 - Null timestamp or timestamp mismatch
  • "},{type:"html",text:"
  • 100410 - rate limitation
  • "},{type:"html",text:"
  • 101209 - The maximum position value for this leverage is ** USDT
  • "},{type:"html",text:"
  • 101212 - Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again
  • "},{type:"html",text:"
  • 101215 - The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.
  • "},{type:"html",text:"
  • 101414 - The maximum leverage for the trading pair is *, please reduce the leverage
  • "},{type:"html",text:"
  • 101415 - This trading pair is suspended from opening new position
  • "},{type:"html",text:"
  • 101460 - The order price should be higher than the estimated liquidation price of the long position
  • "},{type:"html",text:"
  • 101500 - rpc timeout
  • "},{type:"html",text:"
  • 101514 - You're temporarily suspended from opening positions. Please try again later
  • "},{type:"html",text:"
  • 109201 - The same order number is only allowed to be submitted once within 1 second.
  • "},{type:"normal",text:"101211",children:[{type:"html",text:"Order price should be lower than*"},{type:"html",text:"Order price should be higher than*"}]},{type:"normal",text:"80012",children:[{type:"html",text:"GetMarketTrades getContractInfo failled"},{type:"html",text:"symbol not exist"},{type:"html",text:"invalid parameter"},{type:"html",text:"Service Unavailable"},{type:"html",text:"leverage illegal"},{type:"html",text:"connect: connection refused"},{type:"html",text:"margin is not enough"},{type:"html",text:"startTime is later than endTime"},{type:"html",text:"OpenInterestNotExist"},{type:"html",text:"The current system is busy, please try again later"},{type:"html",text:"invalid connection"},{type:"html",text:"stop order cnt hit limit 50"},{type:"html",text:"network failed"},{type:"html",text:"trading has been locked"},{type:"html",text:"position limit"}]},{type:"normal",text:"101400",children:[{type:"html",text:"No position to close"},{type:"html",text:"Order size error"},{type:"html",text:"Insufficient margin"},{type:"html",text:"Must be lower than the maximum callback rate of 90%"},{type:"html",text:"Must be greater than the minimum callback rate of 0.1%"},{type:"html",text:"Invalid Parameter"}]},{type:"normal",text:"80001",children:[{type:"html",text:"tickers is nil"},{type:"html",text:"Request failed"},{type:"html",text:"service has some errors, order not exist"},{type:"html",text:"orderId and clientOrderId are both empty, orderId and clientOrderId are both empty"},{type:"html",text:"order state illegal, order not exist"},{type:"html",text:"the account has positions or pending orders"},{type:"html",text:"margin is not enough"},{type:"html",text:"You're temporarily suspended from opening positions. Please try again later"},{type:"html",text:"order state illegalorder not exist"},{type:"html",text:"Mismatch type"},{type:"html",text:"At present, the actual position is occupied by a Limit Order. If you need to close the position, please cancel other orders first"},{type:"html",text:"trading strategy available is false"},{type:"html",text:"order not exist"},{type:"html",text:"The maximum leverage for the trading pair is 5, please reduce the leverage"},{type:"html",text:"Order size error"},{type:"html",text:"The current system is 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.
  • "}]},"+oba":function(e,t){e.exports=[{type:"hash",text:"查詢倉位"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/cswap/v1/user/positions",protocol:"https",method:"GET",payload:{symbol:"BTC-USD"},response:{code:0,msg:"",data:[{symbol:"BTC-USD",positionId:0x18ff065cb8d00000,positionSide:"LONG",isolated:!1,positionAmt:"3",availableAmt:"3",unrealizedProfit:"-0.00010485",initialMargin:"0.00110845",liquidationPrice:2024.7812708419876,avgPrice:"67662",leverage:4,markPrice:"66098.9",riskRate:"0.00013841",maxMarginReduction:"0",updateTime:1718409600901},{symbol:"ETH-USD",positionId:0x18ed4110a0d00000,positionSide:"LONG",isolated:!1,positionAmt:"376",availableAmt:"376",unrealizedProfit:"-0.08051938",initialMargin:"0.19994044",liquidationPrice:630.4805786791729,avgPrice:"3761.12",leverage:5,markPrice:"3480.77",riskRate:"0.00096807",maxMarginReduction:"0",updateTime:1718409600705}]}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USD, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int32",description:"狀態碼"},{name:"msg",type:"string",description:"描述信息"},{name:"timestamp",type:"int64",description:"響應生成時間點,單位:毫秒"},{name:"data",type:"List",description:"倉位list"}]},{type:"Data",key:"data",data:[{name:"symbol",type:"string",description:"交易對"},{name:"positionId",type:"string",description:"仓位號"},{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:"initialMargin",type:"string",description:"初始保證金"},{name:"liquidationPrice",type:"float64",description:"強平價"},{name:"avgPrice",type:"string",description:"開仓均價"},{name:"leverage",type:"int32",description:"槓桿"},{name:"markPrice",type:"string",description:"標記價格"},{name:"riskRate",type:"string",description:"風險率"},{name:"maxMarginReduction",type:"string",description:"最大可減少保證金"},{name:"updateTime",type:"int64",description:"仓位更新時間,毫秒時間戳"}]}]}]},"+xXY":function(e,t){e.exports=[{type:"hash",text:"TWAP委託詳情"},{type:"normal",text:"用於查詢TWAP委託訂單的詳情信息 "},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/twap/orderDetail",protocol:"https",method:"GET",payload:{mainOrderId:"12312435134",timestamp:1702731661854,recvWindow:"0"},response:{code:0,msg:"",timestamp:1702731661854,data:{symbol:"BNB-USDT",side:"BUY",positionSide:"LONG",priceType:"constant",priceVariance:"2000",triggerPrice:"68000",interval:8,amountPerOrder:"0.111",totalAmount:"0.511",orderStatus:"Running",executedQty:"0.1",duration:800,maxDuration:9e3,createdTime:1702731661854,updateTime:1702731661854}}},params:[{type:"Request",key:"request",data:[{name:"mainOrderId",type:"string",required:"是",description:"TWAP委託訂單編號"},{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:"mainOrderId",type:"string",description:"TWAP委託訂單編號"},{name:"side",type:"string",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",description:"LONG 或 SHORT"},{name:"priceType",type:"string",description:"價格限制類型,constant:價格間距,percentage:滑點"},{name:"priceVariance",type:"string",description:"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)"},{name:"triggerPrice",type:"string",description:"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單"},{name:"interval",type:"int64",description:"策略订单拆单后,委托下单的时间间隔,5-120s之间"},{name:"amountPerOrder",type:"string",description:"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。"},{name:"totalAmount",type:"string",description:"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。"},{name:"orderStatus",type:"string",description:"New: 新建 /Running:運作中/Canceling:撤銷單中/Filled:全部成交/PartiallyFilled:部分成交/Pending:未觸發/PartiallyFilledAndResidueFailed:部分成交(剩餘委託失敗),演算法單狀態/ PartiallyFilledAndResidueCancelled:部分成交(剩餘撤銷),演算法單狀態/Cancelled:已撤銷(不存在部分成交)/Failed:委托失败(不存在部分成交)"},{name:"executedQty",type:"string",description:"成交量"},{name:"duration",type:"int64",description:"已執行時間,單位秒。執行時間到期後委託單將被取消。 "},{name:"maxDuration",type:"int64",description:"最大執行時間執行時間,單位:秒。"},{name:"createdTime",type:"int64",description:"訂單創建時間,單位:毫秒"},{name:"updateTime",type:"int64",description:"訂單更新時間,單位:毫秒"}]}]}]},"/1k/":function(e,t){e.exports=[{type:"hash",text:"查詢訂單詳情"},{type:"normal",text:"查詢訂單詳情"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"GET",payload:{orderId:"1736012449498123456",symbol:"OP-USDT",timestamp:"1702733255486"},response:{code:0,msg:"",data:{order:{symbol:"OP-USDT",orderId:0x18178e2001fdcd00,side:"SELL",positionSide:"LONG",type:"LIMIT",origQty:"1.0",price:"2.1710",executedQty:"0.0",avgPrice:"0.0000",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"PENDING",time:1702732596168,updateTime:1702732596188,clientOrderId:"l*****e",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:"MARK_PRICE",stopGuaranteed:!1,triggerOrderId:0x18178e2001fdcd00}}},errors:[{desc:"",sample:{code:80016,msg:"order does not exist",data:{}}},{desc:"",sample:{code:109414,msg:"Request failed",data:{}}}]},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:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"reduceOnly",type:"string",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{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,系統會將該字段轉為英文小寫"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"},{name:"triggerOrderId",type:"int64",required:"no",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:"已撤銷"}]}]}]},"/Fs7":function(e,t){e.exports=[{type:"hash",text:"Cancel All Open 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:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allOpenOrders",protocol:"https",method:"DELETE",payload:{recvWindow:"0",symbol:"ATOM-USDT",timestamp:"1702732849363"},response:{code:0,msg:"",data:{success:[{symbol:"ATOM-USDT",orderId:0x18178ef724070c00,side:"SELL",positionSide:"SHORT",type:"LIMIT",origQty:"3.00",price:"13.044",executedQty:"0.00",avgPrice:"0.000",cumQuote:"0",stopPrice:"",profit:"0",commission:"0",status:"CANCELLED",time:1702732816465,updateTime:1702732816488,clientOrderId:"",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:""},{symbol:"ATOM-USDT",orderId:0x18178ef724070c00,side:"BUY",positionSide:"SHORT",type:"LIMIT",origQty:"3.00",price:"11.292",executedQty:"0.00",avgPrice:"0.000",cumQuote:"0",stopPrice:"",profit:"0",commission:"0",status:"CANCELLED",time:1702732816820,updateTime:1702732816839,clientOrderId:"",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:""}],failed:[{orderId:111111,clientOrderId:"111111",errorCode:80012,errorMessage:"cancel order failed"},{orderId:222222,clientOrderId:"222222",errorCode:80012,errorMessage:"cancel order failed"}]}}},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 you do not fill this field,will delete all type of orders'},{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:"LIST",description:"list of failed orders"}]},{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:"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order"},{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:"FailOrder",key:"failedOrder",data:[{name:"orderId",type:"int64",description:"Order ID"},{name:"clientOrderId",type:"string",description:"Customized order ID for users"},{name:"errorCode",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"errorMessage",type:"string",description:"Error Details Description"}]}]}]},"/HCz":function(e,t){e.exports=[{type:"hash",text:"查詢聯合保證金抵押資產情況"},{type:"normal",text:"查詢聯合保證金抵押資產情況"},{type:"warning",text:"僅實盤可以調用,實盤域名:https://open-api.bingx.com"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/user/marginAssets",protocol:"https",method:"GET",payload:{timestamp:1730863321895},response:{code:0,msg:"",data:[{currency:"USDC",totalAmount:"0.00000000",availableTransfer:"0.00000000",latestMortgageAmount:"0.00000000"},{currency:"USDT",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"},{currency:"BTC",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"},{currency:"ETH",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"}]},errors:[{desc:"",sample:{code:109500,msg:"Account Service Unavailable, err:symbol not exist",data:{}}}]},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"currency",type:"string",description:"保證金資產,例如BTC和ETH等。"},{name:"totalAmount",type:"string",description:"保證金資產數量。"},{name:"availableTransfer",type:"string",description:"當前可轉出數量,動態數據每次轉出後需要重新查詢和計算。"},{name:"latestMortgageAmount",type:"string",description:"最新可抵押金額。"}]}]}]},"/Kh3":function(e,t){e.exports=[{type:"hash",text:"查詢槓桿倍數"},{type:"normal",text:"查詢用戶在指定symbol合約的開倉槓桿。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/leverage",protocol:"https",method:"GET",payload:{symbol:"BCH-USDT",timestamp:"1702733572940"},response:{code:0,msg:"",data:{longLeverage:50,shortLeverage:50,maxLongLeverage:75,maxShortLeverage:75}},errors:[{desc:"",sample:{code:109500,msg:"Account Service Unavailable, err:symbol not exist",data:{}}}]},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:"空倉槓桿倍數"},{name:"maxLongLeverage",type:"int64",description:"最大多倉槓桿倍數"},{name:"maxShortLeverage",type:"int64",description:"最大空倉槓桿倍數"},{name:"availableLongVol",type:"string",description:"可開多數量"},{name:"availableShortVol",type:"string",description:"可開空數量"},{name:"availableLongVal",type:"string",description:"可開多價值"},{name:"availableShortVal",type:"string",description:"可開空價值"},{name:"maxPositionLongVal",type:"string",description:"持倉最大可開多價值"},{name:"maxPositionShortVal",type:"string",description:"持倉最大可開空價值"}]}]}]},"/Pe4":function(e,t){e.exports=[{type:"hash",text:"Export fund flow"},{type:"normal",text:"Export fund flow"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"warning",text:"response: Excel File"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"html",text:"
  • Only keep the last 3 months data.
  • "},{type:"demo",api:{uri:"/openApi/swap/v2/user/income/export",protocol:"https",method:"GET",payload:{endTime:"",limit:"200",recvWindow:"10000",startTime:"",symbol:"BTC-USDT",timestamp:"1702449874964"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"no",description:"trading pair, for example: BTC-USDT"},{name:"incomeType",type:"string",required:"no",description:"Fund flow type, optional values:REALIZED_PNL FUNDING_FEE TRADING_FEE INSURANCE_CLEAR TRIAL_FUND ADL SYSTEM_DEDUCTION"},{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:"Number of returned result sets default value: 100 maximum value: 1000"},{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"}]}]}]},"/YEw":function(e,t){e.exports=[{type:"hash",text:"查詢訂單詳情"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/query",protocol:"https",method:"GET",payload:{symbol:"BRG-USDT",orderId:"1735965009395131234",timestamp:"1702721583560"},response:{code:0,msg:"",debugMsg:"",data:{symbol:"BRG-USDT",orderId:0x181762fa7f812300,price:"0.0005027",StopPrice:"0",origQty:"4038",executedQty:"0",cummulativeQuoteQty:"0",status:"PENDING",type:"LIMIT",side:"BUY",time:1702721285567,updateTime:1702721285567,origQuoteOrderQty:"0",fee:"0",feeAsset:"BRG",avgPrice:"0.0005027"}}},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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET"},{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"},{name:"stopPrice",type:"string",required:"是",description:"觸發價格"},{name:"avgPrice",type:"string",description:"平均成交價"}]}]}]},"/Z+/":function(e,t,i){var r={".":"cId4","./":"cId4","./00_get_account_balance":"HY4c","./00_get_account_balance.json":"HY4c","./01_get_asset_transfer":"bSWG","./01_get_asset_transfer.json":"bSWG","./02_get_asset_transfer2":"gp5h","./02_get_asset_transfer2.json":"gp5h","./07_post_capital_innerTransfer_apply":"KPNz","./07_post_capital_innerTransfer_apply.json":"KPNz","./14.get_wallet_queryInnerTransferRecords":"9tS2","./14.get_wallet_queryInnerTransferRecords.json":"9tS2","./21_get_account_allAccountBalance":"Exaw","./21_get_account_allAccountBalance.json":"Exaw","./index":"cId4","./index.js":"cId4"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.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 api 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:"Place multiple orders"},{type:"desc",text:"The current account performs batch order operations on the specified symbol contract",desc:[{type:"html",text:"
  • Specific order conditions and rules are consistent with ordinary orders
  • "},{type:"html",text:"
  • BatchOrders is kind of difficult but do not worry, please refer to 4 steps below:
  • "},{type:"html",text:"
  • 1. make your payload to string
  • "},{type:"code",text:'original parameters: 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=1692956597902'},{type:"html",text:"
  • 2. sign original parameters
  • "},{type:"code",text:"signature: bab521321a62a1381a76b485b92dd0f4a8b16b4616cfa4c75ffba899f80dfc86"},{type:"html",text:"
  • 3. url encode each value,for example the value of batchOrders field,except timestamp field value (not url encode the key, not url encode entire original parametersg), make it like below:
  • "},{type:"code",text:"after url encoded: batchOrders=%5B%7B%22symbol%22%3A%22ETH-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A1%7D%2C%7B%22symbol%22%3A%22BTC-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A0.001%7D%5D×tamp=1692956597902"},{type:"html",text:"
  • 4. final request should be like
  • "},{type:"code",text:"POST https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=%5B%7B%22symbol%22%3A%22ETH-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A1%7D%2C%7B%22symbol%22%3A%22BTC-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A0.001%7D%5D×tamp=1692956597902&signature=bab521321a62a1381a76b485b92dd0f4a8b16b4616cfa4c75ffba899f80dfc86"},{type:"warning",text:"Batch orders are processed concurrently, and order matching order is not guaranteed"},{type:"warning",text:"The minimum order quantity can be obtained from the api /openApi/swap/v2/quote/contracts: tradeMinQuantity, tradeMinUSDT"},{type:"normal",text:"Trading Rules:",style:{"font-weight":"bold"},children:[{type:"html",text:"Trading Rules: https://bingx.com/en/tradeInfo/perpetual/trading-rules/BTC-USDT/"},{type:"html",text:"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/swap/v2/quote/contracts"},{type:"html",text:"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234."}]}]},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{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": "ETH-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 1},{"symbol": "BTC-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 0.001}]'},response:{code:0,msg:"",data:{orders:[{symbol:"ID-USDT",orderId:0x18178c2ba6c03500,side:"SELL",positionSide:"LONG",type:"MARKET",clientOrderId:"",workingType:""}]}},errors:[{desc:"",sample:{code:80001,msg:"No position to close; parameter quantity is must",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"No position to close; parameter quantity is must",data:{code:80001,msg:"Order size error; Order size error; Order size error; Order size error",data:{orders:[]}}}},{desc:"",sample:{code:80001,msg:"No position to close; parameter quantity is must",data:{code:80014,msg:"orderIdList & clientOrderIDList are both empty;",data:{}}}},{desc:"",sample:{code:109400,msg:"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.",data:{}}},{desc:"",sample:{code:109400,msg:"symbol not exist",data:{}}},{desc:"",sample:{code:80001,msg:"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again; Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again; Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"No position to close",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"Insufficient margin",data:{orders:[]}}},{desc:"",sample:{code:109400,msg:"In the Hedge mode, the 'ReduceOnly' field can not be filled.; In the Hedge mode, the 'ReduceOnly' field can not be filled.",data:{}}},{desc:"",sample:{code:80001,msg:"This order exceeds the current position limit of 5000 USDT. Please try to reduce the leverage or adjust the order amount.; This order exceeds the current position limit of 5000 USDT. Please try to reduce the leverage or adjust the order amount.",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"The maximum position value for this leverage is 150000 USDT.",data:{orders:[]}}},{desc:"",sample:{code:100001,msg:"Signature verification failed due to signature mismatch,please verify our authentication signature and try to run our sample code from the link https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Query%20Assets",timestamp:1727124087795}},{desc:"",sample:{code:80020,msg:"risk forbidden",data:{}}},{desc:"",sample:{code:80001,msg:"Stop Loss price should be lower than the current price",data:{orders:[]}}},{desc:"",sample:{code:100421,msg:"Null timestamp or timestamp mismatch, try to run our sample code from the link https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Query%20Assets",timestamp:1726839221156}},{desc:"",sample:{code:80001,msg:"This operation is not allowed as your account assets are being processed. Please try again later.; This operation is not allowed as your account assets are being processed. Please try again later.",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.; In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.",data:{}}},{desc:"",sample:{code:80001,msg:"In the One-way mode, the 'PositionSide' field can only be set to BOTH.; In the One-way mode, the 'PositionSide' field can only be set to BOTH.; In the One-way mode, the 'PositionSide' field can only be set to BOTH.",data:{}}}]},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:"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss"},{name:"side",type:"string",required:"yes",description:"buying and selling direction SELL, BUY"},{name:"positionSide",type:"string",required:"no",description:"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty"},{name:"reduceOnly",type:"string",required:"no",description:"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode"},{name:"price",type:"float64",required:"no",description:"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL"},{name:"quantity",type:"float64",required:"no",description:"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported."},{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:"priceRate",type:"float64",required:"no",description:"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1"},{name:"stopLoss",type:"string",required:"no",description:"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP"},{name:"takeProfit",type:"string",required:"no",description:"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT"},{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. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"},{name:"workingType",type:"string",required:"no",description:"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE."},{name:"timeInForce",type:"string",required:"no",description:"Time in Force, currently supports PostOnly, GTC, IOC, and FOK"},{name:"closePosition",type:"string",required:"no",description:"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly"},{name:"activationPrice",type:"float64",required:"no",description:"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)"},{name:"stopGuaranteed",type:"string",required:"no",description:"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss."}]},{type:"stopLoss/takeProfit",key:"key3",data:[{name:"type",type:"string",description:"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT"},{name:"stopPrice",type:"float64",required:"no",description:"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT"},{name:"price",type:"float64",required:"no",description:"Order price"},{name:"workingType",type:"string",required:"no",description:"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE."},{name:"stopGuaranteed",type:"string",required:"no",description:"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss."}]},{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:"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss"},{name:"positionSide",type:"string",description:"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty"},{name:"reduceOnly",type:"string",description:"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode"},{name:"orderID",type:"string",description:"Order ID"},{name:"clientOrderId",type:"string",required:"no",description:"Customized order ID for users. The system will convert this field to lowercase."},{name:"stopGuaranteed",type:"string",required:"no",description:"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss."}]}]}]},"/chU":function(e,t){e.exports=[{type:"title",text:"2024-07-22"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"html",text:"永續U本位:請求中的ClientOrderId字段會被系統自動轉為英文小寫。"}]}]},"/iLc":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("NCXQ").keys(),n=[],o=0;o最多能返回15天的資料"},{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/v2/market/kline",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",interval:"1m",limit:5},response:{code:0,timestamp:1702720626772,data:[[170272062e4,42216.29,42216.94,42216.29,42216.72,.2,1702720679999,8548.46],[170272056e4,42220.61,42221.1,42215.56,42216.63,2.93,1702720619999,123968.7],[17027205e5,42182.59,42220.38,42182.59,42220.38,1.53,1702720559999,64851.33],[170272044e4,42182.84,42183.16,42182.22,42182.81,2.54,1702720499999,107559.45],[170272038e4,42199.72,42204.53,42180.2,42182.76,1.1,1702720439999,46549.09]]}},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"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{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線"}]}]}]},"/nLp":function(e,t){e.exports=[{type:"hash",text:"批量撤销订单再下单"},{type:"normal",text:"此接口用於批量撤銷掛單並在同個交易對上重新下單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/trade/batchCancelReplace",protocol:"https",method:"POST",payload:{batchOrders:'[{"cancelOrderId": 1753337028434464768, "cancelReplaceMode": "ALLOW_FAILURE", "symbol": "BTC-USDT", "type": "LIMIT", "side": "BUY", "positionSide": "LONG", "price": 38000, "quantity": 1, "takeProfit": "{\\"type\\": \\"TAKE_PROFIT\\", \\"stopPrice\\": 45000, \\"price\\": 45000}", "stopLoss": "{\\"type\\": \\"STOP\\", \\"stopPrice\\": 37000, \\"price\\": 37000}"}, {"cancelOrderId": 1753337028434464768, "cancelReplaceMode": "ALLOW_FAILURE", "symbol": "BTC-USDT", "type": "LIMIT", "side": "BUY", "positionSide": "LONG", "price": 38000, "quantity": 1, "takeProfit": "{\\"type\\": \\"TAKE_PROFIT\\", \\"stopPrice\\": 45000, \\"price\\": 45000}", "stopLoss": "{\\"type\\": \\"STOP\\", \\"stopPrice\\": 37000, \\"price\\": 37000}"}, {"cancelOrderId": 1753337028434464768, "cancelReplaceMode": "ALLOW_FAILURE", "symbol": "BTC-USDT", "type": "LIMIT", "side": "BUY", "positionSide": "LONG", "price": 38000, "quantity": 1, "takeProfit": "{\\"type\\": \\"TAKE_PROFIT\\", \\"stopPrice\\": 45000, \\"price\\": 45000}", "stopLoss": "{\\"type\\": \\"STOP\\", \\"stopPrice\\": 37000, \\"price\\": 37000}"}]',timestamp:"1702731530753"},response:{code:0,msg:"",data:[{cancelResult:"true",cancelMsg:"",cancelResponse:{cancelClientOrderId:"",cancelOrderId:0x18551abcdf601000,symbol:"BTC-USDT",orderId:0x18551abcdf601000,side:"BUY",positionSide:"LONG",type:"LIMIT",origQty:"10.0000",price:"38000.0",executedQty:"0.0000",avgPrice:"0.0",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"PENDING",time:1706863098e3,updateTime:1706863097e3,clientOrderId:"",leverage:"15X",workingType:"MARK_PRICE",onlyOnePosition:!1,reduceOnly:!1},replaceResult:"true",ReplaceMsg:"",newOrderResponse:{orderId:0x18551acd3e601000,symbol:"BTC-USDT",positionSide:"LONG",side:"BUY",type:"LIMIT",price:38e3,quantity:1,stopPrice:0,workingType:"MARK_PRICE",clientOrderId:"",timeInForce:"GTC",priceRate:0,stopLoss:'{"type": "STOP", "stopPrice": 37000, "price": 37000}',takeProfit:'{"type": "TAKE_PROFIT", "stopPrice": 45000, "price": 45000}',reduceOnly:!1}}]}},params:[{type:"Request",key:"request",data:[{name:"batchOrders",type:"string",required:"是",description:"一批訂單, LIST的字符串形式"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值,單位:毫秒"}]},{type:"OrderRequest",key:"orderRequest",data:[{name:"cancelReplaceMode",type:"string",required:"是",description:"STOP_ON_FAILURE:如果撤銷訂單失敗將不會繼續重新下單。\nALLOW_FAILURE: 不管撤銷訂單是否成功都會繼續重新下單。"},{name:"cancelClientOrderId",type:"string",required:"否",description:"要撤銷的原客戶自訂訂單號碼,系統會將該字段轉為英文小寫。必須提供cancelClientOrderId 或 cancelOrderId。如果兩個參數都提供, cancelOrderId 會佔優先。"},{name:"cancelOrderId",type:"int64",required:"否",description:"要撤銷的平台訂單號碼。必須提供cancelClientOrderId 或 cancelOrderId。如果兩個參數都提供, cancelOrderId 會佔優先。"},{name:"cancelRestrictions",type:"string",required:"否",description:"ONLY_NEW :如果訂單狀態為 NEW,撤銷將會成功。\nONLY_PENDING:如果訂單狀態為 PENDING,撤銷將成功。\nONLY_PARTIALLY_FILLED :如果訂單狀態為 PARTIALLY_FILLED,撤銷將會成功。"},{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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"是",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"reduceOnly",type:"string",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{name:"price",type:"float64",required:"否",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"quantity",type:"float64",required:"否",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單"},{name:"stopPrice",type:"float64",required:"否",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數"},{name:"priceRate",type:"float64",required:"否",description:"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"stopLoss",type:"string",required:"否",description:"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP"},{name:"takeProfit",type:"string",required:"否",description:"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,不同訂單不可使用相同的clientOrderID, clientOrderId 僅支援 LIMIT/MARKET 訂單類型"},{name:"closePosition",type:"string",required:"否",description:"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用"},{name:"activationPrice",type:"float64",required:"no",description:"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKETT 需要此參數, 預設為下單當前市場價格(支援不同workingType)"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"},{name:"orderResponse",type:"OrderResponse",required:"yes",description:""}]},{type:"OrderResponse",key:"orderResponse",data:[{name:"cancelResult",type:"string",description:"撤單結果,true:撤單成功,false:撤單失敗"},{name:"cancelMsg",type:"string",description:"撤單失敗時的原因"},{name:"cancelResponse",type:"CancelResponse",description:"撤銷訂單的信息"},{name:"replaceResult",type:"string",description:"撤單結果,true:撤單成功,false:撤單失敗"},{name:"replaceMsg",type:"string",description:"撤單失敗時的原因"},{name:"newOrderResponse",type:"NewOrderResponse",description:"新訂單的信息"}]},{type:"CancelResponse",key:"cancelResponse",data:[{name:"cancelClientOrderId",type:"string",description:"撤單訂單的自定義OrderId,系統會將該字段轉為英文小寫"},{name:"cancelOrderId",type:"string",description:"撤銷訂單的OrderId"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"orderId",type:"int64",description:"訂單號"},{name:"side",type:"string",description:"買賣方向"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"price",type:"string",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"executedQty",type:"string",description:"成交量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"status",type:"string",description:"訂單狀態"},{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫"},{name:"leverage",type:"string",description:"槓桿倍數"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"onlyOnePosition",type:"bool",description:"是否單向持倉,true:是;false:不是"},{name:"reduceOnly",type:"bool",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"}]},{type:"NewOrderResponse",key:"newOrderResponse",data:[{name:"orderId",type:"int64",description:"訂單號"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"positionSide",type:"string",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"price",type:"float64",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"quantity",type:"float64",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單"},{name:"stopPrice",type:"float64",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\n"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫"},{name:"timeInForce",type:"string",description:"有效方式,目前支援PostOnly、GTC、IOC和FOK"},{name:"priceRate",type:"float64",description:"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1"},{name:"reduceOnly",type:"bool",description:"是否僅減倉"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]}]}]},"/nlw":function(e,t,i){var r={"./01_get_contract_allPosition.json":"ttu5","./02_get_contract_allOrders.json":"RhU9","./03_get_contract_balance.json":"n0S/"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="/nlw"},"/qZT":function(e,t){e.exports=[{type:"hash",text:"按倉位ID平倉"},{type:"normal",text:""},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/trade/closePosition",protocol:"https",method:"POST",payload:{timestamp:"1702731721672",positionId:"1769649551460794368"},response:{code:0,msg:"",timestamp:0,data:{orderId:0x188f0ef61a800000,positionId:"1769649551460794368",symbol:"BTC-USDT",side:"Ask",type:"Market",positionSide:"BOTH",origQty:"1.0000"}}},params:[{type:"Request",key:"request",data:[{name:"positionId",type:"string",required:"是",description:"倉位ID,将会把该仓位的持仓进行市价全额平仓"},{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:"data",type:"Data",required:"yes",description:""}]},{type:"Data",key:"data",data:[{name:"orderId",type:"int64",description:"訂單號"},{name:"positionId",type:"string",description:"倉位ID"},{name:"symbol",type:"string",description:""},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"MARKET:市價單"},{name:"positionSide",type:"string",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"origQty",type:"string",description:"委託數量,幣的數量"}]}]}]},"/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:"
  • 100204 - No data
  • "},{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:"normal",text:"100202",children:[{type:"html",text:"Insufficient assets"},{type:"html",text:"The current system is busy, please try again later"}]},{type:"normal",text:"100421",children:[{type:"html",text:"The current system is busy, please try again later"}]},{type:"normal",text:"100400",children:[{type:"html",text:"quantity/quoteOrderQty can't both be lte 0 in limit order"},{type:"html",text:"The current system is busy, please try again later"},{type:"html",text:"The same order can only be submitted once per second."},{type:"html",text:"invalid symbol, send symbol like BTC-USDT"},{type:"html",text:"The minimum amount per order is *"},{type:"html",text:"miss arguments"}]},{type:"normal",text:"100414",children:[{type:"html",text:"The account is abnormal, please contact customer service."}]},{type:"normal",text:"100413",children:[{type:"html",text:"Incorrect apiKey"},{type:"html",text:"Null apiKey"}]},{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:"TAKE_PROFIT_MARKET 市價止盈單"},{type:"normal",text:"STOP_MARKET 市價止損單"},{type:"normal",text:"LIMIT 限價單"},{type:"normal",text:"TAKE_PROFIT 限價止盈單"},{type:"normal",text:"STOP 限價止損單"},{type:"normal",text:"TRIGGER_MARKET 計劃委託市價單"},{type:"normal",text:"TRIGGER_LIMIT 計劃委託單限價單"},{type:"normal",text:"TRAILING_STOP_MARKET 追蹤委託單"},{type:"normal",text:"TRAILING_TP_SL 移動止盈止損"},{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:"warning",text:"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來"},{type:"warning",text:"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key"},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"notice:":"no need to subscribe to any specific channel,please check the hightlight msg in the api docs"}'},params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件類型:ORDER_TRADE_UPDATE"},{name:"E",type:"",description:"事件時間:1676603102163"},{name:"T",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:"sp",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 or BOTH"},{name:"rp",type:"",description:"該交易實現盈虧: 0.00000000"},{name:"z",type:"",description:"訂單累計已成交量: 0.00000000"},{name:"sg",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。"},{name:"ti",type:"",description:"與此訂單關聯的條件單ID:1771124709866754048"},{name:"ro",type:"",description:"reduceOnly,是否僅減倉訂單"},{name:"td",type:"",description:"成交ID"},{name:"tv",type:"",description:"成交金額"}]}]}]},"01Ul":function(e,t){e.exports=[{type:"hash",text:"撤銷訂單"},{type:"normal",text:"将當前賬戶處於當前委託狀態的某個訂單進行撤銷操作。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"warning",text:"撤單接口1s限制最多能撤同一條orderId或者clientOrderID,請勿重複提交"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/cswap/v1/trade/cancelOrder",protocol:"https",method:"DELETE",payload:{orderId:"1736011869418901234",symbol:"RNDR-USD",timestamp:"1702732515704"},response:{code:0,msg:"",data:{order:{symbol:"RNDR-USD",orderId:0x18178d98f2934f00,side:"BUY",positionSide:"LONG",type:"LIMIT",origQty:"3",price:"4.5081",executedQty:"0",avgPrice:"0.0000",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"CANCELLED",time:1702732457867,updateTime:1702732457888,leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:""}}}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"否",description:"訂單號"},{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USD, 請使用大寫字母"},{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-USD"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單"},{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:"更新時間,單位:毫秒"}]}]}]},"0DXm":function(e,t){e.exports=[{type:"hash",text:"OCO下單"},{type:"normal",text:"發送新 one-cancels-the-other (OCO) 訂單,啟動其中一個訂單會立即取消另一個訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/oco/order",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",side:"BUY",quantity:.001,listClientOrderId:"12345610030",aboveClientOrderId:"12345610031",belowClientOrderId:"12345610031",orderPrice:88e3,limitPrice:48e3,triggerPrice:87e3,timestamp:1724655430675},response:{code:0,msg:"",debugMsg:"",data:[{transactionTime:0,orderId:"1827963624962916352",clientOrderId:"12345610034",symbol:"BTC-USDT",orderType:"ocoLimit",side:"BUY",triggerPrice:0,price:48e3,quantity:.001,orderListId:"12345610033",status:""},{transactionTime:0,orderId:"1827963624962916353",clientOrderId:"12345610035",symbol:"BTC-USDT",orderType:"ocoTps",side:"BUY",triggerPrice:87e3,price:88e3,quantity:.001,orderListId:"12345610033",status:""}]}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"side",type:"string",required:"是",description:"交易類型, BUY買 SELL賣"},{name:"quantity",type:"float64",required:"是",description:"下單數量, 例如: 0.1BTC"},{name:"limitPrice",type:"float64",required:"是",description:"限價單委託價格, 例如: 10000USDT"},{name:"orderPrice",type:"float64",required:"是",description:"止盈止損單觸發後創建的限價單的委託價格, 例如: 10000USDT"},{name:"triggerPrice",type:"float64",required:"是",description:"止盈止損單的觸發價格, 例如: 10000USDT"},{name:"listClientOrderId",type:"string",required:"否",description:'整個Order List的自定義唯一ID, 僅支持全數字的字符串, 例如: "123456"'},{name:"aboveClientOrderId",type:"string",required:"否",description:'限價單的自定義唯一ID,僅支持全數字的字符串, 例如: "123456"'},{name:"belowClientOrderId",type:"string",required:"否",description:'止盈止損單的自定義唯一ID,僅支持全數字的字符串, 例如: "123456"'},{name:"recvWindow",type:"float64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求時間戳, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"訂單ID"},{name:"clientOrderId",type:"string",description:"自定義訂單ID"},{name:"orderType",type:"string",description:"ocoLimit:OCO限價單,ocoTps:OCO止盈止損單"},{name:"symbol",type:"string",description:"交易品種"},{name:"price",type:"float64",description:"委託價格"},{name:"triggerPrice",type:"float64",description:"觸發價格"},{name:"quantity",type:"float64",description:"下單數量"},{name:"status",type:"string",description:"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗"},{name:"side",type:"string",description:"交易類型, BUY買 SELL賣"}]}]}]},"0Dd3":function(e,t,i){var r={"./generate.js":"nFJB","./python.js":"M0Cl"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="0Dd3"},"0EuA":function(e,t){e.exports=[{type:"hash",text:"Subscribe Market Depth Data"},{type:"normal",text:"Push limited order book depth information with a customizable push interval."},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"The dataType is @depth@, for example, BTC-USDT@depth5@100ms, BTC-USDT@depth20@200ms, BTC-USDT@depth100@500ms."},{type:"code",text:"If is not provided, the default is 500ms."},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","reqType": "sub","dataType":"BTC-USDT@depth5@500ms"}'},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"},{name:"interval",type:"string",required:"yes",description:"Interval, e.g., 100ms, 200ms, 500ms, 1000ms"}]},{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 BTC-USDT@depth5@500ms"},{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"}]},{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:"interval",key:"key3",data:[{name:"100ms",type:"",description:"100 milliseconds"},{name:"200ms",type:"",description:"200 milliseconds"},{name:"500ms",type:"",description:"500 milliseconds"},{name:"1000ms",type:"",description:"1000 milliseconds"}]}]}]},"0IKX":function(e,t){e.exports=[{type:"hash",text:"合約持倉量"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/openInterest",protocol:"https",method:"GET",payload:{symbol:"EOS-USDT"},response:{code:0,msg:"",data:{openInterest:"7409966.52",symbol:"EOS-USDT",time:1702719692859}}},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:"openInterest",type:"string",description:"持倉數量"},{name:"symbol",type:"string",description:"合約名稱"},{name:"time",type:"int64",description:"撮合引擎時間"}]}]}]},"0L6n":function(e,t){e.exports=[{type:"hash",text:"TWAP委託中訂單"},{type:"normal",text:"用於查詢TWAP委託中訂單,即沒有執行或仍在執行中的委託訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/twap/openOrders",protocol:"https",method:"GET",payload:{symbol:"BNB-USDT",timestamp:1702731661854,recvWindow:"0"},response:{code:0,msg:"",timestamp:1702731661854,data:{list:[{symbol:"BNB-USDT",side:"BUY",positionSide:"LONG",priceType:"constant",priceVariance:"2000",triggerPrice:"68000",interval:8,amountPerOrder:"0.111",totalAmount:"0.511",orderStatus:"Running",executedQty:"0.1",duration:800,maxDuration:9e3,createdTime:1702731661854,updateTime:1702731661854}],total:1}}},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:"mainOrderId",type:"string",description:"TWAP委託訂單編號"},{name:"side",type:"string",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",description:"LONG 或 SHORT"},{name:"priceType",type:"string",description:"價格限制類型,constant:價格間距,percentage:滑點"},{name:"priceVariance",type:"string",description:"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)"},{name:"triggerPrice",type:"string",description:"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單"},{name:"interval",type:"int64",description:"策略订单拆单后,委托下单的时间间隔,5-120s之间"},{name:"amountPerOrder",type:"string",description:"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。"},{name:"totalAmount",type:"string",description:"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。"},{name:"orderStatus",type:"string",description:"New: 新建 /Running:運作中/Canceling:撤銷單中/Filled:全部成交/PartiallyFilled:部分成交/Pending:未觸發/PartiallyFilledAndResidueFailed:部分成交(剩餘委託失敗),演算法單狀態/ PartiallyFilledAndResidueCancelled:部分成交(剩餘撤銷),演算法單狀態/Cancelled:已撤銷(不存在部分成交)/Failed:委托失败(不存在部分成交)"},{name:"executedQty",type:"string",description:"成交量"},{name:"duration",type:"int64",description:"已執行時間,單位秒。執行時間到期後委託單將被取消。 "},{name:"maxDuration",type:"int64",description:"最大執行時間執行時間,單位:秒。"},{name:"createdTime",type:"int64",description:"訂單創建時間,單位:毫秒"},{name:"updateTime",type:"int64",description:"訂單更新時間,單位:毫秒"}]}]}]},"0Lu1":function(e,t){e.exports=[{type:"hash",text:"取消全部訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/cswap/v1/trade/allOpenOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USD"},response:{code:0,msg:"",timestamp:1718372477371,data:{success:[{symbol:"BTC-USD",orderId:"1801610628516806656",side:"BUY",positionSide:"LONG",type:"LIMIT",quantity:2,origQty:"0",price:"27173",executedQty:"0",avgPrice:"0",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"CANCELLED",time:1718372420802,updateTime:1718372420820,clientOrderId:"",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:"",stopGuaranteed:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:"",stopGuaranteed:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:""}],failed:[{orderId:"1801610628516806656",code:123,msg:""},{orderId:"1801610628516806656",code:123,msg:""}]}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USD, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int32",description:"狀態碼"},{name:"msg",type:"string",description:"描述信息"},{name:"timestamp",type:"int64",description:"響應生成時間點,單位:毫秒"},{name:"data",type:"Obj",description:""}]},{type:"Data",key:"data",data:[{name:"success",type:"List",description:""},{name:"failed",type:"List",description:""}]},{type:"Success",key:"success",data:[{name:"symbol",type:"string",description:"交易對"},{name:"orderId",type:"string",description:"訂單號"},{name:"side",type:"string",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",description:"持倉方向,雙向持倉僅可選擇 LONG 或 SHORT"},{name:"time",type:"string",description:"委托時間"},{name:"type",type:"string",description:"訂單類型"},{name:"status",type:"string",description:"訂單狀態"},{name:"commission",type:"string",description:"該筆訂單的手續費"},{name:"updateTime",type:"string",description:"最新成交時間"},{name:"quantity",type:"string",description:"下單數量"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"委託數量"},{name:"avgPrice",type:"string",description:"成交均價"},{name:"cumQuote",type:"string",description:"成交額"},{name:"profit",type:"string",description:"該筆訂單盈虧利潤"},{name:"executedQty",type:"string",description:"累計已成交數量"}]},{type:"Failed",key:"failed",data:[{name:"OrderId",type:"string",description:"訂單號"},{name:"code",type:"int32",description:"狀態碼"},{name:"msg",type:"string",description:"描述信息"}]}]}]},"0iHJ":function(e,t,i){var r={"./csharp.js":"INcn","./golang.js":"y0aS","./html.js":"5KyA","./java.js":"zJn2","./nodejs.js":"qxtL","./php.js":"252X","./python.js":"bTzu","./shell.js":"bfXa"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="0iHJ"},"0uHt":function(e,t){e.exports=[{type:"title",text:"2024-04-25"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"html",text:"Change perpetual contract: 'Contract Information' api supports querying by a symbol."},{type:"html",text:"change perpetual contract: allFillOrders interface, when the symbol field is not provided, it will return the historical transaction information of all pairs."},{type:"html",text:"Change perpetual contract: The query position api has a new Return Margin field."}]}]},"0uMI":function(e,t,i){var r={"./01_get_currentTrack.json":"gp62","./02_post_close_currentTrack.json":"Fxil","./03_post_tpsl_currentTrack.json":"Sfdp","./04_spot_trader_sell_order.json":"kpfu"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="0uMI"},"0xDb":function(e,t,i){"use strict";i.d(t,"d",function(){return E}),i.d(t,"n",function(){return O}),i.d(t,"p",function(){return q}),i.d(t,"q",function(){return k}),i.d(t,"m",function(){return v}),i.d(t,"o",function(){return D}),i.d(t,"h",function(){return M}),i.d(t,"l",function(){return C});var r,n,o=i("Gu7T"),s=i.n(o),a=i("W3Iv"),p=i.n(a),d=i("BO1k"),c=i.n(d),m=i("d7EF"),l=i.n(m),y=i("bOdI"),u=i.n(y),g=i("OvRC"),h=i.n(g),T=i("7+uW"),_=i("e5CW"),f=i("J7jo"),b=i("W+8S"),x=i.n(b),I=i("BxwQ"),w=i("nFJB"),R=i("2uFj"),P=i("ecdD");i.d(t,"a",function(){return P.a}),i.d(t,"b",function(){return P.b}),i.d(t,"c",function(){return P.c}),i.d(t,"e",function(){return P.d}),i.d(t,"f",function(){return P.e}),i.d(t,"g",function(){return P.f}),i.d(t,"i",function(){return f.default}),i.d(t,"k",function(){return I.default}),i.d(t,"j",function(){return w.default});var S=h()(null),A=[],E=x.a,O=function(e){var t=e;return"zh-hans"==e&&(t="zh-cn"),"zh-tw"==e&&(t="zh-tw"),"en-US"==e&&(t="en-us"),_.h.map(function(e){return{name:e,path:"/"+t+"/"+e}})},q={success:(r={},u()(r,P.c.zh,"复制成功"),u()(r,P.c.tw,"複製成功"),u()(r,P.c.en,"Copy Successfully"),r),error:(n={},u()(n,P.c.zh,"复制失败"),u()(n,P.c.tw,"複製失敗"),u()(n,P.c.en,"Copy Failed"),n)},k=function(e){S=h()(null),A=[];var t=Object(R.a)(e),i=Object(R.b)(e);for(var r in i)i[r].forEach(function(e){var i=e.path;S[i]={name:e.name,content:e.content,moduleName:t[e.module]},Array.isArray(e.children)&&e.children.forEach(function(r){var n=i+"/"+r.path;S[n]={name:r.name,content:r.content,moduleName:t[e.module]}})});!function(){A=[];var e=!0,t=!1,i=void 0;try{for(var r,n=c()(p()(S));!(e=(r=n.next()).done);e=!0){var o=r.value,a=l()(o,2),d=a[0],m=a[1],y=d,u=m.name,g=m.content,h=m.moduleName;if(Array.isArray(g)){for(var T=null,_=0;_send($channel);\n\n // Main loop to keep the connection open and process messages\n while (true) {\n $message = $client->receive(); // Receive message\n if ($message) {\n // Check if message is binary\n if (is_string($message)) {\n $decodedMsg = decodeGzip($message);\n echo "Received Binary Message: $decodedMsg\n";\n if (str_contains($decodedMsg, "ping")) { \n $client->send("pong");\n echo "Sent pong\n";\n }\n } else {\n echo "Received Text Message: $message\n";\n }\n }\n\n // Send periodic ping messages\n $client->send("Ping");\n echo "Sent Ping\n";\n sleep(5); // 5 seconds\n }\n\n} catch (Exception $e) {\n echo "Exception: " . $e->getMessage() . "\n";\n}\n\n// GZIP decoding function\nfunction decodeGzip($compressedData) {\n $stream = gzopen(\'data://text/plain;base64,\' . base64_encode($compressedData), \'rb\');\n $decodedMessage = \'\';\n\n while (!gzeof($stream)) {\n $decodedMessage .= gzread($stream, 1024);\n }\n\n gzclose($stream);\n return $decodedMessage;\n}'},"26Si":function(e,t){e.exports=[{type:"hash",text:"查詢委托訂單状态"},{type:"normal",text:"查詢訂單詳情"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/openOrder",protocol:"https",method:"GET",payload:{orderId:"1736012449498123456",symbol:"OP-USDT",timestamp:"1702733255486"},response:{code:0,msg:"",data:{order:{symbol:"OP-USDT",orderId:0x18178e2001fdcd00,side:"SELL",positionSide:"LONG",type:"LIMIT",origQty:"1.0",price:"2.1710",executedQty:"0.0",avgPrice:"0.0000",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"PENDING",time:1702732596168,updateTime:1702732596188,clientOrderId:"l*****e",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:"MARK_PRICE"}}},errors:[{desc:"",sample:{code:80016,msg:"order does not exist",data:{}}}]},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:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"reduceOnly",type:"string",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{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"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE"}]},{type:"status",key:"key1",data:[{name:"NEW",type:"",required:"",description:"新建訂單"}]}]}]},"2Cei":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:"warning",text:"Account data no longer need to subscribe to channel type,after connect wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed"},{type:"warning",text:"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly"},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"notice:":"no need to subscribe to any specific channel,please check the hightlight msg in the api docs"}'},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"}]}]}]},"2KwY":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("g+/I").keys(),n=[],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表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。
  • "}]},"2p/L":function(e,t,i){var r={".":"V3+W","./":"V3+W","./01_balance":"bzx+","./01_balance.json":"bzx+","./02_order":"K1eD","./02_order.json":"K1eD","./03_setting":"2Cei","./03_setting.json":"2Cei","./index":"V3+W","./index.js":"V3+W"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="2p/L"},"2qJV":function(e,t){e.exports=[{type:"hash",text:"深度信息"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/market/depth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:5},response:{code:0,timestamp:1702720487674,data:{bids:[["42182.22","0.99114"],["42182.19","1.00643"],["42182.17","0.95406"],["42182.10","0.87420"],["42182.08","1.17445"]],asks:[["42183.23","3.57139"],["42183.22","2.05573"],["42183.20","2.26065"],["42183.19","1.61695"],["42183.17","4.14752"]],ts:1702720487674}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"limit",type:"int",required:"否",description:"默認20,最多1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"bids",type:"array",description:"第一個元素價格,第二個元素數量"},{name:"asks",type:"array",description:"第一個元素價格,第二個元素數量"},{name:"ts",type:"int",description:"深度時間戳,單位毫秒"}]}]}]},"2qcG":function(e,t){e.exports=[{type:"hash",text:"查詢幣對深度數據"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/cswap/v1/market/depth",protocol:"https",method:"GET",payload:{symbol:"BTC-USD",limit:100,timestamp:1717050357477},response:{code:0,msg:"",debugMsg:"",data:{T:1717052420270,bids:[["67753.0","1360.0"],["67752.9","10.0"],["67752.8","11.0"],["67752.7","1.0"],["67752.6","1.0"]],asks:[["67754.9","4.0"],["67754.8","4.0"],["67754.7","22.0"],["67754.6","19.0"],["67754.5","703.0"]]}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USD, 請使用大寫字母"},{name:"limit",type:"int64",required:"否",description:"返回結果的數量,不填默認為20,可選值:5, 10, 20, 50, 100, 500, 1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"狀態碼"},{name:"msg",type:"string",description:"描述信息"},{name:"timestamp",type:"int64",description:"響應時間,毫秒"},{name:"data",type:"List",description:""}]},{type:"Data",key:"Data",data:[{name:"T",type:"int64",description:"系統時間,毫秒"},{name:"asks",type:"List",description:"賣方深度,第一個是價格,第二個是數量(張)"},{name:"bids",type:"List",description:"買方深度,第一個是價格,第二個是數量(張)"}]}]}]},"2uFj":function(e,t,i){"use strict";var r=i("bOdI"),n=i.n(r),o=i("e5CW"),s=i("mvHQ"),a=i.n(s),p=i("/jWt"),d=i("W/J5"),c=i("otUP"),m=i("XWMS"),l=i("ohLs"),y=i("BJ4d"),u=a()(c.Data).replaceAll("/market/","/market?");u=(u=u.replaceAll("/market?","/market?listenKey=")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var g={path:"listenKey.html",name:"Listen Key",content:JSON.parse(u)},h={path:"market.html",name:"Websocket Market Data",content:m.Data},T={path:"account.html",name:"Websocket Account Data",content:l.Data},_=[{path:"",name:"Introduction",content:y.Data},g,h,T],f=i("sHXP"),b=i("cId4"),x=i("1pD3"),I=i("puzn"),w=i.n(I),R=(i("W+Bc"),i("S9BK")),P=i("nAo7"),S=a()(c.Data);S=(S=S.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var A="en-us/common",E={module:A,path:"/en-us/common/q&a",name:"Frequently Asked Questions",content:P.Data},O={module:A,path:"/en-us/common/changelog",name:"Change Log",content:d.Data},q={module:A,path:"/en-us/common/sub-account",name:"Sub-account management",content:R.Data},k={module:A,path:"/en-us/common/authentication.html",name:"Authentication",content:p.Data},v={module:A,path:"/en-us/common/base-info.html",name:"General Info",content:f.Data},D={module:A,path:"/en-us/common/account-api.html",name:"Fund Account",content:b.Data},M={module:A,path:"/en-us/common/wallet-api.html",name:"Wallet deposits and withdrawals",content:x.Data},C={module:A,path:"/en-us/common/authentication-interface.html",name:"Authentication Interface",content:JSON.parse(S)},L=[w.a,O,E,v,k,D,M,q,C],U=i("y1S6"),j=i.n(U),K=i("2ggw"),N=i("BbCp"),G={module:B,path:"/"+B+"/q&a",name:"Frequently Asked Questions",content:P.Data},B="en-us/spot",F={module:B,path:"/"+B+"/socket",name:"Socket API Reference",children:_},z={module:B,path:"/"+B+"/changelog",name:"Change Log",content:d.Data},W={module:B,path:"/"+B+"/trade-api.html",name:"Trades Endpoints",content:K.Data},H={module:B,path:"/"+B+"/authentication.html",name:"Authentication",content:p.Data},Q={module:B,path:"/"+B+"/base-info.html",name:"General Info",content:f.Data},Y={module:B,path:"/"+B+"/account-api.html",name:"Fund Account",content:b.Data},V={module:B,path:"/"+B+"/wallet-api.html",name:"Wallet deposits and withdrawals",content:x.Data},X={module:B,path:"/"+B+"/market-api.html",name:"Market Data",content:N.Data},Z=[j.a,z,G,Q,H,X,V,Y,W,F],J=i("CSFx"),$=i("HGsQ"),ee=i.n($),te={module:ie,path:"/"+ie+"/q&a",name:"Frequently Asked Questions",content:P.Data},ie="en-us/standard",re={module:ie,path:"/"+ie+"/changelog",name:"Change Log",content:d.Data},ne={module:ie,path:"/"+ie+"/contract-interface.html",name:"Standard Contract Interface",content:J.Data},oe={module:ie,path:"/"+ie+"/authentication.html",name:"Authentication",content:p.Data},se={module:ie,path:"/"+ie+"/base-info.html",name:"General Info",content:f.Data},ae=[ee.a,re,te,se,oe,ne],pe=i("yse3"),de=i("5ECq"),ce=i("vVGz"),me=i("2KwY"),le=i("goAe"),ye=i.n(le),ue=i("5MML"),ge=i.n(ue),he=i("Q3ZN"),Te=i("336Z"),_e=i("C8jp"),fe=a()(c.Data).replaceAll("/market/","/swap-market?");fe=(fe=(fe=(fe=fe.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 be={path:"listenKey.html",name:"Listen Key",content:JSON.parse(fe)},xe={path:"market.html",name:"Websocket Market Data",content:he.Data},Ie={path:"account.html",name:"Websocket Account Data",content:Te.Data},we=[{path:"",name:"Introduction",content:_e.Data},be,xe,Ie],Re={module:"en-us/swapV2",path:"/en-us/swapV2/q&a",name:"Frequently Asked Questions",content:P.Data},Pe={module:"en-us/swapV2",path:"/en-us/swapV2/socket",name:"Socket API Reference",children:we},Se={module:"en-us/swapV2",path:"/en-us/swapV2/changelog",name:"Change Log",content:d.Data},Ae={module:"en-us/swapV2",path:"/en-us/swapV2/trade-api.html",name:"Trades Endpoints",content:de.Data},Ee={module:"en-us/swapV2",path:"/en-us/swapV2/authentication.html",name:"Authentication",content:p.Data},Oe={module:"en-us/swapV2",path:"/en-us/swapV2/base-info.html",name:"General Info",content:me.Data},qe={module:"en-us/swapV2",path:"/en-us/swapV2/account-api.html",name:"Account Endpoints",content:pe.Data},ke={module:"en-us/swapV2",path:"/en-us/swapV2/market-api.html",name:"Market Data",content:ce.Data},ve=[ye.a,Se,Re,ge.a,Ee,Oe,ke,qe,Ae,Pe],De=i("V/PH"),Me=i("Q6u2"),Ce=i("Ow07"),Le=i("omwE"),Ue=i.n(Le),je=i("WXeB"),Ke=i.n(je),Ne=i("/iLc"),Ge=i("V3+W"),Be=i("eRNY"),Fe=a()(c.Data).replaceAll("/market/","/market?");Fe=(Fe=(Fe=(Fe=Fe.replaceAll("/swap-market","/market")).replaceAll("open-api-ws.bingx.com","open-api-cswap-ws.bingx.com")).replaceAll("/market?","/market?listenKey=")).replaceAll("wss://open-api-cswap-ws.bingx.com/market?listenKey=","wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var ze={path:"listenKey.html",name:"Listen Key",content:JSON.parse(Fe)},We={path:"market.html",name:"Websocket Market Data",content:Ne.Data},He=[{path:"",name:"Introduction",content:Be.Data},ze,We,{path:"account.html",name:"Account Endpoints",content:Ge.Data}],Qe={module:"en-us/cswap",path:"/en-us/cswap/q&a",name:"Frequently Asked Questions",content:P.Data},Ye={module:"en-us/cswap",path:"/en-us/cswap/socket",name:"Socket API Reference",children:He},Ve={module:"en-us/cswap",path:"/en-us/cswap/changelog",name:"Change Log",content:d.Data},Xe={module:"en-us/cswap",path:"/en-us/cswap/authentication.html",name:"Authentication",content:p.Data},Ze={module:"en-us/cswap",path:"/en-us/cswap/base-info.html",name:"General Info",content:De.Data},Je={module:"en-us/cswap",path:"/en-us/cswap/market-api.html",name:"Market Data",content:Me.Data},$e={module:"en-us/cswap",path:"/en-us/cswap/trade-api.html",name:"Trades Endpoints",content:Ce.Data},et=[Ue.a,Ve,Qe,Ke.a,Xe,Ze,Je,$e,Ye],tt=i("XH2f"),it=a()(c.Data);it=(it=it.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var rt={module:"en-us/copyTrade",path:"/en-us/copyTrade/q&a",name:"Frequently Asked Questions",content:P.Data},nt={module:"en-us/copyTrade",path:"/en-us/copyTrade/changelog",name:"Change Log",content:d.Data},ot={module:"en-us/copyTrade",path:"/en-us/copyTrade/authentication.html",name:"Authentication",content:p.Data},st={module:"en-us/copyTrade",path:"/en-us/copyTrade/base-info.html",name:"General Info",content:f.Data},at={module:"en-us/copyTrade",path:"/en-us/copyTrade/trader-interface.html",name:"Trader",content:tt.Data},pt=(JSON.parse(it),[nt,rt,st,ot,at]),dt=i("KeEM"),ct=a()(c.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,lt,yt={module:"en-us/agent",path:"/en-us/agent/q&a",name:"Frequently Asked Questions",content:P.Data},ut={module:"en-us/agent",path:"/en-us/agent/changelog",name:"Change Log",content:d.Data},gt={module:"en-us/agent",path:"/en-us/agent/authentication.html",name:"Authentication",content:p.Data},ht={module:"en-us/agent",path:"/en-us/agent/base-info.html",name:"General Info",content:f.Data},Tt={module:"en-us/agent",path:"/en-us/agent/agent-interface.html",name:"Agent",content:dt.Data},_t=(JSON.parse(ct),[ut,yt,ht,gt,Tt]),ft=(mt={},n()(mt,o.g,"USDT-M Perp Futures"),n()(mt,o.d,"Coin-M Perp Futures"),n()(mt,o.e,"Spot"),n()(mt,o.f,"Standard Futures"),n()(mt,o.b,"Account & Wallet"),n()(mt,o.c,"Copy Trading"),n()(mt,o.a,"Agent"),mt),bt=(lt={},n()(lt,o.g,ve),n()(lt,o.d,et),n()(lt,o.b,L),n()(lt,o.e,Z),n()(lt,o.f,ae),n()(lt,o.c,pt),n()(lt,o.a,_t),lt),xt=i("yjnE"),It=i("X9kl"),wt=i("R9OT"),Rt=i("FZvV"),Pt=i("KsRT"),St=i("kq5u"),At=a()(wt.Data).replaceAll("/market/","/market?");At=(At=At.replaceAll("/market?","/market?listenKey=")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Et={path:"listenKey.html",name:"Listen Key",content:JSON.parse(At)},Ot={path:"market.html",name:"Websocket 行情推送",content:Rt.Data},qt={path:"account.html",name:"Websocket 賬戶信息推送",content:Pt.Data},kt=[{path:"",name:"聯繫我們",content:St.Data},Et,Ot,qt],vt=i("qM4I"),Dt=i("LuFD"),Mt=i("GHqA"),Ct=i("+Vb3"),Lt=i.n(Ct),Ut=(i("8e1X"),i("b9rl")),jt=i("ZM3m"),Kt=a()(wt.Data);Kt=(Kt=Kt.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Nt={module:"zh-tw/common",path:"/zh-tw/common/q&a",name:"常見問題",content:jt.Data},Gt={module:"zh-tw/common",path:"/zh-tw/common/sub-account",name:"子賬戶管理",content:Ut.Data},Bt={module:"zh-tw/common",path:"/zh-tw/common/changelog",name:"變更日誌",content:It.Data},Ft={module:"zh-tw/common",path:"/zh-tw/common/authentication.html",name:"簽名認證",content:xt.Data},zt={module:"zh-tw/common",path:"/zh-tw/common/base-info.html",name:"基礎信息",content:vt.Data},Wt={module:"zh-tw/common",path:"/zh-tw/common/account-api.html",name:"資金賬戶",content:Dt.Data},Ht={module:"zh-tw/common",path:"/zh-tw/common/wallet-api.html",name:"錢包充提",content:Mt.Data},Qt={module:"zh-tw/common",path:"/zh-tw/common/authentication-interface.html",name:"鑒權服務",content:JSON.parse(Kt)},Yt=[Lt.a,Bt,Nt,zt,Ft,Wt,Ht,Gt,Qt],Vt=i("z74M"),Xt=i.n(Vt),Zt=i("tksP"),Jt=i("9GqO"),$t={module:"zh-tw/spot",path:"/zh-tw/spot/q&a",name:"常見問題",content:jt.Data},ei={module:"zh-tw/spot",path:"/zh-tw/spot/socket",name:"Socket 文檔",children:kt},ti={module:"zh-tw/spot",path:"/zh-tw/spot/changelog",name:"變更日誌",content:It.Data},ii={module:"zh-tw/spot",path:"/zh-tw/spot/trade-api.html",name:"交易接口",content:Zt.Data},ri={module:"zh-tw/spot",path:"/zh-tw/spot/authentication.html",name:"簽名認證",content:xt.Data},ni={module:"zh-tw/spot",path:"/zh-tw/spot/base-info.html",name:"基礎信息",content:vt.Data},oi={module:"zh-tw/spot",path:"/zh-tw/spot/account-api.html",name:"資金賬戶",content:Dt.Data},si={module:"zh-tw/spot",path:"/zh-tw/spot/wallet-api.html",name:"錢包充提",content:Mt.Data},ai={module:"zh-tw/spot",path:"/zh-tw/spot/market-api.html",name:"行情數據",content:Jt.Data},pi=[Xt.a,ti,$t,ni,ri,ai,si,oi,ii,ei],di=i("wbzr"),ci=i("okpR"),mi=i.n(ci),li={module:yi,path:"/"+yi+"/q&a",name:"常見問題",content:jt.Data},yi="zh-tw/standard",ui={module:yi,path:"/"+yi+"/changelog",name:"變更日誌",content:It.Data},gi={module:yi,path:"/"+yi+"/contract-interface.html",name:"標准合約接口",content:di.Data},hi={module:yi,path:"/"+yi+"/authentication.html",name:"簽名認證",content:xt.Data},Ti={module:yi,path:"/"+yi+"/base-info.html",name:"基礎信息",content:vt.Data},_i=[mi.a,ui,li,Ti,hi,gi],fi=i("KJg6"),bi=i("2xjp"),xi=i("ByCb"),Ii=i("2/Td"),wi=i("5GrR"),Ri=i.n(wi),Pi=i("n5PB"),Si=i.n(Pi),Ai=i("B7jJ"),Ei=i("3Fwp"),Oi=i("+hJF"),qi=a()(wt.Data).replaceAll("/market/","/swap-market?");qi=(qi=(qi=(qi=qi.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 ki={path:"listenKey.html",name:"Listen Key",content:JSON.parse(qi)},vi={path:"market.html",name:"Websocket 行情推送",content:Ai.Data},Di={path:"account.html",name:"Websocket 賬戶信息推送",content:Ei.Data},Mi=[{path:"",name:"聯繫我們",content:Oi.Data},ki,vi,Di],Ci=a()(wt.Data).replaceAll("/market/","/swap-market?");Ci=(Ci=(Ci=(Ci=Ci.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 Li={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/q&a",name:"常見問題",content:jt.Data},Ui={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/socket",name:"Socket 文檔",children:Mi},ji={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/changelog",name:"變更日誌",content:It.Data},Ki={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/trade-api.html",name:"交易接口",content:bi.Data},Ni={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/authentication.html",name:"簽名認證",content:xt.Data},Gi={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/base-info.html",name:"基礎信息",content:Ii.Data},Bi={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/account-api.html",name:"賬戶接口",content:fi.Data},Fi=(JSON.parse(Ci),{module:"zh-tw/swapV2",path:"/zh-tw/swapV2/market-api.html",name:"行情數據",content:xi.Data}),zi=[Ri.a,ji,Li,Si.a,Ni,Gi,Fi,Bi,Ki,Ui],Wi=i("4RZf"),Hi=i("y74g"),Qi=i("D4vT"),Yi=i("2yPl"),Vi=i.n(Yi),Xi=i("ihU3"),Zi=i.n(Xi),Ji=i("eIko"),$i=i("Tl8j"),er=i("a9sA"),tr=a()(wt.Data).replaceAll("/market/","/market?");tr=(tr=(tr=(tr=tr.replaceAll("/swap-market","/market")).replaceAll("open-api-ws.bingx.com","open-api-cswap-ws.bingx.com")).replaceAll("/market?","/market?listenKey=")).replaceAll("wss://open-api-cswap-ws.bingx.com/market?listenKey=","wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var ir={path:"listenKey.html",name:"Listen Key",content:JSON.parse(tr)},rr={path:"market.html",name:"Websocket 行情推送",content:Ji.Data},nr={path:"account.html",name:"Websocket 賬戶信息推送",content:$i.Data},or=[{path:"",name:"聯繫我們",content:er.Data},ir,rr,nr],sr={module:"zh-tw/cswap",path:"/zh-tw/cswap/q&a",name:"常見問題",content:jt.Data},ar={module:"zh-tw/cswap",path:"/zh-tw/cswap/socket",name:"Socket 文檔",children:or},pr={module:"zh-tw/cswap",path:"/zh-tw/cswap/changelog",name:"變更日誌",content:It.Data},dr={module:"zh-tw/cswap",path:"/zh-tw/cswap/authentication.html",name:"簽名認證",content:xt.Data},cr={module:"zh-tw/cswap",path:"/zh-tw/cswap/base-info.html",name:"基礎信息",content:Wi.Data},mr={module:"zh-tw/cswap",path:"/zh-tw/cswap/market-api.html",name:"行情數據",content:Hi.Data},lr={module:"zh-tw/cswap",path:"/zh-tw/cswap/trade-api.html",name:"交易接口",content:Qi.Data},yr=[Vi.a,pr,sr,Zi.a,dr,cr,mr,lr,ar],ur=i("igyE"),gr=a()(wt.Data);gr=(gr=gr.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var hr={module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/q&a",name:"常見問題",content:jt.Data},Tr={module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/changelog",name:"變更日誌",content:It.Data},_r={module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/authentication.html",name:"簽名認證",content:xt.Data},fr=[Tr,hr,{module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/base-info.html",name:"基礎信息",content:vt.Data},_r,{module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/trader-interface.html",name:"交易員",content:ur.Data}],br=i("oZzG"),xr=a()(wt.Data);xr=(xr=xr.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Ir,wr,Rr,Pr,Sr={module:"zh-tw/agent",path:"/zh-tw/agent/q&a",name:"常見問題",content:jt.Data},Ar={module:"zh-tw/agent",path:"/zh-tw/agent/changelog",name:"變更日誌",content:It.Data},Er={module:"zh-tw/agent",path:"/zh-tw/agent/authentication.html",name:"簽名認證",content:xt.Data},Or=[Ar,Sr,{module:"zh-tw/agent",path:"/zh-tw/agent/base-info.html",name:"基礎信息",content:vt.Data},Er,{module:"zh-tw/agent",path:"/zh-tw/agent/agent-interface.html",name:"代理",content:br.Data}],qr=(Ir={},n()(Ir,o.g,"U本位永續合約"),n()(Ir,o.d,"币本位永續合約"),n()(Ir,o.e,"現貨"),n()(Ir,o.f,"標準合約"),n()(Ir,o.b,"賬戶與錢包"),n()(Ir,o.c,"跟單"),n()(Ir,o.a,"代理"),Ir),kr=(wr={},n()(wr,o.g,zi),n()(wr,o.d,yr),n()(wr,o.b,Yt),n()(wr,o.e,pi),n()(wr,o.f,_i),n()(wr,o.c,fr),n()(wr,o.a,Or),wr),vr=i("0xDb");i.d(t,"a",function(){return Ur}),i.d(t,"b",function(){return jr});var Dr=ft,Mr=bt,Cr=(Rr={},n()(Rr,vr.c.en,ft),n()(Rr,vr.c.tw,qr),Rr),Lr=(Pr={},n()(Pr,vr.c.en,bt),n()(Pr,vr.c.tw,kr),Pr),Ur=function(e){return Cr[e]||Dr},jr=function(e){return Lr[e]||Mr}},"2vkv":function(e,t){e.exports=[{type:"hash",text:"Query TWAP Entrusted Order"},{type:"normal",text:"Used to query orders in TWAP orders, that is, orders that have not been executed or are still being executed."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"normal",text:"API Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/twap/openOrders",protocol:"https",method:"GET",payload:{symbol:"BNB-USDT",timestamp:1702731661854,recvWindow:"0"},response:{code:0,msg:"",timestamp:1702731661854,data:{list:[{symbol:"BNB-USDT",side:"BUY",positionSide:"LONG",priceType:"constant",priceVariance:"2000",triggerPrice:"68000",interval:8,amountPerOrder:"0.111",totalAmount:"0.511",orderStatus:"Running",executedQty:"0.1",duration:800,maxDuration:9e3,createdTime:1702731661854,updateTime:1702731661854}],total:1}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"No",description:"Trading pair, for example: BTC-USDT, please use capital letters"},{name:"timestamp",type:"int64",required:"Yes",description:"the timestamp of the request 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:"mainOrderId",type:"string",description:"TWAP order number"},{name:"side",type:"string",description:"buying and selling direction; SELL, BUY"},{name:"positionSide",type:"string",description:"LONG or SHORT"},{name:"priceType",type:"string",description:"Price limit type, constant: price interval, percentage: slippage"},{name:"priceVariance",type:"string",description:"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)"},{name:"triggerPrice",type:"string",description:"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order."},{name:"interval",type:"int64",description:"After the strategic order is split, the time interval for order placing is between 5-120s"},{name:"amountPerOrder",type:"string",description:"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order. "},{name:"totalAmount",type:"string",description:"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions. "},{name:"orderStatus",type:"string",description:"New: New/Running: In operation/Canceling: Cancellation of order/Filled: Fully filled/PartiallyFilled: Partially filled/Pending: Not triggered/PartiallyFilledAndResidueFailed: Partially filled (remaining order failed), algorithm order status/PartiallyFilledAndResidueCancelled: Partially filled ( Remaining cancellation), algorithm order status/Cancelled: Canceled (no partial deal exists)/Failed: Order failed (no partial deal exists)"},{name:"executedQty",type:"string",description:"Volume"},{name:"duration",type:"int64",description:"Execution time, in seconds. The order will be canceled after the execution time expires. "},{name:"maxDuration",type:"int64",description:"Maximum execution time execution time, unit: seconds."},{name:"createdTime",type:"int64",description:"Order creation time, unit: milliseconds"},{name:"updateTime",type:"int64",description:"Order update time, unit: milliseconds"}]}]}]},"2xEp":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": "" }'}]},"2xjp":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("Rqf2").keys(),n=[],o=0;oBingX開發者文檔, 歡迎報名BingX經濟商項目 BingX Broker Program Application"},{type:"normal",text:"本文檔提供了永續合約交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。"},{type:"html",text:"此頁面為永續合約V2版本的開發者文檔,推薦使用。如需查看V1版本的介面說明,可訪問:USDT本位永續合約V1"},{type:"html",text:"如有問題反饋可加入:API問題telegram電報群"}]}},"336Z":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("mzLI").keys(),n=[],o=0;o",description:""}]},{type:"Data",key:"data",data:[{name:"takerCommissionRate",type:"string",description:"Taker Commission Rate"},{name:"makerCommissionRate",type:"string",description:"Maker Commission Rate"}]}]}]},"3EGE":function(e,t){e.exports=[{type:"hash",text:"K-line Streams"},{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_1min"},{type:"normal",text:"Subscription Example",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","reqType": "sub","dataType":"BTC-USDT@kline_1min"}'},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","reqType": "sub","dataType":"BTC-USDT@kline_1min"}'},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"}]},{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 kline"},{name:"3min",description:"3-minute kline"},{name:"5min",description:"5-minute kline"},{name:"15min",description:"15-minute kline"},{name:"30min",description:"30-minute kline"},{name:"60min",description:"60-minute 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:"3day",description:"3-day kline"},{name:"1week",description:"1-week kline"},{name:"1mon",description:"1-month kline"}]}]}]},"3Fwp":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("xE4z").keys(),n=[],o=0;o@trade E.g. BTC-USDT@trade ETH-USDT@trade"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","reqType": "sub","dataType":"BTC-USDT@trade"}'},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:"q",type:"",description:"volume"}]}]}]},"4RZf":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("ZP2+").keys(),n=[],o=0;o"}]},{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:"sp",type:"",description:"trigger 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 or BOTH"},{name:"rp",type:"",description:"The transaction achieves profit and loss: 0.00000000"},{name:"z",type:"",description:"Order Filled Accumulated Quantity: 0.00000000"},{name:"sg",type:"string",required:"no",description:"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. "},{name:"ti",type:"",description:"Conditional Order ID associated with this order:1771124709866754048"},{name:"ro",type:"",description:"reduceOnly"},{name:"td",type:"",description:"Trade ID"},{name:"tv",type:"",description:"Trade Value"}]}]}]},"4b0F":function(e,t,i){var r={"./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 n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="4b0F"},"4bTX":function(e,t){e.exports=[{type:"hash",text:"撤銷掛單再下單"},{type:"normal",text:"此接口用於撤銷掛單並在同個交易對上重新下單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/trade/cancelReplace",protocol:"https",method:"POST",payload:{cancelReplaceMode:"STOP_ON_FAILURE",cancelClientOrderId:"abc123test",cancelOrderId:123456789,cancelRestrictions:"ONLY_NEW",symbol:"BTC-USDT",side:"BUY",positionSide:"LONG",type:"MARKET",quantity:5,takeProfit:'{"type": "TAKE_PROFIT_MARKET", "stopPrice": 31968.0,"price": 31968.0,"workingType":"MARK_PRICE"}',timestamp:"1702731530753"},response:{code:0,msg:"",data:{cancelResult:"true",cancelMsg:"",cancelResponse:{cancelClientOrderId:"",cancelOrderId:123456789,symbol:"BTC-USDT",orderId:123456789,side:"BUY",positionSide:"LONG",type:"LIMIT",origQty:"1.0000",price:"38000.0",executedQty:"0.0000",avgPrice:"0.0",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"PENDING",time:1706858471e3,updateTime:1706858471e3,clientOrderId:"",leverage:"15X",workingType:"MARK_PRICE",onlyOnePosition:!1,reduceOnly:!1},replaceResult:"true",replaceMsg:"",newOrderResponse:{orderId:987654321,symbol:"BTC-USDT",positionSide:"LONG",side:"BUY",type:"LIMIT",price:38e3,quantity:1,stopPrice:0,workingType:"MARK_PRICE",clientOrderId:"",timeInForce:"GTC",priceRate:0,stopLoss:'{"type": "STOP", "stopPrice": 37000, "price": 37000}',takeProfit:'{"type": "TAKE_PROFIT", "stopPrice": 45000, "price": 45000}',reduceOnly:!1}}}},params:[{type:"Request",key:"request",data:[{name:"cancelReplaceMode",type:"string",required:"是",description:"STOP_ON_FAILURE:如果撤銷訂單失敗將不會繼續重新下單。\nALLOW_FAILURE: 不管撤銷訂單是否成功都會繼續重新下單。"},{name:"cancelClientOrderId",type:"string",required:"否",description:"要撤銷的原客戶自訂訂單號碼,系統會將該字段轉為英文小寫。必須提供cancelClientOrderId 或 cancelOrderId。如果兩個參數都提供, cancelOrderId 會佔優先。"},{name:"cancelOrderId",type:"int64",required:"否",description:"要撤銷的平台訂單號碼。必須提供cancelClientOrderId 或 cancelOrderId。如果兩個參數都提供, cancelOrderId 會佔優先。"},{name:"cancelRestrictions",type:"string",required:"否",description:"ONLY_NEW :如果訂單狀態為 NEW,撤銷將會成功。\nONLY_PENDING:如果訂單狀態為 PENDING,撤銷將成功。\nONLY_PARTIALLY_FILLED :如果訂單狀態為 PARTIALLY_FILLED,撤銷將會成功。"},{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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"是",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"reduceOnly",type:"string",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{name:"price",type:"float64",required:"否",description:"委託價格"},{name:"quantity",type:"float64",required:"否",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單"},{name:"stopPrice",type:"float64",required:"否",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數"},{name:"priceRate",type:"float64",required:"否",description:"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"stopLoss",type:"string",required:"否",description:"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP"},{name:"takeProfit",type:"string",required:"否",description:"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,不同訂單不可使用相同的clientOrderID, clientOrderId 僅支援 LIMIT/MARKET 訂單類型"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值,單位:毫秒"},{name:"closePosition",type:"string",required:"否",description:"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用"},{name:"activationPrice",type:"float64",required:"no",description:"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"cancelResult",type:"string",description:"撤單結果,true:撤單成功,false:撤單失敗"},{name:"cancelMsg",type:"string",description:"撤單失敗時的原因"},{name:"cancelResponse",type:"CancelResponse",description:"撤銷訂單的信息"},{name:"replaceResult",type:"string",description:"撤單結果,true:撤單成功,false:撤單失敗"},{name:"replaceMsg",type:"string",description:"撤單失敗時的原因"},{name:"newOrderResponse",type:"NewOrderResponse",description:"新訂單的信息"}]},{type:"CancelResponse",key:"cancelResponse",data:[{name:"cancelClientOrderId",type:"string",description:"撤單訂單的自定義OrderId,系統會將該字段轉為英文小寫"},{name:"cancelOrderId",type:"string",description:"撤銷訂單的OrderId"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"orderId",type:"int64",description:"訂單號"},{name:"side",type:"string",description:"買賣方向"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"price",type:"string",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"executedQty",type:"string",description:"成交量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"status",type:"string",description:"訂單狀態"},{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫"},{name:"leverage",type:"string",description:"槓桿倍數"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"onlyOnePosition",type:"bool",description:"是否單向持倉,true:是;false:不是"},{name:"reduceOnly",type:"bool",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"}]},{type:"NewOrderResponse",key:"newOrderResponse",data:[{name:"orderId",type:"int64",description:"訂單號"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"positionSide",type:"string",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"price",type:"float64",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"quantity",type:"float64",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單"},{name:"stopPrice",type:"float64",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\n"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫"},{name:"timeInForce",type:"string",description:"有效方式,目前支援PostOnly、GTC、IOC和FOK"},{name:"priceRate",type:"float64",description:"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\n"},{name:"reduceOnly",type:"bool",description:"是否僅減倉"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"}]}]}]},"4izq":function(e,t,i){var r={"./00_get_account_balance.json":"hIqz","./01_get_asset_transfer.json":"zvGN","./02_get_asset_transfer2.json":"ah5Z","./07_post_capital_innerTransfer_apply.json":"iYO+","./14.get_wallet_queryInnerTransferRecords.json":"Jtu9","./21_get_account_allAccountBalance.json":"9SLF"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="4izq"},"4jl5":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='send($channel);\n\n // Main loop to keep the connection open and process messages\n while (true) {\n $message = $client->receive(); // Receive message\n if ($message) {\n // Check if message is binary\n if (is_string($message)) {\n $decodedMsg = decodeGzip($message);\n echo "Received Binary Message: $decodedMsg\n";\n\n if ($decodedMsg === "Ping") {\n $client->send("Pong");\n echo "Sent Pong\n";\n }\n } else {\n echo "Received Text Message: $message\n";\n }\n }\n\n // Send periodic ping messages\n $client->send("Ping");\n echo "Sent Ping\n";\n sleep(5); // 5 seconds\n }\n\n} catch (Exception $e) {\n echo "Exception: " . $e->getMessage() . "\n";\n}\n\n// GZIP decoding function\nfunction decodeGzip($compressedData) {\n $stream = gzopen(\'data://text/plain;base64,\' . base64_encode($compressedData), \'rb\');\n $decodedMessage = \'\';\n\n while (!gzeof($stream)) {\n $decodedMessage .= gzread($stream, 1024);\n }\n\n gzclose($stream);\n return $decodedMessage;\n}'},"4v69":function(e,t){e.exports=[{type:"hash",text:"Main Accoun internal transfer"},{type:"html",text:"Users can transfer money to each other within the bingx platform. Transfers are only allowed between main accounts and from main accounts to sub-accounts.
    For internal transfers within sub-accounts, please use the dedicated interface: User internal transfer"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/innerTransfer/apply",protocol:"https",method:"POST",payload:{amount:"10.0",coin:"USDT",userAccount:"16779999",userAccountType:"1",walletType:"1"},response:{code:0,timestamp:1702558152381,data:{id:"12******1"}}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"Yes",description:"Name of the transferred currency"},{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 number, email"},{name:"amount",type:"float64",required:"Yes",description:"Transfer amount"},{name:"callingCode",type:"string",required:"No",description:"Area code for telephone, required when userAccountType=2."},{name:"transferClientId",type:"string",required:"no",description:"Custom ID for internal transfer by the client, combination of numbers and letters, length less than 100 characters"},{name:"walletType",type:"int",required:"Yes",description:"Account type, 1 Fund Account; 2 Standard Futures Account; 3 Perpetual Futures Account"},{name:"timestamp",type:"int64",required:"Yes",description:"The timestamp of the request, in milliseconds."},{name:"recvWindow",type:"int64",required:"No",description:"Request validity time window, unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"id",type:"string",description:"The platform returns the unique ID of the internal transfer record."},{name:"transferClientId",type:"string",required:"no",description:"Custom ID for internal transfer by the client, combination of numbers and letters, length less than 100 characters"}]}]}]},"4w61":function(e,t){e.exports=[{type:"title",text:"2023-11-22"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"html",text:"Spot depth websocket: Now supports 5/10/20/50/100 levels"},{type:"html",text:"Spot depth rest api: Now supports up to 1000 levels"},{type:"html",text:"Query user cross-transfer history: Added parameter 'tranId' to request"},{type:"html",text:"Get deposit history (supports multiple networks): Updated 'status' field in request/response to: 0-In progress, 6-Confirmed on chain, 1-Completed"},{type:"html",text:"Get withdrawal history (supports multiple networks): Updated 'status' field in request/response to: 4-Under review, 5-Failed, 6-Completed, Added parameter 'id' to request, Removed 'transferType' field from response"},{type:"html",text:"Query internal transfer records of master account: Added parameter 'status' to response: 4-Under review, 5-Failed, 6-Completed"},{type:"html",text:"Internal transfer of sub-account: Added 'callingCode' field, required when 'userAccountType' is 2"},{type:"html",text:"Query internal transfer records of sub-account: Added parameter 'status' to response: 4-Under review, 5-Failed, 6-Completed"},{type:"html",text:"Query deposit records of all coins: Added parameter 'coin' to request, Added fields 'depositEnable' and 'depositMin' to Network object in response"}]}]},"50Mv":function(e,t){e.exports=[{type:"hash",text:"TWAP下單"},{type:"normal",text:"創建一個時間加權委託(TWAP)訂單。此功能將幫助您在24小時內分批執行大額訂單,從而降低大額訂單對市場價格的影響,使平均成交價格更貼近實際市場價格,降低您的交易成本"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/twap/order",protocol:"https",method:"POST",payload:{symbol:"BNB-USDT",side:"BUY",positionSide:"LONG",priceType:"constant",priceVariance:"2000",triggerPrice:"68000",interval:8,amountPerOrder:"0.111",totalAmount:"0.511",timestamp:1702731661854,recvWindow:"0"},response:{code:0,msg:"",timestamp:1702731661854,data:{mainOrderId:"12312413251322134"}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對,例如:BTC-USDT,請使用大寫字母"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"是",description:"LONG 或 SHORT"},{name:"priceType",type:"string",required:"是",description:"價格限制類型,constant:價格間距,percentage:滑點"},{name:"priceVariance",type:"string",required:"是",description:"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)"},{name:"triggerPrice",type:"string",required:"是",description:"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單"},{name:"interval",type:"int64",required:"是",description:"策略订单拆单后,委托下单的时间间隔,5-120s之间"},{name:"amountPerOrder",type:"string",required:"是",description:"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。"},{name:"totalAmount",type:"string",required:"是",description:"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"mainOrderId",type:"string",description:"TWAP委託訂單編號"}]}]}]},"5BSP":function(e,t,i){"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 "strings"\n\t"net/url"\n)\nconst HOST = "HHOOSSTT"\nconst API_KEY = ""\nconst API_SECRET = ""\nfunc main() {\n\n dataStr := ^AAPPII^\n payload := ^PPAAYYLLOOAADD^\n TIMESTAMP := time.Now().UnixNano()/1e6\n apiMap := getParameters(dataStr, payload,false,TIMESTAMP)\n sign := computeHmac256(fmt.Sprintf("%v",apiMap["parameters"]), API_SECRET)\n fmt.Println("parameters:",fmt.Sprintf("%v",apiMap["parameters"]))\n fmt.Println("sign:",sign)\n parameters := ""\n contains := strings.ContainsAny( fmt.Sprintf("%v",apiMap["parameters"]), "[{")\n if contains {\n apiMap2 := getParameters(dataStr, payload,true,TIMESTAMP)\n parameters = fmt.Sprintf("%v&signature=%s",apiMap2["parameters"], sign)\n } else {\n parameters = fmt.Sprintf("%v&signature=%s",apiMap["parameters"], sign)\n }\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("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, urlEncode bool, timestemp int64) map[string]interface{}{\n\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", 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", err)\n\t return apiMap\n\t}\n\tparameters := ""\n\tfor key, value := range payloadMap {\n\t\tif (urlEncode) {\n\t\t\tencodedStr := url.QueryEscape(fmt.Sprintf("%v",value))\n\t\t\tencodedStr = strings.ReplaceAll(encodedStr, "+", "%20")\n\t\t\tparameters = parameters + key+"="+encodedStr+"&"\n\t\t} else {\n\t\t\tparameters = parameters + key+"="+fmt.Sprintf("%v",value)+"&"\n\t\t}\n }\n\tparameters +="timestamp="+fmt.Sprintf("%d",timestemp)\n\tapiMap["parameters"]=fmt.Sprintf("%v",parameters)\n\treturn apiMap\n}'},"5ECq":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("btx7").keys(),n=[],o=0;oBingX開發者文檔, 歡迎報名BingX經濟商項目 BingX Broker Program Application"},{type:"normal",text:"本文檔提供了永續合約交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。"},{type:"html",text:"此頁面為永續合約V2版本的開發者文檔,推薦使用。如需查看V1版本的介面說明,可訪問:USDT本位永續合約V1"},{type:"html",text:"如有問題反饋可加入:API問題telegram電報群"}]}},"5H3S":function(e,t,i){var r={".":"2ggw","./":"2ggw","./01_post_trade_a_order":"ZnNv","./01_post_trade_a_order.json":"ZnNv","./01_post_trade_batchOrders":"pX3/","./01_post_trade_batchOrders.json":"pX3/","./021_post_trade_order_cancel":"ev9X","./021_post_trade_order_cancel.json":"ev9X","./022_post_trade_orders_cancel":"aTY/","./022_post_trade_orders_cancel.json":"aTY/","./023_post_cancelOpenOrders":"gz1R","./023_post_cancelOpenOrders.json":"gz1R","./023_post_trade_order_cancel_replace":"TA5G","./023_post_trade_order_cancel_replace.json":"TA5G","./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","./077_get_trade_fill_details":"s+Dd","./077_get_trade_fill_details.json":"s+Dd","./08_get_commissionRate":"sPli","./08_get_commissionRate.json":"sPli","./09_cancel_all_after":"KWsz","./09_cancel_all_after.json":"KWsz","./100_post_one_oco_order":"R/1P","./100_post_one_oco_order.json":"R/1P","./101_cancel_one_oco_order":"dd2V","./101_cancel_one_oco_order.json":"dd2V","./102_get_one_oco_order":"MN46","./102_get_one_oco_order.json":"MN46","./103_get_all_pending_oco_order":"YC1x","./103_get_all_pending_oco_order.json":"YC1x","./104_get_all_history_oco_order":"JLQZ","./104_get_all_history_oco_order.json":"JLQZ","./index":"2ggw","./index.js":"2ggw"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="5H3S"},"5KyA":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\n\n`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/spot/html.js","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱24小時價格變動\"},{\"type\":\"normal\",\"text\":\"每1000ms推送24小時價格變動的數據\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @ticker,比如BTC_USDT@ticker\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@ticker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對名稱,如BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"幣對名稱\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"毫秒時間戳,timestamp\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"開盤價,open\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"最高價,high\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"最低價,low\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"數量,volume\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"成交額,幣本位-幣數量,U本位-金額USDT\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"成交額,幣本位-是USD,U本位-無用\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"價格變動\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"價格變動幅度\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"最新價格\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"最新成交時間\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"最新成交張數\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"買一價\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"買一張數\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"賣一價\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賣一張數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/07_24hr_ticker.json\n// module id = 5LXd\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-05-27\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:訂閱所有幣對24小時價格變動\"},{\"type\":\"html\",\"text\":\"永續新增接口:訂閱合約所有幣對k線數據\"},{\"type\":\"html\",\"text\":\"永續新增接口:訂閱所有幣對有限檔深度信息\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-05-27.json\n// module id = 5LYy\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/en-us/swapV2/description\",\"name\":\"interface\",\"content\":[{\"type\":\"html\",\"text\":\"
  • The api 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.
  • \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/2_description.json\n// module id = 5MML\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱最優掛單\"},{\"type\":\"normal\",\"text\":\"每10ms推送一次。\"},{\"type\":\"normal\",\"text\":\"推送最優掛單。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @bookTicker,比如BTC-USDT@bookTicker。\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},\"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@bookTicker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"u\",\"type\":\"\",\"description\":\"更新ID\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件推送時間\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"撮合時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"買單最優掛單價格\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"買單最優掛單數量\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賣單最優掛單價格\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"賣單最優掛單價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/07_book_ticker.json\n// module id = 5TRZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"逐倉保證金變動歷史\"},{\"type\":\"normal\",\"text\":\"用於查詢最近30天U本位合約逐倉幣對的保證金調整的歷史記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionMargin/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDT\",\"positionId\":\"1847596444958068736\",\"startTime\":1728722649000,\"endTime\":1729336359406,\"pageIndex\":1,\"pageSize\":2,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"records\":[{\"symbol\":\"BTC-USDT\",\"positionId\":\"1847596444958068736\",\"changeReason\":\"OpenPosition\",\"marginChange\":\"7586.46841066\",\"marginAfterChange\":\"7586.46841066\",\"time\":1729336294000}],\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對,例如:BTC-USDT,請使用大寫字母\"},{\"name\":\"positionId\",\"type\":\"string\",\"required\":\"是\",\"description\":\"倉位ID\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"開始時間戳, 毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"結束時間戳, 毫秒\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"頁碼,必須大於0,如果不提供,預設為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"頁面大小,必須大於0,最大值為100\"},{\"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\":\"changeReason\",\"type\":\"string\",\"description\":\"ManualMarginAddition: 手動新增保證金 / ManualMarginReduction: 手動減少保證金/ IncreaseLeverage: 調高槓桿 / ReduceLeverage: 調低槓桿 / OpenPosition: 開倉 / ClosePosition: 平倉 / Liquidation: 強制平倉 / ADL:自動減倉 / CloseOpenPosition : 先平後開倉位 /FundingFeeSettlement: 資金費率結算/ AutoMarginAddition: 自動追加保證金\"},{\"name\":\"marginChange\",\"type\":\"string\",\"description\":\"變更金額\"},{\"name\":\"marginAfterChange\",\"type\":\"string\",\"description\":\"變更後總金額\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"變更時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/27_get_position_margin_history.json\n// module id = 5iQm\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷TWAP委託\"},{\"type\":\"normal\",\"text\":\"用於撤銷TWAP委託訂單 \"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/cancelOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"mainOrderId\":\"12312435134\",\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"mainOrderId\",\"type\":\"string\",\"required\":\"是\",\"description\":\"TWAP委託訂單編號\"},{\"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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP委託訂單編號\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG 或 SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"價格限制類型,constant:價格間距,percentage:滑點\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"策略订单拆单后,委托下单的时间间隔,5-120s之间\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。\"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: 新建 /Running:運作中/Canceling:撤銷單中/Filled:全部成交/PartiallyFilled:部分成交/Pending:未觸發/PartiallyFilledAndResidueFailed:部分成交(剩餘委託失敗),演算法單狀態/ PartiallyFilledAndResidueCancelled:部分成交(剩餘撤銷),演算法單狀態/Cancelled:已撤銷(不存在部分成交)/Failed:委托失败(不存在部分成交)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"已執行時間,單位秒。執行時間到期後委託單將被取消。 \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"最大執行時間執行時間,單位:秒。\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"訂單創建時間,單位:毫秒\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"訂單更新時間,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/32_cancel_twap_order.json\n// module id = 5pjb\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Price & Current Funding Rate\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"BTC-USD\",\"markPrice\":\"42216.4\",\"indexPrice\":\"42219.9\",\"lastFundingRate\":\"0.00025100\",\"nextFundingTime\":1702742400000}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"trading pair, for example: BTC-USD\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status Code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USD\"},{\"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/cswap/api/market/02_get_premiumIndex.json\n// module id = 5uda\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"標記價格K線數據\"},{\"type\":\"normal\",\"text\":\"查詢標記價格的K線數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/market/markPriceKlines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"KNC-USDT\",\"interval\":\"1h\",\"limit\":\"1000\",\"startTime\":\"1702717199998\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"0.7034\",\"close\":\"0.7065\",\"high\":\"0.7081\",\"low\":\"0.7033\",\"volume\":\"635494.00\",\"openTime\":1705820520000,\"closeTime\":1705820520000}]}},\"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\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"openTime\",\"type\":\"int64\",\"description\":\"開盤時間戳,单位毫秒\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"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/api/market/21_get_quote_mark_price_klines.json\n// module id = 5vst\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新標記價格和資金費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"BTC-USDT\",\"markPrice\":\"42216.4\",\"indexPrice\":\"42219.9\",\"lastFundingRate\":\"0.00025100\",\"nextFundingTime\":1702742400000}}},\"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\":\"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-tw/swapV2/api/market/05_get_quote_ premiumIndex.json\n// module id = 5xUh\n// module chunks = 3","module.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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"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\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"}\"},\"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\":\"The amount of change in the asset account in this transaction\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"The total assets in the account after the change in the asset account\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"The total assets in the account after the change in the asset account\"},{\"name\":\"lk\",\"type\":\"\",\"description\":\"Locked Asset\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/account/02_ account_update.json\n// module id = 5y10\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place TWAP Order\"},{\"type\":\"normal\",\"text\":\"Create a Time Weighted Order (TWAP) order. This function will help you execute large orders in batches within 24 hours, thereby reducing the impact of large orders on market prices, making the average transaction price closer to the actual market price, and reducing your transaction costs.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BNB-USDT\",\"positionId\":\"1847596444958068736\",\"startTime\":1728722649000,\"endTime\":1729336359406,\"pageIndex\":1,\"pageSize\":2,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"records\":[{\"symbol\":\"BTC-USDT\",\"positionId\":\"1847596444958068736\",\"changeReason\":\"OpenPosition\",\"marginChange\":\"7586.46841066\",\"marginAfterChange\":\"7586.46841066\",\"time\":1729336294000}],\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"LONG or SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Price limit type; constant: price interval / percentage: slippage\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order.\"},{\"name\":\"interval\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"After the strategic order is split, the time interval for order placing is between 5-120s.\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order。\"},{\"name\":\"totalAmount\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"twap order number\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/28_post_twap_order.json\n// module id = 6+7u\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-19\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual contract new: Close position by positionId\"},{\"type\":\"html\",\"text\":\"Perpetual websocket: Added stopGuaranteed field to order information.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The query order api returns the stopGuaranteed field.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The query order api and the query history orders api return the triggerOrderId field.\"},{\"type\":\"html\",\"text\":\"Added tradeMinQuantity, tradeMinUSDT, makerFeeRate, and takerFeeRate to the /openApi/swap/v2/quote/contracts endpoint in the sustainable market interface.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-03-19.json\n// module id = 68aw\n// module chunks = 3","var map = {\n\t\".\": \"LuFD\",\n\t\"./\": \"LuFD\",\n\t\"./00_get_account_balance\": \"hIqz\",\n\t\"./00_get_account_balance.json\": \"hIqz\",\n\t\"./01_get_asset_transfer\": \"zvGN\",\n\t\"./01_get_asset_transfer.json\": \"zvGN\",\n\t\"./02_get_asset_transfer2\": \"ah5Z\",\n\t\"./02_get_asset_transfer2.json\": \"ah5Z\",\n\t\"./07_post_capital_innerTransfer_apply\": \"iYO+\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"iYO+\",\n\t\"./14.get_wallet_queryInnerTransferRecords\": \"Jtu9\",\n\t\"./14.get_wallet_queryInnerTransferRecords.json\": \"Jtu9\",\n\t\"./21_get_account_allAccountBalance\": \"9SLF\",\n\t\"./21_get_account_allAccountBalance.json\": \"9SLF\",\n\t\"./index\": \"LuFD\",\n\t\"./index.js\": \"LuFD\"\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 = \"6DOK\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account ^.*$\n// module id = 6DOK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Sub-Account Asset Transfer Interface (For Master Account Operations Only)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/account/transfer/v1/subAccount/transferAsset'\"},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/transferAsset\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"assetName\":\"USDT\",\"transferAmount\":\"1.1\",\"fromUid\":\"25472377\",\"fromAccountType\":\"2\",\"fromType\":\"2\",\"toUid\":\"25316652\",\"toAccountType\":\"1\",\"toType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"code\":0,\"timestamp\":1719495091669,\"data\":{\"tranId\":\"1051323892566796963873\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"assetName\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Name of the asset, e.g., USDT\"},{\"name\":\"transferAmount\",\"type\":\"DECIMAL\",\"required\":\"Yes\",\"description\":\"Transfer amount\"},{\"name\":\"fromUid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender UID\"},{\"name\":\"fromType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender sub/master account type: 1-Master account; 2-Sub-account\"},{\"name\":\"fromAccountType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender account type: 1-Fund account; 2-Contract account; 3-Perpetual USD-based account\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver UID\"},{\"name\":\"toType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver sub/master account type: 1-Master account; 2-Sub-account\"},{\"name\":\"toAccountType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver account type: 1-Fund account; 2-Contract account; 3-Perpetual USD-based account\"},{\"name\":\"remark\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Transfer remark\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"Execution window time, cannot exceed 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Current timestamp, e.g., 1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tranId\",\"type\":\"STRING\",\"description\":\"Transfer record ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/20.sub_account_transfer.json\n// module id = 6Epj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel All After\"},{\"type\":\"normal\",\"text\":\"After the countdown ends, cancel all current pending orders. This request can be continuously maintained to constantly extend the penalty time.\"},{\"type\":\"normal\",\"text\":\"Rate limit: 1 time/1s\"},{\"type\":\"warning\",\"text\":\"If you have a large amount of pending orders, they will be canceled in batches, which may take several seconds to cancel in batches. In addition, during the process of canceling all pending orders, the system will reject further ACTIVATE and CLOSE requests. After the system has completed the task of canceling all pending orders, it can continue to accept ACTIVATE and CLOSE requests.\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/cancelAllAfter\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"type\":\"ACTIVATE\",\"timeOut\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"triggerTime\":1710389137,\"status\":\"ACTIVATED\",\"note\":\"All your spot pending orders will be closed automatically at 2024-03-14 04:05:37 UTC(+0),before that you can cancel the timer, or extend triggerTime time by this request\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Request type: ACTIVATE-Activate, CLOSE-Close\"},{\"name\":\"timeOut\",\"type\":\"int\",\"required\":\"Yes\",\"description\":\"Activate countdown time (seconds), range: 10s-120s\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"triggerTime\",\"type\":\"int\",\"description\":\"Trigger time for deleting all pending orders\"},{\"name\":\"status\",\"type\":\"Status\",\"description\":\"ACTIVATED (Activation successful)/CLOSED (Closed successfully)/FAILED (Failed)\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"Explanation\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/22_cancel_all_after.json\n// module id = 6Ivy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Leverage\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Request Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718354677397,\"data\":{\"symbol\":\"BTC-USD\",\"longLeverage\":4,\"shortLeverage\":8,\"maxLongLeverage\":150,\"maxShortLeverage\":150,\"availableLongVol\":\"15000000\",\"availableShortVol\":\"15000000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g. BTC-USD, use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation timestamp, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"Long position leverage\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"Short position leverage\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"Maximum long position leverage\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"Maximum short position leverage\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"Available long volume\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"Available short volume\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/01_get_leverage.json\n// module id = 6Wqe\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"模擬交易下單\"},{\"type\":\"desc\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\",\"desc\":[{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRAILING_STOP_MARKET(追跡委託單)和TRAILING_TP_SL(移動止盈止損單):需填寫price欄位或者priceRate欄位
  • \"},{\"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\":\"html\",\"text\":\"

    3. 開倉加倉的同時設置止盈止損:使用takeProfit或者stopLoss字段

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"最小下單數量可從接口 /openApi/swap/v2/quote/contracts 獲取:tradeMinQuantity、tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]}]},{\"type\":\"warning\",\"text\":\"模擬盤下單域名:open-api-vst.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"溫馨提醒:由於市場波動較大,為降低爆倉風險,API訂單暫時關閉。\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"需要滿足最小下單金額2U\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"當前您的賬號被風控,當前無法使用API下單,需要聯繫我們客服確認\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"需要填寫quantity字段\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"止損價格需要低於當前最新價\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"當前無倉位,請先檢查是否有倉位\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"保證金不足,請先檢查是否足夠\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"需要填寫必填參數\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,不同訂單不可使用相同的clientOrderId, clientOrderId 僅支援 LIMIT/MARKET 訂單類型\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC和FOK\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單。\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"orderID\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單Id,系統會將該字段轉為英文小寫\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/01_post_trade_order_vst.json\n// module id = 6dPc\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-09-29\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"USDT-M Perp Futures: Websocket market data push, added an explanation of the push frequency.\"},{\"type\":\"html\",\"text\":\"perpetual future websocket: MAX 240 websocket connections per IP\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-09-23.json\n// module id = 6qxj\n// module chunks = 3","var map = {\n\t\"./01_create_api.json\": \"+Rge\",\n\t\"./02_permission_set.json\": \"UG8z\",\n\t\"./03_request_content.json\": \"hS6o\",\n\t\"./04_sign_discription.json\": \"9KKA\",\n\t\"./05_request.json\": \"uSYo\"\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 = \"6wHN\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication \\.json$\n// module id = 6wHN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query 24-Hour Price Change\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/ticker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"priceChange\":\"-561.1\",\"priceChangePercent\":\"-0.8200%\",\"lastPrice\":\"67713.5\",\"lastQty\":\"38\",\"highPrice\":\"68346.9\",\"lowPrice\":\"67521.3\",\"volume\":\"3825668.00\",\"quoteVolume\":\"5084.51\",\"openPrice\":\"68279.2\",\"closeTime\":\"1717053813892\",\"bidPrice\":\"67712.7\",\"bidQty\":\"2100\",\"askPrice\":\"80000.0\",\"askQty\":\"1600\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USD. Please use uppercase letters.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status code.\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description message.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, e.g., BTC-USD.\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"24-hour price change.\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"Price change percentage.\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"Latest trading price.\"},{\"name\":\"lastQty\",\"type\":\"string\",\"description\":\"Latest trading quantity.\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"24-hour highest price.\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"24-hour lowest price.\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"24-hour trading volume.\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"24-hour trading volume in USD.\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"First price within 24 hours.\"},{\"name\":\"closeTime\",\"type\":\"string\",\"description\":\"Time of the last trade within 24 hours.\"},{\"name\":\"bidPrice\",\"type\":\"string\",\"description\":\"Best bid price.\"},{\"name\":\"bidQty\",\"type\":\"string\",\"description\":\"Best bid quantity, in contracts.\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"Best ask price.\"},{\"name\":\"askQty\",\"type\":\"string\",\"description\":\"Best ask quantity, in contracts.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/06_get_ticker.json\n// module id = 6xac\n// module chunks = 3","var map = {\n\t\".\": \"5ECq\",\n\t\"./\": \"5ECq\",\n\t\"./00_post_trade_order_test\": \"TrnZ\",\n\t\"./00_post_trade_order_test.json\": \"TrnZ\",\n\t\"./01_post_trade_order\": \"YLkf\",\n\t\"./01_post_trade_order.json\": \"YLkf\",\n\t\"./01_post_trade_order_vst\": \"dww0\",\n\t\"./01_post_trade_order_vst.json\": \"dww0\",\n\t\"./02_post_trade_batch_order\": \"/bqr\",\n\t\"./02_post_trade_batch_order.json\": \"/bqr\",\n\t\"./03_post_closeAllPositions\": \"jBL/\",\n\t\"./03_post_closeAllPositions.json\": \"jBL/\",\n\t\"./04_delete_trade_order\": \"nf3C\",\n\t\"./04_delete_trade_order.json\": \"nf3C\",\n\t\"./05_delete_trade_batch_order\": \"siG2\",\n\t\"./05_delete_trade_batch_order.json\": \"siG2\",\n\t\"./06_delete_trade_all_order\": \"/Fs7\",\n\t\"./06_delete_trade_all_order.json\": \"/Fs7\",\n\t\"./07_get_all_openOrders\": \"jxdV\",\n\t\"./07_get_all_openOrders.json\": \"jxdV\",\n\t\"./08_check_pending_order\": \"fLAw\",\n\t\"./08_check_pending_order.json\": \"fLAw\",\n\t\"./08_get_trade_order\": \"1xud\",\n\t\"./08_get_trade_order.json\": \"1xud\",\n\t\"./09_get_trade_marginType\": \"Qa4f\",\n\t\"./09_get_trade_marginType.json\": \"Qa4f\",\n\t\"./10_post_trade_marginType\": \"WCFx\",\n\t\"./10_post_trade_marginType.json\": \"WCFx\",\n\t\"./11_get_trade_leverage\": \"Nux4\",\n\t\"./11_get_trade_leverage.json\": \"Nux4\",\n\t\"./12_post_trade_leverage\": \"j3Xb\",\n\t\"./12_post_trade_leverage.json\": \"j3Xb\",\n\t\"./13_get_trade_forceOrders\": \"fUN5\",\n\t\"./13_get_trade_forceOrders.json\": \"fUN5\",\n\t\"./14_get_trade_allOrders\": \"iu9b\",\n\t\"./14_get_trade_allOrders.json\": \"iu9b\",\n\t\"./15_post_trade_positionMargin\": \"i3k4\",\n\t\"./15_post_trade_positionMargin.json\": \"i3k4\",\n\t\"./17_get_trade_allFillOrders\": \"1A8u\",\n\t\"./17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./18_set_positionSide\": \"wp4b\",\n\t\"./18_set_positionSide.json\": \"wp4b\",\n\t\"./19_get_positionSide\": \"n7WW\",\n\t\"./19_get_positionSide.json\": \"n7WW\",\n\t\"./20_cancel_replace_order\": \"vKvg\",\n\t\"./20_cancel_replace_order.json\": \"vKvg\",\n\t\"./21_batch_cancel_replace_order\": \"nNrq\",\n\t\"./21_batch_cancel_replace_order.json\": \"nNrq\",\n\t\"./22_cancel_all_after\": \"6Ivy\",\n\t\"./22_cancel_all_after.json\": \"6Ivy\",\n\t\"./22_post_closePosition\": \"JRrP\",\n\t\"./22_post_closePosition.json\": \"JRrP\",\n\t\"./23_get_trade_allOrdersV2\": \"wYbs\",\n\t\"./23_get_trade_allOrdersV2.json\": \"wYbs\",\n\t\"./24_get_maint_margin_ratio\": \"OkoV\",\n\t\"./24_get_maint_margin_ratio.json\": \"OkoV\",\n\t\"./25_get_fill_history_detail\": \"l3pU\",\n\t\"./25_get_fill_history_detail.json\": \"l3pU\",\n\t\"./26_get_user_position_history\": \"xptQ\",\n\t\"./26_get_user_position_history.json\": \"xptQ\",\n\t\"./27_get_position_margin_history\": \"bHz9\",\n\t\"./27_get_position_margin_history.json\": \"bHz9\",\n\t\"./27_post_get_vst\": \"cn9g\",\n\t\"./27_post_get_vst.json\": \"cn9g\",\n\t\"./28_post_twap_order\": \"6+7u\",\n\t\"./28_post_twap_order.json\": \"6+7u\",\n\t\"./29_get_twap_open_orders\": \"2vkv\",\n\t\"./29_get_twap_open_orders.json\": \"2vkv\",\n\t\"./30_get_twap_history_orders\": \"BBsp\",\n\t\"./30_get_twap_history_orders.json\": \"BBsp\",\n\t\"./31_get_twap_order_detail\": \"NQ2q\",\n\t\"./31_get_twap_order_detail.json\": \"NQ2q\",\n\t\"./32_cancel_twap_cancel_order\": \"iXtv\",\n\t\"./32_cancel_twap_cancel_order.json\": \"iXtv\",\n\t\"./33_post_asset_mode\": \"xS3w\",\n\t\"./33_post_asset_mode.json\": \"xS3w\",\n\t\"./34_get_asset_mode\": \"ZFUX\",\n\t\"./34_get_asset_mode.json\": \"ZFUX\",\n\t\"./35_get_multi_asset_rule\": \"jifI\",\n\t\"./35_get_multi_asset_rule.json\": \"jifI\",\n\t\"./36_get_margin_asset\": \"+eKI\",\n\t\"./36_get_margin_asset.json\": \"+eKI\",\n\t\"./index\": \"5ECq\",\n\t\"./index.js\": \"5ECq\"\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 = \"733f\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade ^.*$\n// module id = 733f\n// module chunks = 3","module.exports = {\"_from\":\"axios@^0.21.1\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"range\",\"registry\":true,\"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\":false,\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"deprecated\":false,\"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\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/package.json\n// module id = 75l9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query force orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/forceOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, for example: BTC-USD, use uppercase letters\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"No\",\"description\":\"LIQUIDATION:Force order, ADL:Reduce order\"},{\"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\":\"The number of results in the returned result set, default value: 50, maximum value: 100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request time stamp, unit: milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request effective time window value, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description information\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation time point, unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"Force order list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order number\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type, LIMIT:Limit order/MARKET:Market order/STOP_MARKET:Market stop-loss order/TAKE_PROFIT_MARKET:Market take-profit order/STOP:Limit stop-loss order/TAKE_PROFIT:Limit take-profit order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Buy or sell direction, SELL BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, dual-position only CAN be selected as LONG or SHORT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Order price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity, contract quantity\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price, only STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT need this parameter\"},{\"name\":\"workingType\",\"type\":\"string\",\"description\":\"stopPrice trigger price type: MARK_PRICE, CONTRACT_PRICE, default: MARK_PRICE.\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Order time, unit: milliseconds\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Transaction volume, contract quantity\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"Profit or loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Commission\"},{\"name\":\"updateTime\",\"type\":\"string\",\"description\":\"Update time, unit: milliseconds\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/08_get_forceOrders.json\n// module id = 79Xw\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱24小時價格變動\"},{\"type\":\"normal\",\"text\":\"每1000ms推送24小時價格變動的數據\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @ticker,比如BTC_USDT@ticker\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對名稱,如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"價格變動\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"價格變動百分比\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"開盤價\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"最高價\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"最低價\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"最新成交價\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"成交量\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"成交額\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"統計開始時間\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"統計結束時間\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"最優買價\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"最優買量\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"最優賣價\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"最優賣量\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"成交筆數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/04_24hr_ticker.json\n// module id = 7Biw\n// module chunks = 3","var map = {\n\t\"./01_create_sub_accuont.json\": \"+6hF\",\n\t\"./02_get_account_apiPermission.json\": \"vPcu\",\n\t\"./02_post_fetch_uid.json\": \"xx9R\",\n\t\"./03_post_fetch_sub_account_list.json\": \"uuPR\",\n\t\"./04_get_sub_account_spot_balance.json\": \"PVSb\",\n\t\"./05_create_sub_accuont_key.json\": \"eSSt\",\n\t\"./06_get_api_key_info.json\": \"MQqI\",\n\t\"./07_post_edit_apikey.json\": \"Jwag\",\n\t\"./08_delete_sub_account_key.json\": \"J2bY\",\n\t\"./09_update_sub_account_status.json\": \"nHln\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"HQ8m\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"+W0b\",\n\t\"./11_post_capital_innerTransfer_apply.json\": \"4v69\",\n\t\"./12.post_wallet_createSubDepositAddress.json\": \"33ms\",\n\t\"./15.get_wallet_querySubDepositAddress.json\": \"zfQA\",\n\t\"./16.get_wallet_querySubDepositRecords.json\": \"cjvr\",\n\t\"./17.get_wallet_querySubInnerTransferRecords.json\": \"FRId\",\n\t\"./18.query_sub_account_transfer_history.json\": \"Jxen\",\n\t\"./19.sub_account_transfer_support_coin.json\": \"A6qi\",\n\t\"./20.sub_account_transfer.json\": \"6Epj\",\n\t\"./22_sub_account_allAccountBalance.json\": \"aaNH\"\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 = \"7I4l\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount \\.json$\n// module id = 7I4l\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"歷史K線\"},{\"type\":\"normal\",\"text\":\"查詢成交價格的歷史K線數據\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 僅支持2024年以後的歷史數據
  • \"},{\"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/market/his/v1/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"1m\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720626772,\"data\":[[1702720620000,42216.29,42216.94,42216.29,42216.72,0.2,1702720679999,8548.46],[1702720560000,42220.61,42221.1,42215.56,42216.63,2.93,1702720619999,123968.7],[1702720500000,42182.59,42220.38,42182.59,42220.38,1.53,1702720559999,64851.33],[1702720440000,42182.84,42183.16,42182.22,42182.81,2.54,1702720499999,107559.45],[1702720380000,42199.72,42204.53,42180.2,42182.76,1.1,1702720439999,46549.09]]}},\"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 最大值:500\"}]},{\"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-tw/spot/api/market/09_get_market_history_klines.json\n// module id = 7UNC\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"査詢受邀用戶的存款明細\"},{\"type\":\"normal\",\"text\":\"代理KOL可以通過此介面査詢相應UID在一定時間內的存款明細。\"},{\"type\":\"html\",\"text\":\"
  • 1.驗證用戶必須是父用戶並具有代理角色;
  • \"},{\"type\":\"html\",\"text\":\"
  • 2.査詢的UID必須是驗證用戶直接或間接邀請的用戶;
  • \"},{\"type\":\"html\",\"text\":\"
  • 3.現時只支持存款資訊。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\",\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"bizType\":\"1\",\"recWindow\":\"6000\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"list\":[{\"uid\":2489544,\"inviteResult\":true,\"directInvitation\":true,\"bizType\":1,\"bizTime\":1673674073000,\"assetType\":30,\"assetTypeName\":\"Deposit\",\"currencyName\":\"USDT\",\"currencyAmountVolume\":\"1000\"}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"YES\",\"description\":\"邀請用戶UID必須是父用戶UID\"},{\"name\":\"bizType\",\"type\":\"int\",\"required\":\"YES\",\"description\":\"1:押金\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"開始時間戳(天),僅支持査詢最後90天的數據。\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"結束時間戳(天)。 只能査詢最後90天的數據。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁碼必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"頁數必須大於0,最大值為100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求有效的時間視窗值,組織:毫秒。 如果未填充,預設值為5秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"請求時間戳記,組織:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"受邀用戶UID\"},{\"name\":\"inviteResult\",\"type\":\"boolean\",\"description\":\"true:邀請關係,false:非邀請關係\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true:直接邀請,false:間接邀請\"},{\"name\":\"bizType\",\"type\":\"int\",\"description\":\"1:押金\"},{\"name\":\"bizTime\",\"type\":\"long\",\"description\":\"事件時間\"},{\"name\":\"assetType\",\"type\":\"int\",\"description\":\"操作類型細分\"},{\"name\":\"assetTypeName\",\"type\":\"string\",\"description\":\"操作類型細分名稱\"},{\"name\":\"currencyName\",\"type\":\"string\",\"description\":\"貨幣\"},{\"name\":\"currencyAmountVolume\",\"type\":\"string\",\"description\":\"數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/04_get_Query_the_deposit_details.json\n// module id = 7XUQ\n// module chunks = 3","var map = {\n\t\".\": \"a9sA\",\n\t\"./\": \"a9sA\",\n\t\"./01_connect\": \"3tXb\",\n\t\"./01_connect.json\": \"3tXb\",\n\t\"./02_data_compress\": \"CVyP\",\n\t\"./02_data_compress.json\": \"CVyP\",\n\t\"./03_heart_beat\": \"vR2M\",\n\t\"./03_heart_beat.json\": \"vR2M\",\n\t\"./04_subscribe\": \"UYWd\",\n\t\"./04_subscribe.json\": \"UYWd\",\n\t\"./05_cancel_subscribe\": \"2xEp\",\n\t\"./05_cancel_subscribe.json\": \"2xEp\",\n\t\"./index\": \"a9sA\",\n\t\"./index.js\": \"a9sA\"\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 = \"7aF3\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/introduce ^.*$\n// module id = 7aF3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單\"},{\"type\":\"normal\",\"text\":\"查詢用戶歷史訂單(訂單狀態為已成交或已撤銷)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 查詢時間範圍最大不得超過7天
  • \"},{\"type\":\"html\",\"text\":\"
  • 默認查詢最近7天內的數據
  • \"},{\"type\":\"html\",\"text\":\"
  • 返回訂單列表按照updateTime從小到大排序
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USDT\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500,\"isTwap\":true,\"mainOrderId\":\"2131232141234\"}]}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"the query range is more than seven days\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母,如果不填寫symbol,則會查詢所有幣對的歷史訂單。\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or 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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"},{\"name\":\"triggerOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"这一訂單關聯的觸發單訂單號\"},{\"name\":\"isTwap\",\"type\":\"bool\",\"description\":\"是否為TWAP訂單,true:是,flase:不是\"},{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP委託訂單編號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/14_get_trade_allOrders.json\n// module id = 7bgg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史成交訂單\"},{\"type\":\"normal\",\"text\":\"獲取某交易對的成交歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"返回訂單列表規則說明\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"排序:ORDER BY filledTime ASC,以filledTime字段升序\"},{\"type\":\"normal\",\"text\":\"最多能返回[從當前日期]到過去30天&最多能返回512條歷史成交訂單,startTs = [當前日期] - 30days\"},{\"type\":\"normal\",\"text\":\"如果startTs和endTs都填寫,則返回數據範圍:startTs < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"如果只填寫endTs,則返回數據範圍:([當前日期] - 30days) < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"如果只填寫startTs不返回數據\"},{\"type\":\"normal\",\"text\":\"如果填寫orderId,只返回該orderId的成交訂單\"}]},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allFillOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTs\":\"1702731530000\",\"startTs\":\"1702724330000\",\"symbol\":\"WLD-USDT\",\"tradingUnit\":\"COIN\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"fill_orders\":[{\"filledTm\":\"2023-12-16T20:58:36Z\",\"volume\":\"4.10\",\"price\":\"3.1088\",\"amount\":\"12.7492\",\"commission\":\"-0.0025\",\"currency\":\"USDT\",\"orderId\":\"1736007768311123456\",\"liquidatedPrice\":\"\",\"liquidatedMarginRatio\":\"\",\"filledTime\":\"2023-12-16T20:58:36.000+0800\",\"clientOrderId\":\"\",\"symbol\":\"WLD-USDT\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母。如果未提供特定的交易對,則將返回所有交易對的歷史成交記錄\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"如果填寫orderId,只返回該orderId的成交訂單\"},{\"name\":\"tradingUnit\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易單位,可選值:COIN、CONT;COIN直接表示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\",\"required\":\"否\",\"description\":\"成交時間,格式:2024-10-24T17:13:12Z\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,例如:BTC-USDT\"},{\"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\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"onlyOnePosition\",\"type\":\"bool\",\"required\":\"否\",\"description\":\"是否單向持倉,true:是;false:不是\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/17_get_trade_allFillOrders.json\n// module id = 7iFh\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\\\": \\\"\\\" }\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/05_cancel_subscribe.json\n// module id = 7k03\n// module chunks = 3","var map = {\n\t\".\": \"D4vT\",\n\t\"./\": \"D4vT\",\n\t\"./00_post_trade_order\": \"YI4R\",\n\t\"./00_post_trade_order.json\": \"YI4R\",\n\t\"./01_get_commissionRate\": \"n+yS\",\n\t\"./01_get_commissionRate.json\": \"n+yS\",\n\t\"./02_get_leverage\": \"bFqw\",\n\t\"./02_get_leverage.json\": \"bFqw\",\n\t\"./03_post_leverage\": \"N7P3\",\n\t\"./03_post_leverage.json\": \"N7P3\",\n\t\"./04_post_allOpenOrders\": \"0Lu1\",\n\t\"./04_post_allOpenOrders.json\": \"0Lu1\",\n\t\"./05_post_closeAllPositions\": \"vDcD\",\n\t\"./05_post_closeAllPositions.json\": \"vDcD\",\n\t\"./06_get_positions\": \"+oba\",\n\t\"./06_get_positions.json\": \"+oba\",\n\t\"./07_get_balance\": \"ptJe\",\n\t\"./07_get_balance.json\": \"ptJe\",\n\t\"./08_get_forceOrders\": \"D/10\",\n\t\"./08_get_forceOrders.json\": \"D/10\",\n\t\"./09_get_allFillOrders\": \"f4x/\",\n\t\"./09_get_allFillOrders.json\": \"f4x/\",\n\t\"./10_delete_trade_order\": \"01Ul\",\n\t\"./10_delete_trade_order.json\": \"01Ul\",\n\t\"./11_get_all_openOrders\": \"TzVG\",\n\t\"./11_get_all_openOrders.json\": \"TzVG\",\n\t\"./12_get_trade_order\": \"c76v\",\n\t\"./12_get_trade_order.json\": \"c76v\",\n\t\"./14_get_trade_allOrders\": \"I2ee\",\n\t\"./14_get_trade_allOrders.json\": \"I2ee\",\n\t\"./15_get_margin_type\": \"qPGu\",\n\t\"./15_get_margin_type.json\": \"qPGu\",\n\t\"./16_post_margin_type\": \"LawJ\",\n\t\"./16_post_margin_type.json\": \"LawJ\",\n\t\"./17_post_trade_positionMargin\": \"eN7O\",\n\t\"./17_post_trade_positionMargin.json\": \"eN7O\",\n\t\"./index\": \"D4vT\",\n\t\"./index.js\": \"D4vT\"\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 = \"7m+0\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade ^.*$\n// module id = 7m+0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢逐全倉模式\"},{\"type\":\"normal\",\"text\":\"查詢用戶在指定symbol合約上的保證金模式:逐倉或全倉。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"WOO-USDT\",\"timestamp\":\"1702733469134\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"marginType\":\"CROSSED\"}}},\"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\":\"全倉\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/09_get_trade_marginType.json\n// module id = 7mzI\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-10-12\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual future/spot: The same order is limited to 1 second and can be revoked at most once\"},{\"type\":\"html\",\"text\":\"Spot: New Order Type: TAKE_ STOP_ Limit: TAKE_ STOP_ MARKET: Market price stop loss order TRIGGER_ LIMITED: TRIGGER commissioned for price limit plan_ Market: Market price plan commission\"},{\"type\":\"html\",\"text\":\"Spot: Historical orders returned with additional fee fields\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-10-12.json\n// module id = 7wfK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"子母賬號資產劃轉接口(僅限母賬戶操作)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/account/transfer/v1/subAccount/transferAsset\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/transferAsset\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"assetName\":\"USDT\",\"transferAmount\":\"1.1\",\"fromUid\":\"25472377\",\"fromAccountType\":\"2\",\"fromType\":\"2\",\"toUid\":\"25316652\",\"toAccountType\":\"1\",\"toType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"code\":0,\"timestamp\":1719495091669,\"data\":{\"tranId\":\"1051323892566796963873\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"assetName\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣的名稱 例如USDT\"},{\"name\":\"transferAmount\",\"type\":\"DECIMAL\",\"required\":\"是\",\"description\":\"劃轉金額\"},{\"name\":\"fromUid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方uid\"},{\"name\":\"fromType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方子母賬戶類型::1-母賬戶;2-子賬戶\"},{\"name\":\"fromAccountType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方賬戶類型:1-資金賬戶;2-標合賬戶;3-永續U本位賬戶\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方uid\"},{\"name\":\"toType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方子母賬戶類型::1-母賬戶;2-子賬戶\"},{\"name\":\"toAccountType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方賬戶類型:1-資金賬戶;2-標合賬戶;3-永續U本位賬戶\"},{\"name\":\"remark\",\"type\":\"string\",\"required\":\"是\",\"description\":\"劃轉備註\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tranId\",\"type\":\"STRING\",\"description\":\"劃轉記錄id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/20_sub_account_transfer.json\n// module id = 7zc5\n// module chunks = 3","const java = `\npackage org.socket;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.util.Timer;\nimport java.util.TimerTask;\nimport java.util.zip.GZIPInputStream;\n\nimport org.java_websocket.client.WebSocketClient;\nimport org.java_websocket.handshake.ServerHandshake;\nimport org.java_websocket.enums.ReadyState;\n\nimport java.net.URI;\nimport java.nio.ByteBuffer;\n\npublic class WebSocketExample {\n private static final String PATH = \"wss://open-api-swap.bingx.com/swap-market?listenKey=425f783f4a17cd65f4a5d7470cfd45a956dba0c29564aa4b70967bee4e4a8984\";\n private static final String CHANNEL = \"https://open-api.bingx.com/openApi/user/auth/userDataStream\";\n private static WebSocketClient webSocketClient;\n\n public static void main(String[] args) {\n try {\n // Initialize WebSocket client\n URI uri = new URI(PATH);\n webSocketClient = new WebSocketClient(uri) {\n @Override\n public void onOpen(ServerHandshake handshakedata) {\n System.out.println(\"WebSocket connection opened\");\n send(CHANNEL);\n }\n\n @Override\n public void onMessage(String message) {\n System.out.println(\"Received Text Message: \" + message);\n }\n\n @Override\n public void onMessage(ByteBuffer bytes) {\n try {\n String decodedMsg = decodeGzip(bytes.array());\n System.out.println(\"Received Binary Message: \" + decodedMsg);\n\n if (\"Ping\".equals(decodedMsg)) {\n send(\"Pong\");\n System.out.println(\"Sent Pong\");\n }\n\n } catch (IOException e) {\n System.out.println(\"Error decoding message: \" + e.getMessage());\n }\n }\n\n @Override\n public void onClose(int code, String reason, boolean remote) {\n System.out.println(\"WebSocket connection closed: \" + reason);\n }\n\n @Override\n public void onError(Exception ex) {\n System.out.println(\"WebSocket error: \" + ex.getMessage());\n }\n };\n\n webSocketClient.connectBlocking();\n\n // Schedule periodic ping messages\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n if (webSocketClient.getReadyState() == ReadyState.OPEN) {\n webSocketClient.send(\"Ping\");\n System.out.println(\"Sent Ping\");\n }\n }\n }, 0, 5000);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n // GZIP decoding function\n private static String decodeGzip(byte[] compressedData) throws IOException {\n GZIPInputStream gzipInputStream = new GZIPInputStream(new ByteArrayInputStream(compressedData));\n byte[] buffer = new byte[1024];\n StringBuilder decodedMessage = new StringBuilder();\n\n int len;\n while ((len = gzipInputStream.read(buffer)) != -1) {\n decodedMessage.append(new String(buffer, 0, len));\n }\n\n gzipInputStream.close();\n return decodedMessage.toString();\n }\n}\n`\nexport default java\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/java.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-04-25\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續修改接口:查詢合約基礎信息支持按單個合約查詢。\"},{\"type\":\"html\",\"text\":\"永續修改接口:allFillOrders接口,當沒有提供symbol字段時,將返回所有幣對歷史成交信息。\"},{\"type\":\"html\",\"text\":\"永續修改:查詢持倉接口新增返回保證金字段。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-04-25.json\n// module id = 87c6\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/06_cancel_subscribe.json\n// module id = 8PHc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"査詢合作夥伴資訊\"},{\"type\":\"normal\",\"text\":\"此API用於査詢合作夥伴設定檔數據。\"},{\"type\":\"html\",\"text\":\"
  • 1.僅支持査詢過去3個月的數據。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/asset/partnerData\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"pageIndex\":\"1\",\"pageSize\":\"100\",\"recWindow\":\"6000\",\"timestamp\":\"1689426920000\"},\"response\":{\"code\":0,\"timestamp\":1718441614690,\"data\":{\"list\":[{\"uid\":25414560,\"email\":\"jo***@niubi.im\",\"phone\":\"*******7294\",\"referralType\":1,\"remarks\":\"123\",\"referrerUid\":24186664,\"language\":\"en\",\"newReferees\":0,\"firstTrade\":0,\"branchDeposits\":\"24534.446799999998\",\"branchTrading\":4,\"branchTradingVol\":\"98434310.99579316\",\"level\":0,\"commissionRatio\":0.04}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"合作夥伴UID\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"開始時間,組織:天,僅支持査詢最近3個月。 如果未填寫開始時間和結算時間,則默認査詢本月數據\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"結束時間,組織:天,僅支持査詢最近3個月。 如果未填寫開始時間和結算時間,則默認査詢本月數據\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"如果未填寫,預設值為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"如果不填寫,默認頁數為100,最大值為200\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求有效的時間視窗值,組織:毫秒。 如果未填充,預設值為5秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"請求時間戳記,組織:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"合作夥伴UID\"},{\"name\":\"email\",\"type\":\"STRING\",\"description\":\"合作夥伴郵箱,加密狀態\"},{\"name\":\"Phone\",\"type\":\"STRING\",\"description\":\"合作夥伴的手機號碼,合作夥伴的加密手機號碼\"},{\"name\":\"referralType\",\"type\":\"int\",\"description\":\"邀請類型:1:直接邀請,2:間接邀請\"},{\"name\":\"remarks\",\"type\":\"STRING\",\"description\":\"Remarks\"},{\"name\":\"referrerUid\",\"type\":\"long\",\"description\":\"高級Uid\"},{\"name\":\"language\",\"type\":\"STRING\",\"description\":\"語言\"},{\"name\":\"newReferees\",\"type\":\"STRING\",\"description\":\"査詢期間新受邀者的數量\"},{\"name\":\"firstTrade\",\"type\":\"STRING\",\"description\":\"査詢期間首次交易的人數\"},{\"name\":\"branchDeposits\",\"type\":\"STRING\",\"description\":\"査詢期間通道充值量\"},{\"name\":\"branchTrading\",\"type\":\"STRING\",\"description\":\"査詢時間內的通路交易數量\"},{\"name\":\"branchTradingVol\",\"type\":\"STRING\",\"description\":\"査詢期間通路的交易金額\"},{\"name\":\"level\",\"type\":\"STRING\",\"description\":\"level\"},{\"name\":\"commissionRatio\",\"type\":\"STRING\",\"description\":\"返利比率\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/06_get_Query_partner_information.json\n// module id = 8au9\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/permission/index.js","module.exports = [{\"type\":\"normal\",\"text\":\"websocket interface\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market\"},{\"type\":\"normal\",\"text\":\"account subscription data stream /market/\"},{\"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 https://open-api.bingx.com/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\":\"https://open-api.bingx.com/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\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/listenKey/01_create_listenKey.json\n// module id = 8kVO\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/cswap/api/basic/index_share_to_v1.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-28\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract: The allFillOrders api has added type, side, and positionSide fields to return.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The 'query contract' api response has been updated to include the 'ensureTrigger' field and the 'triggerFeeRate' field.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The 'query positions' api response has been updated to include the 'updateTime' field.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The 'query account balance' api has been updated to include the 'shortUid' field.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The 'query leverage' api and 'modify leverage' api added fields availableLongVol, availableShortVol, availableLongVal, availableShortVal, maxPositionLongVal, maxPositionShortVal.\"},{\"type\":\"html\",\"text\":\"Perpetual contract new: Query all order interface\"},{\"type\":\"html\",\"text\":\"Copy Trading New: Trader buys spot order and sells spot assets\"},{\"type\":\"html\",\"text\":\"Perpetual addition: Query all current orders GET /openApi/swap/v2/trade/openOrders added to return tracking orders, planned reverse orders, and added fields for guaranteed take profit and stop loss, maker only, retracement rate/spread\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-03-28.json\n// module id = 96CF\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/market/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-03\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"更改永續合約(最大杠杆倍數遷入新接口)永續合約:最大杠杆倍數,請不要用行情接口交易對資訊裏的最大杠杆數\"},{\"type\":\"html\",\"text\":\"新增 子帳戶相關操作:子帳戶創建、査詢、移除、凍結、授權等\"},{\"type\":\"html\",\"text\":\"新增 子帳戶API KEY相關操作:子帳戶API KEY創建、査詢、移除、許可權設定等\"},{\"type\":\"html\",\"text\":\"新增 子帳號中間內轉接口\"},{\"type\":\"html\",\"text\":\"新 用戶万向劃轉接口\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-08-03.json\n// module id = 9HpD\n// module chunks = 3","var map = {\n\t\".\": \"B7jJ\",\n\t\"./\": \"B7jJ\",\n\t\"./01_dept_info_interval\": \"bP1Q\",\n\t\"./01_dept_info_interval.json\": \"bP1Q\",\n\t\"./02_latest_records\": \"cRtg\",\n\t\"./02_latest_records.json\": \"cRtg\",\n\t\"./03_kline_data\": \"WbRb\",\n\t\"./03_kline_data.json\": \"WbRb\",\n\t\"./04_quote_ticker\": \"AAve\",\n\t\"./04_quote_ticker.json\": \"AAve\",\n\t\"./05_last_trade_price\": \"lqZR\",\n\t\"./05_last_trade_price.json\": \"lqZR\",\n\t\"./06_last_mark_price\": \"zVt3\",\n\t\"./06_last_mark_price.json\": \"zVt3\",\n\t\"./07_book_ticker\": \"5TRZ\",\n\t\"./07_book_ticker.json\": \"5TRZ\",\n\t\"./08_depth_incr_info\": \"PEl6\",\n\t\"./08_depth_incr_info.json\": \"PEl6\",\n\t\"./index\": \"B7jJ\",\n\t\"./index.js\": \"B7jJ\"\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 = \"9JvQ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market ^.*$\n// module id = 9JvQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Signature Description\"},{\"type\":\"html\",\"text\":\"signatureRequest parameter by using HMAC SHA256 encode\"},{\"type\":\"html\",\"text\":\"for example\"},{\"type\":\"html\",\"text\":\"
  • api parameters
  • \"},{\"type\":\"html\",\"text\":\"

    symbol=BTC-USDT
    timestamp=1696751141337
    recvWindow=0

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

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    \"},{\"type\":\"html\",\"text\":\"
  • Example of sending parameters through query string
  • \"},{\"type\":\"html\",\"text\":\"1. Splice all api parameters (without sorting)\"},{\"type\":\"code\",\"text\":\"recvWindow=0&symbol=BTC-USDT×tamp=1696751141337\"},{\"type\":\"html\",\"text\":\"2. Use secretKey to generate a signature for the concatenated parameter string: 1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8
    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"recvWindow=0&symbol=BTC-USDT×tamp=1696751141337\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. Send request\"},{\"type\":\"html\",\"text\":\"Some query string scenarios (such as a='1 '&b={a:'2'}) require URL encoding for each value of the request parameters, only for the value value, without URL encoding for the field key, nor for the entire original parameters string. Here is a special field: the value of timestamp does not require URL encoding. Please refer toURL encoding scenario description\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/user/positions?recvWindow=0&symbol=BTC-USDT×tamp=1696751141337&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'\"},{\"type\":\"html\",\"text\":\"
  • Example of sending parameters through request body
  • \"},{\"type\":\"html\",\"text\":\"1. Sort and concatenate all api parameters according to (a-z) (sorting required)\"},{\"type\":\"code\",\"text\":\"recvWindow=0&subAccountString=abc12345×tamp=1696751141337\"},{\"type\":\"html\",\"text\":\"2. Use secretKey to generate a signature for the concatenated parameter string:1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\"},{\"type\":\"code\",\"text\":\"echo -n \\\"recvWindow=0&subAccountString=abc12345×tamp=1696751141337\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. Combine into JSON, place the request body, and set header: 'Content Type': 'application/JSON'\"},{\"type\":\"code\",\"text\":\"{\\\"recvWindow\\\":0,\\\"subAccountString\\\":\\\"abc12345\\\",\\\"timestamp\\\":1696751141337,\\\"signature\\\":\\\"1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\\\"}\"},{\"type\":\"code\",\"text\":\"curl --location 'https://open-api.bingx.com/openApi/subAccount/v1/create' --header 'Content-Type: application/json' --data '{\\\"recvWindow\\\":0,\\\"subAccountString\\\":\\\"abc12345\\\",\\\"timestamp\\\":1696751141337,\\\"signature\\\":\\\"1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\\\"}'\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication/04_sign_discription.json\n// module id = 9KKA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"資產概覽\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/allAccountBalance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"accountType\":\"sopt\",\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"result\":[{\"accountType\":\"sopt\",\"usdtBalance\":\"100\"}],\"pageId\":1,\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"accountType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"帳戶類型,不填默認查全部帳戶的資產。 sopt:現貨(資金帳戶),stdFutures:標準合約帳戶,coinMPerp:幣本位帳戶,USDTMPerp:U本位帳戶,copyTrading:跟單帳戶,grid:策略帳戶,eran:理財帳戶,c2c:c2c帳戶等。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"accountType\",\"type\":\"string\",\"description\":\"帳戶類型,不填默認查全部帳戶的資產。 sopt:現貨(資金帳戶),stdFutures:標準合約帳戶,coinMPerp:幣本位帳戶,USDTMPerp:U本位帳戶,copyTrading:跟單帳戶,grid:策略帳戶,eran:理財帳戶,c2c:c2c帳戶等。\"},{\"name\":\"usdtBalance\",\"type\":\"string\",\"description\":\"折合USDT金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/21_get_account_allAccountBalance.json\n// module id = 9SLF\n// module chunks = 3","var map = {\n\t\"./01_get_contracts.json\": \"mCcU\",\n\t\"./02_get_premiumIndex.json\": \"nco7\",\n\t\"./03_get_openInterest.json\": \"pnyN\",\n\t\"./04_get_kline.json\": \"Yskp\",\n\t\"./05_get_depth.json\": \"2qcG\",\n\t\"./06_get_ticker.json\": \"PaEN\"\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 = \"9SsD\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market \\.json$\n// module id = 9SsD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的某個訂單進行撤銷操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"撤單接口1s限制最多能撤同一條orderId或者clientOrderId,請勿重複提交\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderId\":\"1736011869418901234\",\"symbol\":\"RNDR-USDT\",\"timestamp\":\"1702732515704\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"RNDR-USDT\",\"orderId\":1736011869418901200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"3\",\"price\":\"4.5081\",\"executedQty\":\"0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702732457867,\"updateTime\":1702732457888,\"clientOrderId\":\"lo******7\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"service has some errors, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109414,\"msg\":\"order not exist\",\"data\":{}}}]},\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"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/04_delete_trade_order.json\n// module id = 9V8o\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶強平單歷史\"},{\"type\":\"normal\",\"text\":\"查詢用戶強平單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"ATOM-USDT\",\"startTime\":\"1696291200\",\"timestamp\":\"1699982303257\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ATOM-USDT\",\"orderId\":172264854643022330000,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"2.36\",\"price\":\"8.096\",\"executedQty\":\"2.36\",\"avgPrice\":\"8.095\",\"cumQuote\":\"19\",\"stopPrice\":\"\",\"profit\":\"-0.9346\",\"commission\":\"-0.009553\",\"status\":\"FILLED\",\"time\":1699546393000,\"updateTime\":1699546393000,\"clientOrderId\":\"\",\"leverage\":\"21X\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or 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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/13_get_trade_forceOrders.json\n// module id = 9bR8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Main account internal transfer records\"},{\"type\":\"normal\",\"text\":\"This endpoint is used for the parent user to query their own inner transfer records. Only available for parent users.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/records\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"30000\",\"timestamp\":\"1702383898131\",\"limit\":\"1000\",\"coin\":\"BTC\",\"startTime\":\"1701519898118\",\"endTime\":\"1702383898118\"},\"response\":{\"code\":0,\"timestamp\":1702383898844,\"data\":{\"data\":[{\"id\":1251111922229444400,\"coin\":\"BTC\",\"receiver\":1128763679,\"amount\":0.0072366,\"status\":6,\"fromUid\":1128763678,\"recordType\":\"out\"}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Transfer coin name\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Client's self-defined internal transfer ID. When both platform ID and transferClientId are provided as input, the query will be based on the platform ID.\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"No\",\"description\":\"Start time\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"No\",\"description\":\"End time\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"Inner transfer records list\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"id\",\"type\":\"long\",\"description\":\"Inner transfer ID\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Coin name\"},{\"name\":\"receiver\",\"type\":\"long\",\"description\":\"Receiver UID\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"Transfer amount\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"Internal transfer time\"},{\"name\":\"status\",\"type\":\"Integer\",\"description\":\"Status 4-Pending review 5-Failed 6-Completed\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Client's self-defined internal transfer ID. When both platform ID and transferClientId are provided as input, the query will be based on the platform ID.\"},{\"name\":\"fromUid\",\"type\":\"long\",\"description\":\"Payer's account\"},{\"name\":\"recordType\",\"type\":\"string\",\"description\":\"Out: transfer out record, in: transfer in record\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/14.get_wallet_queryInnerTransferRecords.json\n// module id = 9tS2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Close all positions in bulk\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718434280880,\"data\":{\"success\":[\"1801870087554072576\"],\"failed\":[{\"positionId\":\"12345678910111234\",\"errCode\":123,\"errorMsg\":\"balabala\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, e.g. BTC-USD, use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation timestamp, unit: millisecond\"},{\"name\":\"data\",\"type\":\"Obj\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"success\",\"type\":\"List\",\"description\":\"Close successful order ids list\"},{\"name\":\"failed\",\"type\":\"List\",\"description\":\"Failed close messages\"}]},{\"type\":\"Failed\",\"key\":\"failed\",\"data\":[{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Failed closing position id\"},{\"name\":\"errCode\",\"type\":\"int32\",\"description\":\"Error code\"},{\"name\":\"errorMsg\",\"type\":\"string\",\"description\":\"Error description message\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/05_post_closeAllPositions.json\n// module id = A11g\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query the transferable amount of funds in the parent-child account (only for parent account operations).\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins'\"},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"fromUid\":\"25472377\",\"fromAccountType\":\"2\",\"toUid\":\"25316652\",\"toAccountType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1719498078761,\"data\":{\"coins\":[{\"id\":4,\"name\":\"USDT\",\"showName\":\"Tether\",\"icon\":{\"id\":4,\"uri\":\"https://static-app.teststar.cc/icon/USDT.png\"},\"type\":0,\"fiatSymbol\":\"$\",\"availableAmount\":\"79.02345678\",\"usdtRate\":\"1\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"fromUid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender UID\"},{\"name\":\"fromAccountType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender account type: 1-Fund account; 2-Contract account; 3-Perpetual USD-based account\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver UID\"},{\"name\":\"toAccountType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver account type: 1-Fund account; 2-Contract account; 3-Perpetual USD-based account\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"Execution window time, cannot exceed 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Current timestamp, e.g., 1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"coins\",\"type\":\"ARRAY\",\"description\":\"List of supported coins\"},{\"name\":\"id\",\"type\":\"LONG\",\"description\":\"Coin ID\"},{\"name\":\"name\",\"type\":\"STRING\",\"description\":\"Coin name, e.g., USDT\"},{\"name\":\"availableAmount\",\"type\":\"DECIMAL\",\"description\":\"Available transfer amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/19.sub_account_transfer_support_coin.json\n// module id = A6qi\n// module chunks = 3","var map = {\n\t\".\": \"1pD3\",\n\t\"./\": \"1pD3\",\n\t\"./03_get_deposit_hisrec\": \"dXH3\",\n\t\"./03_get_deposit_hisrec.json\": \"dXH3\",\n\t\"./04_get_withdraw_history\": \"kh23\",\n\t\"./04_get_withdraw_history.json\": \"kh23\",\n\t\"./05_post_wallets_coins\": \"zgmp\",\n\t\"./05_post_wallets_coins.json\": \"zgmp\",\n\t\"./06_post_wallets_withdraw\": \"YSKw\",\n\t\"./06_post_wallets_withdraw.json\": \"YSKw\",\n\t\"./13.get_wallet_queryDepositAddress\": \"rgh9\",\n\t\"./13.get_wallet_queryDepositAddress.json\": \"rgh9\",\n\t\"./14_get_risk_deposit_records\": \"CxZu\",\n\t\"./14_get_risk_deposit_records.json\": \"CxZu\",\n\t\"./index\": \"1pD3\",\n\t\"./index.js\": \"1pD3\"\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 = \"A7Vy\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet ^.*$\n// module id = A7Vy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱24小時價格變動\"},{\"type\":\"normal\",\"text\":\"每1秒推送一次。\"},{\"type\":\"normal\",\"text\":\"推送24小時價格變動。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @ticker,比如BTC-USDT@ticker。\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},\"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@ticker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"24小時價格變動\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"價格變動百分比\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"24小時內第一個價格\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"24小時最高價\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"24小時最低價\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"最新交易額\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"最新交易價格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"24小時成交量\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"24小時成交額, 單位是USDT\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"24小時內,第一筆交易的發生時間\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"24小時內,最後一筆交易的發生時間\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"買一價格\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"買一數量\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"賣一價格\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賣一數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/04_quote_ticker.json\n// module id = AAve\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"有限檔深度信息\"},{\"type\":\"normal\",\"text\":\"每500ms推送有限檔深度信息。默認20檔\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @depth,比如BTC-USDT@depth50, BTC-USDT@depth50\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth50\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth50\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"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檔\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"變動的賣單深度\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"變動的買單深度\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/03_depth_info.json\n// module id = ADmP\n// module chunks = 3","\nconst python = `\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 = parseParam(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 parseParam(paramsMap):\n sortedKeys = sorted(paramsMap)\n paramsStr = \"&\".join([\"%s=%s\" % (x, paramsMap[x]) for x in sortedKeys])\n if paramsStr != \"\": \n return paramsStr+\"×tamp=\"+str(int(time.time() * 1000))\n else:\n return paramsStr+\"timestamp=\"+str(int(time.time() * 1000))\n\n\nif __name__ == '__main__':\n print(\"demo:\", demo())\n`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/python.js","var map = {\n\t\".\": \"4RZf\",\n\t\"./\": \"4RZf\",\n\t\"./01_error_code\": \"XCkz\",\n\t\"./01_error_code.json\": \"XCkz\",\n\t\"./02_timestamp\": \"oPkH\",\n\t\"./02_timestamp.json\": \"oPkH\",\n\t\"./03_digital_rule\": \"WihS\",\n\t\"./03_digital_rule.json\": \"WihS\",\n\t\"./04_rate_limits\": \"p+dP\",\n\t\"./04_rate_limits.json\": \"p+dP\",\n\t\"./05_system_time\": \"lC7j\",\n\t\"./05_system_time.json\": \"lC7j\",\n\t\"./index\": \"4RZf\",\n\t\"./index.js\": \"4RZf\",\n\t\"./index_share_to_v1\": \"8rn0\",\n\t\"./index_share_to_v1.js\": \"8rn0\"\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 = \"AYyd\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic ^.*$\n// module id = AYyd\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-24\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:新增‘模擬盤服務’\"},{\"type\":\"html\",\"text\":\"新增逐倉保證金變動歷史接口:/openApi/swap/v1/positionMargin/history\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-24.json\n// module id = Aw6+\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/swapV2/websocket/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Query TWAP Historical Orders\"},{\"type\":\"normal\",\"text\":\"Used to query TWAP historical delegation records, including partially completed, completed, revoked and failed delegation。 \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDT\",\"pageIndex\":1,\"pageSize\":100,\"startTime\":1702731661854,\"endTime\":1702738661854,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"list\":[{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Paging parameters, the minimum value is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Number of result sets returned; maximum: 1000\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Start time, unit: milliseconds\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"End time, unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request 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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"twap order number\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction; SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG or SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"Price limit type, constant: price interval, percentage: slippage\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order.\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"After the strategic order is split, the time interval for order placing is between 5-120s\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order. \"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions. \"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: New/Running: In operation/Canceling: Cancellation of order/Filled: Fully filled/PartiallyFilled: Partially filled/Pending: Not triggered/PartiallyFilledAndResidueFailed: Partially filled (remaining order failed), algorithm order status/PartiallyFilledAndResidueCancelled: Partially filled ( Remaining cancellation), algorithm order status/Cancelled: Canceled (no partial deal exists)/Failed: Order failed (no partial deal exists)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Volume \"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"Execution time, in seconds. The order will be canceled after the execution time expires. \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"Maximum execution time execution time, unit: seconds.\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"Order creation time, unit: milliseconds\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Order update time, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/30_get_twap_history_orders.json\n// module id = BBsp\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/introduce/index.js","var map = {\n\t\"./csharp.js\": \"G5Hi\",\n\t\"./generate.js\": \"J7jo\",\n\t\"./golang.js\": \"5BSP\",\n\t\"./java.js\": \"Bhqz\",\n\t\"./javascript.js\": \"mDPn\",\n\t\"./php.js\": \"zYya\",\n\t\"./python.js\": \"ATrJ\",\n\t\"./shell.js\": \"kHJ+\"\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 = \"BPx7\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/utils/code ^\\.\\/.*\\.js$\n// module id = BPx7\n// module chunks = 3","var map = {\n\t\"./01_get_account_apiRestrictions.json\": \"Xu0+\"\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 = \"BQvj\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/permission \\.json$\n// module id = BQvj\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\":\"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/cswap/v1/trade/orderHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USD\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USD\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"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-USD.If no symbol is specified, it will query the historical orders for all trading pairs.\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Only return 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.If a specific pair is not provided, a history of transactions for all pairs will be returned\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/14_get_trade_allOrders.json\n// module id = BW7b\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢幣種充提數據\"},{\"type\":\"normal\",\"text\":\"查詢所有的幣種,並且查詢該幣種對應的限額\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/config/getall\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702623270607\"},\"response\":{\"code\":0,\"timestamp\":1702623271477,\"data\":[{\"coin\":\"BTC\",\"name\":\"BTC\",\"networkList\":[{\"name\":\"BTC\",\"network\":\"BTC\",\"isDefault\":true,\"minConfirm\":2,\"withdrawEnable\":true,\"depositEnable\":true,\"withdrawFee\":\"0.0006\",\"withdrawMax\":\"1.17522\",\"withdrawMin\":\"0.0005\",\"depositMin\":\"0.0002\"},{\"name\":\"BTC\",\"network\":\"BEP20\",\"isDefault\":false,\"minConfirm\":15,\"withdrawEnable\":true,\"depositEnable\":true,\"withdrawFee\":\"0.0000066\",\"withdrawMax\":\"1.17522\",\"withdrawMin\":\"0.0000066\",\"depositMin\":\"0.0002\"}]}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣種標誌\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"depositEnable\",\"type\":\"boolean\",\"description\":\"該幣種是否開放提幣\"},{\"name\":\"depositMin\",\"type\":\"decimal\",\"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\":\"提幣描述\"},{\"name\":\"withdrawPrecision\",\"type\":\"int\",\"description\":\"提幣精度\"},{\"name\":\"depositPrecision\",\"type\":\"int\",\"description\":\"充幣精度\"},{\"name\":\"contractAddress\",\"type\":\"int\",\"description\":\"合約地址\"},{\"name\":\"needTagOrMemo\",\"type\":\"String\",\"description\":\"是否需要memo或tag,true:需要,false:不需要\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/05_post_wallets_coins.json\n// module id = BYvq\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/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Query Invited Users\"},{\"type\":\"normal\",\"text\":\"The proxy KOL can use this api to query basic information of invited subordinate users.\"},{\"type\":\"html\",\"text\":\"
  • startTime < endTime, and endTime - startTime <= 30 days. If not filled in, it will query all data.
  • \"},{\"type\":\"html\",\"text\":\"
  • Only proxies with verified UID can use this function. 3. Search for subordinate users registered between startTime and endTime, sorted by registration time from recent to far.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteAccountList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":\"1\",\"pageSize\":\"2\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1690428366803,\"data\":{\"list\":[{\"uid\":24828902,\"ownInviteCode\":\"LYA1453\",\"superiorsUid\":2293934,\"InvitationCode\":\"LYA2023\",\"registerDateTime\":1688992720000,\"directInvitation\":false,\"kycResult\":\"false\",\"deposit\":false,\"trade\":false,\"userLevel\":0,\"commissionRatio\":3,\"currentBenefit\":0,\"benefitRatio\":0,\"benefitExpiration\":0}],\"total\":1,\"currentAgentUid\":1115195195666423800}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start timestamp (millisecond), The maximum query window is 30 days. If you want to retrieve all data, you can leave the startTime and endTime fields blank.\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"end timestamp (millisecond), The maximum query window is 30 days. If querying for all data, startTime and endTime can be left blank\"},{\"name\":\"lastUid\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"User UID, must be transmitted when the queried data exceeds 10,000.The first request does not need to be passed, and the last uid of the current page is passed each time afterwards\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page number for pagination, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"The number of pages must be greater than 0 and the maximum value is 200\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request valid time window, in milliseconds. Default is 5 seconds if not provided.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request timestamp in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"string\",\"description\":\"Invited User UID\"},{\"name\":\"ownInviteCode\",\"type\":\"string\",\"description\":\"Invitation code for Invited User\"},{\"name\":\"inviterSid\",\"type\":\"long\",\"description\":\"superiors Uid\"},{\"name\":\"InvitationCode\",\"type\":\"string\",\"description\":\"Invitation code for superiors\"},{\"name\":\"registerTime\",\"type\":\"long\",\"description\":\"Registration timestamp, unit: milliseconds\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true: Direct invitation, false: Indirect invitation\"},{\"name\":\"kycResult\",\"type\":\"string\",\"description\":\"true : KYC,false:no KYC\"},{\"name\":\"deposit\",\"type\":\"boolean\",\"description\":\"true (Deposited), false (Not deposited)\"},{\"name\":\"balanceVolume\",\"type\":\"string\",\"description\":\"net assets(USDT)\"},{\"name\":\"trade\",\"type\":\"boolean\",\"description\":\"true: Traded, false: Not traded, excluding trades made with trial funds or additional funds\"},{\"name\":\"userLevel\",\"type\":\"int\",\"description\":\"Customer level\"},{\"name\":\"commissionRatio\",\"type\":\"int\",\"description\":\"Commission percentage, unit: %\"},{\"name\":\"currentBenefit \",\"type\":\"int\",\"description\":\"Current welfare method: 0 - No welfare, 1 - Fee cashback, 2 - Perpetual fee discount\"},{\"name\":\"benefitRatio\",\"type\":\"int\",\"description\":\"Transaction fee reduction percentage, unit: %\"},{\"name\":\"benefitExpiration\",\"type\":\"long\",\"description\":\"Welfare expiration timestamp, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/01_get_Query_Invited_Users.json\n// module id = Bd4q\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"按幣對撤銷掛單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelOpenOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"GM-USDT\",\"timestamp\":\"1702721320676\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"GM-USDT\",\"orderId\":1735964997957275600,\"transactTime\":1702721242701,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"8061558\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721242645506402\"},{\"symbol\":\"GM-USDT\",\"orderId\":1735965127519326200,\"transactTime\":1702721249787,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"5806281\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721249647382871\"}]}}},\"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\":\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/023_post_cancelOpenOrders.json\n// module id = BdSn\n// module chunks = 3","const java = `\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`\nexport default java\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/java.js","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to Mark Price\"},{\"type\":\"normal\",\"text\":\"Subscribe to Mark Price\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"Data type is @lastPrice, e.g., BTC-USD@lastPrice, ETH-USD@markPrice\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@markPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@markPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair symbol must contain a hyphen \\\"-\\\", e.g., BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@markPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push price\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"lastPrice\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"Trading pair\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"Latest price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/03_mark_price.json\n// module id = BwZb\n// module chunks = 3","import { codeLangConfig2, CODE_LANG_KEY } from '../lang'\n\nfunction generateCodeWs(api, codeLang, host, defaultCode) {\n const code = codeLangConfig2.find(item => item.value === codeLang)\n if (!code) {\n return defaultCode || 'No Code'\n }\n\n\n let codeStr = require(\"@/utils/codeWs/\" + codeLang + '.js').default\n if( api && api.uri)\n codeStr = codeStr.replace(/AAPPII/g, api.uri)\n\n const url = window.location.href;\n if (url.indexOf('/spot/') > -1 ) {\n codeStr = require(\"@/utils/codeWs/spot/\" + codeLang + '.js').default\n if( api && api.uri)\n codeStr = codeStr.replace(/AAPPII/g, api.uri)\n if (url.indexOf('/account') > -1) {\n codeStr = codeStr.replace(/HHOOSSTT/g, \"wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\")\n } else {\n codeStr = codeStr.replace(/HHOOSSTT/g, \"wss://open-api-ws.bingx.com/market\")\n }\n }else {\n if (url.indexOf('/account') > -1) {\n codeStr = codeStr.replace(/HHOOSSTT/g, \"wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\")\n }else {\n codeStr = codeStr.replace(/HHOOSSTT/g, \"wss://open-api-swap.bingx.com/swap-market\")\n }\n }\n\n return codeStr\n\n}\n\nexport default generateCodeWs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/generate.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/swapV2/api/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Numbers\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"Decimal numbers are returned as \\\"Strings\\\" in order to preserve full precision. It is recommended that the numbers are converted to \\\"Strings\\\" to avoid truncation and precision loss.\"},{\"type\":\"html\",\"text\":\"Integer numbers (such as trade ID and sequences) are unquoted.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic/03_digital_rule.json\n// module id = C2jk\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/introduce/index.js","module.exports = {\"module\":\"agent\",\"path\":\"/en-us/agent/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/1_introduce.json\n// module id = CM7q\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/standard/api/trade/index.js","var map = {\n\t\".\": \"/jWt\",\n\t\"./\": \"/jWt\",\n\t\"./01_create_api\": \"+Rge\",\n\t\"./01_create_api.json\": \"+Rge\",\n\t\"./02_permission_set\": \"UG8z\",\n\t\"./02_permission_set.json\": \"UG8z\",\n\t\"./03_request_content\": \"hS6o\",\n\t\"./03_request_content.json\": \"hS6o\",\n\t\"./04_sign_discription\": \"9KKA\",\n\t\"./04_sign_discription.json\": \"9KKA\",\n\t\"./05_request\": \"uSYo\",\n\t\"./05_request.json\": \"uSYo\",\n\t\"./index\": \"/jWt\",\n\t\"./index.js\": \"/jWt\"\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 = \"CSHX\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication ^.*$\n// module id = CSHX\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-tw/cswap/websocket/introduce/02_data_compress.json\n// module id = CVyP\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Spot: new 24-hour price changes interface\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-08-23.json\n// module id = CcT1\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-12-21\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨撤單接口增加字段:cancelRestrictions(非必填),撤销指定状态的订单\"},{\"type\":\"html\",\"text\":\"現貨批量撤单接口提供字段:clientOrderIDs(非必填),按clientOrderIDs批量撤單\"},{\"type\":\"html\",\"text\":\"現貨新增按币对撤销挂单接口:/openApi/spot/v1/trade/cancelOpenOrders\"},{\"type\":\"html\",\"text\":\"現貨新增查詢手續費接口/openApi/spot/v1/user/commissionRate\"},{\"type\":\"html\",\"text\":\"現貨查詢歷史訂單:請求參數新增status和type字段,按條件篩選對應訂單\"},{\"type\":\"html\",\"text\":\"現貨幣對查詢接口:新增字段apiStateBuy,apiStateSell,timeOnline\"},{\"type\":\"html\",\"text\":\"永續,持倉查詢response增加字段:持倉價值,標記價格,風險率,最大可減少保證金,未實現盈虧收益率\"},{\"type\":\"html\",\"text\":\"永續下單和查詢訂單:增加單項持倉功能\"},{\"type\":\"html\",\"text\":\"永續,查詢歷史訂單request:如果不填寫symbol,則會查詢所有幣對的的歷史訂單\"},{\"type\":\"html\",\"text\":\"現貨: k線查詢支持7天變成支持15天的歷史數據\"},{\"type\":\"html\",\"text\":\"提幣:新增字段:withdrawOrderId,非必填,客戶自定義提幣ID,數字和字母組合,長度小於100字符\"},{\"type\":\"html\",\"text\":\"提幣記錄:withdrawOrderId字段更新:同時入參平台ID和withdrawOrderId時以平台id查詢為主\"},{\"type\":\"html\",\"text\":\"主賬戶內轉:新增字段:transferClientId:非必填,客戶自定義內轉ID,數字和字母組合,長度小於100字符\"},{\"type\":\"html\",\"text\":\"主賬戶查詢內轉記錄:新增字段:transferClientId:非必填,客戶自定義內轉ID。同時入參平台ID和transferCilentId時以平台id查詢為主\"},{\"type\":\"html\",\"text\":\"子賬戶內轉:新增字段:transferClientId:非必填,客戶自定義內轉ID,數字和字母組合,長度小於100字符\"},{\"type\":\"html\",\"text\":\"子賬戶查詢內轉記錄:新增字段:transferClientId:非必填,客戶自定義內轉ID。同時入參平台ID和transferCilentId時以平台id查詢為主\"},{\"type\":\"html\",\"text\":\"查詢子賬戶充幣記錄:request字段subUid改為非必填,不填時查詢母用戶名下所有子賬戶的充幣記錄\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-12-21.json\n// module id = CpXJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量下單\"},{\"type\":\"desc\",\"text\":\"當前賬戶在指定symbol合約上進行批量下單操作\",\"desc\":[{\"type\":\"html\",\"text\":\"
  • 具體訂單條件規則,與普通下單一致
  • \"},{\"type\":\"html\",\"text\":\"
  • batchOrders是數組
  • \"},{\"type\":\"html\",\"text\":\"
  • 批量下單的簽名可能稍微複雜,但是不用擔心, 可以參照以下四個步驟:
  • \"},{\"type\":\"html\",\"text\":\"
  • 1. 把你的整個request body 變成 request query string如下
  • \"},{\"type\":\"code\",\"text\":\"原始的 parameters: 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=1692956597902\"},{\"type\":\"html\",\"text\":\"
  • 2. 對原始的 parameters 進行簽名
  • \"},{\"type\":\"code\",\"text\":\"得到簽名: bab521321a62a1381a76b485b92dd0f4a8b16b4616cfa4c75ffba899f80dfc86\"},{\"type\":\"html\",\"text\":\"
  • 3.對請求參數的每一個值都進行URL編碼,比如字段batchOrders的值,這裡只對值value進行URL編碼,不對字段key進行URL編碼,也不是對整個原始的parameters字符串進行URL編碼,這裡有個特殊字段:timestamp的value也不用URL編碼,然後逐個替換成如下:
  • \"},{\"type\":\"code\",\"text\":\"經過URL編碼value替換後: batchOrders=%5B%7B%22symbol%22%3A%22ETH-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A1%7D%2C%7B%22symbol%22%3A%22BTC-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A0.001%7D%5D×tamp=1692956597902\"},{\"type\":\"html\",\"text\":\"
  • 4. 最後的請求應該如下
  • \"},{\"type\":\"code\",\"text\":\"POST https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=%5B%7B%22symbol%22%3A%22ETH-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A1%7D%2C%7B%22symbol%22%3A%22BTC-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A0.001%7D%5D×tamp=1692956597902&signature=bab521321a62a1381a76b485b92dd0f4a8b16b4616cfa4c75ffba899f80dfc86\"},{\"type\":\"warning\",\"text\":\"批量下單採取併發處理,不保證訂單撮合順序\"},{\"type\":\"warning\",\"text\":\"最小下單數量可從接口 /openApi/swap/v2/quote/contracts 獲取:tradeMinQuantity、tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]}]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"batchOrders\":\"[{\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"type\\\": \\\"MARKET\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"quantity\\\": 1},{\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"type\\\": \\\"MARKET\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"quantity\\\": 0.001}]\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ID-USDT\",\"orderId\":1736010300483712300,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"\"}]}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"No position to close; parameter quantity is must\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"No position to close; parameter quantity is must\",\"data\":{\"code\":80001,\"msg\":\"Order size error; Order size error; Order size error; Order size error\",\"data\":{\"orders\":[]}}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"No position to close; parameter quantity is must\",\"data\":{\"code\":80014,\"msg\":\"orderIdList & clientOrderIDList are both empty;\",\"data\":{}}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"symbol not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again; Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again; Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"No position to close\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"Insufficient margin\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'ReduceOnly' field can not be filled.; In the Hedge mode, the 'ReduceOnly' field can not be filled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This order exceeds the current position limit of 5000 USDT. Please try to reduce the leverage or adjust the order amount.; This order exceeds the current position limit of 5000 USDT. Please try to reduce the leverage or adjust the order amount.\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"The maximum position value for this leverage is 150000 USDT.\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":100001,\"msg\":\"Signature verification failed due to signature mismatch,please verify our authentication signature and try to run our sample code from the link https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Query%20Assets\",\"timestamp\":1727124087795}},{\"desc\":\"\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\"Null timestamp or timestamp mismatch, try to run our sample code from the link https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Query%20Assets\",\"timestamp\":1726839221156}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.; This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.; In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.; In the One-way mode, the 'PositionSide' field can only be set to BOTH.; In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}}]},\"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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單。\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key3\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"orderID\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/02_post_trade_batch_order.json\n// module id = Crrt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"測試下單\"},{\"type\":\"desc\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\",\"desc\":[{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRAILING_STOP_MARKET(追跡委託單)和TRAILING_TP_SL(移動止盈止損單):需填寫price欄位或者priceRate欄位
  • \"},{\"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\":\"html\",\"text\":\"

    3. 開倉加倉的同時設置止盈止損:使用takeProfit或者stopLoss字段

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"最小下單數量可從接口 /openApi/swap/v2/quote/contracts 獲取:tradeMinQuantity、tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]}]},{\"type\":\"warning\",\"text\":\"入參與返回都與下單接口一致,但是不會真實下單,僅返回測試結果,結果為假的訂單,不會扣除你的資金,也不會出現在真實交易面板中,僅用於幫助你練習使用下單接口\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"溫馨提醒:由於市場波動較大,為降低爆倉風險,API訂單暫時關閉。\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"需要滿足最小下單金額2U\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"當前您的賬號被風控,當前無法使用API下單,需要聯繫我們客服確認\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"需要填寫quantity字段\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"止損價格需要低於當前最新價\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"當前無倉位,請先檢查是否有倉位\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"保證金不足,請先檢查是否足夠\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"需要填寫必填參數\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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:計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;flase:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單。\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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/00_post_trade_order_test.json\n// module id = CwX9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Deposit risk control records\"},{\"type\":\"normal\",\"text\":\"Used to query the recharge records in risk control for users and their sub-accounts\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/riskRecords\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"timestamp\":1706839654997,\"data\":[{\"uid\":\"\",\"coin\":\"\",\"amount\":\"\",\"sourceAddress\":\"\",\"address\":\"\",\"insetTime\":\"\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"string\",\"description\":\"User ID\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Currency name\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"Amount\"},{\"name\":\"sourceAddress\",\"type\":\"string\",\"description\":\"Source address\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"Recharge address\"},{\"name\":\"insetTime\",\"type\":\"datetime\",\"description\":\"Creation time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/14_get_risk_deposit_records.json\n// module id = CxZu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Daily Commission Query(invitation relationship)\"},{\"type\":\"normal\",\"text\":\"The agent KOL can use this api to query the detailed information of daily commissions.Only supports querying the commission details of customers with invitation relationships.\"},{\"type\":\"html\",\"text\":\"
  • 1. Only supports querying data from the last 365 days.
  • \"},{\"type\":\"html\",\"text\":\"
  • 2. startTime < endtime, and endtime - startTime <= 30 days. These are required fields.
  • \"},{\"type\":\"html\",\"text\":\"
  • 3. Only supports querying commission information for users with an invitation relationship.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/reward/commissionDataList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":\"1\",\"pageSize\":\"2\",\"startTime\":\"1688992720000\",\"endTime\":\"1689426920000\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1690428196386,\"data\":{\"list\":[{\"uid\":24391361,\"commissionTime\":1689350400000,\"tradingVolume\":\"6660.05\",\"commissionVolume\":\"2.37932209\",\"swapTradingVolume\":\"6660.05\",\"swapCommissionVolume\":\"2.37932209\",\"stdTradingVolume\":\"6660.05\",\"stdCommissionVolume\":\"2.37932209\",\"spotTradingVolume\":\"6660.05\",\"spotCommissionVolume\":\"2.37932209\",\"extCopyTradingVolume\":\"6660.05\",\"extCopyCommissionVolume\":\"2.37932209\",\"mt5TradingVolume\":\"6660.05\",\"mt5CommissionVolume\":\"2.37932209\"},{\"uid\":24186665,\"commissionTime\":1689350400000,\"tradingVolume\":\"0\",\"commissionVolume\":\"0\",\"swapTradingVolume\":\"6660.05\",\"swapCommissionVolume\":\"2.37932209\",\"stdTradingVolume\":\"6660.05\",\"stdCommissionVolume\":\"2.37932209\",\"spotTradingVolume\":\"6660.05\",\"spotCommissionVolume\":\"2.37932209\",\"extCopyTradingVolume\":\"6660.05\",\"extCopyCommissionVolume\":\"2.37932209\",\"mt5TradingVolume\":\"6660.05\",\"mt5CommissionVolume\":\"2.37932209\"}],\"total\":43,\"currentAgentUid\":1115195195666423800}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Invited User UID\"},{\"name\":\"startTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"Start timestamp, in days, with a maximum query window of 30 days and a sliding range of the last 365 days.\"},{\"name\":\"endTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"End timestamp, in days, with a maximum query window of 30 days and a sliding range of the last 365 days.\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page number for pagination, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page size for pagination, must be greater than 0 with a maximum value of 100.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request valid time window, in milliseconds. Default is 5 seconds if not provided.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request timestamp in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"Invited User UID\"},{\"name\":\"commissionTime\",\"type\":\"long\",\"description\":\"Commission timestamp, date\"},{\"name\":\"tradingVolume\",\"type\":\"string\",\"description\":\"Total trading volume in USDT for Spot, Standard Contract, Perpetual Contract, Copy Trading, and MT5 business lines combined\"},{\"name\":\"commissionVolume\",\"type\":\"string\",\"description\":\"Commission amount in USDT\"},{\"name\":\"spotTradingVolume\",\"type\":\"string\",\"description\":\"Spot transaction amount, discounted to USDT\"},{\"name\":\"swapTradingVolume\",\"type\":\"string\",\"description\":\"Perpetual contract trading volume, converted into USDT\"},{\"name\":\"stdTradingVolume\",\"type\":\"string\",\"description\":\"Standard contract transaction amount, discounted in USDT\"},{\"name\":\"extCopyTradingVolume\",\"type\":\"string\",\"description\":\"Copy transaction amount, discounted in USDT\"},{\"name\":\"mt5TradingVolume\",\"type\":\"string\",\"description\":\"MT5 transaction volume, discount USDT\"},{\"name\":\"spotCommissionVolume\",\"type\":\"string\",\"description\":\"Spot commission rebate amount, discounted in USDT\"},{\"name\":\"swapCommissionVolume\",\"type\":\"string\",\"description\":\"Perpetual contract rebate commission amount, converted into USDT\"},{\"name\":\"stdCommissionVolume\",\"type\":\"string\",\"description\":\"Standard contract rebate amount, discounted in USDT\"},{\"name\":\"extCopyCommissionVolume\",\"type\":\"string\",\"description\":\"The commission amount for following orders is discounted in USDT\"},{\"name\":\"mt5CommissionVolume\",\"type\":\"string\",\"description\":\"MT5 rebate commission amount, discount USDT\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/02_get_Daily_Commission_Query.json\n// module id = Czkf\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢強平訂單歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/forceOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"LIQUIDATION:强平单, ADL:减仓单\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"返回的结果集数量 默认值50,最大值100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"回應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"强平单list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单号\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单類型, LIMIT:限价单/MARKET:市价单/STOP_MARKET:市价止损单/TAKE_PROFIT_MARKET:市价止盈单/STOP:限价止损单/TAKE_PROFIT:限价止盈单\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,双向持仓仅可选择 LONG 或 SHORT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"下单数量,合约数量\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT 需要此参数\"},{\"name\":\"workingType\",\"type\":\"string\",\"description\":\"stopPrice触发价价格类型:MARK_PRICE、CONTRACT_PRICE、I默认MARK_PRICE。\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"訂單時間,單位:毫秒\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交價\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量,合约数量\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"updateTime\",\"type\":\"string\",\"description\":\"更新時間,單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/08_get_forceOrders.json\n// module id = D/10\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/05_subscribe.json\n// module id = D11h\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual order placement: Add trailing stop loss order types Perpetual contract ordering interface\"},{\"type\":\"html\",\"text\":\"Permanent order placement: stopPrice trigger price supports price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE Perpetual contract ordering interface\"},{\"type\":\"html\",\"text\":\"Spot: Cancel a Batch of Orders\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-08-11.json\n// module id = D1C9\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/cswap/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱標記價格\"},{\"type\":\"normal\",\"text\":\"訂閱標記價格\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @lastPrice 例如 BTC-USD@lastPrice ETH-USD@markPrice\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@markPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@markPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@markPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送價格\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"lastPrice\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"最新價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/03_mark_price.json\n// module id = D6bT\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-10-12\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續合約/現貨:相同訂單限制為1秒最多撤銷一次\"},{\"type\":\"html\",\"text\":\"現貨新增訂單類型:TAKE_ STOP_ LIMIT:限價止盈止損單TAKE_ STOP_ MARKET:市價止盈止損單TRIGGER_ LIMIT:限價計畫委託TRIGGER_ MARKET:市價計畫委託\"},{\"type\":\"html\",\"text\":\"現貨:歷史訂單返回新增fee手續費欄位\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-10-12.json\n// module id = DJaF\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"提幣記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/withdraw/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"endTime\":\"1702536564000\",\"recvWindow\":\"60\",\"startTime\":\"1702450164000\",\"timestamp\":\"1702622964230\"},\"response\":[{\"address\":\"TR****zc\",\"amount\":\"3500.00000000000000000000\",\"applyTime\":\"2023-12-14T04:05:02.000+08:00\",\"coin\":\"USDTTRC20\",\"id\":\"125*****98\",\"network\":\"TRC20\",\"transferType\":1,\"transactionFee\":\"1.00000000000000000000\",\"confirmNo\":2,\"info\":\"\",\"txId\":\"b9***********b67\"}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"required\":\"否\",\"description\":\"平台返回提幣記錄唯一id\"},{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣的名稱\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"自定義ID, 如果沒有則不返回該字段,同時入參平台ID和withdrawOrderId時以平台ID查詢為主。\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"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, 如果沒有則不返回該字段,同時入參平台ID和withdrawOrderId時以平台ID查詢為主。\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"提現網絡\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"4-審核中 5-已失敗 6-已完成\"},{\"name\":\"transactionFee\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"confirmNo\",\"type\":\"int\",\"description\":\"提現確認次數\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"提幣失敗原因\"},{\"name\":\"txId\",\"type\":\"String\",\"description\":\"提現交易id\"},{\"name\":\"sourceAddress\",\"type\":\"String\",\"description\":\"來源地址\"},{\"name\":\"transferType\",\"type\":\"int\",\"description\":\"轉賬類型:1 提幣,2 內部轉賬\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"某些幣種例如XRP/XMR允許填寫次級地址標籤\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/04_get_withdraw_history.json\n// module id = DNed\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"USDT-M Perp Futures symbols\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"contractId\":\"100\",\"symbol\":\"BTC-USDT\",\"size\":\"0\",\"quantityPrecision\":4,\"pricePrecision\":1,\"feeRate\":0.0005,\"makerFeeRate\":0.0002,\"takerFeeRate\":0.0005,\"tradeMinLimit\":0,\"tradeMinQuantity\":0.0001,\"tradeMinUSDT\":2,\"maxLongLeverage\":125,\"maxShortLeverage\":125,\"currency\":\"USDT\",\"asset\":\"BTC\",\"status\":1,\"apiStateOpen\":\"true\",\"apiStateClose\":\"true\",\"brokerState\":\"true\",\"launchTime\":1586275200000,\"maintainTime\":0,\"offTime\":0},{\"contractId\":\"101\",\"symbol\":\"ETH-USDT\",\"size\":\"0\",\"quantityPrecision\":2,\"pricePrecision\":2,\"feeRate\":0.0005,\"makerFeeRate\":0.0002,\"takerFeeRate\":0.0005,\"tradeMinLimit\":0,\"tradeMinQuantity\":0.01,\"tradeMinUSDT\":2,\"maxLongLeverage\":125,\"maxShortLeverage\":125,\"currency\":\"USDT\",\"asset\":\"ETH\",\"status\":1,\"apiStateOpen\":\"true\",\"apiStateClose\":\"true\",\"brokerState\":\"true\",\"launchTime\":1586275200000,\"maintainTime\":0,\"offTime\":0}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"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\":\"contractId\",\"type\":\"string\",\"description\":\"contract ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"quantityPrecision\",\"type\":\"int\",\"description\":\"transaction quantity precision\"},{\"name\":\"pricePrecision\",\"type\":\"int\",\"description\":\"price precision\"},{\"name\":\"takerFeeRate\",\"type\":\"float64\",\"description\":\"take transaction fee\"},{\"name\":\"makerFeeRate\",\"type\":\"float64\",\"description\":\"make transaction fee\"},{\"name\":\"tradeMinQuantity\",\"type\":\"float64\",\"description\":\"The minimum trading unit(COIN)\"},{\"name\":\"tradeMinUSDT\",\"type\":\"float64\",\"description\":\"The minimum trading unit(USDT)\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"settlement and margin currency asset\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"contract trading asset\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"1 online, 25 forbidden to open positions, 5 pre-online, 0 offline\"},{\"name\":\"apiStateOpen\",\"type\":\"string\",\"description\":\"Whether the API can open a position\"},{\"name\":\"apiStateClose\",\"type\":\"string\",\"description\":\"Whether API can close positions\"},{\"name\":\"ensureTrigger\",\"type\":\"bool\",\"description\":\"Whether to support guaranteed stop loss.\"},{\"name\":\"triggerFeeRate\",\"type\":\"string\",\"description\":\"The fee rate for guaranteed stop loss.\"},{\"name\":\"brokerState\",\"type\":\"bool\",\"description\":\"Whether to prohibit broker user transactions, true: prohibited\"},{\"name\":\"launchTime\",\"type\":\"long\",\"description\":\"shelf time; The status of the pair is pre-online before the listing time, and the status of the pair changes to online after the listing time\"},{\"name\":\"maintainTime\",\"type\":\"long\",\"description\":\"The start time of the prohibition of opening a position, after the time is up, the currency pair is in a state of prohibition from opening a position, and can only close the position\"},{\"name\":\"offTime\",\"type\":\"long\",\"description\":\"Down line time, after the time is up, the currency pair is in the offline state and trading is prohibited\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/01_get_quote_contracts.json\n// module id = DcMO\n// module chunks = 3","var map = {\n\t\".\": \"vVGz\",\n\t\"./\": \"vVGz\",\n\t\"./01_get_quote_contracts\": \"DcMO\",\n\t\"./01_get_quote_contracts.json\": \"DcMO\",\n\t\"./03_get_quote_depth\": \"e+0O\",\n\t\"./03_get_quote_depth.json\": \"e+0O\",\n\t\"./04_get_quote_ trades\": \"PqB/\",\n\t\"./04_get_quote_ trades.json\": \"PqB/\",\n\t\"./05_get_quote_ premiumIndex\": \"Tk4L\",\n\t\"./05_get_quote_ premiumIndex.json\": \"Tk4L\",\n\t\"./06_get_quote_ fundingRate\": \"YtyA\",\n\t\"./06_get_quote_ fundingRate.json\": \"YtyA\",\n\t\"./07_get_quote_ klines\": \"xU+M\",\n\t\"./07_get_quote_ klines.json\": \"xU+M\",\n\t\"./08_get_quote_openInterest\": \"j4uq\",\n\t\"./08_get_quote_openInterest.json\": \"j4uq\",\n\t\"./09_get_quote_ ticker\": \"LWb5\",\n\t\"./09_get_quote_ ticker.json\": \"LWb5\",\n\t\"./19_get_historicalTrades\": \"xyiP\",\n\t\"./19_get_historicalTrades.json\": \"xyiP\",\n\t\"./20_get_trade_quote_bookTicker\": \"E4EJ\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"E4EJ\",\n\t\"./21_get_quote_mark_price_klines\": \"VeQG\",\n\t\"./21_get_quote_mark_price_klines.json\": \"VeQG\",\n\t\"./22_get_quote_price_v2\": \"rCcB\",\n\t\"./22_get_quote_price_v2.json\": \"rCcB\",\n\t\"./index\": \"vVGz\",\n\t\"./index.js\": \"vVGz\"\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 = \"Dsow\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market ^.*$\n// module id = Dsow\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Account Assets\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718421301887,\"data\":[{\"asset\":\"BTC\",\"balance\":\"0.14438227\",\"equity\":\"0.14428116\",\"unrealizedProfit\":\"-0.0001011\",\"availableMargin\":\"0.14317271\",\"usedMargin\":\"0.00110845\",\"freezedMargin\":\"0\",\"shortUid\":\"12345678\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, e.g. BTC-USD, use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description message\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation time point, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"Asset list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"User asset\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"Asset balance\"},{\"name\":\"equity\",\"type\":\"string\",\"description\":\"Asset net value\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"Unrealized profit\"},{\"name\":\"availableMargin\",\"type\":\"string\",\"description\":\"Available margin\"},{\"name\":\"usedMargin\",\"type\":\"string\",\"description\":\"Used margin\"},{\"name\":\"freezedMargin\",\"type\":\"string\",\"description\":\"Frozen margin\"},{\"name\":\"shortUid\",\"type\":\"string\",\"description\":\"User uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/07_get_balance.json\n// module id = DyCG\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Symbol Order Book Ticker\"},{\"type\":\"normal\",\"text\":\"Obtain the current optimal order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\",\"timestamp\":\"1702719942130\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"book_ticker\":{\"symbol\":\"BTC-USDT\",\"bid_price\":42211.1,\"bid_qty\":12663,\"ask_price\":42211.8,\"ask_qty\":128854}}}},\"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\":\"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\":\"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\":\"lastUpdateId\",\"type\":\"int64\",\"description\":\"The ID of the latest trade\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"The time of the trade in milliseconds\"},{\"name\":\"ask_qty\",\"type\":\"float64\",\"description\":\"Order quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/20_get_trade_quote_bookTicker.json\n// module id = E4EJ\n// module chunks = 3","var map = {\n\t\".\": \"BbCp\",\n\t\"./\": \"BbCp\",\n\t\"./01_get_common_symbols\": \"qHSP\",\n\t\"./01_get_common_symbols.json\": \"qHSP\",\n\t\"./02_get_ market_traders\": \"u7QQ\",\n\t\"./02_get_ market_traders.json\": \"u7QQ\",\n\t\"./03_get_market_depth\": \"xaTv\",\n\t\"./03_get_market_depth.json\": \"xaTv\",\n\t\"./04_get_market_klines\": \"l6fp\",\n\t\"./04_get_market_klines.json\": \"l6fp\",\n\t\"./05_get_quote_ticker\": \"mWiW\",\n\t\"./05_get_quote_ticker.json\": \"mWiW\",\n\t\"./06_get_market_agg_depth\": \"eCwL\",\n\t\"./06_get_market_agg_depth.json\": \"eCwL\",\n\t\"./07_get_market_price\": \"p4oz\",\n\t\"./07_get_market_price.json\": \"p4oz\",\n\t\"./08_get_market_book_ticker\": \"OdvA\",\n\t\"./08_get_market_book_ticker.json\": \"OdvA\",\n\t\"./09_get_market_history_klines\": \"Turq\",\n\t\"./09_get_market_history_klines.json\": \"Turq\",\n\t\"./10_get_ market_histroy_traders\": \"MGWO\",\n\t\"./10_get_ market_histroy_traders.json\": \"MGWO\",\n\t\"./index\": \"BbCp\",\n\t\"./index.js\": \"BbCp\"\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 = \"EA8X\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market ^.*$\n// module id = EA8X\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-05-27\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual contract new:Subscribe to 24-hour price changes of all trading pairs\"},{\"type\":\"html\",\"text\":\"Perpetual contract new:Subscribe K-Line Data of all trading pairs\"},{\"type\":\"html\",\"text\":\"Perpetual contract new:Subscribe Market Depth Data of all trading pairs\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-05-27.json\n// module id = ED08\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Order details\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/query\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BRG-USDT\",\"orderId\":\"1735965009395131234\",\"timestamp\":\"1702721583560\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"BRG-USDT\",\"orderId\":1735965009395131100,\"price\":\"0.0005027\",\"StopPrice\":\"0\",\"origQty\":\"4038\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"time\":1702721285567,\"updateTime\":1702721285567,\"origQuoteOrderQty\":\"0\",\"fee\":\"0\",\"feeAsset\":\"BRG\",\"avgPrice\":\"0.0005028\"}}},\"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\":\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"trigger price\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average fill price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/03_get_trade_order.json\n// module id = EDR3\n// module chunks = 3","var map = {\n\t\".\": \"KsRT\",\n\t\"./\": \"KsRT\",\n\t\"./01_executionReport\": \"H6dO\",\n\t\"./01_executionReport.json\": \"H6dO\",\n\t\"./02_ account_update\": \"bZVt\",\n\t\"./02_ account_update.json\": \"bZVt\",\n\t\"./index\": \"KsRT\",\n\t\"./index.js\": \"KsRT\"\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 = \"ELvl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/account ^.*$\n// module id = ELvl\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-09-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續幣本位:查詢K線接口,增加說明只允許查詢最近30天的數據。\"},{\"type\":\"html\",\"text\":\"新增:代理API\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-09-11.json\n// module id = EMrv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢聯合保證金規則\"},{\"type\":\"normal\",\"text\":\"查詢平台規定的聯合保證金規則\"},{\"type\":\"warning\",\"text\":\"僅實盤可以調用,實盤域名:https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/multiAssetsRules\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"marginAssets\":\"USDT\",\"ltv\":\"99.99%\",\"collateralValueRatio\":\"99.99%\",\"maxTransfer\":\"\",\"indexPrice\":\"1.0006981800\"},{\"marginAssets\":\"USDC\",\"ltv\":\"99.99%\",\"collateralValueRatio\":\"99.99%\",\"maxTransfer\":\"\",\"indexPrice\":\"0.9998772499\"},{\"marginAssets\":\"TRX\",\"ltv\":\"85.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"300000\",\"indexPrice\":\"0.1778813333\"},{\"marginAssets\":\"DOGE\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"300000\",\"indexPrice\":\"0.3891840533\"},{\"marginAssets\":\"BNB\",\"ltv\":\"90.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"160\",\"indexPrice\":\"622.9584792100\"},{\"marginAssets\":\"DOT\",\"ltv\":\"90.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"12000\",\"indexPrice\":\"5.0431331628\"},{\"marginAssets\":\"BTC\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"10\",\"indexPrice\":\"90230.3058075903\"},{\"marginAssets\":\"ETH\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"100\",\"indexPrice\":\"3214.4279682820\"}]},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"marginAssets\",\"type\":\"string\",\"description\":\"保證金資產,例如BTC、ETH等。\"},{\"name\":\"ltv\",\"type\":\"string\",\"description\":\"質押率,計算可用保證金時的價值折合比例。\"},{\"name\":\"collateralValueRatio\",\"type\":\"string\",\"description\":\"擔保率,計算風險率時的價值折合比例。\"},{\"name\":\"maxTransfer\",\"type\":\"string\",\"description\":\"轉入限額,最大可轉入的數量限制,為空時表示沒有數量限制。\"},{\"name\":\"indexPrice\",\"type\":\"string\",\"description\":\"資產當前最新的美元指數價格。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/35_get_multi_asset_rule.json\n// module id = EWHP\n// module chunks = 3","\nconst csharp = `\nusing System.Net.WebSockets;\nusing System.Text;\nusing System.IO.Compression;\n\nclass Program\n{\n private static readonly string WebSocketUrl = \"wss://open-api-swap.bingx.com/swap-market?listenKey=425f783f4a17cd65f4a5d7470cfd45a956dba0c29564aa4b70967bee4e4a8984\";\n private static readonly string Channel = \"https://open-api.bingx.com/openApi/user/auth/userDataStream\";\n\n static async Task Main(string[] args)\n {\n using (var client = new ClientWebSocket())\n {\n try\n {\n await client.ConnectAsync(new Uri(WebSocketUrl), CancellationToken.None);\n Console.WriteLine(\"WebSocket connected\");\n\n // Send channel subscription message\n var message = Encoding.UTF8.GetBytes(Channel);\n await client.SendAsync(new ArraySegment(message), WebSocketMessageType.Text, true, CancellationToken.None);\n Console.WriteLine(\"Subscription message sent\");\n\n var buffer = new byte[1024 * 4];\n while (client.State == WebSocketState.Open)\n {\n WebSocketReceiveResult result = await client.ReceiveAsync(new ArraySegment(buffer), CancellationToken.None);\n\n // Handle the received data\n if (result.MessageType == WebSocketMessageType.Close)\n {\n Console.WriteLine(\"Connection closed\");\n break;\n }\n\n string receivedMessage = HandleReceivedMessage(buffer, result.Count);\n Console.WriteLine(\"Received message: \" + receivedMessage);\n\n if (receivedMessage == \"Ping\")\n {\n var pongMessage = Encoding.UTF8.GetBytes(\"Pong\");\n await client.SendAsync(new ArraySegment(pongMessage), WebSocketMessageType.Text, true, CancellationToken.None);\n Console.WriteLine(\"Sent Pong\");\n }\n }\n }\n catch (Exception ex)\n {\n Console.WriteLine($\"WebSocket Exception: {ex.Message}\");\n }\n }\n }\n\n private static string HandleReceivedMessage(byte[] buffer, int length)\n {\n // Assuming the message might be compressed\n byte[] data = new byte[length];\n Array.Copy(buffer, data, length);\n \n try\n {\n // Try to decompress if it's a GZIP compressed message\n string decompressedMessage = DecompressGzip(data);\n return decompressedMessage;\n }\n catch (Exception)\n {\n // If decompression fails, assume it's a plain text message\n return Encoding.UTF8.GetString(data);\n }\n }\n\n private static string DecompressGzip(byte[] compressedData)\n {\n using (var input = new MemoryStream(compressedData))\n using (var gzip = new GZipStream(input, CompressionMode.Decompress))\n using (var reader = new StreamReader(gzip, Encoding.UTF8))\n {\n return reader.ReadToEnd();\n }\n }\n}`\nexport default csharp\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/csharp.js","var map = {\n\t\"./01_connect.json\": \"3tXb\",\n\t\"./02_data_compress.json\": \"CVyP\",\n\t\"./03_heart_beat.json\": \"vR2M\",\n\t\"./04_subscribe.json\": \"UYWd\",\n\t\"./05_cancel_subscribe.json\": \"2xEp\"\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 = \"EoQc\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/introduce \\.json$\n// module id = EoQc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢所有委托中的OCO訂單列表\"},{\"type\":\"normal\",\"text\":\"查詢當前處於掛單狀態的訂單清單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/openOrderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":1,\"pageSize\":100,\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460545\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"NEW\"},{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460544\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"PENDING\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"頁數\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每頁數量\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"委託時間\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit:OCO限價單,ocoTps:OCO止盈止損單\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"觸發價格\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO訂單組ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/103_get_all_pending_oco_order.json\n// module id = EsEh\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢當前全部掛單\"},{\"type\":\"normal\",\"text\":\"查詢用戶當前處於委託狀態的全部訂單。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702733126509\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44459.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702256915574,\"updateTime\":1702256915610,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"workingType\":\"MARK_PRICE\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44454.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702111071719,\"updateTime\":1702111071735,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/ TRIGGER_REVERSE_MARKET:計劃反手\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間,單位:毫秒\"},{\"name\":\"postOnly\",\"type\":\"bool\",\"description\":\"只做Maker\"},{\"name\":\"trailingStopRate\",\"type\":\"float64\",\"description\":\"回撤比例\"},{\"name\":\"trailingStopDistance\",\"type\":\"int64\",\"description\":\"Price difference\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"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-tw/swapV2/api/trade/07_get_all_openOrders.json\n// module id = Ewmn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Asset overview\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/allAccountBalance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"accountType\":\"sopt\",\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"result\":[{\"accountType\":\"sopt\",\"usdtBalance\":\"100\"}],\"pageId\":1,\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"accountType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"Account type, if left blank, all assets of the account will be checked by default. spot: spot (fund account), stdFutures: standard futures account, coinMPerp: coin base account, USDTMPerp: U base account, copyTrading: copy trading account, grid: grid account, eran: wealth account, c2c: c2c account.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"accountType\",\"type\":\"string\",\"description\":\"Account type, if left blank, all assets of the account will be checked by default. spot: spot (fund account), stdFutures: standard futures account, coinMPerp: coin base account, USDTMPerp: U base account, copyTrading: copy trading account, grid: grid account, eran: wealth account, c2c: c2c account.\"},{\"name\":\"usdtBalance\",\"type\":\"string\",\"description\":\"Equivalent to USDT amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/21_get_account_allAccountBalance.json\n// module id = Exaw\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續幣本位:新增WS DataType-ACCOUNT_UPDATE 賬戶更新\"},{\"type\":\"html\",\"text\":\"永續幣本位:新增WS DataType-ORDER_TRADE_UPDATE 訂單更新推送\"},{\"type\":\"html\",\"text\":\"永續幣本位:新增 WS DataType-ACCOUNT-CONFIG_UPDATE 槓桿倍數和保證金模式等配置更新推送\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-08-08.json\n// module id = F1dE\n// module chunks = 3","var map = {\n\t\".\": \"sHXP\",\n\t\"./\": \"sHXP\",\n\t\"./01_server_url\": \"wWlE\",\n\t\"./01_server_url.json\": \"wWlE\",\n\t\"./03_error_code\": \"/sx7\",\n\t\"./03_error_code.json\": \"/sx7\",\n\t\"./04_rate_limits\": \"bIsO\",\n\t\"./04_rate_limits.json\": \"bIsO\",\n\t\"./04_server_url\": \"GK5R\",\n\t\"./04_server_url.json\": \"GK5R\",\n\t\"./index\": \"sHXP\",\n\t\"./index.js\": \"sHXP\"\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 = \"F9Rf\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic ^.*$\n// module id = F9Rf\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query sub-account internal transfer records\"},{\"type\":\"normal\",\"text\":\"This node is used for sub-accounts to query their own internal transfer records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccount/innerTransfer/records\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"startTime\":1694761643000,\"endTime\":1694765243428,\"offset\":0,\"limit\":100,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Transfer currency name\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Client's self-defined internal transfer ID. When both platform ID and transferClientId are provided as input, the query will be based on the platform ID.\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Start time\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"no\",\"description\":\"End time\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"Internal transfer record list\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"id\",\"type\":\"long\",\"description\":\"Internal transfer ID\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Currency name\"},{\"name\":\"receiver\",\"type\":\"long\",\"description\":\"Receiver's UID\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"Transfer amount\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"Internal transfer time\"},{\"name\":\"status\",\"type\":\"Integer\",\"description\":\"Status 4-Pending review 5-Failed 6-Completed\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Client's self-defined internal transfer ID. When both platform ID and transferClientId are provided as input, the query will be based on the platform ID.\"},{\"name\":\"fromUid\",\"type\":\"long\",\"description\":\"Payer's account\"},{\"name\":\"recordType\",\"type\":\"string\",\"description\":\"Out: transfer out record, in: transfer in record\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/17.get_wallet_querySubInnerTransferRecords.json\n// module id = FRId\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"服務地址\"},{\"type\":\"code\",\"text\":\"https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"備用域名:open-api.bingx.io(總限頻:60/min)僅在主域名open-api.bingx.com出現問題時候才放開備用域名限頻\"},{\"type\":\"normal\",\"text\":\"HTTP狀態碼200表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic/01_server_url.json\n// module id = FVkd\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/market/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-01-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual contract new: Query marked price K-line data\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - 24-hour price change push\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - Latest transaction price push\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - Latest marked price push\"},{\"type\":\"html\",\"text\":\"New: User queries recharge records in risk control interface.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-01-23.json\n// module id = FtO6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get K-line Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • only supports querying K-line data for the last 30 days
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"interval\":\"1m\",\"startTime\":1716912000000,\"endTime\":1716998400000,\"limit\":100,\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"67792.6\",\"close\":\"67792.6\",\"high\":\"67792.6\",\"low\":\"67792.6\",\"volume\":\"3.00\",\"time\":1716998340000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USD. Please use uppercase letters.\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Time interval, optional values are: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M.\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, the returned result includes the K-line of this time.\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, the returned result does not include the K-line of this time.\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The number of returned results. The default is 500 if not filled, and the maximum is 1000.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status code.\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description message.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"open\",\"type\":\"string\",\"description\":\"Opening price.\"},{\"name\":\"close\",\"type\":\"string\",\"description\":\"Closing price.\"},{\"name\":\"high\",\"type\":\"string\",\"description\":\"Highest price.\"},{\"name\":\"low\",\"type\":\"string\",\"description\":\"Lowest price.\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Trading volume in contracts\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"K-line time.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/04_get_kline.json\n// module id = FuQd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Contract Information\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"pricePrecision\":1,\"minTickSize\":\"100\",\"minTradeValue\":\"100\",\"minQty\":\"1.00000000\",\"status\":1,\"timeOnline\":1710738000000},{\"symbol\":\"ETH-USD\",\"pricePrecision\":2,\"minTickSize\":\"10\",\"minTradeValue\":\"10\",\"minQty\":\"1.00000000\",\"status\":1,\"timeOnline\":1710738000000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"trading pair, for example: BTC-USD\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status Code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USD\"},{\"name\":\"pricePrecision\",\"type\":\"int64\",\"description\":\"price precision\"},{\"name\":\"minTickSize\",\"type\":\"string\",\"description\":\"price accuracy\"},{\"name\":\"minTradeValue\",\"type\":\"string\",\"description\":\"Minimum transaction amount\"},{\"name\":\"minQty\",\"type\":\"string\",\"description\":\"The minimum unit of transaction, the unit is: currency\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0 offline, 1 online\"},{\"name\":\"timeOnline\",\"type\":\"int64\",\"description\":\"trading pair online time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/01_get_contracts.json\n// module id = Fui1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易員按帶單訂單號平倉\"},{\"type\":\"normal\",\"text\":\"此節點用於交易員按帶單訂單號平倉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/closeTrackOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"positionId\":\"1252864099381234567\",\"recvWindow\":\"5000\",\"timestamp\":\"1702575099353\"},\"response\":{\"code\":0,\"timestamp\":1702575099575,\"data\":{\"positionId\":1252864099381234700}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"帶單訂單號\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求時間戳記,組織:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求有效時間空窗值,組織:毫秒,不填默認5秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"帶單訂單號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader/02_post_close_currentTrack.json\n// module id = Fxil\n// module chunks = 3","\nconst csharp = `\nusing System;\nusing System.Net.Http;\nusing System.Security.Cryptography.X509Certificates;\nusing System.Threading.Tasks;\nusing System.Security.Cryptography;\nclass Program\n{\n static void Main(string[] args)\n {\n string API_KEY = \"\";\n string API_SECRET = \"\";\n string HOST = \"HHOOSSTT\";\n var api = new\n {\n uri = \"AAPPII\",\n method = \"MMEETTHHOODD\",\n // payload = new //payload example\n // {\n // symbol= \"BTC-USDT\",\n // recvWindow= 0\n // }\n payload = new\n PPAAYYLLOOAADD,\n protocol = \"https\"\n };\n\n DoRequest(api.protocol, HOST, api.uri, api.method, API_KEY, API_SECRET, api.payload).Wait();\n }\n\n static async Task DoRequest(string protocol, string host, string api, string method, string API_KEY, string API_SECRET, object payload)\n {\n long timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();\n string parameters = $\"timestamp={timestamp}\";\n\n if (payload != null)\n {\n foreach (var property in payload.GetType().GetProperties())\n {\n parameters += $\"&{property.Name}={property.GetValue(payload)}\";\n }\n }\n\n string sign = CalculateHmacSha256(parameters, API_SECRET);\n string url = $\"{protocol}://{host}{api}?{parameters}&signature={sign}\";\n\n Console.WriteLine(\"protocol: \" + protocol);\n Console.WriteLine(\"method: \" + method);\n Console.WriteLine(\"host: \" + host);\n Console.WriteLine(\"api: \" + api);\n Console.WriteLine(\"parameters: \" + parameters);\n Console.WriteLine(\"sign: \" + sign);\n Console.WriteLine(method + \" \" + url);\n\n using (HttpClientHandler handler = new HttpClientHandler())\n {\n handler.ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => true;\n\n using (HttpClient client = new HttpClient(handler))\n {\n client.DefaultRequestHeaders.Add(\"X-BX-APIKEY\", API_KEY);\n HttpResponseMessage response;\n if (method.ToUpper() == \"GET\")\n {\n response = await client.GetAsync(url);\n }\n else if (method.ToUpper() == \"POST\")\n {\n response = await client.PostAsync(url, null);\n }\n else if (method.ToUpper() == \"DELETE\")\n {\n response = await client.DeleteAsync(url);\n }\n else if (method.ToUpper() == \"PUT\")\n {\n response = await client.PutAsync(url, null);\n }\n else\n {\n throw new NotSupportedException(\"Unsupported HTTP method: \" + method);\n }\n response.EnsureSuccessStatusCode();\n string responseBody = await response.Content.ReadAsStringAsync();\n Console.WriteLine(\"Response status code: \" + response.StatusCode);\n Console.WriteLine(\"Response body: \" + responseBody);\n }\n }\n }\n\n static string CalculateHmacSha256(string input, string key)\n {\n byte[] keyBytes = System.Text.Encoding.UTF8.GetBytes(key);\n byte[] inputBytes = System.Text.Encoding.UTF8.GetBytes(input);\n using (HMACSHA256 hmac = new HMACSHA256(keyBytes))\n {\n byte[] hashBytes = hmac.ComputeHash(inputBytes);\n return BitConverter.ToString(hashBytes).Replace(\"-\", \"\").ToLower();\n }\n }\n}`\nexport default csharp\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/csharp.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-01-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:查詢標記價格K線數據\"},{\"type\":\"html\",\"text\":\"永续:新增WS DataType-24小時價格變動推送\"},{\"type\":\"html\",\"text\":\"永续:新增WS DataType-最新成交價格推送\"},{\"type\":\"html\",\"text\":\"永续:新增WS DataType-最新標記價格推送\"},{\"type\":\"html\",\"text\":\"新增:用戶查詢風控中的充值記錄 接口\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-01-23.json\n// module id = G8cI\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"m2cs\",\n\t\"./02_last_price.json\": \"ntfQ\",\n\t\"./03_mark_price.json\": \"D6bT\",\n\t\"./04_depth.json\": \"pvqc\",\n\t\"./05_bookTicker.json\": \"exCQ\",\n\t\"./06_kline.json\": \"p1RX\",\n\t\"./07_24hr_ticker.json\": \"5LXd\"\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 = \"G8gl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market \\.json$\n// module id = G8gl\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/wallet/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Server time\"},{\"type\":\"warning\",\"text\":\"https://open-api.bingx.com/openApi/spot/v1/server/time\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic/04_server_url.json\n// module id = GK5R\n// module chunks = 3","var map = {\n\t\".\": \"2KwY\",\n\t\"./\": \"2KwY\",\n\t\"./01_error_code\": \"+lFy\",\n\t\"./01_error_code.json\": \"+lFy\",\n\t\"./02_timestamp\": \"VQr5\",\n\t\"./02_timestamp.json\": \"VQr5\",\n\t\"./03_digital_rule\": \"C2jk\",\n\t\"./03_digital_rule.json\": \"C2jk\",\n\t\"./04_rate_limits\": \"nG30\",\n\t\"./04_rate_limits.json\": \"nG30\",\n\t\"./05_system_time\": \"zNUa\",\n\t\"./05_system_time.json\": \"zNUa\",\n\t\"./index\": \"2KwY\",\n\t\"./index.js\": \"2KwY\",\n\t\"./index_share_to_v1\": \"Vl00\",\n\t\"./index_share_to_v1.js\": \"Vl00\"\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 = \"GNIi\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic ^.*$\n// module id = GNIi\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Depth Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"limit\":100,\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"T\":1717052420270,\"bids\":[[\"67753.0\",\"1360.0\"],[\"67752.9\",\"10.0\"],[\"67752.8\",\"11.0\"],[\"67752.7\",\"1.0\"],[\"67752.6\",\"1.0\"]],\"asks\":[[\"67754.9\",\"4.0\"],[\"67754.8\",\"4.0\"],[\"67754.7\",\"22.0\"],[\"67754.6\",\"19.0\"],[\"67754.5\",\"703.0\"]]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USD. Please use uppercase letters.\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The number of returned results. The default is 20 if not filled, optional values: 5, 10, 20, 50, 100, 500, 1000.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status code.\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description message.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"System time, milliseconds.\"},{\"name\":\"asks\",\"type\":\"List\",\"description\":\"Ask depth, the first is the price, the second is the quantity in contracts.\"},{\"name\":\"bids\",\"type\":\"List\",\"description\":\"Bid depth, the first is the price, the second is the quantity in contracts.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/05_get_depth.json\n// module id = GbOE\n// module chunks = 3","var map = {\n\t\".\": \"C8jp\",\n\t\"./\": \"C8jp\",\n\t\"./01_connect\": \"wa9k\",\n\t\"./01_connect.json\": \"wa9k\",\n\t\"./02_data_compress\": \"vuQY\",\n\t\"./02_data_compress.json\": \"vuQY\",\n\t\"./03_heart_beat\": \"il07\",\n\t\"./03_heart_beat.json\": \"il07\",\n\t\"./04_subscribe\": \"n8XW\",\n\t\"./04_subscribe.json\": \"n8XW\",\n\t\"./05_cancel_subscribe\": \"7k03\",\n\t\"./05_cancel_subscribe.json\": \"7k03\",\n\t\"./index\": \"C8jp\",\n\t\"./index.js\": \"C8jp\"\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 = \"GdCH\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce ^.*$\n// module id = GdCH\n// module chunks = 3","var map = {\n\t\"./01_create_listenKey.json\": \"KCrj\",\n\t\"./02_put_listenKey.json\": \"lKnG\",\n\t\"./03_delete_listenKey.json\": \"+Xv4\"\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 = \"GeOZ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/listenKey \\.json$\n// module id = GeOZ\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-24\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Added TWAP order API:/openApi/swap/v1/twap/order\"},{\"type\":\"html\",\"text\":\"Added new API for querying TWAP orders:/openApi/swap/v1/twap/openOrders\"},{\"type\":\"html\",\"text\":\"Added new API for querying TWAP history:/openApi/swap/v1/twap/historyOrders\"},{\"type\":\"html\",\"text\":\"Added new API for querying TWAP order details:/openApi/swap/v1/twap/orderDetail\"},{\"type\":\"html\",\"text\":\"Added API to cancel TWAP order:/openApi/swap/v1/twap/cancelOrder\"},{\"type\":\"html\",\"text\":\"Query history order API:/openApi/swap/v2/trade/allOrders, Added isTwap, mainOrderId fields to the output parameters\"},{\"type\":\"html\",\"text\":\"Query all order API:/openApi/swap/v1/trade/fullOrder, Added isTwap, mainOrderId fields to the output parameters\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-30.json\n// module id = Gmgm\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to the Latest Transaction Price\"},{\"type\":\"normal\",\"text\":\"Subscribe to the latest transaction price\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"Data type is @lastPrice, e.g., BTC-USD@lastPrice, ETH-USDT@lastPrice\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@lastPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@lastPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair symbol must contain a hyphen \\\"-\\\", e.g., BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@lastPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push price\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"lastPrice\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"Trading pair\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"Latest price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/02_last_price.json\n// module id = GtO6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"每日傭金查詢(邀請關係)\"},{\"type\":\"normal\",\"text\":\"代理人KOL可以使用此介面査詢每日傭金的詳細資訊。 僅支持査詢具有邀請關係的客戶的傭金明細。\"},{\"type\":\"html\",\"text\":\"
  • 1.僅支持査詢過去365天的數據。
  • \"},{\"type\":\"html\",\"text\":\"
  • 2.開始時間<結束時間,結束時間-開始時間<=30天。 這些是必填欄位。
  • \"},{\"type\":\"html\",\"text\":\"
  • 3.僅支持査詢有邀請關係的用戶的傭金資訊。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/reward/commissionDataList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":\"1\",\"pageSize\":\"2\",\"startTime\":\"1688992720000\",\"endTime\":\"1689426920000\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1690428196386,\"data\":{\"list\":[{\"uid\":24391361,\"commissionTime\":1689350400000,\"tradingVolume\":\"6660.05\",\"commissionVolume\":\"2.37932209\",\"swapTradingVolume\":\"6660.05\",\"swapCommissionVolume\":\"2.37932209\",\"stdTradingVolume\":\"6660.05\",\"stdCommissionVolume\":\"2.37932209\",\"spotTradingVolume\":\"6660.05\",\"spotCommissionVolume\":\"2.37932209\",\"extCopyTradingVolume\":\"6660.05\",\"extCopyCommissionVolume\":\"2.37932209\",\"mt5TradingVolume\":\"6660.05\",\"mt5CommissionVolume\":\"2.37932209\"},{\"uid\":24186665,\"commissionTime\":1689350400000,\"tradingVolume\":\"0\",\"commissionVolume\":\"0\",\"swapTradingVolume\":\"6660.05\",\"swapCommissionVolume\":\"2.37932209\",\"stdTradingVolume\":\"6660.05\",\"stdCommissionVolume\":\"2.37932209\",\"spotTradingVolume\":\"6660.05\",\"spotCommissionVolume\":\"2.37932209\",\"extCopyTradingVolume\":\"6660.05\",\"extCopyCommissionVolume\":\"2.37932209\",\"mt5TradingVolume\":\"6660.05\",\"mt5CommissionVolume\":\"2.37932209\"}],\"total\":43,\"currentAgentUid\":1115195195666423800}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"受邀用戶UID\"},{\"name\":\"startTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"開始時間戳(以天為組織),最大査詢視窗為30天,滑動範圍為過去365天。\"},{\"name\":\"endTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"結束時間戳,以天為組織,最大査詢視窗為30天,滑動範圍為過去365天。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁碼必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁面大小必須大於0,最大值為100。\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"請求有效時間視窗,以毫秒為組織。 如果未提供,預設值為5秒。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求時間戳記(毫秒)\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"受邀用戶UID\"},{\"name\":\"commissionTime\",\"type\":\"long\",\"description\":\"傭金時間戳記、日期\"},{\"name\":\"tradingVolume\",\"type\":\"string\",\"description\":\"現貨、標準合約、永續合約、跟單交易和MT5業務線合計的USDT總交易量\"},{\"name\":\"commissionVolume\",\"type\":\"string\",\"description\":\"傭金金額(美元)\"},{\"name\":\"spotTradingVolume\",\"type\":\"string\",\"description\":\"現貨交易金額,折扣為USDT\"},{\"name\":\"swapTradingVolume\",\"type\":\"string\",\"description\":\"永久合約交易量,轉換為USDT\"},{\"name\":\"stdTradingVolume\",\"type\":\"string\",\"description\":\"標準合約交易金額,以USDT貼現\"},{\"name\":\"extCopyTradingVolume\",\"type\":\"string\",\"description\":\"複製交易金額,以USDT貼現\"},{\"name\":\"mt5TradingVolume\",\"type\":\"string\",\"description\":\"MT5交易量,折扣USDT\"},{\"name\":\"spotCommissionVolume\",\"type\":\"string\",\"description\":\"現貨傭金回扣金額,以USDT折扣\"},{\"name\":\"swapCommissionVolume\",\"type\":\"string\",\"description\":\"永續合約返傭金額,折算為USDT\"},{\"name\":\"stdCommissionVolume\",\"type\":\"string\",\"description\":\"標準合約回扣金額,以USDT折扣\"},{\"name\":\"extCopyCommissionVolume\",\"type\":\"string\",\"description\":\"以下訂單的傭金金額以USDT折扣\"},{\"name\":\"mt5CommissionVolume\",\"type\":\"string\",\"description\":\"MT5返傭傭金金額,折扣USDT\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/02_get_Daily_Commission_Query.json\n// module id = Gwkw\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-03\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract (maximum leverage moved into new interface)Perpetual contract: maximum leverage,Please do not use the market interface: Maximum number of levers in Transaction pair information\"},{\"type\":\"html\",\"text\":\"newly added Sub account related operations: sub account creation, query, removal, freezing, authorization, etc\"},{\"type\":\"html\",\"text\":\"newly added Sub account API KEY related operations: sub account API KEY creation, query, removal, permission settings, etc\"},{\"type\":\"html\",\"text\":\"newly added Internal transfer api between sub accounts\"},{\"type\":\"html\",\"text\":\"new User Universal Transfer\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-08-03.json\n// module id = H0k7\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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},\"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-tw/spot/websocket/account/01_executionReport.json\n// module id = H6dO\n// module chunks = 3","module.exports = {\"module\":\"standard\",\"path\":\"/en-us/standard/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 Standard contract. The market data API is publicly accessible and provides market data, statistics, order book depth of a Trading Pair.\"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/1_introduce.json\n// module id = HGsQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Authorize sub-account internal transfers\"},{\"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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUids\":16789999,\"transferable\":\"true\"},\"response\":{\"code\":0,\"timestamp\":1702520269455,\"data\":true}},\"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\"},{\"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\":\"data\"},{\"name\":\"data\",\"type\":\"boolean\",\"description\":\"Is authorization successful\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\n// module id = HQ8m\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-tw/authentication/03_request_content.json\n// module id = HVe5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Modify Leverage\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\",\"side\":\"LONG\",\"leverage\":\"4\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718354677397,\"data\":{\"symbol\":\"BTC-USD\",\"longLeverage\":4,\"shortLeverage\":8,\"maxLongLeverage\":150,\"maxShortLeverage\":150,\"availableLongVol\":\"15000000\",\"availableShortVol\":\"15000000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, for example: BTC-USD, use capital letters\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"For dual-position mode, the leverage rate of long or short positions. LONG represents long position, SHORT represents short position\"},{\"name\":\"leverage\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Leverage rate\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation timestamp, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"Long position leverage\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"Short position leverage\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"Maximum long position leverage\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"Maximum short position leverage\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"Available long volume\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"Available short volume\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/03_post_leverage.json\n// module id = HWdZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Assets\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"60000\",\"timestamp\":\"1702624167523\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"balances\":[{\"asset\":\"USDT\",\"free\":\"566773.193402631\",\"locked\":\"244.18616265388994\"},{\"asset\":\"CHEEMS\",\"free\":\"294854132046232\",\"locked\":\"18350553840\"},{\"asset\":\"VST\",\"free\":\"0\",\"locked\":\"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/account/00_get_account_balance.json\n// module id = HY4c\n// module chunks = 3","var map = {\n\t\".\": \"8e1X\",\n\t\"./\": \"8e1X\",\n\t\"./01_get_account_apiRestrictions\": \"l5cf\",\n\t\"./01_get_account_apiRestrictions.json\": \"l5cf\",\n\t\"./index\": \"8e1X\",\n\t\"./index.js\": \"8e1X\"\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 = \"I/UF\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/permission ^.*$\n// module id = I/UF\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單\"},{\"type\":\"normal\",\"text\":\"查詢用戶歷史訂單(訂單狀態為已成交或已撤銷)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 查詢時間範圍最大不得超過7天
  • \"},{\"type\":\"html\",\"text\":\"
  • 默認查詢最近7天內的數據
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/orderHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USD\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母,如果不填寫symbol,則會查詢所有幣對的歷史訂單。\"},{\"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-USD\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/14_get_trade_allOrders.json\n// module id = I2ee\n// module chunks = 3","var map = {\n\t\"./2023-09-12.json\": \"Sd/4\"\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 = \"IE+d\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/q&a \\.json$\n// module id = IE+d\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢交易手續費率\"},{\"type\":\"normal\",\"text\":\"獲取當前用戶的手續費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"commission\":{\"takerCommissionRate\":0.0005,\"makerCommissionRate\":0.0002}}}},\"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/account/19_get_trade_user_commissionRate.json\n// module id = IIQZ\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/cswap/websocket/introduce/03_heart_beat.json\n// module id = IMXD\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\":\"

    常見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\":\"
  • 80012 - 服務不可用
  • \"},{\"type\":\"html\",\"text\":\"
  • 80014 - 參數無效
  • \"},{\"type\":\"html\",\"text\":\"
  • 80016 - 訂單不存在
  • \"},{\"type\":\"html\",\"text\":\"
  • 80017 - 倉位不存在
  • \"},{\"type\":\"html\",\"text\":\"
  • 80020 - risk forbidden
  • \"},{\"type\":\"html\",\"text\":\"
  • 100004 - Permission denied as the API key was created without the permission
  • \"},{\"type\":\"html\",\"text\":\"
  • 100419 - IP does not match IP whitelist
  • \"},{\"type\":\"html\",\"text\":\"
  • 101204 - Insufficient margin
  • \"},{\"type\":\"html\",\"text\":\"
  • 80013 - The number of your entrusted orders has reached the system limit. If you need to place an order, please cancel other orders first
  • \"},{\"type\":\"html\",\"text\":\"
  • 80018 - order is already filled
  • \"},{\"type\":\"html\",\"text\":\"
  • 80019 - The order is being processed. Please use the allOrders api to retrieve the order details later
  • \"},{\"type\":\"normal\",\"text\":\"100400\",\"children\":[{\"type\":\"html\",\"text\":\"arguments invalid\"},{\"type\":\"html\",\"text\":\"miss arguments\"}]},{\"type\":\"html\",\"text\":\"
  • 100412 - Null signature
  • \"},{\"type\":\"html\",\"text\":\"
  • 100413 - Incorrect apiKey
  • \"},{\"type\":\"html\",\"text\":\"
  • 100421 - Null timestamp or timestamp mismatch
  • \"},{\"type\":\"html\",\"text\":\"
  • 100410 - rate limitation
  • \"},{\"type\":\"html\",\"text\":\"
  • 101209 - The maximum position value for this leverage is ** USDT
  • \"},{\"type\":\"html\",\"text\":\"
  • 101212 - Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again
  • \"},{\"type\":\"html\",\"text\":\"
  • 101215 - The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.
  • \"},{\"type\":\"html\",\"text\":\"
  • 101414 - The maximum leverage for the trading pair is *, please reduce the leverage
  • \"},{\"type\":\"html\",\"text\":\"
  • 101415 - This trading pair is suspended from opening new position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101460 - The order price should be higher than the estimated liquidation price of the long position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101500 - rpc timeout
  • \"},{\"type\":\"html\",\"text\":\"
  • 101514 - You're temporarily suspended from opening positions. Please try again later
  • \"},{\"type\":\"html\",\"text\":\"
  • 109201 - The same order number is only allowed to be submitted once within 1 second.
  • \"},{\"type\":\"normal\",\"text\":\"101211\",\"children\":[{\"type\":\"html\",\"text\":\"Order price should be lower than*\"},{\"type\":\"html\",\"text\":\"Order price should be higher than*\"}]},{\"type\":\"normal\",\"text\":\"80012\",\"children\":[{\"type\":\"html\",\"text\":\"GetMarketTrades getContractInfo failled\"},{\"type\":\"html\",\"text\":\"symbol not exist\"},{\"type\":\"html\",\"text\":\"invalid parameter\"},{\"type\":\"html\",\"text\":\"Service Unavailable\"},{\"type\":\"html\",\"text\":\"leverage illegal\"},{\"type\":\"html\",\"text\":\"connect: connection refused\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"startTime is later than endTime\"},{\"type\":\"html\",\"text\":\"OpenInterestNotExist\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"},{\"type\":\"html\",\"text\":\"invalid connection\"},{\"type\":\"html\",\"text\":\"stop order cnt hit limit 50\"},{\"type\":\"html\",\"text\":\"network failed\"},{\"type\":\"html\",\"text\":\"trading has been locked\"},{\"type\":\"html\",\"text\":\"position limit\"}]},{\"type\":\"normal\",\"text\":\"101400\",\"children\":[{\"type\":\"html\",\"text\":\"No position to close\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"Insufficient margin\"},{\"type\":\"html\",\"text\":\"Must be lower than the maximum callback rate of 90%\"},{\"type\":\"html\",\"text\":\"Must be greater than the minimum callback rate of 0.1%\"},{\"type\":\"html\",\"text\":\"Invalid Parameter\"}]},{\"type\":\"normal\",\"text\":\"80001\",\"children\":[{\"type\":\"html\",\"text\":\"tickers is nil\"},{\"type\":\"html\",\"text\":\"Request failed\"},{\"type\":\"html\",\"text\":\"service has some errors, order not exist\"},{\"type\":\"html\",\"text\":\"orderId and clientOrderId are both empty, orderId and clientOrderId are both empty\"},{\"type\":\"html\",\"text\":\"order state illegal, order not exist\"},{\"type\":\"html\",\"text\":\"the account has positions or pending orders\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"You're temporarily suspended from opening positions. Please try again later\"},{\"type\":\"html\",\"text\":\"order state illegalorder not exist\"},{\"type\":\"html\",\"text\":\"Mismatch type\"},{\"type\":\"html\",\"text\":\"At present, the actual position is occupied by a Limit Order. If you need to close the position, please cancel other orders first\"},{\"type\":\"html\",\"text\":\"trading strategy available is false\"},{\"type\":\"html\",\"text\":\"order not exist\"},{\"type\":\"html\",\"text\":\"The maximum leverage for the trading pair is 5, please reduce the leverage\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"The current system is busy\"}]},{\"type\":\"html\",\"text\":\"

    註意:

    \"},{\"type\":\"html\",\"text\":\"
  • 如果失敗,response body 帶有錯誤描述信息
  • \"},{\"type\":\"html\",\"text\":\"
  • 每個接口都有可能抛出異常
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/01_error_code.json\n// module id = INR5\n// module chunks = 3","\nconst csharp = `\nusing System.Net.WebSockets;\nusing System.Text;\nusing System.IO.Compression;\n\nclass Program\n{\n private static readonly string WebSocketUrl = \"wss://open-api-swap.bingx.com/swap-market?listenKey=425f783f4a17cd65f4a5d7470cfd45a956dba0c29564aa4b70967bee4e4a8984\";\n private static readonly string Channel = \"https://open-api.bingx.com/openApi/user/auth/userDataStream\";\n\n static async Task Main(string[] args)\n {\n using (var client = new ClientWebSocket())\n {\n try\n {\n await client.ConnectAsync(new Uri(WebSocketUrl), CancellationToken.None);\n Console.WriteLine(\"WebSocket connected\");\n\n // Send channel subscription message\n var message = Encoding.UTF8.GetBytes(Channel);\n await client.SendAsync(new ArraySegment(message), WebSocketMessageType.Text, true, CancellationToken.None);\n Console.WriteLine(\"Subscription message sent\");\n\n var buffer = new byte[1024 * 4];\n while (client.State == WebSocketState.Open)\n {\n WebSocketReceiveResult result = await client.ReceiveAsync(new ArraySegment(buffer), CancellationToken.None);\n\n // Handle the received data\n if (result.MessageType == WebSocketMessageType.Close)\n {\n Console.WriteLine(\"Connection closed\");\n break;\n }\n\n string receivedMessage = HandleReceivedMessage(buffer, result.Count);\n Console.WriteLine(\"Received message: \" + receivedMessage);\n\n if (receivedMessage.Contains(\"ping\")) \n {\n var pongMessage = Encoding.UTF8.GetBytes(\"pong\");\n await client.SendAsync(new ArraySegment(pongMessage), WebSocketMessageType.Text, true, CancellationToken.None);\n Console.WriteLine(\"Sent pong\");\n }\n }\n }\n catch (Exception ex)\n {\n Console.WriteLine($\"WebSocket Exception: {ex.Message}\");\n }\n }\n }\n\n private static string HandleReceivedMessage(byte[] buffer, int length)\n {\n // Assuming the message might be compressed\n byte[] data = new byte[length];\n Array.Copy(buffer, data, length);\n \n try\n {\n // Try to decompress if it's a GZIP compressed message\n string decompressedMessage = DecompressGzip(data);\n return decompressedMessage;\n }\n catch (Exception)\n {\n // If decompression fails, assume it's a plain text message\n return Encoding.UTF8.GetString(data);\n }\n }\n\n private static string DecompressGzip(byte[] compressedData)\n {\n using (var input = new MemoryStream(compressedData))\n using (var gzip = new GZipStream(input, CompressionMode.Decompress))\n using (var reader = new StreamReader(gzip, Encoding.UTF8))\n {\n return reader.ReadToEnd();\n }\n }\n}`\nexport default csharp\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/spot/csharp.js","module.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 USDT-M Perp Futures\"},{\"type\":\"normal\",\"text\":\"support customized field: clientOrderId in both USDT-M Perp Futures and Spot\"},{\"type\":\"normal\",\"text\":\"support batch placing orders in Spot\"},{\"type\":\"normal\",\"text\":\"support kline api in Spot\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-07-29.json\n// module id = IOcs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"持倉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"開倉時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade/01_get_contract_allPosition.json\n// module id = IW/r\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"倒計時全部撤單\"},{\"type\":\"normal\",\"text\":\"在倒計時結束後,取消當前所有掛單,可一直保持此請求,不斷延期處罰時間\"},{\"type\":\"normal\",\"text\":\"限速:1次/1s\"},{\"type\":\"warning\",\"text\":\"如果當前您的掛單量比較多,會分批次取消掛單,這個過程可能會花費幾秒進行分批次取消,另外,在系統幫您取消所有掛單期間,會拒絕繼續ACTIVATE、CLOSE請求。當系統執行完當次取消所有掛單任務之後,可繼續接受ACTIVATE、CLOSE請求\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelAllAfter\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"type\":\"ACTIVATE\",\"timeOut\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"triggerTime\":1710389137,\"status\":\"ACTIVATED\",\"note\":\"All your spot pending orders will be closed automatically at 2024-03-14 04:05:37 UTC(+0),before that you can cancel the timer, or extend triggerTime time by this request\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"請求類型: ACTIVATE-激活,CLOSE-關閉\"},{\"name\":\"timeOut\",\"type\":\"int\",\"required\":\"是\",\"description\":\"激活倒計時時間(秒),範圍:10s-120s\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"triggerTime\",\"type\":\"int\",\"description\":\"觸發刪除全部掛單時間\"},{\"name\":\"status\",\"type\":\"狀態\",\"description\":\"ACTIVATED(激活成功)/CLOSED(關閉成功)/FAILED(失敗)\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"說明\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/09_cancel_all_after.json\n// module id = IW4y\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"jcbY\",\n\t\"./02_kline_data.json\": \"3EGE\",\n\t\"./03_depth_info.json\": \"fsqo\",\n\t\"./04_24hr_ticker.json\": \"P0Vd\",\n\t\"./05_last_price.json\": \"fqiK\",\n\t\"./06_book_ticker.json\": \"o9Mz\",\n\t\"./07_depth_incr_info.json\": \"soQQ\"\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 = \"Ia6C\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market \\.json$\n// module id = Ia6C\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-tw/swapV2/websocket/introduce/05_cancel_subscribe.json\n// module id = IhWV\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"査詢API交易傭金(非邀請關係)\"},{\"type\":\"normal\",\"text\":\"査詢API交易傭金,非邀請關係用戶的API交易傭金。 特定於經紀商平臺。\"},{\"type\":\"html\",\"text\":\"
  • 1.僅支持査詢2023年12月1日之後的數據;
  • \"},{\"type\":\"html\",\"text\":\"
  • 2.startTime'結束時間,結束時間-startTime'=7。
  • \"},{\"type\":\"html\",\"text\":\"
  • 3、只支持査詢沒有邀請關係但通過相應通路API下單的用戶的傭金。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/reward/third/commissionDataList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\",\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"commissionBizType\":\"81\",\"recWindow\":\"6000\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"list\":[{\"uid\":25053735,\"commissionTime\":1700759104737,\"tradeVolume\":\"10.234\",\"commissionVolume\":\"0.02663866\",\"commissionBizType\":81}],\"total\":3}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"交易用戶(非邀請關係用戶)的UID\"},{\"name\":\"commissionBizType\",\"type\":\"int\",\"required\":\"YES\",\"description\":\"81:永續合約交易API傭金82:現貨交易API傭金\"},{\"name\":\"startTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"開始時間戳(天),僅支持査詢2023年12月1日之後的數據。\"},{\"name\":\"endTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"結束時間戳(天)。 僅支持査詢2023年12月1日之後的數據。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁碼必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"頁數必須大於0,最大值為100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求有效的時間視窗值,組織:毫秒。 如果未填充,預設值為5秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"請求時間戳記,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"交易用戶(非邀請關係用戶)的UID\"},{\"name\":\"commissionTime\",\"type\":\"long\",\"description\":\"傭金時間戳記、日期\"},{\"name\":\"tradeVolume\",\"type\":\"string\",\"description\":\"API訂單金額以美元為組織進行折扣\"},{\"name\":\"commissionVolume\",\"type\":\"string\",\"description\":\"傭金金額(美元)\"},{\"name\":\"commissionBizType\",\"type\":\"int\",\"description\":\"81:永續合約交易API傭金82:現貨交易API傭金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/05_get_Query_API_transaction_commission.json\n// module id = IoyB\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬號充值記錄\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶查詢子用戶的充值歷史記錄,限母用戶可用\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/subHisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":\"16789999\",\"recvWindow\":\"10000\"},\"response\":{\"code\":0,\"timestamp\":1702436064748,\"data\":{\"total\":0,\"data\":[]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"轉賬幣種名\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"否\",\"description\":\"子賬戶uid,不填時查詢母使用者名下所有子帳戶的充幣記錄。\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"状态(0-進行中 6-已上鏈 1-已完成)\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"開始時間\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"結束時間\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"內轉記錄列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子賬戶uid\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"轉賬金額\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"網絡名稱\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"状态(0-進行中 6-已上鏈 1-已完成)\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"充值地址tag\"},{\"name\":\"txId\",\"type\":\"string\",\"description\":\"事務id\"},{\"name\":\"insertTime\",\"type\":\"long\",\"description\":\"事務掃描時間\"},{\"name\":\"transferType\",\"type\":\"int\",\"description\":\"0充值\"},{\"name\":\"unlockConfirmTimes\",\"type\":\"int\",\"description\":\"充值解鎖需要確認數\"},{\"name\":\"confirmTimes\",\"type\":\"int\",\"description\":\"確認數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/16.get_wallet_querySubDepositRecords.json\n// module id = Iuwz\n// module chunks = 3","var map = {\n\t\"./01_get_contracts.json\": \"Fui1\",\n\t\"./02_get_premiumIndex.json\": \"5uda\",\n\t\"./03_get_openInterest.json\": \"ewcP\",\n\t\"./04_get_kline.json\": \"FuQd\",\n\t\"./05_get_depth.json\": \"GbOE\",\n\t\"./06_get_ticker.json\": \"6xac\"\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 = \"J1Pj\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market \\.json$\n// module id = J1Pj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Delete the API Key of sub-accounts\"},{\"type\":\"normal\",\"text\":\"Delete sub account apikey\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/del\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":14189999,\"apiKey\":\"2W****mA\"},\"response\":{\"code\":0,\"timestamp\":1702021810315}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"\"},{\"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\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/08_delete_sub_account_key.json\n// module id = J2bY\n// module chunks = 3","var map = {\n\t\".\": \"KJg6\",\n\t\"./\": \"KJg6\",\n\t\"./01_get_user_balance\": \"zKw2\",\n\t\"./01_get_user_balance.json\": \"zKw2\",\n\t\"./02_get_user_positions\": \"uAAZ\",\n\t\"./02_get_user_positions.json\": \"uAAZ\",\n\t\"./03_get_user_income\": \"clol\",\n\t\"./03_get_user_income.json\": \"clol\",\n\t\"./18_get_trade_income_export\": \"tvLy\",\n\t\"./18_get_trade_income_export.json\": \"tvLy\",\n\t\"./19_get_trade_user_commissionRate\": \"IIQZ\",\n\t\"./19_get_trade_user_commissionRate.json\": \"IIQZ\",\n\t\"./index\": \"KJg6\",\n\t\"./index.js\": \"KJg6\"\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 = \"J7Xj\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/account ^.*$\n// module id = J7Xj\n// module chunks = 3","import { codeLangConfig, CODE_LANG_KEY } from '../lang'\n\nfunction generateCode(api, codeLang, host, defaultCode) {\n\n const code = codeLangConfig.find(item => item.value === codeLang)\n\n if (!code) {\n return defaultCode || 'No Code'\n }\n const api2 = {}\n let codeStr = require(\"@/utils/code/\" + codeLang + '.js').default\n\n let payload = api.payload\n if (Array.isArray(api.payload)) {\n payload = api.payload[0].payload\n }\n\n if (code.value === CODE_LANG_KEY.js) {\n api2.uri = api.uri\n api2.method = api.method\n api2.payload = payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/AAPPII/g, JSON.stringify(api2, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n return codeStr\n } else if (codeLang == CODE_LANG_KEY.shell) {\n let parameters = \"\"\n for (const key in payload) {\n parameters += key + \"=\" + payload[key] + \"&\"\n }\n if (parameters) {\n parameters = parameters.substring(0, parameters.length - 1)\n }\n codeStr = codeStr.replace(/AAPPII/g, api.uri)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api.method)\n codeStr = codeStr.replace(/PPAARRAAMMEETTEERRSS/g, parameters)\n codeStr = codeStr.replace(/\\^/g, '`')\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.go) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, JSON.stringify(api2, null, 4))\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, JSON.stringify(payload, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.java) {\n // codeStr = require(\"@/utils/code/\" + codeLang + '.js').default\n api2.uri = api.uri\n api2.method = api.method\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n let str = ``\n for (const prop in payload) {\n str += `\n parameters.put(\"${prop}\", \"\");`\n }\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, str)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.python) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, JSON.stringify(payload, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.csharp) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = payload\n api2.protocol = api.protocol\n let payloadStr = JSON.stringify(payload, null, 4)\n payloadStr = payloadStr.replace(/:/g, \"=\")\n payloadStr = payloadStr.replace(/\\\"/g, \"\")\n\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, payloadStr)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.php) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = payload\n api2.protocol = api.protocol\n let payloadStr = JSON.stringify(payload, null, 4)\n payloadStr = payloadStr.replace(/:/g, \"=\")\n payloadStr = payloadStr.replace(/\\\"/g, \"\")\n\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, payloadStr)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else {\n return defaultCode || 'No Code'\n }\n}\n\nexport default generateCode\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/generate.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-24\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"新增TWAP下单接口:/openApi/swap/v1/twap/order\"},{\"type\":\"html\",\"text\":\"新增查询TWAP委托中订单接口:/openApi/swap/v1/twap/openOrders\"},{\"type\":\"html\",\"text\":\"新增查询TWAP历史委托接口:/openApi/swap/v1/twap/historyOrders\"},{\"type\":\"html\",\"text\":\"新增查询TWAP委托详情接口:/openApi/swap/v1/twap/orderDetail\"},{\"type\":\"html\",\"text\":\"新增撤销TWAP委托接口:/openApi/swap/v1/twap/cancelOrder\"},{\"type\":\"html\",\"text\":\"U本位查询历史订单接口:/openApi/swap/v2/trade/allOrders, 出参新增isTwap,mainOrderId字段\"},{\"type\":\"html\",\"text\":\"U本位查询所有订单接口:/openApi/swap/v1/trade/fullOrder, 出参新增isTwap,mainOrderId字段\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-30.json\n// module id = J9sz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"授權子賬戶內部轉轉\"},{\"type\":\"normal\",\"text\":\"主賬戶授權子賬戶內轉權限(僅限主賬戶使用)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUids\":16789999,\"transferable\":\"true\"},\"response\":{\"code\":0,\"timestamp\":1702520269455,\"data\":true}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUids\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用戶uid列表,逗號分隔\"},{\"name\":\"transferable\",\"type\":\"boolean\",\"required\":\"是\",\"description\":\"是否允許, true允許 false禁止\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":\"data\"},{\"name\":\"data\",\"type\":\"boolean\",\"description\":\"授權是否成功\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\n// module id = JAIK\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 orders, market orders, planned entrusted market orders, planned entrusted limit orders, position stop-profit and stop-loss orders, and position closing.)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"

    1. Opening/closing a position: How to use the same api to open a position (long/short) and close a position (long/short)? 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-USD\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"MARKET\\\", \\\"quantity\\\": 5}

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

    2. Set take-profit and stop-loss separately: This api can also be used to set take-profit and stop-loss separately, but you need to open a position first;

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

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

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

    3. Set take profit and stop loss when opening and adding positions: use takeProfit or stopLoss field

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

    {\\\"symbol\\\": \\\"BTC-USD\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

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

    STOP/STOP_MARKET Stop loss order:

    \"},{\"type\":\"html\",\"text\":\"
  • The cumulative quantity of placed stop-loss orders cannot be greater than the position quantity
  • \"},{\"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 cumulative quantity of pending stop-profit orders 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/cswap/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"ETH-USD\",\"positionSide\":\"SHORT\",\"price\":\"3777\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"quantity\":\"20\",\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT\\\", \\\"stopPrice\\\": 3666.0,\\\"price\\\": 3776.0,\\\"workingType\\\":\\\"CONTRACT_PRICE\\\"}\",\"stopLoss\":\"{\\\"type\\\": \\\"STOP\\\", \\\"stopPrice\\\": 3999.0,\\\"price\\\": 2888.0,\\\"workingType\\\":\\\"CONTRACT_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orderId\":1802706634360750000,\"symbol\":\"ETH-USD\",\"positionSide\":\"SHORT\",\"side\":\"SELL\",\"type\":\"LIMIT\",\"price\":3777,\"quantity\":20,\"stopPrice\":0,\"workingType\":\"\",\"timeInForce\":\"\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, for example: BTC-USD, please use capital letters\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"LIMIT: Limit order/MARKET: Market order/STOP_MARKET: Market stop loss order/TAKE_PROFIT_MARKET: Market take profit order/STOP: Limit stop loss order/TAKE_PROFIT: Limit stop profit order\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, single position must fill in BOTH, two-way position can only choose LONG or SHORT, if it is empty, the default is LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Commission price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"The order quantity and the number of contracts. It is not supported to place orders with U quantity at the moment.\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT require this parameter\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"stopPrice trigger price price type: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Requested timestamp, unit: milliseconds\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support placing orders and setting stop loss at the same time. But only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support placing orders and setting take profit at the same time. But only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: milliseconds\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT. When type is STOP or STOP_MARKET\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Commission price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"stopPrice trigger price price type: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, for example: BTC-USD, please use capital letters\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Buying and selling direction SELL, BUY\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit order/MARKET: Market order/STOP_MARKET: Market stop loss order/TAKE_PROFIT_MARKET: Market take profit order/STOP: Limit stop loss order/TAKE_PROFIT: Limit stop profit order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, single position must fill in BOTH, two-way position can only choose LONG or SHORT, if it is empty, the default is LONG\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"order id\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Commission price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT. When type is STOP or STOP_MARKET\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"stopPrice trigger price price type: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/00_post_trade_order.json\n// module id = JG85\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query OCO Historical Order List\"},{\"type\":\"normal\",\"text\":\"Query OCO historical order list\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/historyOrderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"startTime\":1724256000000,\"endTime\":1724342400000,\"pageIndex\":1,\"pageSize\":100,\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724297880000,\"orderId\":\"1826458150027395073\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":64000,\"price\":65000,\"quantity\":0.001,\"orderListId\":\"1826458148019142656\",\"status\":\"FAILED\"},{\"transactionTime\":1724297880000,\"orderId\":\"1826458150027395072\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1826458148019142656\",\"status\":\"CANCELED\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Page number\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Number of items per page\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Start time, timestamp, in milliseconds\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"End time, timestamp, in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request validity window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"Order time\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"User-defined order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit: OCO Limit Order, ocoTps: OCO Stop-Limit Order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Trade type, BUY for buy, SELL for sell\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Order price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO order group ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/104_get_all_history_oco_order.json\n// module id = JLQZ\n// module chunks = 3","var map = {\n\t\".\": \"BJ4d\",\n\t\"./\": \"BJ4d\",\n\t\"./01_limit\": \"+dFG\",\n\t\"./01_limit.json\": \"+dFG\",\n\t\"./02_connect\": \"hDC3\",\n\t\"./02_connect.json\": \"hDC3\",\n\t\"./03_data_compress\": \"YUWz\",\n\t\"./03_data_compress.json\": \"YUWz\",\n\t\"./04_heart_beat\": \"Ze9p\",\n\t\"./04_heart_beat.json\": \"Ze9p\",\n\t\"./05_cancel_subscribe\": \"hlb8\",\n\t\"./05_cancel_subscribe.json\": \"hlb8\",\n\t\"./06_subscribe\": \"g2tG\",\n\t\"./06_subscribe.json\": \"g2tG\",\n\t\"./index\": \"BJ4d\",\n\t\"./index.js\": \"BJ4d\"\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 = \"JLT+\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce ^.*$\n// module id = JLT+\n// module chunks = 3","var map = {\n\t\".\": \"Ow07\",\n\t\"./\": \"Ow07\",\n\t\"./00_post_trade_order\": \"JG85\",\n\t\"./00_post_trade_order.json\": \"JG85\",\n\t\"./01_get_commissionRate\": \"3Csz\",\n\t\"./01_get_commissionRate.json\": \"3Csz\",\n\t\"./01_get_leverage\": \"6Wqe\",\n\t\"./01_get_leverage.json\": \"6Wqe\",\n\t\"./03_post_leverage\": \"HWdZ\",\n\t\"./03_post_leverage.json\": \"HWdZ\",\n\t\"./04_post_allOpenOrders\": \"xM9z\",\n\t\"./04_post_allOpenOrders.json\": \"xM9z\",\n\t\"./05_post_closeAllPositions\": \"A11g\",\n\t\"./05_post_closeAllPositions.json\": \"A11g\",\n\t\"./06_get_positions\": \"Uqg4\",\n\t\"./06_get_positions.json\": \"Uqg4\",\n\t\"./07_get_balance\": \"DyCG\",\n\t\"./07_get_balance.json\": \"DyCG\",\n\t\"./08_get_forceOrders\": \"79Xw\",\n\t\"./08_get_forceOrders.json\": \"79Xw\",\n\t\"./09_get_allFillOrders\": \"KXGF\",\n\t\"./09_get_allFillOrders.json\": \"KXGF\",\n\t\"./10_delete_trade_order\": \"Mwlf\",\n\t\"./10_delete_trade_order.json\": \"Mwlf\",\n\t\"./11_get_all_openOrders\": \"Ui0Y\",\n\t\"./11_get_all_openOrders.json\": \"Ui0Y\",\n\t\"./12_get_trade_order\": \"nj2w\",\n\t\"./12_get_trade_order.json\": \"nj2w\",\n\t\"./14_get_trade_allOrders\": \"BW7b\",\n\t\"./14_get_trade_allOrders.json\": \"BW7b\",\n\t\"./15_get_margin_type\": \"Qb5x\",\n\t\"./15_get_margin_type.json\": \"Qb5x\",\n\t\"./16_post_margin_type\": \"dI3A\",\n\t\"./16_post_margin_type.json\": \"dI3A\",\n\t\"./17_post_trade_positionMargin\": \"2WEb\",\n\t\"./17_post_trade_positionMargin.json\": \"2WEb\",\n\t\"./index\": \"Ow07\",\n\t\"./index.js\": \"Ow07\"\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 = \"JOF7\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade ^.*$\n// module id = JOF7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Close position by position ID\"},{\"type\":\"normal\",\"text\":\"\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/closePosition\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":\"1702731721672\",\"positionId\":\"1769649551460794368\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":0,\"data\":{\"orderId\":1769649628749234200,\"positionId\":\"1769649551460794368\",\"symbol\":\"BTC-USDT\",\"side\":\"Ask\",\"type\":\"Market\",\"positionSide\":\"BOTH\",\"origQty\":\"1.0000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Position ID, will close the position with market price\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Error code, 0 indicates success, non-zero indicates abnormal failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error message prompt\"},{\"name\":\"data\",\"type\":\"Data\",\"required\":\"yes\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Buy/Sell direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET: Market order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, MUST be BOTH for single position, LONG or SHORT for hedged position, default LONG when empty\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Order quantity, quantity of coins\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/22_post_closePosition.json\n// module id = JRrP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"充值風控記錄\"},{\"type\":\"normal\",\"text\":\"用於查詢用戶以及其子賬戶當前處於風控中的充值記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/riskRecords\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"timestamp\":1706839654997,\"data\":[{\"uid\":\"\",\"coin\":\"\",\"amount\":\"\",\"sourceAddress\":\"\",\"address\":\"\",\"insetTime\":\"\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"string\",\"description\":\"用戶標誌\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"金額\"},{\"name\":\"sourceAddress\",\"type\":\"string\",\"description\":\"來源地址\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"insetTime\",\"type\":\"datetime\",\"description\":\"創建時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/14_get_risk_deposit_records.json\n// module id = JbVL\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/02_connect.json\n// module id = Jf00\n// module chunks = 3","var map = {\n\t\".\": \"FZvV\",\n\t\"./\": \"FZvV\",\n\t\"./01_trade_info\": \"tk7z\",\n\t\"./01_trade_info.json\": \"tk7z\",\n\t\"./02_kline_data\": \"klxE\",\n\t\"./02_kline_data.json\": \"klxE\",\n\t\"./03_depth_info\": \"ADmP\",\n\t\"./03_depth_info.json\": \"ADmP\",\n\t\"./04_24hr_ticker\": \"7Biw\",\n\t\"./04_24hr_ticker.json\": \"7Biw\",\n\t\"./05_last_price\": \"q1yk\",\n\t\"./05_last_price.json\": \"q1yk\",\n\t\"./06_book_ticker\": \"vVRe\",\n\t\"./06_book_ticker.json\": \"vVRe\",\n\t\"./07_depth_incr_info\": \"MY8u\",\n\t\"./07_depth_incr_info.json\": \"MY8u\",\n\t\"./index\": \"FZvV\",\n\t\"./index.js\": \"FZvV\"\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 = \"JfGl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market ^.*$\n// module id = JfGl\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-06-13\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Coin-M Perpetuals new series Trading API\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-06-13.json\n// module id = Jim+\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-14\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續調整接口:下單接口支持保證止盈止損功能。\"},{\"type\":\"html\",\"text\":\"現貨新增:倒計時全部撤單 功能\"},{\"type\":\"html\",\"text\":\"永續新增:倒計時全部撤單 功能\"},{\"type\":\"html\",\"text\":\"現貨新增:服務器時間接口\"},{\"type\":\"html\",\"text\":\"現貨新增:有效方式,目前支持PostOnly、GTC、IOC,不填寫則默認GTC\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-03-14.json\n// module id = Jip9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"主賬戶內轉記錄\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶查詢自己的內轉記錄,限母用戶可用。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/records\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"30000\",\"timestamp\":\"1702383898131\",\"limit\":\"1000\",\"coin\":\"BTC\",\"startTime\":\"1701519898118\",\"endTime\":\"1702383898118\"},\"response\":{\"code\":0,\"timestamp\":1702383898844,\"data\":{\"data\":[{\"id\":1251111922229444400,\"coin\":\"BTC\",\"receiver\":1128763679,\"amount\":0.0072366,\"status\":6,\"fromUid\":1128763678,\"recordType\":\"out\"}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID。同時入參平臺ID和transferClientId時以平臺id查詢為主\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"開始時間\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"結束時間\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"內轉記錄列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"id\",\"type\":\"long\",\"description\":\"內轉id\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"receiver\",\"type\":\"long\",\"description\":\"收款人uid\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"轉賬金額\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"內轉時間\"},{\"name\":\"status\",\"type\":\"Integer\",\"description\":\"狀態 4-審核中 5-已失敗 6-已完成\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID。同時入參平臺ID和transferClientId時以平臺id查詢為主\"},{\"name\":\"fromUid\",\"type\":\"long\",\"description\":\"付款人帳戶\"},{\"name\":\"recordType\",\"type\":\"string\",\"description\":\"out:轉出記錄,in:轉入記錄\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/14.get_wallet_queryInnerTransferRecords.json\n// module id = Jtu9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Reset the API Key of a sub-account\"},{\"type\":\"normal\",\"text\":\"Edit sub account apikey\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":\"16259999\",\"apiKey\":\"CK***g\",\"ipAddresses\":[\"51.**.**.172\",\"51.**.**.135\"],\"note\":\"note\",\"permissions\":[1,2,3,4,6,7]},\"response\":{\"code\":0,\"timestamp\":1699785925994,\"data\":{\"note\":\"note\",\"permissions\":[1,2,3,4,6,7],\"ipAddresses\":[\"51.**.**.172\",\"51.**.**.135\"]}}},\"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\"},{\"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\":\"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/07_post_edit_apikey.json\n// module id = Jwag\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Sub-Account Transfer History (For Master Account Operations Only)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/asset/transferHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"213342\",\"tranId\":\"1051323896482406240336\",\"type\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"startTime\":\"1719496046943\",\"endTime\":\"1719596046943\",\"pageId\":1,\"pagingSize\":10},\"response\":{\"total\":1,\"rows\":[{\"asset\":\"VST\",\"amount\":\"100000.00000000000000000000\",\"type\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"status\":\"CONFIRMED\",\"tranId\":\"1051323896482406240336\",\"timestamp\":1702252271000,\"fromUid\":2332424,\"toUid\":123244}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"UID to query\"},{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"No\",\"description\":\"Transfer type\"},{\"name\":\"tranId\",\"type\":\"STRING\",\"required\":\"No\",\"description\":\"Transfer ID\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"Start time 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"End time 1658748648396\"},{\"name\":\"pageId\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Current page, default is 1\"},{\"name\":\"pagingSize\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Page size, default is 10, cannot exceed 100\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"Execution window time, cannot exceed 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Current timestamp, e.g., 1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"Master account capital to sub-account capital\"},{\"name\":\"MAIN_CAPITAL_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"Master account capital to sub-account contract\"},{\"name\":\"MAIN_CAPITAL_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"Master account capital to sub-account perpetual swap\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"Master account contract to sub-account capital\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"Master account contract to sub-account contract\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"Master account contract to sub-account perpetual swap\"},{\"name\":\"MAIN_SWAP_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"Master account perpetual swap to sub-account capital\"},{\"name\":\"MAIN_SWAP_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"Master account perpetual swap to sub-account contract\"},{\"name\":\"MAIN_SWAP_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"Master account perpetual swap to sub-account perpetual swap\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"Sub-account capital to master account capital\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"Sub-account capital to master account contract\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"Sub-account capital to master account perpetual swap\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"Sub-account contract to master account capital\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"Sub-account contract to master account contract\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"Sub-account contract to master account perpetual swap\"},{\"name\":\"SUB_SWAP_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"Sub-account perpetual swap to master account capital\"},{\"name\":\"SUB_SWAP_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"Sub-account perpetual swap to master account contract\"},{\"name\":\"SUB_SWAP_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"Sub-account perpetual swap to master account perpetual swap\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"total\",\"type\":\"LONG\",\"description\":\"Total count\"},{\"name\":\"rows\",\"type\":\"Array\",\"description\":\"Data array\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"Name of the asset\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"Amount of the asset\"},{\"name\":\"type\",\"type\":\"ENUM\",\"description\":\"Transfer type\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"CONFIRMED\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"Transfer ID\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"description\":\"Transfer timestamp\"},{\"name\":\"fromUid\",\"type\":\"LONG\",\"description\":\"UID of the sender\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"description\":\"UID of the receiver\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/18.query_sub_account_transfer_history.json\n// module id = Jxen\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"凍結 解凍子賬戶\"},{\"type\":\"normal\",\"text\":\"凍結 解凍子賬戶\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"是否凍結賬號\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"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-tw/common/api/subAccount/09_update_sub_account_status.json\n// module id = K/yH\n// module chunks = 3","module.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\":\"warning\",\"text\":\"Account data no longer need to subscribe to channel type,after connect wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"sp\",\"type\":\"\",\"description\":\"trigger 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 or BOTH\"},{\"name\":\"rp\",\"type\":\"\",\"description\":\"The transaction achieves profit and loss: 0.00000000\"},{\"name\":\"z\",\"type\":\"\",\"description\":\"Order Filled Accumulated Quantity: 0.00000000\"},{\"name\":\"sg\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. \"},{\"name\":\"ti\",\"type\":\"\",\"description\":\"Conditional Order ID associated with this order:1771124709866754048\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/account/02_order.json\n// module id = K1eD\n// module chunks = 3","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 https://open-api.bingx.com/openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"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-tw/listenKey/01_create_listenKey.json\n// module id = KCrj\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/swapV2/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Main Accoun internal transfer\"},{\"type\":\"html\",\"text\":\"Users can transfer money to each other within the bingx platform. Transfers are only allowed between main accounts and from main accounts to sub-accounts.
    For internal transfers within sub-accounts, please use the dedicated interface: User internal transfer\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"amount\":\"10.0\",\"coin\":\"USDT\",\"userAccount\":\"16779999\",\"userAccountType\":\"1\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702558152381,\"data\":{\"id\":\"12******1\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Name of the transferred currency\"},{\"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 number, email\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"Transfer amount\"},{\"name\":\"callingCode\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Area code for telephone, required when userAccountType=2.\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"Yes\",\"description\":\"Account type, 1 Fund Account; 2 Standard Futures Account; 3 Perpetual Futures Account\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom ID for internal transfer by the client, combination of numbers and letters, length less than 100 characters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request validity time window, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"The platform returns the unique ID of the internal transfer record.\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom ID for internal transfer by the client, combination of numbers and letters, length less than 100 characters\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/07_post_capital_innerTransfer_apply.json\n// module id = KPNz\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-05-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:查詢持倉和維持保證金率。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-05-23.json\n// module id = KSJz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel All After\"},{\"type\":\"normal\",\"text\":\"After the countdown ends, cancel all current pending orders. This request can be continuously maintained to constantly extend the penalty time.\"},{\"type\":\"normal\",\"text\":\"Rate limit: 1 time/1s\"},{\"type\":\"warning\",\"text\":\"If you have a large amount of pending orders, they will be canceled in batches, which may take several seconds to cancel in batches. In addition, during the process of canceling all pending orders, the system will reject further ACTIVATE and CLOSE requests. After the system has completed the task of canceling all pending orders, it can continue to accept ACTIVATE and CLOSE requests.\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelAllAfter\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"type\":\"ACTIVATE\",\"timeOut\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"triggerTime\":1710389137,\"status\":\"ACTIVATED\",\"note\":\"All your spot pending orders will be closed automatically at 2024-03-14 04:05:37 UTC(+0),before that you can cancel the timer, or extend triggerTime time by this request\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Request type: ACTIVATE-Activate, CLOSE-Close\"},{\"name\":\"timeOut\",\"type\":\"int\",\"required\":\"Yes\",\"description\":\"Activate countdown time (seconds), range: 10s-120s\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"triggerTime\",\"type\":\"int\",\"description\":\"Trigger time for deleting all pending orders\"},{\"name\":\"status\",\"type\":\"Status\",\"description\":\"ACTIVATED (Activation successful)/CLOSED (Closed successfully)/FAILED (Failed)\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"Explanation\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/09_cancel_all_after.json\n// module id = KWsz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Order Trade Detail\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/allFillOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1796163365782945792\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718423719019,\"data\":[{\"orderId\":\"1796163365782945792\",\"symbol\":\"ETH-USD\",\"type\":\"MARKET\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"tradeId\":\"20789331\",\"volume\":\"376\",\"baseQty\":0,\"tradePrice\":\"3761.12\",\"amount\":\"3760.00000000\",\"realizedPnl\":\"0.00000000\",\"commission\":\"-0.00039988\",\"currency\":\"ETH\",\"buyer\":true,\"maker\":false,\"tradeTime\":1717073692000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Order ID\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Page number, default 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Number per page, default 100, max 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generated timestamp point, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"Trade detail list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type, LIMIT: limit order/MARKET: market order/STOP_MARKET: market stop loss order/TAKE_PROFIT_MARKET: market take profit order/STOP: limit stop loss order/TAKE_PROFIT: limit take profit order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Transaction direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, dual position only can choose LONG or SHORT\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"Trade ID\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Trade quantity, contract count\"},{\"name\":\"tradePrice\",\"type\":\"string\",\"description\":\"Trade price\"},{\"name\":\"amount\",\"type\":\"string\",\"description\":\"Trade amount, to usd\"},{\"name\":\"realizedPnl\",\"type\":\"string\",\"description\":\"Realized PnL\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Commission\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"Asset unit\"},{\"name\":\"buyer\",\"type\":\"bool\",\"description\":\"Is buyer?\"},{\"name\":\"maker\",\"type\":\"bool\",\"description\":\"Is maker?\"},{\"name\":\"tradeTime\",\"type\":\"int64\",\"description\":\"Trade time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/09_get_allFillOrders.json\n// module id = KXGF\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"近期成交記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":10},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"time\":1702719269849,\"isBuyerMaker\":true,\"price\":\"42214.0\",\"qty\":\"0.0248\",\"quoteQty\":\"1046.91\"},{\"time\":1702719269559,\"isBuyerMaker\":false,\"price\":\"42214.1\",\"qty\":\"0.4985\",\"quoteQty\":\"21043.73\"},{\"time\":1702719269274,\"isBuyerMaker\":true,\"price\":\"42213.9\",\"qty\":\"0.0394\",\"quoteQty\":\"1663.23\"},{\"time\":1702719268954,\"isBuyerMaker\":false,\"price\":\"42214.4\",\"qty\":\"0.1116\",\"quoteQty\":\"4711.13\"},{\"time\":1702719268253,\"isBuyerMaker\":true,\"price\":\"42214.5\",\"qty\":\"0.4476\",\"quoteQty\":\"18895.21\"},{\"time\":1702719267963,\"isBuyerMaker\":false,\"price\":\"42215.2\",\"qty\":\"0.0708\",\"quoteQty\":\"2988.84\"},{\"time\":1702719267148,\"isBuyerMaker\":false,\"price\":\"42215.8\",\"qty\":\"0.6055\",\"quoteQty\":\"25561.67\"},{\"time\":1702719265743,\"isBuyerMaker\":false,\"price\":\"42216.1\",\"qty\":\"0.2031\",\"quoteQty\":\"8574.09\"},{\"time\":1702719265463,\"isBuyerMaker\":false,\"price\":\"42216.1\",\"qty\":\"0.0160\",\"quoteQty\":\"675.46\"},{\"time\":1702719265198,\"isBuyerMaker\":true,\"price\":\"42217.2\",\"qty\":\"0.0112\",\"quoteQty\":\"472.83\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"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\":\"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-tw/swapV2/api/market/04_get_quote_ trades.json\n// module id = KY9U\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-01-10\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history response新增字段:sourceAddress/transferType/addressTag\"},{\"type\":\"html\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec response新增字段:sourceAddress\"},{\"type\":\"html\",\"text\":\"永續新增接口:查詢委託訂單狀態接口\"},{\"type\":\"html\",\"text\":\"現貨新增:查詢成交明細接口GET /openApi/spot/v1/trade/myTrades\"},{\"type\":\"html\",\"text\":\"永续新增:查詢歷史交易訂單 GET /openApi/swap/v1/market/historicalTrades\"},{\"type\":\"html\",\"text\":\"永续:查詢資金費率歷史支持symbol非必填,response新增標記價格\"},{\"type\":\"html\",\"text\":\"永续:新增WS DataType-深度信息可選推送間隔\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-01-10.json\n// module id = KYMz\n// module chunks = 3","var map = {\n\t\".\": \"CSFx\",\n\t\"./\": \"CSFx\",\n\t\"./01_get_contract_allPosition\": \"ttu5\",\n\t\"./01_get_contract_allPosition.json\": \"ttu5\",\n\t\"./02_get_contract_allOrders\": \"RhU9\",\n\t\"./02_get_contract_allOrders.json\": \"RhU9\",\n\t\"./03_get_contract_balance\": \"n0S/\",\n\t\"./03_get_contract_balance.json\": \"n0S/\",\n\t\"./index\": \"CSFx\",\n\t\"./index.js\": \"CSFx\"\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 = \"Ke1b\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/api/trade ^.*$\n// module id = Ke1b\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/agent/api/agent/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"創建子賬戶\"},{\"type\":\"normal\",\"text\":\"創建子賬戶\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":10000,\"subAccountString\":\"abc123456\"},\"response\":{\"code\":0,\"timestamp\":1702288510557,\"data\":{\"subUid\":\"16777654\",\"subAccountString\":\"abc123456\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subAccountString\",\"type\":\"string\",\"required\":\"是\",\"description\":\"子帳戶用戶名(以字母開頭,帶有數字,長度超過6位)\"},{\"name\":\"note\",\"type\":\"string\",\"required\":\"否\",\"description\":\"備註\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子賬戶uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"description\":\"子賬戶用戶名\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"子賬戶備註信息\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/01_create_sub_accuont.json\n// module id = Kq29\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to Best Bid and Ask\"},{\"type\":\"normal\",\"text\":\"Subscribe to Best Bid and Ask\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"Data type is @bookTicker, e.g., BTC-USD@bookTicker\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@bookTicker\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair symbol must contain a hyphen \\\"-\\\", e.g., BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@bookTicker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Best bid and ask information\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"Trading pair name\"},{\"name\":\"e\",\"type\":\"bookTicker\",\"description\":\"Event type\"},{\"name\":\"T\",\"type\":1717665274199,\"description\":\"Latest transaction timestamp\"},{\"name\":\"p\",\"type\":\"71093.6\",\"description\":\"Latest transaction price\"},{\"name\":\"u\",\"type\":\"20345288\",\"description\":\"Transaction ID\"},{\"name\":\"E\",\"type\":\"1717665274907\",\"description\":\"Depth (best bid and ask) update time\"},{\"name\":\"b\",\"type\":\"71093.1\",\"description\":\"Best bid price\"},{\"name\":\"B\",\"type\":\"2872\",\"description\":\"Number of contracts at best bid price\"},{\"name\":\"a\",\"type\":\"71096.1\",\"description\":\"Best ask price\"},{\"name\":\"A\",\"type\":\"336\",\"description\":\"Number of contracts at best ask price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/05_bookTicker.json\n// module id = KrjX\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/account/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-22\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續websocket:倉位新增已實現盈虧cr字段\"},{\"type\":\"html\",\"text\":\"現貨行情接口:/openApi/spot/v1/common/symbols新增:offTime、maintainTime字段。\"},{\"type\":\"html\",\"text\":\"永續行情接口:/openApi/swap/v2/quote/contracts新增:brokerState字段\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-08-22.json\n// module id = L5DY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"24hr Ticker Price Change Statistics\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"SFP-USDT\",\"timestamp\":\"1702719836770\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"SFP-USDT\",\"priceChange\":\"0.0295\",\"priceChangePercent\":\"4.15\",\"lastPrice\":\"0.7409\",\"lastQty\":\"10\",\"highPrice\":\"0.7506\",\"lowPrice\":\"0.6903\",\"volume\":\"4308212\",\"quoteVolume\":\"3085449.53\",\"openPrice\":\"0.7114\",\"openTime\":1702719833853,\"closeTime\":1702719798603,\"askPrice\":\"0.7414\",\"askQty\":\"99\",\"bidPrice\":\"0.7413\",\"bidQty\":\"84\"}}},\"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\":\"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\":\"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\"},{\"name\":\"bidPrice\",\"type\":\"float64\",\"description\":\"bid price\"},{\"name\":\"bidQty\",\"type\":\"float64\",\"description\":\"bid quantity\"},{\"name\":\"askPrice\",\"type\":\"float64\",\"description\":\"ask price\"},{\"name\":\"askQty\",\"type\":\"float64\",\"description\":\"ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/09_get_quote_ ticker.json\n// module id = LWb5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"設置倉位模式\"},{\"type\":\"normal\",\"text\":\"設置倉位模式\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\",\"marginType\":\"ISOLATED\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"保證金模式, 例如: ISOLATED,CROSSED\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/16_post_margin_type.json\n// module id = LawJ\n// module chunks = 3","var map = {\n\t\"./01_get_user_balance.json\": \"W4Cx\",\n\t\"./02_get_user_positions.json\": \"mp7j\",\n\t\"./03_get_user_income.json\": \"h0vl\",\n\t\"./18_get_trade_income_export.json\": \"/Pe4\",\n\t\"./19_get_trade_user_commissionRate.json\": \"v5LS\"\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 = \"LbRj\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account \\.json$\n// module id = LbRj\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/zh-tw/spot/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/1_introduce.json\n// module id = Le/y\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-09-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Coin-M: Get K-line Data interface, add a note stating that only data from the last 30 days can be queried.\"},{\"type\":\"html\",\"text\":\"new: agent api\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-09-11.json\n// module id = Lezn\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/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"delete Listen Key\"},{\"type\":\"normal\",\"text\":\"delete User data flow.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE https://open-api.bingx.com/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\":\"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\":\"https://open-api.bingx.com/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"DELETE\",\"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/03_delete_listenKey.json\n// module id = LvyQ\n// module chunks = 3","\nconst python = `\nimport time\nimport requests\nimport hmac\nimport json\nfrom hashlib import sha256\n\nAPIURL = \"PPRROOTTOOCCOOLL://HHOOSSTT\"\nAPIKEY = \"\"\nSECRETKEY = \"\"\nTIMESTAMP=str(int(time.time() * 1000))\ndef demo():\n path = 'AAPPII'\n method = \"MMEETTHHOODD\"\n paramsMap = PPAAYYLLOOAADD\n paramsMap[\"timestamp\"]=TIMESTAMP\n paramsStr = praseParam(paramsMap)\n return send_request(method, path, paramsStr, paramsMap)\n\ndef get_sign(api_secret, payload):\n signature = hmac.new(api_secret.encode(\"utf-8\"), payload.encode(\"utf-8\"), digestmod=sha256).hexdigest()\n return signature\ndef send_request(method, path, urlPa, payload):\n sign=get_sign(SECRETKEY, urlPa)\n print(\"urlPa:\",urlPa)\n print(\"sign:\",sign)\n payload['signature']=sign\n url = \"%s%s\" % (APIURL, path)\n print(url)\n headers = {\n 'X-BX-APIKEY': APIKEY,\n 'Content-Type': \"application/json\",\n }\n print(payload)\n response = requests.request(method, url, headers=headers, data=json.dumps(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 paramsStr = paramsStr.replace(\" \", \"\")\n paramsStr = paramsStr.replace(\"'\", '\"')\n return paramsStr\n\n\nif __name__ == '__main__':\n print( demo())`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeJson/python.js","var map = {\n\t\"./03_get_deposit_hisrec.json\": \"dXH3\",\n\t\"./04_get_withdraw_history.json\": \"kh23\",\n\t\"./05_post_wallets_coins.json\": \"zgmp\",\n\t\"./06_post_wallets_withdraw.json\": \"YSKw\",\n\t\"./13.get_wallet_queryDepositAddress.json\": \"rgh9\",\n\t\"./14_get_risk_deposit_records.json\": \"CxZu\"\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 = \"M2/h\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet \\.json$\n// module id = M2/h\n// module chunks = 3","var map = {\n\t\".\": \"oZzG\",\n\t\"./\": \"oZzG\",\n\t\"./01_get_Query_Invited_Users\": \"zsZ4\",\n\t\"./01_get_Query_Invited_Users.json\": \"zsZ4\",\n\t\"./02_get_Daily_Commission_Query\": \"Gwkw\",\n\t\"./02_get_Daily_Commission_Query.json\": \"Gwkw\",\n\t\"./03_get_Query_agent_user_nformation\": \"P9RC\",\n\t\"./03_get_Query_agent_user_nformation.json\": \"P9RC\",\n\t\"./04_get_Query_the_deposit_details\": \"7XUQ\",\n\t\"./04_get_Query_the_deposit_details.json\": \"7XUQ\",\n\t\"./05_get_Query_API_transaction_commission\": \"IoyB\",\n\t\"./05_get_Query_API_transaction_commission.json\": \"IoyB\",\n\t\"./06_get_Query_partner_information\": \"8au9\",\n\t\"./06_get_Query_partner_information.json\": \"8au9\",\n\t\"./index\": \"oZzG\",\n\t\"./index.js\": \"oZzG\"\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 = \"M3Xy\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent ^.*$\n// module id = M3Xy\n// module chunks = 3","var map = {\n\t\".\": \"qM4I\",\n\t\"./\": \"qM4I\",\n\t\"./01_server_url\": \"FVkd\",\n\t\"./01_server_url.json\": \"FVkd\",\n\t\"./03_error_code\": \"uv3h\",\n\t\"./03_error_code.json\": \"uv3h\",\n\t\"./04_rate_limits\": \"XvOK\",\n\t\"./04_rate_limits.json\": \"XvOK\",\n\t\"./04_server_url\": \"w7yn\",\n\t\"./04_server_url.json\": \"w7yn\",\n\t\"./index\": \"qM4I\",\n\t\"./index.js\": \"qM4I\"\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 = \"M4z4\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic ^.*$\n// module id = M4z4\n// module chunks = 3","module.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\":\"warning\",\"text\":\"Each time a connection is successfully established, a full data push will occur once, followed by another full push every 5 seconds.\"},{\"type\":\"warning\",\"text\":\"Account data no longer need to subscribe to channel type,after connect wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account/04_setting.json\n// module id = M7Po\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Old Trade Lookup\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/market/his/v1/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720325973,\"data\":[{\"tid\":\"170891918044290305561\",\"t\":1708919180442,\"ms\":2,\"s\":\"BTC-USDT\",\"p\":51496.35,\"v\":0.00063},{\"tid\":\"170891917959890305560\",\"t\":1708919179598,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51495.89,\"v\":0.00188},{\"tid\":\"170891917942490305559\",\"t\":1708919179424,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51496.159,\"v\":0.00075},{\"tid\":\"170891917907790305558\",\"t\":1708919179077,\"ms\":2,\"s\":\"BTC-USDT\",\"p\":51496.13,\"v\":0.01044},{\"tid\":\"170891917896690305557\",\"t\":1708919178966,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51496,\"v\":0.00129}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Default 100, maximum 500\"},{\"name\":\"fromId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"The last recorded tid\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"long\",\"description\":\"Trade id\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Price\"},{\"name\":\"qty\",\"type\":\"float64\",\"description\":\"Quantity\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"Time\"},{\"name\":\"buyerMaker\",\"type\":\"boolean\",\"description\":\"Buyer maker\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/10_get_ market_histroy_traders.json\n// module id = MGWO\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query an OCO Order List\"},{\"type\":\"normal\",\"text\":\"Query the OCO order list\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/orderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"clientOrderId\":\"12345610027\",\"orderListId\":\"1827968196914479104\",\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460545\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\"},{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460544\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderListId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"OCO order group ID. Either `orderListId` or `clientOrderId` must be filled in.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"User-defined OCO order group ID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"Order time\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"User-defined order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit: OCO limit order, ocoTps: OCO stop-limit order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Order type, BUY for buy, SELL for sell\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Order price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO order group ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/102_get_one_oco_order.json\n// module id = MN46\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query the API Key of a sub-account\"},{\"type\":\"normal\",\"text\":\"Query apikey information\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/apiKey/query\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":16789999},\"response\":{\"code\":0,\"timestamp\":1702351994615,\"data\":{\"apiInfos\":[{\"apiKey\":\"zF*******zQ\",\"note\":\"note****\",\"permissions\":[1,2,3,4,7],\"ipAddresses\":[\"\"],\"status\":0,\"createTime\":1702289687211,\"updateTime\":1702289687000}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"User uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"no\",\"description\":\"\"},{\"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\":\"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\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/06_get_api_key_info.json\n// module id = MQqI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"增量全量深度信息\"},{\"type\":\"normal\",\"text\":\"每500ms推送變動的1000檔的增量深度信息。\"},{\"type\":\"normal\",\"text\":\"客戶端如何在本地維護一個增量深度\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"1、訂閱成功後會返回action字段值為all的全量深度,同時會返回一個lastUpdateId用於處理後續增量深度的連續性,Websocket接收到全量深度後需要在記憶體中進行快取以上全量深度;\"},{\"type\":\"normal\",\"text\":\"2、後續深度的變動會返回增量深度,其中action字段為update,且第N個增量深度的lastUpdateId的取值是N-1個深度的lastUpdateId+1。\"},{\"type\":\"normal\",\"text\":\"3、同時極少情況下如果lastUpdateId不連續,可以選擇重連或者建議快取最近3個增量深度,然後嘗試從快取中讀取連續的lastUpdateId進行拼接,(因為可能由於多線程或者網路路由的問題,數據未保證強順序性。)\"},{\"type\":\"normal\",\"text\":\"4、然後遍歷收到的增量深度並逐一和當前深度進行比較,建議盡可能考慮線程安全的設計和編碼方式(後續可能加快推送頻率),數據結構可以考慮類似有序的Map結構例如TreeMap:\"},{\"type\":\"normal\",\"text\":\"(1)如果價格檔位在當前深度中不存在,則說明應該新增該檔位;(增)\"},{\"type\":\"normal\",\"text\":\"(2)如果價格對應的數量為0,說明應該從現有的深度中刪除該價格檔位;(刪)\"},{\"type\":\"normal\",\"text\":\"(3)如果價格對應的數量和當前不相等,則替換為增量返回的數量;(改)\"},{\"type\":\"normal\",\"text\":\"(4)遍歷完後獲得最新深度,更新深度快取,記得同時更新lastUpdateId。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @incrDepth,比如BTC-USDT@incrDepth\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},\"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@incrDepth\"},{\"name\":\"action\",\"type\":\"\",\"description\":\"深度類型:all-全量, update-增量\"},{\"name\":\"lastUpdateId\",\"type\":\"\",\"description\":\"變動id,該值會連續地遞增的long型整數,用於描述返回的增量深度之間的前後連續關係\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"變動的賣單深度(價格:數量)\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"變動的買單深度(價格:數量)\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/07_depth_incr_info.json\n// module id = MY8u\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"下單\"},{\"type\":\"desc\",\"text\":\"可用於在現貨下單\",\"desc\":[{\"type\":\"normal\",\"text\":\"註意\",\"children\":[{\"type\":\"normal\",\"text\":\"限價單必須傳price參數。\"},{\"type\":\"normal\",\"text\":\"限價單必須傳quantity或quoteOrderQty其中一個,當两個參數同時傳遞時,服務端優先使用參數quantity。\"},{\"type\":\"normal\",\"text\":\"市價買單必須傳quoteOrderQty參數。\"},{\"type\":\"normal\",\"text\":\"市價賣單必須傳quantity參數。\"}]},{\"type\":\"warning\",\"text\":\"如果需要計算最大最小下單幣對數量可使用公式:U (最小/最大下單金額) / (限價單輸入Limit price or 市價單Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"查詢價格可參考:GET /openApi/spot/v1/ticker/24hr\"},{\"type\":\"html\",\"text\":\"最小最大下單金額可參考:GET /openApi/spot/v1/common/symbols\"}]},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/spot/trading-rules/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/spot/v1/common/symbols\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]},{\"type\":\"html\",\"text\":\"

    訂單類型

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

    MARKET:市價
    LIMIT:限價
    TAKE_ STOP_ LIMIT:限價止盈止損單
    TAKE_ STOP_ MARKET:市價止盈止損單
    TRIGGER_ LIMIT:限價計畫委託
    TRIGGER_ MARKET:市價計畫委託

    \"},{\"type\":\"normal\",\"text\":\"如果現貨帶單交易員並且打開了帶單功能\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"下單頻率只能1/s,超過會被限頻\"},{\"type\":\"html\",\"text\":\"買入可以通過本接口買入:POST /openApi/spot/v1/trade/order\"},{\"type\":\"html\",\"text\":\"賣出需要另外一個特殊的接口賣出:最小最大下單金額可參考:POST /openApi/copyTrading/v1/spot/trader/sellOrder\"}]}]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"title\":\"MARKET\",\"desc\":\"以市場價格下訂單\",\"payload\":{\"type\":\"MARKET\",\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_STOP_MARKET\",\"desc\":\"市價止盈止損單\",\"payload\":{\"type\":\"TAKE_STOP_MARKET\",\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_STOP_LIMIT\",\"desc\":\"限價止盈止損單\",\"payload\":{\"type\":\"TAKE_STOP_LIMIT\",\"price\":60000,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUYE\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_LIMIT\",\"desc\":\"計劃委託單限價單\",\"payload\":{\"type\":\"TRIGGER_LIMIT\",\"price\":60000,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_MARKET\",\"desc\":\"計劃委託市價單\",\"payload\":{\"type\":\"TRIGGER_MARKET\",\"stopPrice\":60000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quoteOrderQty\":0.002,\"positionSide\":\"LONG\",\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}}],\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"NEMS-USDT\",\"orderId\":1735963671248581000,\"transactTime\":1702720966528,\"price\":\"0.1557\",\"origQty\":\"115\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"SELL\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":100202,\"msg\":\"Insufficient assets, please verify the assets status\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" traders prohibit openApi from placing orders\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100414,\"msg\":\"Your account is under risk control or without KYC, it's not allowed to place spot order via api,currently,please contact customer service\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\" check limit entrust value fail, entrust volume too low, userID: ***, minVolume:69.93, entrustVolume: 54.02\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\" check param fail:entrust volume and value is 0.0\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100414,\"msg\":\" risk control check fail, code(1), reason()\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100490,\"msg\":\" spot symbol is offline\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100500,\"msg\":\"order open error:The current system is busy, please try again later, and the previous cancel order request result:false, order not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100440,\"msg\":\" check price diverge fail, entrustPrice to high, userID: ***,entrustPrice:0.4950, indexPrice:0.0910,tradePrice: 0.0910, maxEntrustPriceDiverge:0.4550, minEntrustPriceDiverge:0.0182,minDivergeRatio:0.2000000000,maxDivergeRatio:5.0000000000\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\"price can't be lte 0 in limit order\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\"The symbol you request is not available to place order currently, please verify symbol's status by api:/openApi/spot/v1/common/symbols\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" CheckUserAndSymbol: contract not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" cancel fail, order not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\"the order you want to cancel is FILLED or CANCELLED already, or is not a valid order id ,please verify\",\"debugMsg\":\"\"}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"觸發價格,用於TAKE_ STOP_ LIMIT, TAKE_ STOP_ MARKET,TRIGGER_ LIMIT,TRIGGER_ MARKET類型的訂單。\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量, 例如: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單金額, 例如: 100USDT,如果quantity 和 quoteOrderQty 同時輸入,優先使用quantity,quoteOrderQty會被丟棄\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格, 例如: 10000USDT\"},{\"name\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"只能字母、數字和_,用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的newClientOrderId\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC,不填寫則默認GTC\"},{\"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\":\"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/01_post_trade_aorder.json\n// module id = MZay\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢賬戶uid\"},{\"type\":\"normal\",\"text\":\"查詢賬戶uid\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/uid\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"timestamp\":1702558965648,\"data\":{\"uid\":16844999}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"用戶uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/02_post_fetch_uid.json\n// module id = MZqr\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USDT Websocket Service: 'Order update push' add 'ro' field('reduceOnly' field).\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-11.json\n// module id = McI3\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-07-29\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"USDT本位永續合約V2下單接口支持限價止盈TAKE_PROFIT/限價止損STOP訂單類型\"},{\"type\":\"normal\",\"text\":\"USDT本位永續合約V2/現貨下單與查詢相關接口支持自定義clientOrderId\"},{\"type\":\"normal\",\"text\":\"現貨支持批量下單\"},{\"type\":\"normal\",\"text\":\"提供現貨Kline接口\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-07-29.json\n// module id = MfXY\n// module chunks = 3","var map = {\n\t\".\": \"S9BK\",\n\t\"./\": \"S9BK\",\n\t\"./01_create_sub_accuont\": \"+6hF\",\n\t\"./01_create_sub_accuont.json\": \"+6hF\",\n\t\"./02_get_account_apiPermission\": \"vPcu\",\n\t\"./02_get_account_apiPermission.json\": \"vPcu\",\n\t\"./02_post_fetch_uid\": \"xx9R\",\n\t\"./02_post_fetch_uid.json\": \"xx9R\",\n\t\"./03_post_fetch_sub_account_list\": \"uuPR\",\n\t\"./03_post_fetch_sub_account_list.json\": \"uuPR\",\n\t\"./04_get_sub_account_spot_balance\": \"PVSb\",\n\t\"./04_get_sub_account_spot_balance.json\": \"PVSb\",\n\t\"./05_create_sub_accuont_key\": \"eSSt\",\n\t\"./05_create_sub_accuont_key.json\": \"eSSt\",\n\t\"./06_get_api_key_info\": \"MQqI\",\n\t\"./06_get_api_key_info.json\": \"MQqI\",\n\t\"./07_post_edit_apikey\": \"Jwag\",\n\t\"./07_post_edit_apikey.json\": \"Jwag\",\n\t\"./08_delete_sub_account_key\": \"J2bY\",\n\t\"./08_delete_sub_account_key.json\": \"J2bY\",\n\t\"./09_update_sub_account_status\": \"nHln\",\n\t\"./09_update_sub_account_status.json\": \"nHln\",\n\t\"./10.post_wallet_authorize_innerTransfer\": \"HQ8m\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"HQ8m\",\n\t\"./11.post_wallet_subInnerTransfer\": \"+W0b\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"+W0b\",\n\t\"./11_post_capital_innerTransfer_apply\": \"4v69\",\n\t\"./11_post_capital_innerTransfer_apply.json\": \"4v69\",\n\t\"./12.post_wallet_createSubDepositAddress\": \"33ms\",\n\t\"./12.post_wallet_createSubDepositAddress.json\": \"33ms\",\n\t\"./15.get_wallet_querySubDepositAddress\": \"zfQA\",\n\t\"./15.get_wallet_querySubDepositAddress.json\": \"zfQA\",\n\t\"./16.get_wallet_querySubDepositRecords\": \"cjvr\",\n\t\"./16.get_wallet_querySubDepositRecords.json\": \"cjvr\",\n\t\"./17.get_wallet_querySubInnerTransferRecords\": \"FRId\",\n\t\"./17.get_wallet_querySubInnerTransferRecords.json\": \"FRId\",\n\t\"./18.query_sub_account_transfer_history\": \"Jxen\",\n\t\"./18.query_sub_account_transfer_history.json\": \"Jxen\",\n\t\"./19.sub_account_transfer_support_coin\": \"A6qi\",\n\t\"./19.sub_account_transfer_support_coin.json\": \"A6qi\",\n\t\"./20.sub_account_transfer\": \"6Epj\",\n\t\"./20.sub_account_transfer.json\": \"6Epj\",\n\t\"./22_sub_account_allAccountBalance\": \"aaNH\",\n\t\"./22_sub_account_allAccountBalance.json\": \"aaNH\",\n\t\"./index\": \"S9BK\",\n\t\"./index.js\": \"S9BK\"\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 = \"MvUe\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount ^.*$\n// module id = MvUe\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\":\"warning\",\"text\":\"The cancellation api is limited to one second and can only cancel the same orderId or clientOrderID. Please do not resubmit\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/cancelOrder\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderId\":\"1736011869418901234\",\"symbol\":\"BTC-USD\",\"timestamp\":\"1702732515704\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1736011869418901200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"3\",\"price\":\"4.5081\",\"executedQty\":\"0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702732457867,\"updateTime\":1702732457888,\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}}}},\"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-USD\"},{\"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-USD\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"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/cswap/api/trade/10_delete_trade_order.json\n// module id = Mwlf\n// module chunks = 3","var map = {\n\t\".\": \"V/PH\",\n\t\"./\": \"V/PH\",\n\t\"./01_error_code\": \"Py8D\",\n\t\"./01_error_code.json\": \"Py8D\",\n\t\"./02_timestamp\": \"Ui1f\",\n\t\"./02_timestamp.json\": \"Ui1f\",\n\t\"./03_digital_rule\": \"OGaA\",\n\t\"./03_digital_rule.json\": \"OGaA\",\n\t\"./04_rate_limits\": \"dz5L\",\n\t\"./04_rate_limits.json\": \"dz5L\",\n\t\"./05_system_time\": \"TbUJ\",\n\t\"./05_system_time.json\": \"TbUJ\",\n\t\"./index\": \"V/PH\",\n\t\"./index.js\": \"V/PH\",\n\t\"./index_share_to_v1\": \"qxfP\",\n\t\"./index_share_to_v1.js\": \"qxfP\"\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 = \"Mz5m\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic ^.*$\n// module id = Mz5m\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整開倉槓桿\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\",\"side\":\"LONG\",\"leverage\":\"4\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718354677397,\"data\":{\"symbol\":\"BTC-USD\",\"longLeverage\":4,\"shortLeverage\":8,\"maxLongLeverage\":150,\"maxShortLeverage\":150,\"availableLongVol\":\"15000000\",\"availableShortVol\":\"15000000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"雙向持倉模式下,多倉或者空倉的槓桿,LONG表示多倉,SHORT表示空倉\"},{\"name\":\"leverage\",\"type\":\"string\",\"required\":\"是\",\"description\":\"槓桿倍數\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"多倉槓桿倍數\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"空倉槓桿倍數\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"最大多倉槓桿倍數\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"最大空倉槓桿倍數\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"可開多數量\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"可開空數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/03_post_leverage.json\n// module id = N7P3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query agent user information\"},{\"type\":\"normal\",\"text\":\"The agent KOL can use this api to query whether the corresponding UID is an invited user under his or her name.\"},{\"type\":\"html\",\"text\":\"
  • The signature verification user must be a parent user and have an agent role; 2. It supports querying whether the UID is a user directly or indirectly invited by the signature verification user.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"uid\":2489544,\"existInviter\":\"true\",\"inviteResult\":true,\"registerDateTime\":1656208955000,\"directInvitation\":false,\"superiorsUid\":2293934,\"deposit\":true,\"kycResult\":\"false\",\"trade\":true,\"userLevel\":2,\"commissionRatio\":20,\"currentBenefit\":0,\"benefitRatio\":0,\"benefitExpiration\":0}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"YES\",\"description\":\"Invited User UID\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"Invited User UID\"},{\"name\":\"existInviter\",\"type\":\"string\",\"description\":\"true :There is an inviter ,false:There is no inviter\"},{\"name\":\"inviteResult\",\"type\":\"boolean\",\"description\":\"true: invitation relationship,false: non-invitation relationship\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true: Direct invitation, false: Indirect invitation\"},{\"name\":\"inviterSid\",\"type\":\"long\",\"description\":\"superiors Uid\"},{\"name\":\"registerTime\",\"type\":\"long\",\"description\":\"Registration timestamp, unit: milliseconds\"},{\"name\":\"deposit\",\"type\":\"boolean\",\"description\":\"true :Deposited, false :Not deposited\"},{\"name\":\"kycResult\",\"type\":\"string\",\"description\":\"true : KYC,false:no KYC\"},{\"name\":\"balanceVolume\",\"type\":\"string\",\"description\":\"net assets(USDT)\"},{\"name\":\"trade\",\"type\":\"boolean\",\"description\":\"true: Traded, false: Not traded, excluding trades made with trial funds or additional funds\"},{\"name\":\"userLevel\",\"type\":\"int\",\"description\":\"Customer level\"},{\"name\":\"commissionRatio\",\"type\":\"int\",\"description\":\"Commission percentage, unit: %\"},{\"name\":\"currentBenefit \",\"type\":\"int\",\"description\":\"Current welfare method: 0 - No welfare, 1 - Fee cashback, 2 - Perpetual fee discount\"},{\"name\":\"benefitRatio\",\"type\":\"int\",\"description\":\"Transaction fee reduction percentage, unit: %\"},{\"name\":\"benefitExpiration\",\"type\":\"long\",\"description\":\"Welfare expiration timestamp, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/03_get_Query_agent_user_nformation.json\n// module id = N9hH\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"dF/+\",\n\t\"./02_last_price.json\": \"GtO6\",\n\t\"./03_mark_price.json\": \"BwZb\",\n\t\"./04_depth.json\": \"fcau\",\n\t\"./05_bookTicker.json\": \"KrjX\",\n\t\"./06_kline.json\": \"sLxw\",\n\t\"./07_24hr_ticker.json\": \"ywsQ\"\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 = \"NCXQ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market \\.json$\n// module id = NCXQ\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-02-04\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:查詢最新價格\"},{\"type\":\"html\",\"text\":\"永續新增接口:撤銷掛單後再下單\"},{\"type\":\"html\",\"text\":\"永續新增接口:批量撤销订单再下单\"},{\"type\":\"html\",\"text\":\"永續:新增WS DataType-最優掛單\"},{\"type\":\"html\",\"text\":\"現貨:新增接口,撤銷掛單後再下單\"},{\"type\":\"html\",\"text\":\"现货:新增HTTP接口,查詢聚合深度\"},{\"type\":\"html\",\"text\":\"现货:新增HTTP接口,最新成交價\"},{\"type\":\"html\",\"text\":\"现货:新增HTTP接口,最優掛單\"},{\"type\":\"html\",\"text\":\"现货:新增WS ticker-訂閱24小時價格變動\"},{\"type\":\"html\",\"text\":\"现货:新增WS lastPrice-訂閱最新成交價\"},{\"type\":\"html\",\"text\":\"现货:新增WS bookTicker-訂閱最優掛單\"},{\"type\":\"html\",\"text\":\"現貨:新增HTTP 歷史成交查詢\"},{\"type\":\"html\",\"text\":\"現貨:新增HTTP 歷史K線查詢\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-02-04.json\n// module id = NFKy\n// module chunks = 3","import Vue from 'vue'\nimport Vuex from 'vuex'\n\nimport { getLang, setLang } from '../utils/lang'\n\nVue.use(Vuex)\n\nconst store = new Vuex.Store({\n state: {\n lang: getLang(),\n },\n mutations: {\n changeLang (state, lang) {\n state.lang = lang\n setLang(lang)\n }\n },\n getters: {\n currentLang: state => state.lang\n }\n})\n\nexport default store\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/index.js","import { getRootConfigByLang } from '@/config/index'\nimport { getModules, updateAppConfigByLang } from '@/utils'\nimport store from '../store'\n\nconst Layout = () => import('@/components/Layout')\nconst Content = () => import('@/components/Content')\nconst NotFound = () => import('@/components/NotFound')\n\nconst lang = store.getters.currentLang\nconst modules = getModules('en-US')\nconst rootConfig = getRootConfigByLang(lang)\n\nupdateAppConfigByLang(lang)\n\nconst routes = [{\n path: '/',\n redirect: '/en-us/swapV2/changelog',\n}]\n\nmodules.forEach(module => {\n const config = rootConfig[module.name]\n const route = {\n path: module.path,\n component: Layout,\n redirect: `${module.path}/changelog`,\n meta: {\n module: module.name,\n }\n }\n \n const children = []\n if(Array.isArray(config)) {\n config.forEach(item => {\n const root = item.path\n if(Array.isArray(item.children)) {\n item.children.forEach(child => {\n children.push({\n path: `${root}/${child.path}`,\n component: Content,\n meta: {\n module: module.name,\n title: child.name,\n }\n })\n })\n } else {\n children.push({\n path: root,\n component: Content,\n meta: {\n module: module.name,\n title: item.name,\n }\n })\n }\n })\n route.children = children\n routes.push(route)\n }\n})\n\nroutes.push({\n path: '*',\n component: NotFound,\n})\n\nexport default routes\n\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","\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\":\"\",\"font-size\":\"0.9px\",\"text-color\":\"#999999\",\"active-text-color\":\"#292929\",\"default-active\":_vm.defaultActive}},[_vm._l((_vm.menus),function(item){return (_vm.langLabel == 'English')?_c('el-menu-item',{key:item.name,staticStyle:{\"font-size\":\"xx-small\"},attrs:{\"index\":item.path}},[_vm._v(\"\\n \"+_vm._s(item.label)+\"\\n \")]):_c('el-menu-item',{key:item.name + 1,attrs:{\"index\":item.path}},[_vm._v(\"\\n \"+_vm._s(item.label)+\"\\n \")])}),_vm._v(\" \"),(_vm.langLabel == '简体中文')?_c('el-menu-item',{key:\"LINK\",attrs:{\"index\":\"LINK\"}},[_c('a',{staticStyle:{\"color\":\"rgb(153, 153, 153)\",\"border-bottom-color\":\"transparent\",\"margin-right\":\"3%\"},attrs:{\"target\":\"_blank\",\"href\":\"https://bingx.com/zh-tw/act/template/5302/?randomId=1871286856\"}},[_vm._v(\"经纪商招募\")])]):(_vm.langLabel == '繁体中文')?_c('el-menu-item',{key:\"LINK3\",attrs:{\"index\":\"LINK\"}},[_c('a',{staticStyle:{\"color\":\"rgb(153, 153, 153)\",\"border-bottom-color\":\"transparent\",\"margin-right\":\"3%\"},attrs:{\"target\":\"_blank\",\"href\":\"https://bingx.com/zh-tw/act/template/5302/?randomId=1871286856\"}},[_vm._v(\"經紀商招募\")])]):_c('el-menu-item',{key:\"LINK2\",staticStyle:{\"font-size\":\"xx-small\"},attrs:{\"index\":\"LINK\"}},[_c('a',{staticStyle:{\"color\":\"rgb(153, 153, 153)\",\"border-bottom-color\":\"transparent\",\"margin-right\":\"3%\"},attrs:{\"target\":\"_blank\",\"href\":\"https://bingx.com/en-us/act/template/5302?randomId=1871286856\"}},[_vm._v(\"Broker\")])])],2),_vm._v(\" \"),_c('el-select',{staticClass:\"nav-header-search\",staticStyle:{\"width\":\"190px\"},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-4b94bbb6\",\"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-4b94bbb6\\\",\\\"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-4b94bbb6\\\",\\\"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-4b94bbb6\"\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-c857ed70\",\"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-c857ed70\\\",\\\"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\":\"TWAP Order Details\"},{\"type\":\"normal\",\"text\":\"Used to query the details of TWAP entrusted orders \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/orderDetail\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"mainOrderId\":\"12312435134\",\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"mainOrderId\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"TWAP commission order number\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request 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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP order number\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction; SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG or SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"Price limit type, constant: price interval, percentage: slippage\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order.\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"After the strategic order is split, the time interval for order placing is between 5-120s\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order. \"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions. \"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: New/Running: In operation/Canceling: Cancellation of order/Filled: Fully filled/PartiallyFilled: Partially filled/Pending: Not triggered/PartiallyFilledAndResidueFailed: Partially filled (remaining order failed), algorithm order status/PartiallyFilledAndResidueCancelled: Partially filled ( Remaining cancellation), algorithm order status/Cancelled: Canceled (no partial deal exists)/Failed: Order failed (no partial deal exists)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Volume\"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"Execution time, in seconds. The order will be canceled after the execution time expires. \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"Maximum execution time execution time, unit: seconds.\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"Order creation time, unit: milliseconds\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Order update time, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/31_get_twap_order_detail.json\n// module id = NQ2q\n// module chunks = 3","var map = {\n\t\".\": \"eRNY\",\n\t\"./\": \"eRNY\",\n\t\"./01_connect\": \"lyY+\",\n\t\"./01_connect.json\": \"lyY+\",\n\t\"./02_data_compress\": \"Q5Jp\",\n\t\"./02_data_compress.json\": \"Q5Jp\",\n\t\"./03_heart_beat\": \"IMXD\",\n\t\"./03_heart_beat.json\": \"IMXD\",\n\t\"./04_subscribe\": \"rEmz\",\n\t\"./04_subscribe.json\": \"rEmz\",\n\t\"./05_cancel_subscribe\": \"SBKE\",\n\t\"./05_cancel_subscribe.json\": \"SBKE\",\n\t\"./index\": \"eRNY\",\n\t\"./index.js\": \"eRNY\"\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 = \"NXdJ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/introduce ^.*$\n// module id = NXdJ\n// module chunks = 3","var map = {\n\t\".\": \"/iLc\",\n\t\"./\": \"/iLc\",\n\t\"./01_trade_info\": \"dF/+\",\n\t\"./01_trade_info.json\": \"dF/+\",\n\t\"./02_last_price\": \"GtO6\",\n\t\"./02_last_price.json\": \"GtO6\",\n\t\"./03_mark_price\": \"BwZb\",\n\t\"./03_mark_price.json\": \"BwZb\",\n\t\"./04_depth\": \"fcau\",\n\t\"./04_depth.json\": \"fcau\",\n\t\"./05_bookTicker\": \"KrjX\",\n\t\"./05_bookTicker.json\": \"KrjX\",\n\t\"./06_kline\": \"sLxw\",\n\t\"./06_kline.json\": \"sLxw\",\n\t\"./07_24hr_ticker\": \"ywsQ\",\n\t\"./07_24hr_ticker.json\": \"ywsQ\",\n\t\"./index\": \"/iLc\",\n\t\"./index.js\": \"/iLc\"\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 = \"NZzt\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market ^.*$\n// module id = NZzt\n// module chunks = 3","module.exports = {\"module\":\"agent\",\"path\":\"/zh-tw/agent/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/1_introduce.json\n// module id = Nfjq\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-02-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續調整接口:調整槓桿接口的side字段支持BOTH值。\"},{\"type\":\"html\",\"text\":\"永續調整接口:下單&批量下單接口中的stopLoss和takeProfit字段不支持傳入quantity字段。\"},{\"type\":\"html\",\"text\":\"永續調整接口:下單&批量下單接口新增closePosition字段。\"},{\"type\":\"html\",\"text\":\"永續調整接口:下單&批量下單接口新增activationPrice字段。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-02-23.json\n// module id = NuRj\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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BCH-USDT\",\"timestamp\":\"1702733572940\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"longLeverage\":50,\"shortLeverage\":50,\"maxLongLeverage\":75,\"maxShortLeverage\":75}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"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 position Leverage\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"Max Long position leverage\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"Max Short position Leverage\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"Available Long Volume\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"Available Short Volume\"},{\"name\":\"availableLongVal\",\"type\":\"string\",\"description\":\"Available Long Value\"},{\"name\":\"availableShortVal\",\"type\":\"string\",\"description\":\"Available Short Value\"},{\"name\":\"maxPositionLongVal\",\"type\":\"string\",\"description\":\"Maximum Position Long Value\"},{\"name\":\"maxPositionShortVal\",\"type\":\"string\",\"description\":\"Maximum Position Short Value\"}]}]}]\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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOpenOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"ATOM-USDT\",\"timestamp\":\"1702732849363\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[{\"symbol\":\"ATOM-USDT\",\"orderId\":1736013373487123500,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"3.00\",\"price\":\"13.044\",\"executedQty\":\"0.00\",\"avgPrice\":\"0.000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0\",\"commission\":\"0\",\"status\":\"CANCELLED\",\"time\":1702732816465,\"updateTime\":1702732816488,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"},{\"symbol\":\"ATOM-USDT\",\"orderId\":1736013373487123500,\"side\":\"BUY\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"3.00\",\"price\":\"11.292\",\"executedQty\":\"0.00\",\"avgPrice\":\"0.000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0\",\"commission\":\"0\",\"status\":\"CANCELLED\",\"time\":1702732816820,\"updateTime\":1702732816839,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}],\"failed\":[{\"orderId\":111111,\"clientOrderId\":\"111111\",\"errorCode\":80012,\"errorMessage\":\"cancel order failed\"},{\"orderId\":222222,\"clientOrderId\":\"222222\",\"errorCode\":80012,\"errorMessage\":\"cancel order failed\"}]}}},\"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\":\"LIST\",\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"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\":\"FailOrder\",\"key\":\"failedOrder\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單號\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"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\".\": \"+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","var map = {\n\t\"./01_error_code.json\": \"Py8D\",\n\t\"./02_timestamp.json\": \"Ui1f\",\n\t\"./03_digital_rule.json\": \"OGaA\",\n\t\"./04_rate_limits.json\": \"dz5L\",\n\t\"./05_system_time.json\": \"TbUJ\"\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 = \"OGFu\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic \\.json$\n// module id = OGFu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Numbers\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"Decimal numbers are returned as \\\"Strings\\\" in order to preserve full precision. It is recommended that the numbers are converted to \\\"Strings\\\" to avoid truncation and precision loss.\"},{\"type\":\"html\",\"text\":\"Integer numbers (such as trade ID and sequences) are unquoted.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic/03_digital_rule.json\n// module id = OGaA\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-07-22\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"USDT-M Perp Futures: The ClientOrderId field in the request will be automatically converted to lowercase by the system.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-07-22.json\n// module id = OOYK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新成交價\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/ticker/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702718923479\",\"symbol\":\"TIA-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"TIA-USDT\",\"price\":\"14.0658\",\"time\":1702718922941}}},\"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\":\"price\",\"type\":\"string\",\"description\":\"價格\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"撮合引擎時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/22_get_quote_price_v2.json\n// module id = OSRE\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-07-30\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"USDT-M Perp Futures: All market data APIs and websocket DataTypes support USDC contracts.\"},{\"type\":\"html\",\"text\":\"NEW : /openApi/swap/v3/user/balance return both USDT and USDC\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-07-30.json\n// module id = OTiI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Symbol Order Book Ticker\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Used to query the best order book
  • \"},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\"},\"response\":{\"code\":0,\"timestamp\":1707147866795,\"data\":[{\"eventType\":\"bookTicker\",\"time\":1707147866623,\"symbol\":\"BTC-USDT\",\"bidPrice\":\"42738.64\",\"bidVolume\":\"5.19530\",\"askPrice\":\"42739.50\",\"askVolume\":\"5.72867\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, such as: BTC_USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"eventType\",\"type\":\"string\",\"description\":\"Data type\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, such as: BTC_USDT\"},{\"name\":\"bidPrice\",\"type\":\"string\",\"description\":\"Best bid price\"},{\"name\":\"bidVolume\",\"type\":\"string\",\"description\":\"Best bid volume\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"Best ask price\"},{\"name\":\"askVolume\",\"type\":\"string\",\"description\":\"Best ask volume\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/08_get_market_book_ticker.json\n// module id = OdvA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢交易手续费率\"},{\"type\":\"normal\",\"text\":\"用於查詢使用者目前現貨交易的手續費率。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702720966321\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"takerCommissionRate\":0.000325,\"makerCommissionRate\":0.0001}}},\"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\":\"takerCommissionRate\",\"type\":\"float64\",\"description\":\"吃單手續費\"},{\"name\":\"makerCommissionRate\",\"type\":\"float64\",\"description\":\"掛單手續費\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/08_get_commissionRate.json\n// module id = OkZ/\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Position and Maintenance Margin Ratio\"},{\"type\":\"normal\",\"text\":\"Get information on Position and Maintenance Margin Ratio\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/maintMarginRatio\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[{\"tier\":\"Tier 1\",\"symbol\":\"BTC-USDT\",\"minPositionVal\":\"0\",\"maxPositionVal\":\"150000\",\"maintMarginRatio\":\"0.003800\",\"maintAmount\":\"0.000000\"},{\"tier\":\"Tier 2\",\"symbol\":\"BTC-USDT\",\"minPositionVal\":\"150000\",\"maxPositionVal\":\"900000\",\"maintMarginRatio\":\"0.004000\",\"maintAmount\":\"30.000000\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tier\",\"type\":\"string\",\"description\":\"Layer\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"minPositionVal\",\"type\":\"string\",\"description\":\"Minimum position value\"},{\"name\":\"maxPositionVal\",\"type\":\"string\",\"description\":\"Maximum position value\"},{\"name\":\"maintMarginRatio\",\"type\":\"string\",\"description\":\"Maintenance margin ratio\"},{\"name\":\"maintAmount\",\"type\":\"string\",\"description\":\"Maintenance margin quick calculation amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/24_get_maint_margin_ratio.json\n// module id = OkoV\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-16\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USD-M WebSocket Service: Added 'Incremental Depth Push' feature\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-16.json\n// module id = OleB\n// module chunks = 3","var map = {\n\t\"./01_create_sub_accuont.json\": \"Kq29\",\n\t\"./02_get_account_apiPermission.json\": \"m+RL\",\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\t\"./11_post_capital_innerTransfer_apply.json\": \"S1Mk\",\n\t\"./12.post_wallet_createSubDepositAddress.json\": \"mmsx\",\n\t\"./15.get_wallet_querySubDepositAddress.json\": \"mcEH\",\n\t\"./16.get_wallet_querySubDepositRecords.json\": \"Iuwz\",\n\t\"./17.get_wallet_querySubInnerTransferRecords.json\": \"yVRY\",\n\t\"./18_query_sub_account_transfer_history.json\": \"yGUm\",\n\t\"./19_sub_account_transfer_support_coin.json\": \"lU9A\",\n\t\"./20_sub_account_transfer.json\": \"7zc5\",\n\t\"./22_sub_account_allAccountBalance.json\": \"mYOy\"\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","\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/cswap/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"持倉與維持保證金率\"},{\"type\":\"normal\",\"text\":\"獲取持倉與維持保證金率信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/maintMarginRatio\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[{\"tier\":\"Tier 1\",\"symbol\":\"BTC-USDT\",\"minPositionVal\":\"0\",\"maxPositionVal\":\"150000\",\"maintMarginRatio\":\"0.003800\",\"maintAmount\":\"0.000000\"},{\"tier\":\"Tier 2\",\"symbol\":\"BTC-USDT\",\"minPositionVal\":\"150000\",\"maxPositionVal\":\"900000\",\"maintMarginRatio\":\"0.004000\",\"maintAmount\":\"30.000000\"}]}},\"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\":\"tier\",\"type\":\"string\",\"description\":\"層級\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"minPositionVal\",\"type\":\"string\",\"description\":\"最小持倉價值\"},{\"name\":\"maxPositionVal\",\"type\":\"string\",\"description\":\"最大持倉價值\"},{\"name\":\"maintMarginRatio\",\"type\":\"string\",\"description\":\"維持保證金率\"},{\"name\":\"maintAmount\",\"type\":\"string\",\"description\":\"維持保證金率速算額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/24_get_maint_margin_ratio.json\n// module id = OyBm\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to 24-hour Price Change\"},{\"type\":\"normal\",\"text\":\"Pushes data of 24-hour price change every 1000ms\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @ticker, for example, BTC_USDT@ticker\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"Price change\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"Price change percentage\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"Open price\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"High price\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Low price\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"Latest traded price\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"Volume\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"Quote volume\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"Statistics open time\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"Statistics close time\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Best bid price\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Best bid quantity\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Best ask price\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Best ask quantity\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"Number of trades\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/04_24hr_ticker.json\n// module id = P0Vd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"査詢代理用戶資訊\"},{\"type\":\"normal\",\"text\":\"代理KOL可以使用此介面査詢相應的UID是否是他或她名下的受邀用戶。\"},{\"type\":\"html\",\"text\":\"
  • 簽名驗證用戶必須是父用戶並具有代理角色; 2.支持査詢UID是簽名驗證用戶直接邀請的用戶還是間接邀請的用戶。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"uid\":2489544,\"existInviter\":\"true\",\"inviteResult\":true,\"registerDateTime\":1656208955000,\"directInvitation\":false,\"superiorsUid\":2293934,\"deposit\":true,\"kycResult\":\"false\",\"trade\":true,\"userLevel\":2,\"commissionRatio\":20,\"currentBenefit\":0,\"benefitRatio\":0,\"benefitExpiration\":0}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"YES\",\"description\":\"受邀用戶UID\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"受邀用戶UID\"},{\"name\":\"existInviter\",\"type\":\"string\",\"description\":\"true:有邀請者,false:沒有邀請者\"},{\"name\":\"inviteResult\",\"type\":\"boolean\",\"description\":\"true:邀請關係,false:非邀請關係\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true:直接邀請,false:間接邀請\"},{\"name\":\"inviterSid\",\"type\":\"long\",\"description\":\"上級Uid\"},{\"name\":\"registerTime\",\"type\":\"long\",\"description\":\"註冊時間戳,組織:毫秒\"},{\"name\":\"deposit\",\"type\":\"boolean\",\"description\":\"true:已存入,false:未存入\"},{\"name\":\"kycResult\",\"type\":\"string\",\"description\":\"true:KYC,false:無KYC\"},{\"name\":\"balanceVolume\",\"type\":\"string\",\"description\":\"淨資產(美元)\"},{\"name\":\"trade\",\"type\":\"boolean\",\"description\":\"true:已交易,false:未交易,不包括使用試用基金或額外基金進行的交易\"},{\"name\":\"userLevel\",\"type\":\"int\",\"description\":\"客戶級別\"},{\"name\":\"commissionRatio\",\"type\":\"int\",\"description\":\"傭金百分比,單位:%\"},{\"name\":\"currentBenefit \",\"type\":\"int\",\"description\":\"當前福利管道:0-無福利,1-費用返現,2-永久費用折扣\"},{\"name\":\"benefitRatio\",\"type\":\"int\",\"description\":\"交易手續費减免百分比,單位:%\"},{\"name\":\"benefitExpiration\",\"type\":\"long\",\"description\":\"福利到期時間戳記,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/03_get_Query_agent_user_nformation.json\n// module id = P9RC\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\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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-USD\"},{\"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/cswap/websocket/account/03_setting.json\n// module id = PEUY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"增量深度信息\"},{\"type\":\"normal\",\"text\":\"推送頻率說明\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"BTC-USDT和ETH-USDT的推送頻率是200ms,其他幣對的是800ms。\"},{\"type\":\"normal\",\"text\":\"客戶端如何在本地維護一個增量深度\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"1、訂閱成功後會返回action字段值為all的全量深度,同時會返回一個lastUpdateId用於處理後續增量深度的連續性,Websocket接收到全量深度後需要在記憶體中進行快取以上全量深度。\"},{\"type\":\"normal\",\"text\":\"2、後續深度的變動會返回增量深度,其中action字段為update,且第N個增量深度的lastUpdateId的取值是N-1個深度的lastUpdateId+1。\"},{\"type\":\"normal\",\"text\":\"3、同時極少情況下如果lastUpdateId不連續,可以選擇重連或者建議獲取最近3個增量深度快照,然後嘗試從快照中讀取連續的lastUpdateId進行拼接,(因為可能由於多線程或者網路路由的問題,數據未保證強順序性。)\"},{\"type\":\"normal\",\"text\":\"4、然後遍歷收到的增量深度並逐一和當前深度進行比較,建議盡可能考慮線程安全的設計和編碼方式(後續可能加快推送頻率)。\"},{\"type\":\"normal\",\"text\":\"(1)如果價格檔位在當前深度中不存在,則說明應該新增該檔位;(增)\"},{\"type\":\"normal\",\"text\":\"(2)如果價格對應的數量為0,說明應該從現有的深度中刪除該價格檔位;(刪)\"},{\"type\":\"normal\",\"text\":\"(3)如果價格對應的數量和當前不相等,則替換為增量返回的數量;(改)\"},{\"type\":\"normal\",\"text\":\"(4)遍歷完後獲得最新深度,更新深度快照,記得同時更新lastUpdateId。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @incrDepth,比如BTC-USDT@incrDepth\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},\"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@incrDepth\"},{\"name\":\"action\",\"type\":\"\",\"description\":\"深度類型:all-全量, update-增量\"},{\"name\":\"lastUpdateId\",\"type\":\"\",\"description\":\"變動id,該值會連續地遞增的long型整數,用於描述返回的增量深度之間的前後連續關係\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"變動的賣單深度(價格:數量)\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"變動的買單深度(價格:數量)\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/08_depth_incr_info.json\n// module id = PEl6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史成交明細\"},{\"type\":\"normal\",\"text\":\"獲取某交易對的成交歷史明細\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"回訂單列表規則說明\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"排序:ORDER BY filledTime ASC,以filledTime字段升序\"},{\"type\":\"normal\",\"text\":\"最多能返回[從當前日期]到過去7天&最多能返回1000條歷史成交訂單,startTs = [當前日期] - 7days\"},{\"type\":\"normal\",\"text\":\"如果startTs和endTs都填寫,則返回數據範圍:startTs < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"如果只填寫endTs,則返回數據範圍:([當前日期] -7days) < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"如果只填寫startTs不返回數據\"},{\"type\":\"normal\",\"text\":\"如果填寫orderId,只返回該orderId的成交訂單明細\"}]},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/fillHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTs\":\"1702731530000\",\"startTs\":\"1702724330000\",\"symbol\":\"WLD-USDT\",\"lastFillId\":130753,\"pageSize\":50,\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"fill_history_orders\":[{\"filledTm\":\"2023-12-16T20:58:36Z\",\"volume\":\"4.10\",\"price\":\"3.1088\",\"qty\":\"12.74\",\"quoteQty\":\"211.40\",\"commission\":\"-0.0025\",\"commissionAsset\":\"USDT\",\"orderId\":\"1736007768311123456\",\"tradeId\":\"241512\",\"filledTime\":\"2023-12-16T20:58:36.000+0800\",\"symbol\":\"WLD-USDT\",\"role\":\"maker\",\"side\":\"buy\",\"positionSide\":\"short\"}],\"total\":290}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母。如果未提供特定的交易對,則將返回所有交易對的歷史成交記錄\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"如果填寫orderId,只返回該orderId的成交訂單\"},{\"name\":\"lastFillId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"上次查詢最後一條tradeId,不填預設為0\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"頁码必須大於0,如果不填寫則默認為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"每頁大小,必須大於0,最大值為1000,如果不填寫則默認為50\"},{\"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\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,例如:BTC-USDT\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成交價格\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"commissionAsset\",\"type\":\"string\",\"description\":\"資產單位,一般為USDT\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"成交Id\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"filledTime\",\"type\":\"string\",\"description\":\"匹配成交的時間,格式為2006-01-02T15:04:05.999+0800\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"role\",\"type\":\"string\",\"description\":\"主動賣買,taker:主動買,maker:主動賣\"},{\"name\":\"total\",\"type\":\"int64\",\"description\":\"總數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/25_get_fill_history_detail.json\n// module id = PJcf\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-22\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual WebSocket: Added 'cr' field for realized profit and loss in position data.\"},{\"type\":\"html\",\"text\":\"Spot Market API: Added 'offTime' and 'maintainTime' fields to the /openApi/spot/v1/common/symbols endpoint.\"},{\"type\":\"html\",\"text\":\"Perpetual Market API: Added 'brokerState' field to the /openApi/swap/v2/quote/contracts endpoint.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-08-22.json\n// module id = POz2\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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":\"16477999\"},\"response\":{\"code\":0,\"timestamp\":1701077668349,\"data\":{\"balances\":[{\"asset\":\"ETH\",\"free\":0.0068,\"locked\":0}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"},{\"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\":\"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\"./2023-08-03\": \"9HpD\",\n\t\"./2023-08-03.json\": \"9HpD\",\n\t\"./2023-08-11\": \"pV/D\",\n\t\"./2023-08-11.json\": \"pV/D\",\n\t\"./2023-08-23\": \"bKtD\",\n\t\"./2023-08-23.json\": \"bKtD\",\n\t\"./2023-09-18\": \"a/u1\",\n\t\"./2023-09-18.json\": \"a/u1\",\n\t\"./2023-10-12\": \"DJaF\",\n\t\"./2023-10-12.json\": \"DJaF\",\n\t\"./2023-11-10\": \"bGx6\",\n\t\"./2023-11-10.json\": \"bGx6\",\n\t\"./2023-11-22\": \"axDH\",\n\t\"./2023-11-22.json\": \"axDH\",\n\t\"./2023-12-08\": \"+29D\",\n\t\"./2023-12-08.json\": \"+29D\",\n\t\"./2023-12-21\": \"CpXJ\",\n\t\"./2023-12-21.json\": \"CpXJ\",\n\t\"./2024-01-10\": \"KYMz\",\n\t\"./2024-01-10.json\": \"KYMz\",\n\t\"./2024-01-23\": \"G8cI\",\n\t\"./2024-01-23.json\": \"G8cI\",\n\t\"./2024-02-04\": \"NFKy\",\n\t\"./2024-02-04.json\": \"NFKy\",\n\t\"./2024-02-23\": \"NuRj\",\n\t\"./2024-02-23.json\": \"NuRj\",\n\t\"./2024-03-04\": \"3c71\",\n\t\"./2024-03-04.json\": \"3c71\",\n\t\"./2024-03-14\": \"Jip9\",\n\t\"./2024-03-14.json\": \"Jip9\",\n\t\"./2024-03-19\": \"j7dp\",\n\t\"./2024-03-19.json\": \"j7dp\",\n\t\"./2024-03-28\": \"ZNZv\",\n\t\"./2024-03-28.json\": \"ZNZv\",\n\t\"./2024-04-15\": \"i/xj\",\n\t\"./2024-04-15.json\": \"i/xj\",\n\t\"./2024-04-25\": \"87c6\",\n\t\"./2024-04-25.json\": \"87c6\",\n\t\"./2024-05-23\": \"KSJz\",\n\t\"./2024-05-23.json\": \"KSJz\",\n\t\"./2024-05-27\": \"5LYy\",\n\t\"./2024-05-27.json\": \"5LYy\",\n\t\"./2024-06-13\": \"vBmL\",\n\t\"./2024-06-13.json\": \"vBmL\",\n\t\"./2024-06-28\": \"khDw\",\n\t\"./2024-06-28.json\": \"khDw\",\n\t\"./2024-07-11\": \"vGFC\",\n\t\"./2024-07-11.json\": \"vGFC\",\n\t\"./2024-07-22\": \"/chU\",\n\t\"./2024-07-22.json\": \"/chU\",\n\t\"./2024-07-30\": \"l7kI\",\n\t\"./2024-07-30.json\": \"l7kI\",\n\t\"./2024-08-08\": \"F1dE\",\n\t\"./2024-08-08.json\": \"F1dE\",\n\t\"./2024-08-17\": \"aG00\",\n\t\"./2024-08-17.json\": \"aG00\",\n\t\"./2024-08-22\": \"L5DY\",\n\t\"./2024-08-22.json\": \"L5DY\",\n\t\"./2024-08-27\": \"TvGs\",\n\t\"./2024-08-27.json\": \"TvGs\",\n\t\"./2024-09-11\": \"EMrv\",\n\t\"./2024-09-11.json\": \"EMrv\",\n\t\"./2024-09-23\": \"nNlN\",\n\t\"./2024-09-23.json\": \"nNlN\",\n\t\"./2024-10-09\": \"zB9+\",\n\t\"./2024-10-09.json\": \"zB9+\",\n\t\"./2024-10-11\": \"ss+C\",\n\t\"./2024-10-11.json\": \"ss+C\",\n\t\"./2024-10-16\": \"UDLl\",\n\t\"./2024-10-16.json\": \"UDLl\",\n\t\"./2024-10-23\": \"nC6P\",\n\t\"./2024-10-23.json\": \"nC6P\",\n\t\"./2024-10-24\": \"Aw6+\",\n\t\"./2024-10-24.json\": \"Aw6+\",\n\t\"./2024-10-30\": \"J9sz\",\n\t\"./2024-10-30.json\": \"J9sz\",\n\t\"./2024-11-07\": \"R99K\",\n\t\"./2024-11-07.json\": \"R99K\",\n\t\"./2024-11-15\": \"aAh/\",\n\t\"./2024-11-15.json\": \"aAh/\",\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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢24小時價格變動\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/ticker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"priceChange\":\"-561.1\",\"priceChangePercent\":\"-0.8200%\",\"lastPrice\":\"67713.5\",\"lastQty\":\"38\",\"highPrice\":\"68346.9\",\"lowPrice\":\"67521.3\",\"volume\":\"3825668.00\",\"quoteVolume\":\"5084.51\",\"openPrice\":\"68279.2\",\"closeTime\":\"1717053813892\",\"bidPrice\":\"67712.7\",\"bidQty\":\"2100\",\"askPrice\":\"80000.0\",\"askQty\":\"1600\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應時間,毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,例如:BTC-USD\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"24小時價格變動\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"價格變動百分比\"},{\"name\":\"lastPrice\",\"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小時成交額,單位是USD\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"24小時內第一個價格\"},{\"name\":\"closeTime\",\"type\":\"string\",\"description\":\"24小時內,最後一筆交易的發生時間\"},{\"name\":\"bidPrice\",\"type\":\"string\",\"description\":\"買一價格\"},{\"name\":\"bidQty\",\"type\":\"string\",\"description\":\"買一數量,合約張數\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"賣一價格\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"賣一數量,合約張數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market/06_get_ticker.json\n// module id = PaEN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Recent Trades List\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":10},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"time\":1702719269849,\"isBuyerMaker\":true,\"price\":\"42214.0\",\"qty\":\"0.0248\",\"quoteQty\":\"1046.91\"},{\"time\":1702719269559,\"isBuyerMaker\":false,\"price\":\"42214.1\",\"qty\":\"0.4985\",\"quoteQty\":\"21043.73\"},{\"time\":1702719269274,\"isBuyerMaker\":true,\"price\":\"42213.9\",\"qty\":\"0.0394\",\"quoteQty\":\"1663.23\"},{\"time\":1702719268954,\"isBuyerMaker\":false,\"price\":\"42214.4\",\"qty\":\"0.1116\",\"quoteQty\":\"4711.13\"},{\"time\":1702719268253,\"isBuyerMaker\":true,\"price\":\"42214.5\",\"qty\":\"0.4476\",\"quoteQty\":\"18895.21\"},{\"time\":1702719267963,\"isBuyerMaker\":false,\"price\":\"42215.2\",\"qty\":\"0.0708\",\"quoteQty\":\"2988.84\"},{\"time\":1702719267148,\"isBuyerMaker\":false,\"price\":\"42215.8\",\"qty\":\"0.6055\",\"quoteQty\":\"25561.67\"},{\"time\":1702719265743,\"isBuyerMaker\":false,\"price\":\"42216.1\",\"qty\":\"0.2031\",\"quoteQty\":\"8574.09\"},{\"time\":1702719265463,\"isBuyerMaker\":false,\"price\":\"42216.1\",\"qty\":\"0.0160\",\"quoteQty\":\"675.46\"},{\"time\":1702719265198,\"isBuyerMaker\":true,\"price\":\"42217.2\",\"qty\":\"0.0112\",\"quoteQty\":\"472.83\"}]}},\"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\"},{\"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\":\"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\":\"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\":\"

    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\":\"
  • 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\":\"
  • 80020 - risk forbidden
  • \"},{\"type\":\"html\",\"text\":\"
  • 100004 - Permission denied as the API key was created without the permission
  • \"},{\"type\":\"html\",\"text\":\"
  • 100419 - IP does not match IP whitelist
  • \"},{\"type\":\"html\",\"text\":\"
  • 101204 - Insufficient margin
  • \"},{\"type\":\"html\",\"text\":\"
  • 80013 - The number of your entrusted orders has reached the system limit. If you need to place an order, please cancel other orders first
  • \"},{\"type\":\"html\",\"text\":\"
  • 80018 - order is already filled
  • \"},{\"type\":\"html\",\"text\":\"
  • 80019 - The order is being processed. Please use the allOrders api to retrieve the order details later
  • \"},{\"type\":\"normal\",\"text\":\"100400\",\"children\":[{\"type\":\"html\",\"text\":\"arguments invalid\"},{\"type\":\"html\",\"text\":\"miss arguments\"}]},{\"type\":\"html\",\"text\":\"
  • 100412 - Null signature
  • \"},{\"type\":\"html\",\"text\":\"
  • 100413 - Incorrect apiKey
  • \"},{\"type\":\"html\",\"text\":\"
  • 100421 - Null timestamp or timestamp mismatch
  • \"},{\"type\":\"html\",\"text\":\"
  • 101209 - The maximum position value for this leverage is ** USDT
  • \"},{\"type\":\"html\",\"text\":\"
  • 101212 - Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again
  • \"},{\"type\":\"html\",\"text\":\"
  • 101215 - The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.
  • \"},{\"type\":\"html\",\"text\":\"
  • 101414 - The maximum leverage for the trading pair is *, please reduce the leverage
  • \"},{\"type\":\"html\",\"text\":\"
  • 101415 - This trading pair is suspended from opening new position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101460 - The order price should be higher than the estimated liquidation price of the long position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101500 - rpc timeout
  • \"},{\"type\":\"html\",\"text\":\"
  • 101514 - You're temporarily suspended from opening positions. Please try again later
  • \"},{\"type\":\"html\",\"text\":\"
  • 109201 - The same order number is only allowed to be submitted once within 1 second.
  • \"},{\"type\":\"normal\",\"text\":\"101211\",\"children\":[{\"type\":\"html\",\"text\":\"Order price should be lower than*\"},{\"type\":\"html\",\"text\":\"Order price should be higher than*\"}]},{\"type\":\"normal\",\"text\":\"80012\",\"children\":[{\"type\":\"html\",\"text\":\"GetMarketTrades getContractInfo failled\"},{\"type\":\"html\",\"text\":\"symbol not exist\"},{\"type\":\"html\",\"text\":\"invalid parameter\"},{\"type\":\"html\",\"text\":\"Service Unavailable\"},{\"type\":\"html\",\"text\":\"leverage illegal\"},{\"type\":\"html\",\"text\":\"connect: connection refused\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"startTime is later than endTime\"},{\"type\":\"html\",\"text\":\"OpenInterestNotExist\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"},{\"type\":\"html\",\"text\":\"invalid connection\"},{\"type\":\"html\",\"text\":\"stop order cnt hit limit 50\"},{\"type\":\"html\",\"text\":\"network failed\"},{\"type\":\"html\",\"text\":\"trading has been locked\"},{\"type\":\"html\",\"text\":\"position limit\"}]},{\"type\":\"normal\",\"text\":\"101400\",\"children\":[{\"type\":\"html\",\"text\":\"No position to close\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"Insufficient margin\"},{\"type\":\"html\",\"text\":\"Must be lower than the maximum callback rate of 90%\"},{\"type\":\"html\",\"text\":\"Must be greater than the minimum callback rate of 0.1%\"},{\"type\":\"html\",\"text\":\"Invalid Parameter\"}]},{\"type\":\"normal\",\"text\":\"80001\",\"children\":[{\"type\":\"html\",\"text\":\"tickers is nil\"},{\"type\":\"html\",\"text\":\"Request failed\"},{\"type\":\"html\",\"text\":\"service has some errors, order not exist\"},{\"type\":\"html\",\"text\":\"orderId and clientOrderID are both empty, orderId and clientOrderID are both empty\"},{\"type\":\"html\",\"text\":\"order state illegal, order not exist\"},{\"type\":\"html\",\"text\":\"the account has positions or pending orders\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"You're temporarily suspended from opening positions. Please try again later\"},{\"type\":\"html\",\"text\":\"order state illegalorder not exist\"},{\"type\":\"html\",\"text\":\"Mismatch type\"},{\"type\":\"html\",\"text\":\"At present, the actual position is occupied by a Limit Order. If you need to close the position, please cancel other orders first\"},{\"type\":\"html\",\"text\":\"trading strategy available is false\"},{\"type\":\"html\",\"text\":\"order not exist\"},{\"type\":\"html\",\"text\":\"The maximum leverage for the trading pair is 5, please reduce the leverage\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"The current system is 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.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic/01_error_code.json\n// module id = Py8D\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","\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","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/cswap/websocket/introduce/02_data_compress.json\n// module id = Q5Jp\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/cswap/api/market/index.js","var map = {\n\t\"./01_server_url.json\": \"FVkd\",\n\t\"./03_error_code.json\": \"uv3h\",\n\t\"./04_rate_limits.json\": \"XvOK\",\n\t\"./04_server_url.json\": \"w7yn\"\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","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\":\"warning\",\"text\":\"*持倉模式設定對所有合約生效。若存在持倉或掛單,則不支援調整倉位模式。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionSide/dual\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"dualSidePosition\":\"true\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"dualSidePosition\":\"true\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"margin not enough\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"position is not isolated\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"true\",\"required\":\"是\",\"description\":\"\\\"true\\\": 雙向持倉模式;\\\"false\\\": 單向持倉模式\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"string\",\"description\":\"\\\"true\\\": 雙向持倉模式;\\\"false\\\": 單向持倉模式\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/18_set_positionSide.json\n// module id = QEfH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整逐倉保證金\"},{\"type\":\"normal\",\"text\":\"針對逐倉模式下的倉位,調整其逐倉保證金資金\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"10000\",\"symbol\":\"BTC-USDT\",\"type\":\"1\",\"amount\":\"3\",\"positionSide\":\"LONG\",\"timestamp\":\"1702718148654\"},\"response\":{\"code\":0,\"msg\":\"\",\"amount\":3,\"type\":1}},\"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\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"倉位ID,如果這個字段有值,先使用這個字段\"},{\"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: 減少逐倉保證金\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"倉位ID\"}]}]}]\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\":\"Query Margin Type\"},{\"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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"WOO-USDT\",\"timestamp\":\"1702733469134\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"marginType\":\"CROSSED\"}}},\"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","module.exports = [{\"type\":\"hash\",\"text\":\"Query Margin Type\"},{\"type\":\"normal\",\"text\":\"Get Margin Type\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[{\"symbol\":\"BTC-USD\",\"marginType\":\"ISOLATED\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USD, please use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request validity window in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"Margin type, e.g., CROSSED, ISOLATED\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/15_get_margin_type.json\n// module id = Qb5x\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Create an OCO Order\"},{\"type\":\"normal\",\"text\":\"Send a new one-cancels-the-other (OCO) order, and initiating one of them immediately cancels the other order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.001,\"listClientOrderId\":\"12345610030\",\"aboveClientOrderId\":\"12345610031\",\"belowClientOrderId\":\"12345610031\",\"orderPrice\":88000,\"limitPrice\":48000,\"triggerPrice\":87000,\"timestamp\":1724655430675},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":0,\"orderId\":\"1827963624962916352\",\"clientOrderId\":\"12345610034\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"12345610033\",\"status\":\"\"},{\"transactionTime\":0,\"orderId\":\"1827963624962916353\",\"clientOrderId\":\"12345610035\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"12345610033\",\"status\":\"\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Order type, BUY for buy, SELL for sell\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"Order quantity, e.g., 0.1 BTC\"},{\"name\":\"limitPrice\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"Limit order price. e.g., 10000 USDT\"},{\"name\":\"orderPrice\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"The limit order price set after a stop-limit order is triggered. e.g., 10000 USDT\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"The trigger price of the stop-limit order. e.g., 10000 USDT\"},{\"name\":\"listClientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Custom unique ID for the entire Order List, only supports numeric strings, e.g., \\\"123456\\\"\"},{\"name\":\"aboveClientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Custom unique ID for the limit order, only supports numeric strings, e.g., \\\"123456\\\"\"},{\"name\":\"belowClientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Custom unique ID for the stop-limit order, only supports numeric strings, e.g., \\\"123456\\\"\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Request validity time window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Custom order ID\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit: OCO Limit Order, ocoTps: OCO Stop-Limit Order\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Order price\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"Trigger price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status, NEW for new order, PENDING for pending, PARTIALLY_FILLED for partially filled, FILLED for fully filled, CANCELED for canceled, FAILED for failed\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Order type, BUY for buy, SELL for sell\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/100_post_one_oco_order.json\n// module id = R/1P\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","module.exports = [{\"type\":\"title\",\"text\":\"2023-12-21\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"The spot cancel order api has added the field 'cancelRestrictions' (optional), which cancels orders of specified status.\"},{\"type\":\"html\",\"text\":\"The spot batch cancel order api provides the field 'clientOrderIDs' (optional), which cancels orders in batches according to clientOrderIDs.\"},{\"type\":\"html\",\"text\":\"The spot add cancel open orders interface: /openApi/spot/v1/trade/cancelOpenOrders\"},{\"type\":\"html\",\"text\":\"The spot add commission rate query interface: /openApi/spot/v1/user/commissionRate\"},{\"type\":\"html\",\"text\":\"The spot query historical orders: The request parameters have added the fields 'status' and 'type', which filter corresponding orders based on conditions.\"},{\"type\":\"html\",\"text\":\"The spot currency pair query interface: Added fields 'apiStateBuy', 'apiStateSell', and 'timeOnline'.\"},{\"type\":\"html\",\"text\":\"Perpetual, add fields to position query response: position value, mark price, risk rate, maximum reducible margin, unrealized PNL ratio\"},{\"type\":\"html\",\"text\":\"Perpetual order placement and order query: Add single position holding function\"},{\"type\":\"html\",\"text\":\"Perpetual, modify historical order query request: if symbol is not filled, it will query historical orders of all trading pairs\"},{\"type\":\"html\",\"text\":\"Spot: increase the history data query period from 7 days to 15 days for K-line data\"},{\"type\":\"html\",\"text\":\"Withdraw: add field withdrawOrderId, optional, customer-defined withdrawal ID, composed of numbers and letters, with a length less than 100 characters\"},{\"type\":\"html\",\"text\":\"Withdrawal history: update the field withdrawOrderId: when both platform ID and withdrawOrderId are provided as input parameters, the query will be based on platform ID\"},{\"type\":\"html\",\"text\":\"Internal transfer in master account: add field transferClientId, optional, customer-defined internal transfer ID, composed of numbers and letters, with a length less than 100 characters\"},{\"type\":\"html\",\"text\":\"Query internal transfer records in master account: add field transferClientId, optional, customer-defined internal transfer ID. When both platform ID and transferClientId are provided as input parameters, the query will be based on platform ID\"},{\"type\":\"html\",\"text\":\"Internal transfer in sub-account: add field transferClientId, optional, customer-defined internal transfer ID, composed of numbers and letters, with a length less than 100 characters\"},{\"type\":\"html\",\"text\":\"Query internal transfer records in sub-account: add field transferClientId, optional, customer-defined internal transfer ID. When both platform ID and transferClientId are provided as input parameters, the query will be based on platform ID\"},{\"type\":\"html\",\"text\":\"Query deposit records in sub-account: change the field subUid to optional, when not filled, it will query deposit records of all sub-accounts under the master account\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-12-21.json\n// module id = R2wc\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-11-07\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續幣本位:下單接口TimeInForce字段新增PostOnly類型。\"},{\"type\":\"html\",\"text\":\"永續幣本位:查詢單個接口新增TimeInForce字段。\"},{\"type\":\"html\",\"text\":\"永續幣本位:查詢委託中所有訂單接口新增TimeInForce字段。\"},{\"type\":\"html\",\"text\":\"永續幣本位:查詢強平訂單接口新增TimeInForce字段。\"},{\"type\":\"html\",\"text\":\"永續幣本位:查詢所有歷史訂單接口新增TimeInForce字段。\"},{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:‘訂單推送’增加td和tv字段。\"},{\"type\":\"html\",\"text\":\"永續U本位:‘調整逐倉保證金’接口支持按positionId調整。\"},{\"type\":\"html\",\"text\":\"永續U本位:新增‘領取VST’接口。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-11-07.json\n// module id = R99K\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/listenKey/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Historical order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\"},{\"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\":\"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\"./00_post_trade_order_test.json\": \"CwX9\",\n\t\"./01_post_trade_order.json\": \"vDBD\",\n\t\"./01_post_trade_order_vst.json\": \"6dPc\",\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_check_pending_order.json\": \"26Si\",\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\"./17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./18_set_positionSide.json\": \"QEfH\",\n\t\"./19_get_positionSide.json\": \"jzOs\",\n\t\"./20_cancel_replace_order.json\": \"4bTX\",\n\t\"./21_batch_cancel_replace_order.json\": \"/nLp\",\n\t\"./22_cancel_all_after.json\": \"1pQ9\",\n\t\"./22_post_closePosition.json\": \"/qZT\",\n\t\"./23_get_trade_allOrdersV2.json\": \"iRbd\",\n\t\"./24_get_maint_margin_ratio.json\": \"OyBm\",\n\t\"./25_get_fill_history_detail.json\": \"PJcf\",\n\t\"./26_get_user_position_history.json\": \"sWA2\",\n\t\"./27_get_position_margin_history.json\": \"5iQm\",\n\t\"./27_post_get_vst.json\": \"dtEQ\",\n\t\"./28_post_twap_order.json\": \"50Mv\",\n\t\"./29_get_twap_open_orders.json\": \"0L6n\",\n\t\"./30_get_twap_history_orders.json\": \"srGS\",\n\t\"./31_get_twap_order_detail.json\": \"+xXY\",\n\t\"./32_cancel_twap_order.json\": \"5pjb\",\n\t\"./33_post_asset_mode.json\": \"thBV\",\n\t\"./34_get_asset_mode.json\": \"cRAY\",\n\t\"./35_get_multi_asset_rule.json\": \"EWHP\",\n\t\"./36_get_margin_asset.json\": \"/HCz\"\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 https://open-api.bingx.com/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\":\"https://open-api.bingx.com/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\":\"html\",\"text\":\"用戶在bingx平台內互相轉賬,僅限主賬戶轉主賬戶和主賬戶轉子賬戶,如需子賬號內轉請使用專用接口: 子賬戶內部轉賬\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"amount\":\"10.0\",\"coin\":\"USDT\",\"userAccount\":\"16779999\",\"userAccountType\":\"1\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702558152381,\"data\":{\"id\":\"12******1\"}}},\"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\":\"電話區號,當userAccountType=2時必填。\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"賬戶類型,1 資金賬戶;2 標合賬戶;3 永續賬戶\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID,數字和字母組合,長度小於100字符\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"平台返回內轉記錄唯一id\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID,數字和字母組合,長度小於100字符\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/11_post_capital_innerTransfer_apply.json\n// module id = S1Mk\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\":\"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\\\": \\\"\\\" }\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/introduce/05_cancel_subscribe.json\n// module id = SBKE\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"近期成交記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720325973,\"data\":[{\"id\":76909154,\"price\":42195.21,\"qty\":0.00195,\"time\":1702720325553,\"buyerMaker\":true},{\"id\":76909153,\"price\":42195.31,\"qty\":0.00139,\"time\":1702720325552,\"buyerMaker\":true},{\"id\":76909152,\"price\":42195.48,\"qty\":0.00177,\"time\":1702720325552,\"buyerMaker\":false},{\"id\":76909151,\"price\":42195.15,\"qty\":0.00247,\"time\":1702720324643,\"buyerMaker\":true},{\"id\":76909150,\"price\":42195.25,\"qty\":0.02968,\"time\":1702720324643,\"buyerMaker\":true}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默認100,最多500\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"buyerMaker\",\"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\":\"title\",\"text\":\"2024-10-24\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USD-M WebSocket Service: Added 'VST' service.\"},{\"type\":\"html\",\"text\":\"Added new isolated margin change history interface:/openApi/swap/v1/positionMargin/history\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-24.json\n// module id = SHTI\n// module chunks = 3","var map = {\n\t\"./01_get_currentTrack.json\": \"U2sZ\",\n\t\"./02_post_close_currentTrack.json\": \"TXP6\",\n\t\"./03_post_tpsl_currentTrack.json\": \"qkYN\",\n\t\"./04_spot_trader_sell_order.json\": \"mCp6\"\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 = \"SXU1\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader \\.json$\n// module id = SXU1\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"Q:什麼是UID?\"},{\"type\":\"normal\",\"text\":\"A: UID是用戶ID,是標示每個用戶的唯一ID(包括母用戶和子用戶),UID可以在Web或App界面的個人信息裡查看到,也可以通過接口GET /openApi/account/v1/uid獲得\"},{\"type\":\"title\",\"text\":\"Q:一個用戶可以申請多少個API Key?\"},{\"type\":\"normal\",\"text\":\"A: 每個母用戶可創建20組API Key,每個母用戶還可創建20個子用戶,每個子用戶可創建20組API Key,每個API Key可設置不同權限。\"},{\"type\":\"title\",\"text\":\"Q: 為什麼經常出現斷線、超時的情況?\"},{\"type\":\"normal\",\"text\":\"A: 有可能網絡抖動問題,建議重連\"},{\"type\":\"title\",\"text\":\"Q: 為什麼WebSocket總是斷開連接?\"},{\"type\":\"normal\",\"text\":\"A: 可檢查一下你的代碼是否在收到Ping後返回Pong,如果是賬戶相關websocket訂閱,請再檢查一下是否定期更新listenkey,建議先使用我們的示例代碼\"},{\"type\":\"title\",\"text\":\"Q: 為什麼簽名認證總返回失敗?\"},{\"type\":\"normal\",\"text\":\"A: 請先仔細閱讀我們的簽名說明,或先使用我們的示例代碼進行測試\"},{\"type\":\"title\",\"text\":\"Q: U本位合約API Key和現貨是否同一個?\"},{\"type\":\"normal\",\"text\":\"A: U本位合約API Key和現貨API Key是同一個,兩個是一樣的。由於現貨交易和合約交易權限是分開的,需要配置好對應的權限\"},{\"type\":\"title\",\"text\":\"Q: BingX對API有多少種風控限制?\"},{\"type\":\"normal\",\"text\":\"A: BingX有接口限頻、交易限制、網絡防火牆限制三種風控策略,這些限制可能會隨時變更。\"},{\"type\":\"normal\",\"text\":\"接口限頻\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"每個接口限頻不一樣,請參考具體的接口文檔說明\"}]},{\"type\":\"normal\",\"text\":\"交易限制: 交易行為是根據普通用戶的交易行為進行評估,如果您的交易行為與普通用戶的行為偏離較遠,可能會被禁止交易,禁止時長不定。假設出現以下狀況時您的禁止交易時長會增加:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"1. 總是頻繁占據買一賣一價\"},{\"type\":\"normal\",\"text\":\"2. 頻繁掛單/撤單,且沒有任何成交;\"},{\"type\":\"normal\",\"text\":\"3. 成交率非常低,成交率=交易筆數/(掛單筆數+撤銷筆數);\"},{\"type\":\"normal\",\"text\":\"4. 成交權重非常低,成交權重=交易總額/(掛單總額+撤銷總額);\"},{\"type\":\"normal\",\"text\":\"5. 接口報429後依然頻繁請求\"}]},{\"type\":\"normal\",\"text\":\"網絡防火牆限制\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"目前我們沒有提供關於網絡防火牆限制的明確信息,如果您收到了HTTP403錯誤提示,這說明您違反了一條網絡防火牆的規則,大多數情況下出現這個錯誤提示是因為過多的請求並且會持續禁止五分鐘,但是如果您發送的請求被判定為惡意請求,那麼它也可能導致持續禁止更長的時間甚至永久禁號。\"}]},{\"type\":\"title\",\"text\":\"Q: 遇到API接口錯誤該如何反饋?\"},{\"type\":\"normal\",\"text\":\"請聯繫官方客服並按照如下模板向我們反饋問題,會有技術支持技術解答\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"1. 問題描述\"},{\"type\":\"normal\",\"text\":\"2. 問題發生的用戶Id(UID)和訂單Id(如果和賬戶、訂單有關係)、API KEY \"},{\"type\":\"normal\",\"text\":\"3. 完整的請求參數(如果有)\"},{\"type\":\"normal\",\"text\":\"4. 完整的JSON格式的返回結果\"},{\"type\":\"normal\",\"text\":\"5. 問題出現時間和頻率(如何時開始出現,是否可以重現)\"},{\"type\":\"normal\",\"text\":\"6. 簽名信息\"}]},{\"type\":\"title\",\"text\":\"Q: API支持標準合約交易嗎?\"},{\"type\":\"normal\",\"text\":\"A: 當前不支持\"},{\"type\":\"title\",\"text\":\"Q: API支持股票外匯交易嗎?\"},{\"type\":\"normal\",\"text\":\"A: 當前不支持。\"},{\"type\":\"title\",\"text\":\"Q: 手機端支持API的管理嗎?\"},{\"type\":\"normal\",\"text\":\"A: 功能正在開發中。\"},{\"type\":\"title\",\"text\":\"Q: BingX單IP可以訂閱的頻道數量?\"},{\"type\":\"normal\",\"text\":\"A: 當前沒有限制,但是有訂閱頻率限制,請不要超過10/s\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/q&a/2023-09-12.json\n// module id = Sd/4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易員按帶單訂單號設置止盈止損\"},{\"type\":\"normal\",\"text\":\"此節點用於交易員按帶單訂單號設定市價止盈止損,重複設定將覆蓋之前的設定\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/setTPSL\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"positionId\":\"1253517936071234567\",\"recvWindow\":\"0\",\"stopLossMarkPrice\":\"105.38\",\"timestamp\":\"1702731522946\"},\"response\":{\"code\":0,\"timestamp\":1702731523011,\"data\":{\"positionId\":1253517936071234600,\"stopLossMarkPrice\":105.38}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"帶單訂單號\"},{\"name\":\"takeProfitMarkPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"設定止盈標記價格,止盈止損標記價格必須二選一\"},{\"name\":\"stopLossMarkPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"設定止損標記價格,止盈止損標記價格必須二選一\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求時間戳記,單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求有效時間空窗值,單位:毫秒,不填默認5秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"帶單訂單號\"},{\"name\":\"takeProfitMarkPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"設定止盈標記價格,止盈止損標記價格必須二選一\"},{\"name\":\"stopLossMarkPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"設定止損標記價格,止盈止損標記價格必須二選一\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader/03_post_tpsl_currentTrack.json\n// module id = Sfdp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an Existing Order and Send a New Orde\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order/cancelReplace\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"cancelOrderId\":\"17543893539094511234\",\"cancelReplaceMode\":\"ALLOW_FAILURE\",\"side\":\"BUY\",\"type\":\"LIMIT\",\"price\":40000,\"quantity\":1},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"cancelResult\":{\"code\":100400,\"msg\":\" order not exist\",\"result\":false},\"openResult\":{\"code\":0,\"msg\":\"\",\"result\":true},\"orderOpenResponse\":{\"symbol\":\"BTC-USDT\",\"orderId\":1754389353909452800,\"transactTime\":1707113991607,\"price\":\"40000\",\"stopPrice\":\"0\",\"origQty\":\"1\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"clientOrderID\":\"\"},\"orderCancelResponse\":{\"symbol\":\"\",\"orderId\":0,\"price\":\"0\",\"stopPrice\":\"0\",\"origQty\":\"0\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"\",\"type\":\"\",\"side\":\"\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair, for example: BTC-USDT, please use uppercase letters\"},{\"name\":\"cancelOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The ID of the order to be canceled\"},{\"name\":\"cancelClientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"The user-defined ID of the order to be canceled, character length limit: 1-40, different orders cannot use the same clientOrderID, only supports a query range of 2 hours\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Cancel orders with specified status: NEW: New order, PENDING: Pending order, PARTIALLY_FILLED: Partially filled\"},{\"name\":\"CancelReplaceMode\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"STOP_ON_FAILURE: If the cancel order fails, it will not continue to place a new order. ALLOW_FAILURE: Regardless of whether the cancel order succeeds or fails, it will continue to place a new order.\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The type of transaction, BUY: Buy, SELL: Sell\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trigger price used for TAKE_STOP_LIMIT, TAKE_STOP_MARKET, TRIGGER_LIMIT, TRIGGER_MARKET order types.\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order quantity, e.g. 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order amount, e.g. 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price, e.g. 10000USDT\"},{\"name\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom order ID consisting of letters, numbers, and _. Character length should be between 1-40. Different orders cannot use the same newClientOrderId.\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Request valid time window in milliseconds.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading symbol\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Order price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Order quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW (new order), PENDING (pending), PARTIALLY_FILLED (partially filled), FILLED (filled), CANCELED (cancelled), FAILED (failed)\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type: MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Transaction type: BUY (buy), SELL (sell)\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"User-defined order ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Cancel orders in specific states: NEW (new order), PENDING (pending), PARTIALLY_FILLED (partially filled)\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"Transaction timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/023_post_trade_order_cancel_replace.json\n// module id = TA5G\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\t\"./04_24hr_ticker.json\": \"7Biw\",\n\t\"./05_last_price.json\": \"q1yk\",\n\t\"./06_book_ticker.json\": \"vVRe\",\n\t\"./07_depth_incr_info.json\": \"MY8u\"\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\":\"Traders close positions according to the order number\"},{\"type\":\"normal\",\"text\":\"This node is used by traders to close positions according to the order number with orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/closeTrackOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"positionId\":\"1252864099381234567\",\"recvWindow\":\"5000\",\"timestamp\":\"1702575099353\"},\"response\":{\"code\":0,\"timestamp\":1702575099575,\"data\":{\"positionId\":1252864099381234700}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Order number with order\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request valid time empty window value, unit: milliseconds, default to 5 seconds if left blank\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"Order number with order\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader/02_post_close_currentTrack.json\n// module id = TXP6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Server Time\"},{\"type\":\"html\",\"text\":\"

    HTTP Request

    \"},{\"type\":\"warning\",\"text\":\"GET https://open-api.bingx.com/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/cswap/api/basic/05_system_time.json\n// module id = TbUJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最優掛單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 用於查詢最優掛單
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\"},\"response\":{\"code\":0,\"timestamp\":1707147866795,\"data\":[{\"eventType\":\"bookTicker\",\"time\":1707147866623,\"symbol\":\"BTC-USDT\",\"bidPrice\":\"42738.64\",\"bidVolume\":\"5.19530\",\"askPrice\":\"42739.50\",\"askVolume\":\"5.72867\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對,如:BTC_USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"eventType\",\"type\":\"string\",\"description\":\"數據類型\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,如:BTC_USDT\"},{\"name\":\"bidPrice\",\"type\":\"string\",\"description\":\"買一價格\"},{\"name\":\"bidVolume\",\"type\":\"string\",\"description\":\"買一數量\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"賣一價格\"},{\"name\":\"askVolume\",\"type\":\"string\",\"description\":\"賣一數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/08_get_market_book_ticker.json\n// module id = Tbeq\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Mark Price and Funding Rate\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"BTC-USDT\",\"markPrice\":\"42216.4\",\"indexPrice\":\"42219.9\",\"lastFundingRate\":\"0.00025100\",\"nextFundingTime\":1702742400000}}},\"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\":\"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\":\"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","\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/cswap/websocket/account/index.js","var map = {\n\t\".\": \"KeEM\",\n\t\"./\": \"KeEM\",\n\t\"./01_get_Query_Invited_Users\": \"Bd4q\",\n\t\"./01_get_Query_Invited_Users.json\": \"Bd4q\",\n\t\"./02_get_Daily_Commission_Query\": \"Czkf\",\n\t\"./02_get_Daily_Commission_Query.json\": \"Czkf\",\n\t\"./03_get_Query_agent_user_nformation\": \"N9hH\",\n\t\"./03_get_Query_agent_user_nformation.json\": \"N9hH\",\n\t\"./04_get_Query_the_deposit_details\": \"ZKxt\",\n\t\"./04_get_Query_the_deposit_details.json\": \"ZKxt\",\n\t\"./05_get_Query_API_transaction_commission\": \"mYC+\",\n\t\"./05_get_Query_API_transaction_commission.json\": \"mYC+\",\n\t\"./06_get_Query_partner_information\": \"sHlI\",\n\t\"./06_get_Query_partner_information.json\": \"sHlI\",\n\t\"./index\": \"KeEM\",\n\t\"./index.js\": \"KeEM\"\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 = \"Tr8Q\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent ^.*$\n// module id = Tr8Q\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Test Order\"},{\"type\":\"desc\",\"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)\",\"desc\":[{\"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\":\"
  • TRAILING_STOP_MARKET (Tracking Stop Loss Order) or TRAILING_TP_SL (Trailing TakeProfit/StopLoss Order): The price field or priceRate field needs to be filled in
  • \"},{\"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\":\"warning\",\"text\":\"The minimum order quantity can be obtained from the api /openApi/swap/v2/quote/contracts: tradeMinQuantity, tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]}]},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/00_post_trade_order_test.json\n// module id = TrnZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Historical K-line\"},{\"type\":\"normal\",\"text\":\"Query historical K-line data for transaction prices\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Historical data after 2024 is supported only
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are not sent, the latest K-line data is returned by default
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are sent, the latest K-line data up to endTime is returned by default
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime is sent but endTime is not sent, the latest K-line data starting from startTime is returned by default
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime is not sent but endTime is sent, the latest K-line data up to endTime is returned by default
  • \"},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/market/his/v1/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"1m\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720626772,\"data\":[[1702720620000,42216.29,42216.94,42216.29,42216.72,0.2,1702720679999,8548.46],[1702720560000,42220.61,42221.1,42215.56,42216.63,2.93,1702720619999,123968.7],[1702720500000,42182.59,42220.38,42182.59,42220.38,1.53,1702720559999,64851.33],[1702720440000,42182.84,42183.16,42182.22,42182.81,2.54,1702720499999,107559.45],[1702720380000,42199.72,42204.53,42180.2,42182.76,1.1,1702720439999,46549.09]]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Time interval, reference 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: 500\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"array\",\"description\":\"K-line array\"}]},{\"type\":\"element order in K-line array [index]\",\"key\":\"key5\",\"data\":[{\"name\":\"0\",\"type\":\"\",\"description\":\"K-line opening time\"},{\"name\":\"1\",\"type\":\"\",\"description\":\"Opening price\"},{\"name\":\"2\",\"type\":\"\",\"description\":\"Highest price\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"Lowest price\"},{\"name\":\"4\",\"type\":\"\",\"description\":\"Closing price\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"Transaction price\"},{\"name\":\"6\",\"type\":\"\",\"description\":\"K-line closing time\"},{\"name\":\"7\",\"type\":\"\",\"description\":\"Transaction amount\"}]},{\"type\":\"interval\",\"key\":\"key12\",\"data\":[{\"name\":\"1m\",\"description\":\"1-minute K-line\"},{\"name\":\"3m\",\"description\":\"3-minute K-line\"},{\"name\":\"5m\",\"description\":\"5-minute K-line\"},{\"name\":\"15m\",\"description\":\"15-minute K-line\"},{\"name\":\"30m\",\"description\":\"30-minute K-line\"},{\"name\":\"1h\",\"description\":\"1-hour K-line\"},{\"name\":\"2h\",\"description\":\"2-hour K-line\"},{\"name\":\"4h\",\"description\":\"4-hour K-line\"},{\"name\":\"6h\",\"description\":\"6-hour K-line\"},{\"name\":\"8h\",\"description\":\"8-hour K-line\"},{\"name\":\"12h\",\"description\":\"12-hour K-line\"},{\"name\":\"1d\",\"description\":\"1-day K-line\"},{\"name\":\"3d\",\"description\":\"3-day K-line\"},{\"name\":\"1w\",\"description\":\"Weekly K-line\"},{\"name\":\"1M\",\"description\":\"Monthly K-line\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/09_get_market_history_klines.json\n// module id = Turq\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-27\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨:支持OCO訂單特性,提供了OCO下單,OCO撤單,查詢單個OCO訂單,查詢委托中的OCO訂單,查詢OCO訂單訂單接口;\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-08-27.json\n// module id = TvGs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢當前全部掛單\"},{\"type\":\"normal\",\"text\":\"查詢用戶當前處於委託狀態的全部訂單。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":\"1702733126509\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BTC-USD\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44459.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702256915574,\"updateTime\":1702256915610,\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"workingType\":\"MARK_PRICE\"},{\"symbol\":\"BTC-USD\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44454.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702111071719,\"updateTime\":1702111071735,\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"trailingStopDistance\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母,不填時查詢所有掛單,填入時查詢對應幣對的掛單\"},{\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/ TRIGGER_REVERSE_MARKET:計劃反手\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間,單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]},{\"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-tw/cswap/api/trade/11_get_all_openOrders.json\n// module id = TzVG\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Trader’s current order\"},{\"type\":\"normal\",\"text\":\"This endpoint is used for traders to query the current track order list for perpetual business.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/currentTrack\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1702731524284,\"data\":{\"result\":[{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0041\",\"openAvgPrice\":\"42113.4000000000000\",\"unrealizedProfit\":\"+1.2169\",\"openTime\":1702651291745,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.70%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"8.633247\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0041\",\"openAvgPrice\":\"42113.4000000000000\",\"unrealizedProfit\":\"+1.2169\",\"openTime\":1702651291398,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.70%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"8.633247\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0014\",\"openAvgPrice\":\"42108.2000000000000\",\"unrealizedProfit\":\"+0.4228\",\"openTime\":1702651291040,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.71%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"2.947574\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0014\",\"openAvgPrice\":\"42107.7000000000000\",\"unrealizedProfit\":\"+0.4235\",\"openTime\":1702651290638,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.71%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"2.947539\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"}],\"searchResult\":true,\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g. BTC-USDT, please use uppercase letters.\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Offset, default is 0.\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Number of records to query, default is 20, maximum is 50.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request valid time window, in milliseconds. Default is 5 seconds if not provided.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Perpetual business order number\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"With order number\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"symbol\"},{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"Margin mode, isolated position: ISOLATED, cross position: CROSSED\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position side\"},{\"name\":\"openLeverage\",\"type\":\"string\",\"description\":\"open leverage\"},{\"name\":\"openAvgPrice\",\"type\":\"string\",\"description\":\"average opening price\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"mark price\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"Opening time\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Position quantity\"},{\"name\":\"margain\",\"type\":\"string\",\"description\":\"Margin amount\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"unrealized profit or loss\"},{\"name\":\"profitRatio\",\"type\":\"string\",\"description\":\"profit, in%\"},{\"name\":\"stopProfitPrice\",\"type\":\"string\",\"description\":\"Take profit price, empty if not set\"},{\"name\":\"stopLossPrice\",\"type\":\"string\",\"description\":\"Stop loss price, empty if not set\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader/01_get_currentTrack.json\n// module id = U2sZ\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\":\"title\",\"text\":\"2023-11-10\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual future API: Support for simulated trading order placement interface\"},{\"type\":\"html\",\"text\":\"Perpetual future WebSocket: Support for returning trigger price field: sp\"},{\"type\":\"html\",\"text\":\"Perpetual future WebSocket: Subscription to depth supports returning time field\"},{\"type\":\"html\",\"text\":\"Perpetual future/Spot: 24-hour price change information supports returning best bid and ask prices\"},{\"type\":\"html\",\"text\":\"Spot WebSocket: K-line subscription supports more internal types: 1min/5min/30min/.../1day...etc.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-11-10.json\n// module id = U8SU\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-16\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:新增‘增量深度推送’功能\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-16.json\n// module id = UDLl\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","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-14\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract: The place order api supports guaranteed stop-loss and take-profit functionality.\"},{\"type\":\"html\",\"text\":\"Spot added: Countdown cancel all orders function\"},{\"type\":\"html\",\"text\":\"Perpetual added: Countdown cancel all orders function\"},{\"type\":\"html\",\"text\":\"Spot added: Server time interface\"},{\"type\":\"html\",\"text\":\"Spot added: Valid methods, currently supports PostOnly, GTC, IOC, default to GTC if not filled in\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-03-14.json\n// module id = UMYu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"K線數據\"},{\"type\":\"normal\",\"text\":\"查詢成交價格的K線數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v3/quote/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"KNC-USDT\",\"interval\":\"1h\",\"limit\":\"1000\",\"startTime\":\"1702717199998\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"0.7034\",\"close\":\"0.7065\",\"high\":\"0.7081\",\"low\":\"0.7033\",\"volume\":\"635494.00\",\"time\":1702717200000}]}},\"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\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"成功建立與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/cswap/websocket/introduce/04_subscribe.json\n// module id = UYWd\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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":\"1702733126509\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BTC-USD\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44459.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702256915574,\"updateTime\":1702256915610,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"postOnly\":false,\"workingType\":\"MARK_PRICE\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44454.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702111071719,\"updateTime\":1702111071735,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"postOnly\":false,\"workingType\":\"MARK_PRICE\"}]}}},\"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-USD,When not filled, query all pending orders. When filled, query the pending orders for the corresponding currency pair\"},{\"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-USD\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order/ TRIGGER_REVERSE_MARKET:trigger reverse Market order \"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"postOnly\",\"type\":\"bool\",\"description\":\"Maker only\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]},{\"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/cswap/api/trade/11_get_all_openOrders.json\n// module id = Ui0Y\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/cswap/api/basic/02_timestamp.json\n// module id = Ui1f\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query warehouse\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"positionId\":1801165371278884900,\"positionSide\":\"LONG\",\"isolated\":false,\"positionAmt\":\"3\",\"availableAmt\":\"3\",\"unrealizedProfit\":\"-0.00010485\",\"initialMargin\":\"0.00110845\",\"liquidationPrice\":2024.7812708419876,\"avgPrice\":\"67662\",\"leverage\":4,\"markPrice\":\"66098.9\",\"riskRate\":\"0.00013841\",\"maxMarginReduction\":\"0\",\"updateTime\":1718409600901},{\"symbol\":\"ETH-USD\",\"positionId\":1796163366063964200,\"positionSide\":\"LONG\",\"isolated\":false,\"positionAmt\":\"376\",\"availableAmt\":\"376\",\"unrealizedProfit\":\"-0.08051938\",\"initialMargin\":\"0.19994044\",\"liquidationPrice\":630.4805786791729,\"avgPrice\":\"3761.12\",\"leverage\":5,\"markPrice\":\"3480.77\",\"riskRate\":\"0.00096807\",\"maxMarginReduction\":\"0\",\"updateTime\":1718409600705}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, example: BTC-USD, use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request time stamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description information\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation time point, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"Warehouse list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position number\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Holding direction, bi-directional position only can choose LONG or SHORT\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Is it per position mode, true: per position mode false: full position\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"Holding quantity\"},{\"name\":\"availableAmt\",\"type\":\"string\",\"description\":\"Quantity that can be closed\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"Unrealized profit\"},{\"name\":\"initialMargin\",\"type\":\"string\",\"description\":\"Initial margin\"},{\"name\":\"liquidationPrice\",\"type\":\"float64\",\"description\":\"Force liquidation price\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Opening average price\"},{\"name\":\"leverage\",\"type\":\"int32\",\"description\":\"Leverage\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"Mark price\"},{\"name\":\"riskRate\",\"type\":\"string\",\"description\":\"Risk rate\"},{\"name\":\"maxMarginReduction\",\"type\":\"string\",\"description\":\"Maximum reduction of margin\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Position update time, millisecond timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/06_get_positions.json\n// module id = Uqg4\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/cswap/api/basic/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/en-US/cswap/websocket/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Current Open Orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDC\",\"timestamp\":\"1702721719312\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BNB-USDC\",\"orderId\":1735930294290081300,\"price\":\"255.27\",\"StopPrice\":\"0\",\"origQty\":\"0.16261\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"time\":1702713008841,\"updateTime\":1702713008841,\"origQuoteOrderQty\":\"0\",\"fee\":0}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT,Query all pending orders when left blank.\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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\":\"stopPrice\",\"type\":\"string\",\"description\":\"trigger price\"}]}]}]\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\":\"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\"./05_get_quote_ticker\": \"wj44\",\n\t\"./05_get_quote_ticker.json\": \"wj44\",\n\t\"./06_get_market_agg_depth\": \"cYhj\",\n\t\"./06_get_market_agg_depth.json\": \"cYhj\",\n\t\"./07_get_market_price\": \"ymfm\",\n\t\"./07_get_market_price.json\": \"ymfm\",\n\t\"./08_get_market_book_ticker\": \"Tbeq\",\n\t\"./08_get_market_book_ticker.json\": \"Tbeq\",\n\t\"./09_get_market_history_klines\": \"7UNC\",\n\t\"./09_get_market_history_klines.json\": \"7UNC\",\n\t\"./10_get_ market_histroy_traders\": \"cRRp\",\n\t\"./10_get_ market_histroy_traders.json\": \"cRRp\",\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\":\"title\",\"text\":\"2024-03-04\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract: Place Order api supports TRAILING_TP_SL order type\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-03-04.json\n// module id = VZgP\n// module chunks = 3","var map = {\n\t\"./01_get_quote_contracts.json\": \"DcMO\",\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\t\"./19_get_historicalTrades.json\": \"xyiP\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"E4EJ\",\n\t\"./21_get_quote_mark_price_klines.json\": \"VeQG\",\n\t\"./22_get_quote_price_v2.json\": \"rCcB\"\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","module.exports = [{\"type\":\"hash\",\"text\":\"Mark Price Kline/Candlestick Data\"},{\"type\":\"normal\",\"text\":\"Get the latest mark price Kline Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/market/markPriceKlines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"KNC-USDT\",\"interval\":\"1h\",\"limit\":\"1000\",\"startTime\":\"1702717199998\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"0.7034\",\"close\":\"0.7065\",\"high\":\"0.7081\",\"low\":\"0.7033\",\"volume\":\"635494.00\",\"openTime\":1705820520000,\"closeTime\":1705820520000}]}},\"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\"},{\"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\":\"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/21_get_quote_mark_price_klines.json\n// module id = VeQG\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 = [{\"id\":\"1\",\"resource\":\"/health\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"2\",\"resource\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"3\",\"resource\":\"/openApi/account/v1/uid\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"4\",\"resource\":\"/openApi/agent/v1/account/inviteAccountList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"4\",\"resource\":\"/openApi/agent/v1/asset/partnerData\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"5\",\"resource\":\"/openApi/agent/v1/reward/commissionDataList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"6\",\"resource\":\"/openApi/api/v3/asset/transfer\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"7\",\"resource\":\"/openApi/api/v3/capital/deposit/hisrec\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"8\",\"resource\":\"/openApi/api/v3/capital/withdraw/history\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"9\",\"resource\":\"/openApi/api/v3/get/asset/transfer\",\"resource_type\":\"1\",\"business_id\":\"4\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"10\",\"resource\":\"/openApi/api/v3/post/asset/transfer\",\"resource_type\":\"1\",\"business_id\":\"4\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"11\",\"resource\":\"/openApi/contract/v1/allOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"12\",\"resource\":\"/openApi/contract/v1/allPosition\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"13\",\"resource\":\"/openApi/contract/v1/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"14\",\"resource\":\"/openApi/copy-trade/v1/trader/ranks\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"15\",\"resource\":\"/openApi/copy-trade/v1/trader/ranks/search\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"16\",\"resource\":\"/openApi/spot/v1/account/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"17\",\"resource\":\"/openApi/spot/v1/common/prices\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"18\",\"resource\":\"/openApi/spot/v1/common/symbols\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"19\",\"resource\":\"/openApi/spot/v1/market/depth\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"20\",\"resource\":\"/openApi/spot/v1/market/kline\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"21\",\"resource\":\"/openApi/spot/v1/market/trades\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"22\",\"resource\":\"/openApi/spot/v1/ticker/24hr\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"23\",\"resource\":\"/openApi/spot/v1/trade/batchOrders\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"24\",\"resource\":\"/openApi/spot/v1/trade/cancel\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"25\",\"resource\":\"/openApi/spot/v1/trade/cancelOrders\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"26\",\"resource\":\"/openApi/spot/v1/trade/historyOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"27\",\"resource\":\"/openApi/spot/v1/trade/myTrades\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"28\",\"resource\":\"/openApi/spot/v1/trade/openOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"29\",\"resource\":\"/openApi/spot/v1/trade/order\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"30\",\"resource\":\"/openApi/spot/v1/trade/query\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"31\",\"resource\":\"/openApi/sub-account/v1/apiKey/query\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"32\",\"resource\":\"/openApi/subAccount/v1/apiKey/create\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"33\",\"resource\":\"/openApi/subAccount/v1/apiKey/del\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"34\",\"resource\":\"/openApi/subAccount/v1/apiKey/edit\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"35\",\"resource\":\"/openApi/subAccount/v1/assets\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"36\",\"resource\":\"/openApi/subAccount/v1/create\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"37\",\"resource\":\"/openApi/subAccount/v1/list\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"38\",\"resource\":\"/openApi/subAccount/v1/updateStatus\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"39\",\"resource\":\"/openApi/swap/v2/quote/bookTicker\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"40\",\"resource\":\"/openApi/swap/v2/quote/contracts\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"41\",\"resource\":\"/openApi/swap/v2/quote/depth\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"42\",\"resource\":\"/openApi/swap/v2/quote/fundingRate\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"43\",\"resource\":\"/openApi/swap/v2/quote/klines\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"44\",\"resource\":\"/openApi/swap/v2/quote/openInterest\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"45\",\"resource\":\"/openApi/swap/v2/quote/premiumIndex\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"46\",\"resource\":\"/openApi/swap/v2/quote/price\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"47\",\"resource\":\"/openApi/swap/v2/quote/ticker\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"48\",\"resource\":\"/openApi/swap/v2/quote/trades\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"49\",\"resource\":\"/openApi/swap/v2/server/time\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"null\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"50\",\"resource\":\"/openApi/swap/v2/trade/allFillOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"51\",\"resource\":\"/openApi/swap/v2/trade/allOpenOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"52\",\"resource\":\"/openApi/swap/v2/trade/allOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"53\",\"resource\":\"/openApi/swap/v2/trade/batchOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"54\",\"resource\":\"/openApi/swap/v2/trade/closeAllPositions\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"55\",\"resource\":\"/openApi/swap/v2/trade/forceOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"56\",\"resource\":\"/openApi/swap/v2/trade/leverage\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"57\",\"resource\":\"/openApi/swap/v2/trade/marginType\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"58\",\"resource\":\"/openApi/swap/v2/trade/openOrder\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"null\"},{\"id\":\"59\",\"resource\":\"/openApi/swap/v2/trade/openOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"60\",\"resource\":\"/openApi/swap/v2/trade/order\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"61\",\"resource\":\"/openApi/swap/v2/trade/order/test\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"62\",\"resource\":\"/openApi/swap/v2/trade/positionMargin\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"63\",\"resource\":\"/openApi/swap/v3/user/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"64\",\"resource\":\"/openApi/swap/v2/user/commissionRate\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"65\",\"resource\":\"/openApi/swap/v2/user/income\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"66\",\"resource\":\"/openApi/swap/v2/user/income/export\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"67\",\"resource\":\"/openApi/swap/v2/user/positions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"68\",\"resource\":\"/openApi/swap/v3/quote/klines\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"69\",\"resource\":\"https://open-api.bingx.com/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"70\",\"resource\":\"/openApi/v1/account/apiRestrictions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"71\",\"resource\":\"/openApi/wallets/v1/capital/config/getall\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"72\",\"resource\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"resource_type\":\"1\",\"business_id\":\"5\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"73\",\"resource\":\"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply\",\"resource_type\":\"1\",\"business_id\":\"7\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"74\",\"resource\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"resource_type\":\"1\",\"business_id\":\"5\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"75\",\"resource\":\"ACCOUNT_UPDATE\",\"resource_type\":\"2\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"null\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"76\",\"resource\":\"spot.executionReport\",\"resource_type\":\"2\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"null\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"77\",\"resource\":\"/openApi/swap/v2/trade/order\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"77\",\"resource\":\"/openApi/swap/v2/trade/openOrder\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"78\",\"resource\":\"/openApi/swap/v2/trade/order\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"79\",\"resource\":\"/openApi/spot/v1/account/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"80\",\"resource\":\"https://open-api.bingx.com/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"PUT\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"81\",\"resource\":\"https://open-api.bingx.com/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"DELETE\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"82\",\"resource\":\"/openApi/spot/v1/trade/openOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"10\"},{\"id\":\"83\",\"resource\":\"/openApi/spot/v1/trade/order\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"84\",\"resource\":\"/openApi/spot/v1/trade/query\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"85\",\"resource\":\"/openApi/spot/v1/trade/cancel\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"86\",\"resource\":\"/openApi/swap/v2/trade/batchOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"87\",\"resource\":\"/openApi/swap/v2/trade/leverage\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"88\",\"resource\":\"/openApi/swap/v2/trade/marginType\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"89\",\"resource\":\"/openApi/wallets/v1/capital/deposit/address\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"90\",\"resource\":\"/openApi/wallets/v1/capital/subAccount/deposit/address\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"91\",\"resource\":\"/openApi/wallets/v1/capital/innerTransfer/records\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"92\",\"resource\":\"/openApi/wallets/v1/capital/deposit/subHisrec\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"93\",\"resource\":\"/openApi/wallets/v1/capital/subAccount/innerTransfer/records\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"94\",\"resource\":\"/openApi/wallets/v1/capital/deposit/createSubAddress\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"95\",\"resource\":\"/openApi/spot/v2/market/kline\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"96\",\"resource\":\"/openApi/copyTrading/v1/swap/trace/currentTrack\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"97\",\"resource\":\"/openApi/copyTrading/v1/swap/trace/closeTrackOrder\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"98\",\"resource\":\"/openApi/copyTrading/v1/swap/trace/setTPSL\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"99\",\"resource\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"100\",\"resource\":\"/openApi/agent/v1/asset/depositDetailList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"101\",\"resource\":\"/openApi/agent/v1/reward/third/commissionDataList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"102\",\"resource\":\"/openApi/account/v1/apiKey/query\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"103\",\"resource\":\"/openApi/swap/v1/positionSide/dual\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"104\",\"resource\":\"/openApi/swap/v1/positionSide/dual\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"105\",\"resource\":\"/openApi/spot/v1/user/commissionRate\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"106\",\"resource\":\"/openApi/spot/v1/trade/cancelOpenOrders\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"107\",\"resource\":\"/openApi/swap/v1/market/historicalTrades\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"108\",\"resource\":\"/openApi/swap/v1/market/markPriceKlines\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"109\",\"resource\":\"/openApi/content/v1/announcement\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"110\",\"resource\":\"/openApi/market/his/v1/trade\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"111\",\"resource\":\"/openApi/market/his/v1/kline\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"112\",\"resource\":\"/openApi/spot/v2/market/depth\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"113\",\"resource\":\"/openApi/swap/v1/ticker/price\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"114\",\"resource\":\"/openApi/swap/v1/trade/cancelReplace\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"115\",\"resource\":\"/openApi/swap/v1/trade/batchCancelReplace\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"116\",\"resource\":\"/openApi/spot/v1/ticker/bookTicker\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"117\",\"resource\":\"/openApi/spot/v1/ticker/price\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"118\",\"resource\":\"/openApi/wallets/v1/capital/deposit/riskRecords\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"119\",\"resource\":\"/openApi/spot/v1/trade/order/cancelReplace\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"120\",\"resource\":\"/openApi/spot/v1/trade/cancelAllAfter\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"121\",\"resource\":\"/openApi/swap/v2/trade/cancelAllAfter\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"122\",\"resource\":\"/openApi/copyTrading/v1/spot/trader/sellOrder\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/closePosition\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/fullOrder\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/openInterest\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/premiumIndex\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/contracts\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/maintMarginRatio\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/user/commissionRate\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/leverage\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/leverage\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/allOpenOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/closeAllPositions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/user/positions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/user/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/forceOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/allFillOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/order\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/klines\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/depth\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/ticker\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/account/transfer/v1/subAccount/asset/transferHistory\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/account/transfer/v1/subAccount/transferAsset\",\"resource_type\":\"1\",\"business_id\":\"4\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v2/trade/fillHistory\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/orderDetail\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/orderDetail\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/orderHistory\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/marginType\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/marginType\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/positionMargin\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/cancelOrder\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/openOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/positionHistory\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/order\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/openOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/historyOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/orderDetail\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/cancelOrder\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/positionMargin/history\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/account/v1/allAccountBalance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/subAccount/v1/allAccountBalance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/order\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/cancel\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/orderList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/openOrderList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/historyOrderList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/getVst\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/assetMode\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/assetMode\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/multiAssetsRules\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"1\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/assetMode\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/user/marginAssets\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/v1/account/apiPermissions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"PUT\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"99999\",\"resource\":\"保留这个和忽略这个JSON 在结尾,只用于备注\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"NOTE\",\"text\":\"apikey 权限代码 0-行情接口无需鉴权API KEY, 1-现货交易 2-读取 3-专业合约交易 4-万向划转 5-提币 6-允许管理子账户 7-允许子账户内转\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/utils/apikey.json\n// module id = W+8S\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\":\"Query account data\"},{\"type\":\"normal\",\"text\":\"Get asset information of user‘s Perpetual Account of USDC and USDT\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v3/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702731518913\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"userId\":\"116***295\",\"asset\":\"USDT\",\"balance\":\"194.8212\",\"equity\":\"196.7431\",\"unrealizedProfit\":\"1.9219\",\"realisedProfit\":\"-109.2504\",\"availableMargin\":\"193.7609\",\"usedMargin\":\"1.0602\",\"freezedMargin\":\"0.0000\"}]}},\"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\"},{\"name\":\"shortUid\",\"type\":\"string\",\"description\":\"short uid\"}]}]}]\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\":\"SNAPSHOT\"}]},{\"type\":\"warning\",\"text\":\"每次建立連接成功都會全量推送1次,之後每隔5秒全量推送1次。\"},{\"type\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\"},{\"name\":\"cr\",\"type\":\"\",\"description\":\"持倉已實現盈虧:1.231123\"}]}]}]\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\":\"Change Margin Type\"},{\"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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"MINA-USDT\",\"marginType\":\"CROSSED\",\"recvWindow\":\"60000\",\"timestamp\":\"1702733445917\"},\"response\":{\"code\":0,\"msg\":\"\"},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"the account has positions or pending orders\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"SetTradingStrategy network failed\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"query Service Unavailable, err:contract not exist\",\"data\":{}}}]},\"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\":\"一個websocket限制最多200個連接,超過將返回100416錯誤碼。\"},{\"type\":\"normal\",\"text\":\"一個IP限制最多60個websocket,超過將返回100419錯誤碼。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/01_limit.json\n// module id = WMCK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"變換逐全倉模式\"},{\"type\":\"normal\",\"text\":\"變換用戶在指定symbol合約上的保證金模式:逐倉或全倉。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"MINA-USDT\",\"marginType\":\"CROSSED\",\"recvWindow\":\"60000\",\"timestamp\":\"1702733445917\"},\"response\":{\"code\":0,\"msg\":\"\"},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"the account has positions or pending orders\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"SetTradingStrategy network failed\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"query Service Unavailable, err:contract not exist\",\"data\":{}}}]},\"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 = {\"module\":\"cswap\",\"path\":\"/en-us/cswap/description\",\"name\":\"interface\",\"content\":[{\"type\":\"html\",\"text\":\"
  • The api 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.
  • \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/2_description.json\n// module id = WXeB\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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},\"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\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"為了保持跨平台時精度的完整性,十進制數字作為字符串返回。建議您在發起請求時也将數字轉換為字符串以避免截斷和精度錯誤\"},{\"type\":\"html\",\"text\":\"整數(如交易編號和順序)不加引號\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic/03_digital_rule.json\n// module id = WihS\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"Q: What is UID?\"},{\"type\":\"normal\",\"text\":\"A: UID stands for User ID, which is a unique identifier for each user (including parent users and sub-users). UID can be viewed in the personal information section of the web or app interface, and it can also be obtained through the GET /openApi/account/v1/uid interface.\"},{\"type\":\"title\",\"text\":\"Q: How many API Keys can a user apply for?\"},{\"type\":\"normal\",\"text\":\"A: Each parent user can create up to 20 sets of API Keys. Each parent user can also create up to 20 sub-users, and each sub-user can create up to 20 sets of API Keys. Each API Key can be set with different permissions.\"},{\"type\":\"title\",\"text\":\"Q: Why do I often experience disconnections and timeouts?\"},{\"type\":\"normal\",\"text\":\"A: It could be due to network fluctuations. We recommend reconnecting in such cases.\"},{\"type\":\"title\",\"text\":\"Q: Why does WebSocket connection always get disconnected?\"},{\"type\":\"normal\",\"text\":\"A: You can check if your code returns a Pong after receiving a Ping. If you are subscribing to account-related websockets, please also check if you are regularly updating the listenkey. We recommend using our sample code first.\"},{\"type\":\"title\",\"text\":\"Q: Why does signature authentication always fail?\"},{\"type\":\"normal\",\"text\":\"A: Please carefully read our signature authentication instructions, or test using our sample code first.\"},{\"type\":\"title\",\"text\":\"Q: Is the API Key for U-based contracts the same as Spot trading?\"},{\"type\":\"normal\",\"text\":\"A: The API Key for U-based contracts is the same as the API Key for Spot trading. However, the permissions for spot trading and contract trading are separate and need to be configured accordingly.\"},{\"type\":\"title\",\"text\":\"Q: How many types of risk control restrictions does BingX have for APIs?\"},{\"type\":\"normal\",\"text\":\"A: BingX has three types of risk control strategies for APIs: api rate limiting, trading restrictions, and network firewall restrictions. These restrictions may change at any time.\"},{\"type\":\"normal\",\"text\":\"Interface rate limiting:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"The rate limiting for each api may vary. Please refer to the specific api documentation for details.\"}]},{\"type\":\"normal\",\"text\":\"Trading restrictions: Trading behavior is evaluated based on the behavior of regular users. If your trading behavior deviates significantly from that of regular users, you may be prohibited from trading, and the duration of the prohibition is uncertain. The duration of the trading prohibition may increase under the following circumstances:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"1. Frequently occupying the best bid and ask prices.\"},{\"type\":\"normal\",\"text\":\"2. Frequently placing/canceling orders without any trades.\"},{\"type\":\"normal\",\"text\":\"3. Very low trade completion rate, where the completion rate = number of trades / (number of placed orders + number of canceled orders).\"},{\"type\":\"normal\",\"text\":\"4. Very low trade weight, where the trade weight = total trade amount / (total placed order amount + total canceled order amount).\"},{\"type\":\"normal\",\"text\":\"5. Continuously sending frequent requests after receiving a 429 error response.\"}]},{\"type\":\"normal\",\"text\":\"Network Firewall Restrictions\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"Currently, we do not provide explicit information about network firewall restrictions. If you receive an HTTP 403 error message, it means you have violated a network firewall rule. In most cases, this error occurs due to excessive requests and will result in a five-minute temporary ban. However, if your requests are considered malicious, it may lead to a longer ban or even permanent suspension.\"}]},{\"type\":\"title\",\"text\":\"Q: How to report API api errors?\"},{\"type\":\"normal\",\"text\":\"Please contact our official customer service and provide the following template to report the issue. Our technical support will assist you:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"1. Problem description\"},{\"type\":\"normal\",\"text\":\"2. User ID (UID) and order ID (if related to account or order), API KEY\"},{\"type\":\"normal\",\"text\":\"3. Complete request parameters (if applicable)\"},{\"type\":\"normal\",\"text\":\"4. Complete JSON formatted response\"},{\"type\":\"normal\",\"text\":\"5. Time and frequency of the issue (when it started, if it can be reproduced)\"},{\"type\":\"normal\",\"text\":\"6. Signature information\"}]},{\"type\":\"title\",\"text\":\"Q: Does the API support standard contract trading?\"},{\"type\":\"normal\",\"text\":\"A: Currently not supported.\"},{\"type\":\"title\",\"text\":\"Q: Does the API support stock and forex trading?\"},{\"type\":\"normal\",\"text\":\"A: Currently not supported.\"},{\"type\":\"title\",\"text\":\"Q: Does the mobile app support API management?\"},{\"type\":\"normal\",\"text\":\"A: This feature is under development.\"},{\"type\":\"title\",\"text\":\"Q: How many channels can be subscribed per IP address on BingX?\"},{\"type\":\"normal\",\"text\":\"A: Currently, there is no limit, but there is a subscription rate limit. Please do not exceed 10/s.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/q&a/2023-09-12.json\n// module id = WisP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"主賬戶充值地址\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶查詢自己特定幣種在其所在區塊鏈中的充幣地址,限母用戶可用。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/address\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"limit\":\"1000\",\"offset\":\"0\",\"recvWindow\":\"0\",\"timestamp\":\"1702623917652\"},\"response\":{\"code\":0,\"timestamp\":1702623918163,\"data\":{\"data\":[{\"coinId\":760,\"coin\":\"USDT\",\"network\":\"ERC20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":780,\"coin\":\"USDT\",\"network\":\"TRC20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":799,\"coin\":\"USDT\",\"network\":\"BEP20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":857,\"coin\":\"USDT\",\"network\":\"SOL\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1192,\"coin\":\"USDT\",\"network\":\"POLYGON\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1367,\"coin\":\"USDT\",\"network\":\"ARBITRUM\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1371,\"coin\":\"USDT\",\"network\":\"OPTIMISM\",\"address\":\"40e*****95\",\"tag\":\"\"}],\"total\":7}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"充值地址列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"網絡名稱\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"帶有前綴的儲值地址\"},{\"name\":\"tag\",\"type\":\"string\",\"description\":\"地址tag\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0已激活 1已申請 2未申請\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/13.get_wallet_queryDepositAddress.json\n// module id = WnFl\n// module chunks = 3","var map = {\n\t\"./01_get_quote_contracts.json\": \"lrAs\",\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\t\"./19_get_historicalTrades.json\": \"iQjo\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"1iLz\",\n\t\"./21_get_quote_mark_price_klines.json\": \"5vst\",\n\t\"./22_get_quote_price_v2.json\": \"OSRE\"\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","\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\":\"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\":\"
  • 80012 - 服務不可用
  • \"},{\"type\":\"html\",\"text\":\"
  • 80014 - 參數無效
  • \"},{\"type\":\"html\",\"text\":\"
  • 80016 - 訂單不存在
  • \"},{\"type\":\"html\",\"text\":\"
  • 80017 - 倉位不存在
  • \"},{\"type\":\"html\",\"text\":\"
  • 80020 - risk forbidden
  • \"},{\"type\":\"html\",\"text\":\"
  • 100004 - Permission denied as the API key was created without the permission
  • \"},{\"type\":\"html\",\"text\":\"
  • 100419 - IP does not match IP whitelist
  • \"},{\"type\":\"html\",\"text\":\"
  • 101204 - Insufficient margin
  • \"},{\"type\":\"html\",\"text\":\"
  • 80013 - The number of your entrusted orders has reached the system limit. If you need to place an order, please cancel other orders first
  • \"},{\"type\":\"html\",\"text\":\"
  • 80018 - order is already filled
  • \"},{\"type\":\"html\",\"text\":\"
  • 80019 - The order is being processed. Please use the allOrders api to retrieve the order details later
  • \"},{\"type\":\"normal\",\"text\":\"100400\",\"children\":[{\"type\":\"html\",\"text\":\"arguments invalid\"},{\"type\":\"html\",\"text\":\"miss arguments\"}]},{\"type\":\"html\",\"text\":\"
  • 100412 - Null signature
  • \"},{\"type\":\"html\",\"text\":\"
  • 100413 - Incorrect apiKey
  • \"},{\"type\":\"html\",\"text\":\"
  • 100421 - Null timestamp or timestamp mismatch
  • \"},{\"type\":\"html\",\"text\":\"
  • 101209 - The maximum position value for this leverage is ** USDT
  • \"},{\"type\":\"html\",\"text\":\"
  • 101212 - Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again
  • \"},{\"type\":\"html\",\"text\":\"
  • 101215 - The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.
  • \"},{\"type\":\"html\",\"text\":\"
  • 101414 - The maximum leverage for the trading pair is *, please reduce the leverage
  • \"},{\"type\":\"html\",\"text\":\"
  • 101415 - This trading pair is suspended from opening new position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101460 - The order price should be higher than the estimated liquidation price of the long position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101500 - rpc timeout
  • \"},{\"type\":\"html\",\"text\":\"
  • 101514 - You're temporarily suspended from opening positions. Please try again later
  • \"},{\"type\":\"html\",\"text\":\"
  • 109201 - The same order number is only allowed to be submitted once within 1 second.
  • \"},{\"type\":\"normal\",\"text\":\"101211\",\"children\":[{\"type\":\"html\",\"text\":\"Order price should be lower than*\"},{\"type\":\"html\",\"text\":\"Order price should be higher than*\"}]},{\"type\":\"normal\",\"text\":\"80012\",\"children\":[{\"type\":\"html\",\"text\":\"GetMarketTrades getContractInfo failled\"},{\"type\":\"html\",\"text\":\"symbol not exist\"},{\"type\":\"html\",\"text\":\"invalid parameter\"},{\"type\":\"html\",\"text\":\"Service Unavailable\"},{\"type\":\"html\",\"text\":\"leverage illegal\"},{\"type\":\"html\",\"text\":\"connect: connection refused\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"startTime is later than endTime\"},{\"type\":\"html\",\"text\":\"OpenInterestNotExist\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"},{\"type\":\"html\",\"text\":\"invalid connection\"},{\"type\":\"html\",\"text\":\"stop order cnt hit limit 50\"},{\"type\":\"html\",\"text\":\"network failed\"},{\"type\":\"html\",\"text\":\"trading has been locked\"},{\"type\":\"html\",\"text\":\"position limit\"}]},{\"type\":\"normal\",\"text\":\"101400\",\"children\":[{\"type\":\"html\",\"text\":\"No position to close\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"Insufficient margin\"},{\"type\":\"html\",\"text\":\"Must be lower than the maximum callback rate of 90%\"},{\"type\":\"html\",\"text\":\"Must be greater than the minimum callback rate of 0.1%\"},{\"type\":\"html\",\"text\":\"Invalid Parameter\"}]},{\"type\":\"normal\",\"text\":\"80001\",\"children\":[{\"type\":\"html\",\"text\":\"tickers is nil\"},{\"type\":\"html\",\"text\":\"Request failed\"},{\"type\":\"html\",\"text\":\"service has some errors, order not exist\"},{\"type\":\"html\",\"text\":\"orderId and clientOrderID are both empty, orderId and clientOrderID are both empty\"},{\"type\":\"html\",\"text\":\"order state illegal, order not exist\"},{\"type\":\"html\",\"text\":\"the account has positions or pending orders\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"You're temporarily suspended from opening positions. Please try again later\"},{\"type\":\"html\",\"text\":\"order state illegalorder not exist\"},{\"type\":\"html\",\"text\":\"Mismatch type\"},{\"type\":\"html\",\"text\":\"At present, the actual position is occupied by a Limit Order. If you need to close the position, please cancel other orders first\"},{\"type\":\"html\",\"text\":\"trading strategy available is false\"},{\"type\":\"html\",\"text\":\"order not exist\"},{\"type\":\"html\",\"text\":\"The maximum leverage for the trading pair is 5, please reduce the leverage\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"The current system is busy\"}]},{\"type\":\"html\",\"text\":\"

    註意:

    \"},{\"type\":\"html\",\"text\":\"
  • 如果失敗,response body 帶有錯誤描述信息
  • \"},{\"type\":\"html\",\"text\":\"
  • 每個接口都有可能抛出異常
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic/01_error_code.json\n// module id = XCkz\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/copyTrade/api/trader/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/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\":\"Query user API Key permissions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiRestrictions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702624501386\"},\"response\":{\"ipRestrict\":false,\"createTime\":1684763997626,\"permitsUniversalTransfer\":false,\"enableReading\":true,\"enableFutures\":false,\"enableSpotAndMarginTrading\":false}},\"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\":\"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","module.exports = [{\"type\":\"hash\",\"text\":\"頻率限制\"},{\"type\":\"html\",\"text\":\"如果請求過於頻繁系統將自動限制請求,5分鐘後,會自動恢復;\"},{\"type\":\"html\",\"text\":\"基於賬號UID的限頻,每個接口的都有自己獨立的限頻,相互不影響\"},{\"type\":\"html\",\"text\":\"使用者可依據Http Header中的\\\"X-RateLimit-Requests-Remain\\\"(限頻剩餘次數)及\\\"X-RateLimit-Requests-Expire\\\"(視窗過期時間)查看目前限頻使用情況,以及所在時間視窗的過期時間,根據該數值動態調整您的請求頻率。\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"同時會受到根據UID和IP的不同限頻,基於UID限頻詳見各接口文檔,其中基於IP限頻會基於以下分組規則進行\"},{\"type\":\"html\",\"text\":\"
  • 行情接口分組[1]: 分組內所有接口基於IP限頻總和:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[2]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[3]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:200/10s
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic/04_rate_limits.json\n// module id = XvOK\n// module chunks = 3","var map = {\n\t\"./01_balance.json\": \"qHKX\",\n\t\"./02_order.json\": \"tdP1\",\n\t\"./03_setting.json\": \"PEUY\"\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 = \"Y7Gx\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/account \\.json$\n// module id = Y7Gx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"24小時價格變動情况\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"SFP-USDT\",\"timestamp\":\"1702719836770\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"SFP-USDT\",\"priceChange\":\"0.0295\",\"priceChangePercent\":\"4.15\",\"lastPrice\":\"0.7409\",\"lastQty\":\"10\",\"highPrice\":\"0.7506\",\"lowPrice\":\"0.6903\",\"volume\":\"4308212\",\"quoteVolume\":\"3085449.53\",\"openPrice\":\"0.7114\",\"openTime\":1702719833853,\"closeTime\":1702719798603,\"askPrice\":\"0.7414\",\"askQty\":\"99\",\"bidPrice\":\"0.7413\",\"bidQty\":\"84\"}}},\"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\":\"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小時內,最後一筆交易的發生時間\"},{\"name\":\"bidPrice\",\"type\":\"float64\",\"description\":\"買一價格\"},{\"name\":\"bidQty\",\"type\":\"float64\",\"description\":\"買一數量\"},{\"name\":\"askPrice\",\"type\":\"float64\",\"description\":\"賣一價格\"},{\"name\":\"askQty\",\"type\":\"float64\",\"description\":\"賣一數量\"}]}]}]\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\":\"Query All Open OCO Orders\"},{\"type\":\"normal\",\"text\":\"Query the list of orders that are currently in the pending order state\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/openOrderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":1,\"pageSize\":100,\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460545\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"NEW\"},{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460544\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"PENDING\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Page number\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Number of items per page\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request validity window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"Order time\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"User-defined order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit: OCO Limit Order, ocoTps: OCO Stop-Limit Order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Trade type, BUY for buy, SELL for sell\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Order price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO order group ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/103_get_all_pending_oco_order.json\n// module id = YC1x\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易下單\"},{\"type\":\"normal\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"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\":\"html\",\"text\":\"

    3. 開倉加倉的同時設置止盈止損:使用takeProfit或者stopLoss字段

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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/cswap/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"ETH-USD\",\"positionSide\":\"SHORT\",\"price\":\"3777\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"quantity\":\"20\",\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT\\\", \\\"stopPrice\\\": 3666.0,\\\"price\\\": 3776.0,\\\"workingType\\\":\\\"CONTRACT_PRICE\\\"}\",\"stopLoss\":\"{\\\"type\\\": \\\"STOP\\\", \\\"stopPrice\\\": 3999.0,\\\"price\\\": 2888.0,\\\"workingType\\\":\\\"CONTRACT_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orderId\":1802706634360750000,\"symbol\":\"ETH-USD\",\"positionSide\":\"SHORT\",\"side\":\"SELL\",\"type\":\"LIMIT\",\"price\":3777,\"quantity\":20,\"stopPrice\":0,\"workingType\":\"\",\"timeInForce\":\"\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約張數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT需要此參數\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT。當type為STOP或STOP_MARKET\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT需要此參數\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/00_post_trade_order.json\n// module id = YI4R\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place order\"},{\"type\":\"desc\",\"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)\",\"desc\":[{\"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\":\"
  • TRAILING_STOP_MARKET (Tracking Stop Loss Order) or TRAILING_TP_SL (Trailing TakeProfit/StopLoss Order): The price field or priceRate field needs to be filled in
  • \"},{\"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;

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

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

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

    3. set stopLoss and takeProfit when open position:using takeProfit and stopLoss fields

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"The minimum order quantity can be obtained from the api /openApi/swap/v2/quote/contracts: tradeMinQuantity, tradeMinUSDT\"}]},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"title\":\"MARKET\",\"desc\":\"Place an order at market price and set a take profit\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"}},{\"title\":\"STOP_MARKET\",\"desc\":\"Market stop loss order\",\"payload\":{\"type\":\"STOP_MARKET\",\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_PROFIT_MARKET\",\"desc\":\"Market price take profit order\",\"payload\":{\"type\":\"TAKE_PROFIT_MARKET\",\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"STOP\",\"desc\":\"Stop limit order\",\"payload\":{\"type\":\"STOP\",\"price\":50000,\"stopPrice\":50000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_PROFIT\",\"desc\":\"Limit price and take profit order\",\"payload\":{\"type\":\"TAKE_PROFIT\",\"price\":70000,\"stopPrice\":70000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_LIMIT\",\"desc\":\"Limit order with trigger\",\"payload\":{\"type\":\"TRIGGER_LIMIT\",\"price\":70000,\"stopPrice\":70000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"takeProfit\":\"\",\"recvWindow\":1000,\"stopLoss\":\"\",\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_MARKET\",\"desc\":\"Market order with trigger\",\"payload\":{\"type\":\"TRIGGER_MARKET\",\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"takeProfit\":\"\",\"recvWindow\":1000,\"stopLoss\":\"\",\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRAILING_STOP_MARKET\",\"desc\":\"Trailing Stop Market Order\",\"payload\":{\"type\":\"TRAILING_STOP_MARKET\",\"price\":0,\"stopPrice\":0,\"priceRate\":0.1,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRAILING_TP_SL\",\"desc\":\"Trailing TakeProfit or StopLoss\",\"payload\":{\"type\":\"TRAILING_TP_SL\",\"price\":0,\"stopPrice\":0,\"priceRate\":0.1,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726231037325}},{\"title\":\"POSITION_STOP_MARKET\",\"desc\":\"Market price position stop loss order\",\"payload\":{\"type\":\"STOP_MARKET\",\"closePosition\":true,\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"POSITION_TAKE_PROFIT_MARKET\",\"desc\":\"Market price position take profit order\",\"payload\":{\"type\":\"TAKE_PROFIT_MARKET\",\"closePosition\":true,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}}],\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"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. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId, clientOrderId only supports LIMIT/MARKET order type\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature; cutfee: Enable the guaranteed stop loss function and enable the VIP guaranteed stop loss fee reduction function. When stopGuaranteed is true or cutfee, the quantity field does not take effect. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature; cutfee: Enable the guaranteed stop loss function and enable the VIP guaranteed stop loss fee reduction function. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"orderID\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature; cutfee: Enable the guaranteed stop loss function and enable the VIP guaranteed stop loss fee reduction function. The VIP fee reduction only takes effect when placing a stop loss order.. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\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","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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"address\":\"0x8****11\",\"addressTag\":\"None\",\"amount\":\"4998.0\",\"coin\":\"USDT\",\"network\":\"BEP20\",\"timestamp\":\"1702619167144\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702619168218,\"data\":{\"id\":\"125*****4\"}}},\"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\":\"addressTag\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Tag or memo, some currencies support tag or memo\"},{\"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\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customer-defined withdrawal ID, a combination of numbers and letters, with a length of less than 100 characters\"},{\"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\":\"id\",\"type\":\"string\",\"description\":\"The platform returns the unique ID of the internal transfer record.\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customer-defined withdrawal ID, a combination of numbers and letters, with a length of less than 100 characters\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/06_post_wallets_withdraw.json\n// module id = YSKw\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/spot/websocket/introduce/03_data_compress.json\n// module id = YUWz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢幣對K線數據\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 僅支持查詢最近30天的K線數據
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"interval\":\"1m\",\"startTime\":1716912000000,\"endTime\":1716998400000,\"limit\":100,\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"67792.6\",\"close\":\"67792.6\",\"high\":\"67792.6\",\"low\":\"67792.6\",\"volume\":\"3.00\",\"time\":1716998340000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"時間間隔,可選值有:1m,3m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,3d,1w,1M\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間,返回結果包含該時間的K線\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,返回結果不包含該時間的K線\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"返回結果的數量,不填默認為500,最大為1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應時間,毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"open\",\"type\":\"string\",\"description\":\"開盤價\"},{\"name\":\"close\",\"type\":\"string\",\"description\":\"收盤價\"},{\"name\":\"high\",\"type\":\"string\",\"description\":\"最高價\"},{\"name\":\"low\",\"type\":\"string\",\"description\":\"最低價\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"交易數量,張數\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"k線時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market/04_get_kline.json\n// module id = Yskp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Funding Rate History\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • If both startTime and endTime are not sent, return the latest limit data.
  • \"},{\"type\":\"html\",\"text\":\"
  • The returned list is sorted by time from smallest to largest
  • \"},{\"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\":\"QNT-USDT\",\"limit\":2},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"QNT-USDT\",\"fundingRate\":\"0.00027100\",\"fundingTime\":1702713600000},{\"symbol\":\"QNT-USDT\",\"fundingRate\":\"0.00012800\",\"fundingTime\":1702684800000}]}},\"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\":\"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\"},{\"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\":\"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","var map = {\n\t\".\": \"2xjp\",\n\t\"./\": \"2xjp\",\n\t\"./00_post_trade_order_test\": \"CwX9\",\n\t\"./00_post_trade_order_test.json\": \"CwX9\",\n\t\"./01_post_trade_order\": \"vDBD\",\n\t\"./01_post_trade_order.json\": \"vDBD\",\n\t\"./01_post_trade_order_vst\": \"6dPc\",\n\t\"./01_post_trade_order_vst.json\": \"6dPc\",\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_check_pending_order\": \"26Si\",\n\t\"./08_check_pending_order.json\": \"26Si\",\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\"./17_get_trade_allFillOrders\": \"7iFh\",\n\t\"./17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./18_set_positionSide\": \"QEfH\",\n\t\"./18_set_positionSide.json\": \"QEfH\",\n\t\"./19_get_positionSide\": \"jzOs\",\n\t\"./19_get_positionSide.json\": \"jzOs\",\n\t\"./20_cancel_replace_order\": \"4bTX\",\n\t\"./20_cancel_replace_order.json\": \"4bTX\",\n\t\"./21_batch_cancel_replace_order\": \"/nLp\",\n\t\"./21_batch_cancel_replace_order.json\": \"/nLp\",\n\t\"./22_cancel_all_after\": \"1pQ9\",\n\t\"./22_cancel_all_after.json\": \"1pQ9\",\n\t\"./22_post_closePosition\": \"/qZT\",\n\t\"./22_post_closePosition.json\": \"/qZT\",\n\t\"./23_get_trade_allOrdersV2\": \"iRbd\",\n\t\"./23_get_trade_allOrdersV2.json\": \"iRbd\",\n\t\"./24_get_maint_margin_ratio\": \"OyBm\",\n\t\"./24_get_maint_margin_ratio.json\": \"OyBm\",\n\t\"./25_get_fill_history_detail\": \"PJcf\",\n\t\"./25_get_fill_history_detail.json\": \"PJcf\",\n\t\"./26_get_user_position_history\": \"sWA2\",\n\t\"./26_get_user_position_history.json\": \"sWA2\",\n\t\"./27_get_position_margin_history\": \"5iQm\",\n\t\"./27_get_position_margin_history.json\": \"5iQm\",\n\t\"./27_post_get_vst\": \"dtEQ\",\n\t\"./27_post_get_vst.json\": \"dtEQ\",\n\t\"./28_post_twap_order\": \"50Mv\",\n\t\"./28_post_twap_order.json\": \"50Mv\",\n\t\"./29_get_twap_open_orders\": \"0L6n\",\n\t\"./29_get_twap_open_orders.json\": \"0L6n\",\n\t\"./30_get_twap_history_orders\": \"srGS\",\n\t\"./30_get_twap_history_orders.json\": \"srGS\",\n\t\"./31_get_twap_order_detail\": \"+xXY\",\n\t\"./31_get_twap_order_detail.json\": \"+xXY\",\n\t\"./32_cancel_twap_order\": \"5pjb\",\n\t\"./32_cancel_twap_order.json\": \"5pjb\",\n\t\"./33_post_asset_mode\": \"thBV\",\n\t\"./33_post_asset_mode.json\": \"thBV\",\n\t\"./34_get_asset_mode\": \"cRAY\",\n\t\"./34_get_asset_mode.json\": \"cRAY\",\n\t\"./35_get_multi_asset_rule\": \"EWHP\",\n\t\"./35_get_multi_asset_rule.json\": \"EWHP\",\n\t\"./36_get_margin_asset\": \"/HCz\",\n\t\"./36_get_margin_asset.json\": \"/HCz\",\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\":\"Query Multi-Assets Mode\"},{\"type\":\"normal\",\"text\":\"Query account multi-assets mode\"},{\"type\":\"warning\",\"text\":\"Only available for live trading, live trading domain: https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/assetMode\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"assetMode\":\"multiAssetsMode\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"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\":\"assetMode\",\"type\":\"string\",\"description\":\"multi-assets mode, singleAssetMode or multiAssetsMode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/34_get_asset_mode.json\n// module id = ZFUX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query the deposit details of invited users\"},{\"type\":\"normal\",\"text\":\"Agent KOL can query the deposit details of the corresponding UID within a certain period of time through this interface.\"},{\"type\":\"html\",\"text\":\"
  • 1. The verification user must be a parent user and have an agent role;
  • \"},{\"type\":\"html\",\"text\":\"
  • 2. The UID queried must be a user directly or indirectly invited by the verification user;
  • \"},{\"type\":\"html\",\"text\":\"
  • 3. Currently, only deposit information is supported.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\",\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"bizType\":\"1\",\"recWindow\":\"6000\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"list\":[{\"uid\":2489544,\"inviteResult\":true,\"directInvitation\":true,\"bizType\":1,\"bizTime\":1673674073000,\"assetType\":30,\"assetTypeName\":\"Deposit\",\"currencyName\":\"USDT\",\"currencyAmountVolume\":\"1000\"}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"YES\",\"description\":\"Inviting user UID, must be the parent user UID\"},{\"name\":\"bizType\",\"type\":\"int\",\"required\":\"YES\",\"description\":\"1:Deposit\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Start timestamp (days), only supports querying the last 90 days of data.\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"End timestamp (days). Only the last 90 days of data can be queried.\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page number for pagination, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"The number of pages must be greater than 0 and the maximum value is 100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: milliseconds. If not filled, the default is 5 seconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"request timestamp, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"Invited User UID\"},{\"name\":\"inviteResult\",\"type\":\"boolean\",\"description\":\"true: invitation relationship,false: non-invitation relationship\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true: Direct invitation, false: Indirect invitation\"},{\"name\":\"bizType\",\"type\":\"int\",\"description\":\"1:Deposi\"},{\"name\":\"bizTime\",\"type\":\"long\",\"description\":\"event time\"},{\"name\":\"assetType\",\"type\":\"int\",\"description\":\"Operation type breakdown\"},{\"name\":\"assetTypeName\",\"type\":\"string\",\"description\":\"Operation type subdivision name\"},{\"name\":\"currencyName\",\"type\":\"string\",\"description\":\"Currency\"},{\"name\":\"currencyAmountVolume\",\"type\":\"string\",\"description\":\"amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/04_get_Query_the_deposit_details.json\n// module id = ZKxt\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/q&a/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-28\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續修改接口:allFillOrders接口新增type、side和positionSide字段返回。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢contract接口Response新增ensureTrigger字段和triggerFeeRate字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢倉位接口Response新增updateTime字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢賬戶餘額接口新增shortUid字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢槓桿接口和修改槓桿接口新增availableLongVol、availableShortVol、availableLongVal、availableShortVal、maxPositionLongVal、maxPositionShortVal字段\"},{\"type\":\"html\",\"text\":\"永續新增接口:查詢所有訂單接口。\"},{\"type\":\"html\",\"text\":\"跟單新增:交易員按現貨買入訂單號賣出现货資產\"},{\"type\":\"html\",\"text\":\"永續新增:查詢當前全部掛單GET /openApi/swap/v2/trade/openOrders新增返回跟蹤委托、計劃反手訂單及新增返回是否保證止盈止損、只做Maker、回撤比例/價差字段\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-03-28.json\n// module id = ZNZv\n// module chunks = 3","var map = {\n\t\"./01_error_code.json\": \"XCkz\",\n\t\"./02_timestamp.json\": \"oPkH\",\n\t\"./03_digital_rule.json\": \"WihS\",\n\t\"./04_rate_limits.json\": \"p+dP\",\n\t\"./05_system_time.json\": \"lC7j\"\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 = \"ZP2+\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic \\.json$\n// module id = ZP2+\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\":\"code\",\"text\":\"{\\\"ping\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"},{\"type\":\"normal\",\"text\":\"When the Websocket Client receives this heartbeat message, it should return pong message.\"},{\"type\":\"code\",\"text\":\"{\\\"pong\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce/04_heart_beat.json\n// module id = Ze9p\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\":\"SNAPSHOT\"}]},{\"type\":\"warning\",\"text\":\"Each time a connection is successfully established, a full data push will occur once, followed by another full push every 5 seconds.\"},{\"type\":\"warning\",\"text\":\"Account data no longer need to subscribe to channel type,after connect wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"push timestamp: 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\"},{\"name\":\"cr\",\"type\":\"\",\"description\":\"realized profit and loss of positions:1.32130000\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"充值記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702622588000\",\"recvWindow\":\"5000\",\"startTime\":\"1700894588000\",\"timestamp\":\"1702622588533\"},\"response\":[{\"amount\":\"49999.00000000000000000000\",\"coin\":\"USDTTRC20\",\"network\":\"TRC20\",\"status\":1,\"address\":\"TP******B4v\",\"addressTag\":\"\",\"txId\":\"60*****1d\",\"insertTime\":1701557778000,\"unlockConfirm\":\"2/2\",\"confirmTimes\":\"2/2\"}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣的名稱\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"状态(0-進行中 6-已上鏈 1-已完成)\"},{\"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-進行中 6-已上鏈 1-已完成)\"},{\"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\":\"網絡確認次數\"},{\"name\":\"sourceAddress\",\"type\":\"String\",\"description\":\"來源地址\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/03_get_deposit_hisrec.json\n// module id = ZlbJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place order\"},{\"type\":\"desc\",\"text\":\"Can be used to place 1 order on spot\",\"desc\":[{\"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\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/spot/trading-rules/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/spot/v1/common/symbols\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"For price reference, please check: GET /openApi/spot/v1/ticker/24hr\"},{\"type\":\"html\",\"text\":\"For Minimum/Maximum transaction amount reference, please check: GET /openApi/spot/v1/common/symbols\"}]},{\"type\":\"normal\",\"text\":\"If the spot trader of copy trading has enabled the function\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"The order frequency can only be 1/s, exceeding it will be limited frequency.\"},{\"type\":\"html\",\"text\":\"BUY can use this endpoint:POST /openApi/spot/v1/trade/order\"},{\"type\":\"html\",\"text\":\"SELL need to use another specific endpoint:POST /openApi/copyTrading/v1/spot/trader/sellOrder\"}]},{\"type\":\"html\",\"text\":\"

    Order Type

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

    MARKET: Market Price
    LIMITED: Limit Price
    TAKE_ STOP_ Limit: Limit Price Stop Profit Stop Loss Order
    TAKE_ STOP_ MARKET: Market price stop loss order
    TRIGGER_ Limit: Price limit plan commission
    TRIGGER_ Market: Market price plan commission

    \"}]},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"title\":\"MARKET\",\"desc\":\"Place an order at the market price\",\"payload\":{\"type\":\"MARKET\",\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_STOP_MARKET\",\"desc\":\"Market price stop profit and stop loss order\",\"payload\":{\"type\":\"TAKE_STOP_MARKET\",\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_STOP_LIMIT\",\"desc\":\"Limit price, take profit and stop loss order\",\"payload\":{\"type\":\"TAKE_STOP_LIMIT\",\"price\":60000,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUYE\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_LIMIT\",\"desc\":\"TRIGGER LIMIT\",\"payload\":{\"type\":\"TRIGGER_LIMIT\",\"price\":60000,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_MARKET\",\"desc\":\"TRIGGER MARKET\",\"payload\":{\"type\":\"TRIGGER_MARKET\",\"stopPrice\":60000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}}],\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"NEMS-USDT\",\"orderId\":1735963671248581000,\"transactTime\":1702720966528,\"price\":\"0.1557\",\"origQty\":\"115\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"SELL\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":100202,\"msg\":\"Insufficient assets, please verify the assets status\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" traders prohibit openApi from placing orders\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100414,\"msg\":\"Your account is under risk control or without KYC, it's not allowed to place spot order via api,currently,please contact customer service\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\" check limit entrust value fail, entrust volume too low, userID: ***, minVolume:69.93, entrustVolume: 54.02\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\" check param fail:entrust volume and value is 0.0\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100414,\"msg\":\" risk control check fail, code(1), reason()\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100490,\"msg\":\" spot symbol is offline\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100500,\"msg\":\"order open error:The current system is busy, please try again later, and the previous cancel order request result:false, order not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100440,\"msg\":\" check price diverge fail, entrustPrice to high, userID: ***,entrustPrice:0.4950, indexPrice:0.0910,tradePrice: 0.0910, maxEntrustPriceDiverge:0.4550, minEntrustPriceDiverge:0.0182,minDivergeRatio:0.2000000000,maxDivergeRatio:5.0000000000\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\"price can't be lte 0 in limit order\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\"The symbol you request is not available to place order currently, please verify symbol's status by api:/openApi/spot/v1/common/symbols\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" CheckUserAndSymbol: contract not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" cancel fail, order not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\"the order you want to cancel is FILLED or CANCELLED already, or is not a valid order id ,please verify\",\"debugMsg\":\"\"}}]},\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"order trigger price, used for TAKE_ STOP_ LIMITED,TAKE_ STOP_ MARKET, TRIGGER_ LIMITED, TRIGGER_ Market type orders.\"},{\"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,if quantity and quoteOrderQty are input at the same time, quantity will be used first, and quoteOrderQty will be discarded\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, e.g., 10000USDT\"},{\"name\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Only letters, numbers and _,Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same newClientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in force, currently supports PostOnly, GTC, IOC. Default is GTC if not specified.\"},{\"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_a_order.json\n// module id = ZnNv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整槓桿倍數\"},{\"type\":\"normal\",\"text\":\"調整用戶在指定symbol合約的開倉槓桿。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"leverage\":\"8\",\"side\":\"SHORT\",\"symbol\":\"ETH-USDT\",\"timestamp\":\"1702733704941\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"leverage\":8,\"symbol\":\"ETH-USDT\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"margin is not enough\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'Side' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'Side' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"雙向持倉模式下,多倉或者空倉的槓桿,LONG表示多倉,SHORT表示空倉;單向持倉模式下,只能傳BOTH。\"},{\"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\":\"交易對\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"可開多數量\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"可開空數量\"},{\"name\":\"availableLongVal\",\"type\":\"string\",\"description\":\"可開多價值\"},{\"name\":\"availableShortVal\",\"type\":\"string\",\"description\":\"可開空價值\"},{\"name\":\"maxPositionLongVal\",\"type\":\"string\",\"description\":\"持倉最大可開多價值\"},{\"name\":\"maxPositionShortVal\",\"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_limit.json\": \"WMCK\",\n\t\"./02_connect.json\": \"Jf00\",\n\t\"./03_data_compress.json\": \"eQk0\",\n\t\"./04_heart_beat.json\": \"nCmZ\",\n\t\"./05_subscribe.json\": \"D11h\",\n\t\"./06_cancel_subscribe.json\": \"8PHc\"\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\":\"title\",\"text\":\"2023-09-18\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續合約:新增下單同時支持設置止盈止損\"},{\"type\":\"html\",\"text\":\"永續合約:新增歷史成交訂單返回交易對信息\"},{\"type\":\"html\",\"text\":\"永續合約:新增異步查詢接口增加以幣為單位的返回\"},{\"type\":\"html\",\"text\":\"永續合約::/openApi/swap/v2/user/positions返回強平價\"},{\"type\":\"html\",\"text\":\"永續合約:新增合約下單,查單,支持返回workingType\"},{\"type\":\"html\",\"text\":\"測序序列\"},{\"type\":\"html\",\"text\":\"錢包:新增子賬戶充值地址相關創建、查詢接口 接口\"},{\"type\":\"html\",\"text\":\"跟單系統: 新增首次開放跟單API\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-09-18.json\n// module id = a/u1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶現貨資產\"},{\"type\":\"normal\",\"text\":\"查詢子賬戶現貨資產\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":\"16477999\"},\"response\":{\"code\":0,\"timestamp\":1701077668349,\"data\":{\"balances\":[{\"asset\":\"ETH\",\"free\":0.0068,\"locked\":0}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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-tw/cswap/websocket/introduce/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-11-15\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位:新增‘切換保證金模式’接口。\"},{\"type\":\"html\",\"text\":\"永續U本位:新增‘查詢保證金模式’接口。\"},{\"type\":\"html\",\"text\":\"永續U本位:新增‘查詢聯合保證金規則’接口。\"},{\"type\":\"html\",\"text\":\"永續U本位:新增‘查詢聯合保證金抵押資產情況’接口。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-11-15.json\n// module id = aAh/\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨:新增一個websocket只能成功訂閱200個dataType的限制。\"},{\"type\":\"html\",\"text\":\"現貨:新增一個ip只能最多60個websocket的限制。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-08-17.json\n// module id = aG00\n// module chunks = 3","var map = {\n\t\".\": \"GHqA\",\n\t\"./\": \"GHqA\",\n\t\"./03_get_deposit_hisrec\": \"ZlbJ\",\n\t\"./03_get_deposit_hisrec.json\": \"ZlbJ\",\n\t\"./04_get_withdraw_history\": \"DNed\",\n\t\"./04_get_withdraw_history.json\": \"DNed\",\n\t\"./05_post_wallets_coins\": \"BYvq\",\n\t\"./05_post_wallets_coins.json\": \"BYvq\",\n\t\"./06_post_wallets_withdraw\": \"yxdj\",\n\t\"./06_post_wallets_withdraw.json\": \"yxdj\",\n\t\"./13.get_wallet_queryDepositAddress\": \"WnFl\",\n\t\"./13.get_wallet_queryDepositAddress.json\": \"WnFl\",\n\t\"./14_get_risk_deposit_records\": \"JbVL\",\n\t\"./14_get_risk_deposit_records.json\": \"JbVL\",\n\t\"./index\": \"GHqA\",\n\t\"./index.js\": \"GHqA\"\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 = \"aLYx\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet ^.*$\n// module id = aLYx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel multiple orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderIds\":\"1735964997957275648,1735965127519326208\",\"symbol\":\"GM-USDT\",\"timestamp\":\"1702721320676\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"GM-USDT\",\"orderId\":1735964997957275600,\"transactTime\":1702721242701,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"8061558\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721242645506402\"},{\"symbol\":\"GM-USDT\",\"orderId\":1735965127519326200,\"transactTime\":1702721249787,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"5806281\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721249647382871\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"orderIds\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Order Ids: for example:orderIds=id1,id2,id3\"},{\"name\":\"clientOrderIDs\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom order IDs, for example: clientOrderIDs=id1,id2,id3\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"description\":\"trigger price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/022_post_trade_orders_cancel.json\n// module id = aTY/\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-12-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Spot: Added field for percentage change in price in the last 24 hours\"},{\"type\":\"html\",\"text\":\"Spot: Added support for querying the list of open orders with an optional symbol parameter. If the symbol parameter is not provided, it will return all open orders for the user across all trading pairs\"},{\"type\":\"html\",\"text\":\"Perpetual one-click liquidation API: Add the non-mandatory string field 'symbol'. If not filled, it will liquidate all positions at market price. If filled, it will liquidate the corresponding symbol position at market price.\"},{\"type\":\"html\",\"text\":\"Perpetual cancel all orders API: 1. Change the input parameter 'symbol' to non-mandatory. If not filled, it will cancel all orders. If filled, it will cancel the orders for the corresponding symbol. 2. Add a non-mandatory input parameter 'type'. If filled, it will cancel orders of the specified type. If not filled, it will cancel orders of all types.\"},{\"type\":\"html\",\"text\":\"Sub-account: Query sub-account list: Adjust the input field 'limit' to a maximum of 1000.\"},{\"type\":\"html\",\"text\":\"Sub-account: Create sub-account API Key: Add a new parameter value '5' for the input field 'permissions' - Withdrawal.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-12-08.json\n// module id = aUA7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Batch inquiry of sub account asset overview\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/allAccountBalance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":25316652,\"accountType\":\"sopt\",\"pageIndex\":1,\"pageSize\":10,\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"result\":[{\"subUid\":\"16477999\",\"accountBalances\":[{\"accountType\":\"sopt\",\"usdtBalance\":\"100\"}]}],\"pageId\":1,\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"否\",\"description\":\"Sub account uid\"},{\"name\":\"accountType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"Account type, if left blank, all assets of the account will be checked by default. spot: spot (fund account), stdFutures: standard futures account, coinMPerp: coin base account, USDTMPerp: U base account, copyTrading: copy trading account, grid: grid account, eran: wealth account, c2c: c2c account.\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"Page number, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"Paging size, must be greater than 0, maximum 10\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"Sub account uid\"},{\"name\":\"accountType\",\"type\":\"string\",\"description\":\"Account type, if left blank, all assets of the account will be checked by default. spot: spot (fund account), stdFutures: standard futures account, coinMPerp: coin base account, USDTMPerp: U base account, copyTrading: copy trading account, grid: grid account, eran: wealth account, c2c: c2c account.\"},{\"name\":\"usdtBalance\",\"type\":\"string\",\"description\":\"Equivalent to USDT amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/22_sub_account_allAccountBalance.json\n// module id = aaNH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"資產劃轉記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_PFUTURES\",\"timestamp\":\"1702624474847\"},\"response\":{\"total\":2,\"rows\":[{\"asset\":\"VST\",\"amount\":\"100000.00000000000000000000\",\"type\":\"FUND_PFUTURES\",\"status\":\"CONFIRMED\",\"tranId\":37600111,\"timestamp\":1702252271000},{\"asset\":\"USDT\",\"amount\":\"2218.72352626000000000000\",\"type\":\"FUND_PFUTURES\",\"status\":\"CONFIRMED\",\"tranId\":37600222,\"timestamp\":1702351131000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"是\",\"description\":\"劃轉類型(查詢條件type或者tranId,二選一)\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"交易ID(查詢條件type或者tranId,二選一)\"},{\"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","var map = {\n\t\"./01_balance.json\": \"bzx+\",\n\t\"./02_order.json\": \"K1eD\",\n\t\"./03_setting.json\": \"2Cei\"\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 = \"amGg\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/account \\.json$\n// module id = amGg\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-11-22\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨深度websocket:現已支持5/10/20/50/100檔位\"},{\"type\":\"html\",\"text\":\"現貨深度rest api:現已支持最高1000檔位\"},{\"type\":\"html\",\"text\":\"查詢用戶萬向劃轉歷史:request新增 參數名:tranId\"},{\"type\":\"html\",\"text\":\"獲取充值歷史(支持多網絡):request/response status字段,描述改為: 狀態 0-進行中 6-已上鏈 1-已完成\"},{\"type\":\"html\",\"text\":\"獲取提幣歷史(支持多網絡):request/response status字段, 描述改為: 狀態 4-審核中 5-已失敗 6-已完成,reqeust新增 參數名: id,response刪除transferType字段\"},{\"type\":\"html\",\"text\":\"主賬號查詢內轉記錄:response新增參數名:status-狀態, 4-審核中 5-已失敗 6-已完成\"},{\"type\":\"html\",\"text\":\"子賬戶內部轉賬:callingCode字段,當userAccountType=2時必填\"},{\"type\":\"html\",\"text\":\"子賬號查詢子賬戶內轉記錄:response新增 參數名status: 4-審核中 5-已失敗 6-已完成 \"},{\"type\":\"html\",\"text\":\"主賬號查詢子賬號充值記錄:request/response status字段,描述改為: 狀態 0-進行中 6-已上鏈 1-已完成\"},{\"type\":\"html\",\"text\":\"查詢所有的幣種:reqeust新增 參數名: coin,response Network對象新增字段 depositEnable/depositMin\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-11-22.json\n// module id = axDH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢apikey信息\"},{\"type\":\"normal\",\"text\":\"查詢apikey信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/apiKey/query\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":16789999},\"response\":{\"code\":0,\"timestamp\":1702351994615,\"data\":{\"apiInfos\":[{\"apiKey\":\"zF*******zQ\",\"note\":\"note****\",\"permissions\":[1,2,3,4,7],\"ipAddresses\":[\"\"],\"status\":0,\"createTime\":1702289687211,\"updateTime\":1702289687000}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"用戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"否\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"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\":\"查詢開倉槓桿\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718354677397,\"data\":{\"symbol\":\"BTC-USD\",\"longLeverage\":4,\"shortLeverage\":8,\"maxLongLeverage\":150,\"maxShortLeverage\":150,\"availableLongVol\":\"15000000\",\"availableShortVol\":\"15000000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"多倉槓桿倍數\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"空倉槓桿倍數\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"最大多倉槓桿倍數\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"最大空倉槓桿倍數\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"可開多數量\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"可開空數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/02_get_leverage.json\n// module id = bFqw\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-11-10\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續合約API:支援模擬盤交易下單接口\"},{\"type\":\"html\",\"text\":\"永續合約WebSocket:支援返回觸發價格欄位:sp\"},{\"type\":\"html\",\"text\":\"永續合約WebSocket:訂閱深度支援返回時間欄位\"},{\"type\":\"html\",\"text\":\"永續合約/現貨:24小時價格變動情況支援返回買一賣一價格\"},{\"type\":\"html\",\"text\":\"現貨WebSocket:K線訂閱支援更多內部類型:1分鐘/5分鐘/30分鐘/.../1天...等\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-11-10.json\n// module id = bGx6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Isolated Margin Change History\"},{\"type\":\"normal\",\"text\":\"Used to query the history of margin adjustments for U-margin contracts in the last 30 days.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionMargin/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDT\",\"positionId\":\"1847596444958068736\",\"startTime\":1728722649000,\"endTime\":1729336359406,\"pageIndex\":1,\"pageSize\":2,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"records\":[{\"symbol\":\"BTC-USDT\",\"positionId\":\"1847596444958068736\",\"changeReason\":\"OpenPosition\",\"marginChange\":\"7586.46841066\",\"marginAfterChange\":\"7586.46841066\",\"time\":1729336294000}],\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g.: BTC-USDT, please use uppercase letters\"},{\"name\":\"positionId\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Position ID\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Start timestamp, in milliseconds\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"End timestamp, in milliseconds\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Page number, must be greater than 0, if not provided, the default is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Page size, must be greater than 0, maximum value is 100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid window value, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, e.g.: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"changeReason\",\"type\":\"string\",\"description\":\"ManualMarginAddition: Manually add margin / ManualMarginReduction: Reduce margin manually / IncreaseLeverage: Increase leverage / ReduceLeverage: Reduce leverage / OpenPosition: Open position / ClosePosition: Close position / Liquidation: Liquidation / ADL:Automatically reduce positions / CloseOpenPosition : Close first and then open a position /FundingFeeSettlement: Funding rate settlement/ AutoMarginAddition: Automatic margin addition\"},{\"name\":\"marginChange\",\"type\":\"string\",\"description\":\"change amount\"},{\"name\":\"marginAfterChange\",\"type\":\"string\",\"description\":\"Total amount after change\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Change time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/27_get_position_margin_history.json\n// module id = bHz9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Rate limit\"},{\"type\":\"html\",\"text\":\"If the request is too frequent, the system will automatically restrict the request and recover after 5 minutes;\"},{\"type\":\"html\",\"text\":\"Based on account UID rate limit, each api has its own independent rate limit, which does not affect each other\"},{\"type\":\"html\",\"text\":\"Users can check the current frequency limit usage and the expiration of the time window according to \\\"X-RateLimit-Requests-Remain\\\" (remaining number of frequency limits) and \\\"X-RateLimit-Requests-Expire\\\" (window expiration time) in the Http Header. time, and dynamically adjust your request frequency based on this value.\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"The API requests are subject to different rate limits based on UID and IP. Please refer to the respective API documentation for UID rate limits. IP rate limits are based on the following grouping rules:\"},{\"type\":\"html\",\"text\":\"
  • Market API Group [1]: The total IP rate limit for all interfaces within the group is 100 requests per 10 seconds.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [2]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 100 requests per 10 seconds for each interface.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [3]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 200 requests per 10 seconds for each interface.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic/04_rate_limits.json\n// module id = bIsO\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨:新增 24小時價格變動情況 接口\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-08-23.json\n// module id = bKtD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢單個OCO訂單列表\"},{\"type\":\"normal\",\"text\":\"查詢OCO訂單清單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/orderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"clientOrderId\":\"12345610027\",\"orderListId\":\"1827968196914479104\",\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460545\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"\"},{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460544\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderListId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"OCO訂單組的ID,orderListId和clientOrderId必須填寫其中一個。\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義的OCO訂單組的ID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"委託時間\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit:OCO限價單,ocoTps:OCO止盈止損單\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"觸發價格\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO訂單組ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/102_get_one_oco_order.json\n// module id = bM6w\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@100ms, BTC-USDT@depth20@200ms, BTC-USDT@depth100@500ms.\"},{\"type\":\"code\",\"text\":\"如果不傳,默認為500ms.\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth5@500ms\\\"}\"},\"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\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"間隔, 如 100ms,200ms,500ms,1000ms\"}]},{\"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\":\"key2\",\"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檔\"}]},{\"type\":\"interval\",\"key\":\"key3\",\"data\":[{\"name\":\"100ms\",\"type\":\"\",\"description\":\"100毫秒\"},{\"name\":\"200ms\",\"type\":\"\",\"description\":\"200毫秒\"},{\"name\":\"500ms\",\"type\":\"\",\"description\":\"500毫秒\"},{\"name\":\"1000ms\",\"type\":\"\",\"description\":\"1000毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/01_dept_info_interval.json\n// module id = bP1Q\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Asset Transfer\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/api/v3/post/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/post/asset/transfer\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"asset\":\"USDT\",\"amount\":\"1095\",\"type\":\"FUND_PFUTURES\"},\"response\":{\"tranId\":\"17********28\"}},\"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 python = `\nimport json\nimport websocket\nimport gzip\nimport io\nURL=\"HHOOSSTT\" \nCHANNEL= AAPPII\nclass Test(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 \"ping\" in utf8_data: # 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 test = Test()\n test.start()`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/spot/python.js","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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"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\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"}\"},\"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\":\"資產帳戶變動後的帳戶總資產\"},{\"name\":\"lk\",\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDC\",\"timestamp\":\"1702721719312\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BNB-USDC\",\"orderId\":1735930294290081300,\"price\":\"255.27\",\"StopPrice\":\"0\",\"origQty\":\"0.16261\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"time\":1702713008841,\"updateTime\":1702713008841,\"origQuoteOrderQty\":\"0\",\"fee\":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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"下單時間戳\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間戳\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"下單金額\"},{\"name\":\"stopPrice\",\"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","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/codeWs/spot/shell.js","module.exports = [{\"type\":\"hash\",\"text\":\"查詢OCO历史訂單列表\"},{\"type\":\"normal\",\"text\":\"查詢OCO历史訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/historyOrderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"startTime\":1724256000000,\"endTime\":1724342400000,\"pageIndex\":1,\"pageSize\":100,\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724297880000,\"orderId\":\"1826458150027395073\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":64000,\"price\":65000,\"quantity\":0.001,\"orderListId\":\"1826458148019142656\",\"status\":\"FAILED\"},{\"transactionTime\":1724297880000,\"orderId\":\"1826458150027395072\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1826458148019142656\",\"status\":\"CANCELED\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"頁數\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每頁數量\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間,时间戳,毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,时间戳,毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"委託時間\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit:OCO限價單,ocoTps:OCO止盈止損單\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"觸發價格\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO訂單組ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/104_get_all_history_oco_order.json\n// module id = bjJG\n// module chunks = 3","var map = {\n\t\"./00_post_trade_order_test.json\": \"TrnZ\",\n\t\"./01_post_trade_order.json\": \"YLkf\",\n\t\"./01_post_trade_order_vst.json\": \"dww0\",\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_check_pending_order.json\": \"fLAw\",\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\"./17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./18_set_positionSide.json\": \"wp4b\",\n\t\"./19_get_positionSide.json\": \"n7WW\",\n\t\"./20_cancel_replace_order.json\": \"vKvg\",\n\t\"./21_batch_cancel_replace_order.json\": \"nNrq\",\n\t\"./22_cancel_all_after.json\": \"6Ivy\",\n\t\"./22_post_closePosition.json\": \"JRrP\",\n\t\"./23_get_trade_allOrdersV2.json\": \"wYbs\",\n\t\"./24_get_maint_margin_ratio.json\": \"OkoV\",\n\t\"./25_get_fill_history_detail.json\": \"l3pU\",\n\t\"./26_get_user_position_history.json\": \"xptQ\",\n\t\"./27_get_position_margin_history.json\": \"bHz9\",\n\t\"./27_post_get_vst.json\": \"cn9g\",\n\t\"./28_post_twap_order.json\": \"6+7u\",\n\t\"./29_get_twap_open_orders.json\": \"2vkv\",\n\t\"./30_get_twap_history_orders.json\": \"BBsp\",\n\t\"./31_get_twap_order_detail.json\": \"NQ2q\",\n\t\"./32_cancel_twap_cancel_order.json\": \"iXtv\",\n\t\"./33_post_asset_mode.json\": \"xS3w\",\n\t\"./34_get_asset_mode.json\": \"ZFUX\",\n\t\"./35_get_multi_asset_rule.json\": \"jifI\",\n\t\"./36_get_margin_asset.json\": \"+eKI\"\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","var map = {\n\t\"./01_get_Query_Invited_Users.json\": \"Bd4q\",\n\t\"./02_get_Daily_Commission_Query.json\": \"Czkf\",\n\t\"./03_get_Query_agent_user_nformation.json\": \"N9hH\",\n\t\"./04_get_Query_the_deposit_details.json\": \"ZKxt\",\n\t\"./05_get_Query_API_transaction_commission.json\": \"mYC+\",\n\t\"./06_get_Query_partner_information.json\": \"sHlI\"\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 = \"bz8+\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent \\.json$\n// module id = bz8+\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\":\"warning\",\"text\":\"Account data no longer need to subscribe to channel type,after connect wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"push timestamp: 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/cswap/websocket/account/01_balance.json\n// module id = bzx+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢訂單\"},{\"type\":\"normal\",\"text\":\"查詢訂單詳情\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/orderDetail\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1736012449498123456\",\"symbol\":\"OP-USDT\",\"timestamp\":\"1702733255486\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"OP-USD\",\"orderId\":1736012449498123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"1.0\",\"price\":\"2.1710\",\"executedQty\":\"0.0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1702732596168,\"updateTime\":1702732596188,\"clientOrderId\":\"l*****e\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"訂單號\"},{\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]},{\"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-tw/cswap/api/trade/12_get_trade_order.json\n// module id = c76v\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\":\"查詢賬戶保證金模式保證金模式\"},{\"type\":\"warning\",\"text\":\"僅實盤可以調用,實盤域名:https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/assetMode\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"assetMode\":\"multiAssetsMode\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"assetMode\",\"type\":\"string\",\"description\":\"保證金模式,singleAssetMode 或 multiAssetsMode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/34_get_asset_mode.json\n// module id = cRAY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"歷史成交記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/market/his/v1/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720325973,\"data\":[{\"tid\":\"170891918044290305561\",\"t\":1708919180442,\"ms\":2,\"s\":\"BTC-USDT\",\"p\":51496.35,\"v\":0.00063},{\"tid\":\"170891917959890305560\",\"t\":1708919179598,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51495.89,\"v\":0.00188},{\"tid\":\"170891917942490305559\",\"t\":1708919179424,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51496.159,\"v\":0.00075},{\"tid\":\"170891917907790305558\",\"t\":1708919179077,\"ms\":2,\"s\":\"BTC-USDT\",\"p\":51496.13,\"v\":0.01044},{\"tid\":\"170891917896690305557\",\"t\":1708919178966,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51496,\"v\":0.00129}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默認100,最多500\"},{\"name\":\"fromId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"最後一個記錄的tid\"}]},{\"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\":\"buyerMaker\",\"type\":\"boolean\",\"description\":\"是否買方\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/10_get_ market_histroy_traders.json\n// module id = cRRp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂單最新成交記录\"},{\"type\":\"normal\",\"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\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},\"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\":\"q\",\"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\":\"html\",\"text\":\"
  • 用於查詢聚合深度
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v2/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\",\"depth\":20,\"type\":\"step0\"},\"response\":{\"code\":0,\"timestamp\":1707143021361,\"data\":{\"bids\":[[\"43340.92\",\"1.91154\"],[\"43340.88\",\"3.85804\"],[\"43340.85\",\"4.26840\"],[\"43340.83\",\"2.08925\"],[\"43340.81\",\"2.04579\"],[\"43340.79\",\"1.58294\"],[\"43340.77\",\"1.54605\"],[\"43340.76\",\"2.11097\"],[\"43340.74\",\"1.82713\"],[\"43340.72\",\"1.97847\"],[\"43340.69\",\"3.12035\"],[\"43340.65\",\"3.49761\"],[\"43340.61\",\"3.61076\"],[\"43340.56\",\"4.56538\"],[\"43340.47\",\"4.3701\"],[\"43340.46\",\"3.47356\"],[\"43340.44\",\"10.99309\"],[\"43340.23\",\"9.78746\"],[\"43339.90\",\"9.77564\"],[\"43339.86\",\"11.06385\"]],\"asks\":[[\"43341.79\",\"5.76033\"],[\"43341.86\",\"3.9063\"],[\"43341.88\",\"5.76033\"],[\"43341.90\",\"4.98845\"],[\"43341.92\",\"4.98845\"],[\"43341.94\",\"5.25236\"],[\"43341.95\",\"22.48145\"],[\"43341.98\",\"9.40042\"],[\"43342.00\",\"13.58550\"],[\"43342.02\",\"9.44509\"],[\"43342.05\",\"5.25236\"],[\"43342.07\",\"4.83999\"],[\"43342.08\",\"4.74583\"],[\"43342.10\",\"4.58787\"],[\"43342.11\",\"5.61344\"],[\"43342.13\",\"4.57564\"],[\"43342.15\",\"5.14039\"],[\"43342.17\",\"4.65339\"],[\"43342.19\",\"5.32833\"],[\"43342.22\",\"9.74216\"]],\"ts\":1707143021361}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對,如:BTC_USDT\"},{\"name\":\"depth\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"查詢深度\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"step0默認精度,step1到step5,分别是10到100000倍精度\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"bids\",\"type\":\"array\",\"description\":\"買盤深度,陣列元素第一個為價格,第二個為數量\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"賣盤深度,陣列元素第一個為價格,第二個為數量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/06_get_market_agg_depth.json\n// module id = cYhj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷OCO訂單列表\"},{\"type\":\"normal\",\"text\":\"用於取消整個OCOC訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1735964079647111280\",\"clientOrderId\":\"123456789\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702721073626\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orderId\":\"1827980248763858944\",\"clientOrderId\":\"\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"限價單或者止盈止損單的訂單id,orderId和clientOrderId必須填一個,\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"限價單或者止盈止損單的用戶自定義訂單ID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/101_cancel_one_oco_order.json\n// module id = cfpy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get sub-account deposit records\"},{\"type\":\"normal\",\"text\":\"This node is used for the main user to query the deposit history of the sub-user. Only accessible to the main user.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/subHisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":\"16789999\",\"recvWindow\":\"10000\"},\"response\":{\"code\":0,\"timestamp\":1702436064748,\"data\":{\"total\":0,\"data\":[]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Transfer currency name\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Sub-user UID, when not filled, query the deposit records of all sub-accounts under the parent username\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Status (0-In progress 6-Chain uploaded 1-Completed)\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Start time\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"no\",\"description\":\"End time\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"Internal transfer record list\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"Sub-account UID\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"Transfer amount\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Currency name\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Network name\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"Status (0-In progress 6-Chain uploaded 1-Completed)\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"Deposit address\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"Deposit address tag\"},{\"name\":\"txId\",\"type\":\"string\",\"description\":\"Transaction ID\"},{\"name\":\"insertTime\",\"type\":\"long\",\"description\":\"Transaction scan time\"},{\"name\":\"transferType\",\"type\":\"int\",\"description\":\"0-deposit\"},{\"name\":\"unlockConfirmTimes\",\"type\":\"int\",\"description\":\"Number of confirmations required to unlock the deposit\"},{\"name\":\"confirmTimes\",\"type\":\"int\",\"description\":\"Number of confirmations\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/16.get_wallet_querySubDepositRecords.json\n// module id = cjvr\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"獲取賬戶損益資金流水\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約的資金流水。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":{\"startTime\":\"1702713615001\",\"endTime\":\"1702731787011\",\"limit\":\"1000\",\"timestamp\":\"1702731787011\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"LDO-USDT\",\"incomeType\":\"FUNDING_FEE\",\"income\":\"-0.0292\",\"asset\":\"USDT\",\"info\":\"Funding Fee\",\"time\":1702713615000,\"tranId\":\"170***6*2_3*9_20***97\",\"tradeId\":\"170***6*2_3*9_20***97\"}]}},\"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\":\"系統扣除\"},{\"name\":\"GTD_PRICE\",\"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\":\"Apply VST\"},{\"type\":\"normal\",\"text\":\"Apply VST assets for demo trading\"},{\"type\":\"warning\",\"text\":\"Only available for demo trading, demo domain: https://open-api-vst.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/getVst\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1730863321895,\"data\":{\"amount\":20000}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"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 in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"flot64\",\"description\":\"Amount of VST applied in this request\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/27_post_get_vst.json\n// module id = cn9g\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢資金費率歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 都未發送, 返回最近 limit 條數據.
  • \"},{\"type\":\"html\",\"text\":\"
  • 返回的列表按時間正向排序
  • \"},{\"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\":\"QNT-USDT\",\"limit\":2},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"QNT-USDT\",\"fundingRate\":\"0.00027100\",\"fundingTime\":1702713600000},{\"symbol\":\"QNT-USDT\",\"fundingRate\":\"0.00012800\",\"fundingTime\":1702684800000}]}},\"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\"},{\"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\":\"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","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-USD@trade ETH-USD@trade\"},{\"type\":\"normal\",\"text\":\"Subscription example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@trade\\\"}\"},\"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-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The data type of the subscription, for example: BTC-USD@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-USD\",\"description\":\"trading pair\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"transaction ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"transaction price\"},{\"name\":\"q\",\"type\":\"1\",\"description\":\"executed quantity(pieces of contract)\"},{\"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/cswap/websocket/market/01_trade_info.json\n// module id = dF/+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Set Margin Type\"},{\"type\":\"normal\",\"text\":\"Set Margin Type\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\",\"marginType\":\"ISOLATED\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USD, please use uppercase letters\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Margin type, e.g., ISOLATED, CROSSED\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request validity window in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/16_post_margin_type.json\n// module id = dI3A\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Deposit records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702622588000\",\"recvWindow\":\"5000\",\"startTime\":\"1700894588000\",\"timestamp\":\"1702622588533\"},\"response\":[{\"amount\":\"49999.00000000000000000000\",\"coin\":\"USDTTRC20\",\"network\":\"TRC20\",\"status\":1,\"address\":\"TP******B4v\",\"addressTag\":\"\",\"txId\":\"60*****1d\",\"insertTime\":1701557778000,\"unlockConfirm\":\"2/2\",\"confirmTimes\":\"2/2\"}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"coin name\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Status (0-In progress 6-Chain uploaded 1-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 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 (0-In progress 6-Chain uploaded 1-Completed)\"},{\"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\"},{\"name\":\"sourceAddress\",\"type\":\"String\",\"description\":\"Source address\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/03_get_deposit_hisrec.json\n// module id = dXH3\n// module chunks = 3","var map = {\n\t\".\": \"igyE\",\n\t\"./\": \"igyE\",\n\t\"./01_get_currentTrack\": \"gp62\",\n\t\"./01_get_currentTrack.json\": \"gp62\",\n\t\"./02_post_close_currentTrack\": \"Fxil\",\n\t\"./02_post_close_currentTrack.json\": \"Fxil\",\n\t\"./03_post_tpsl_currentTrack\": \"Sfdp\",\n\t\"./03_post_tpsl_currentTrack.json\": \"Sfdp\",\n\t\"./04_spot_trader_sell_order\": \"kpfu\",\n\t\"./04_spot_trader_sell_order.json\": \"kpfu\",\n\t\"./index\": \"igyE\",\n\t\"./index.js\": \"igyE\"\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 = \"dXXX\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader ^.*$\n// module id = dXXX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":{\"endTime\":\"1702721825418\",\"pageIndex\":\"1\",\"pageSize\":\"100\",\"startTime\":\"1702720925417\",\"symbol\":\"SWCH-USDT\",\"timestamp\":\"1702721825418\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"SWCH-USDT\",\"orderId\":1735966927102231300,\"price\":\"0.8548\",\"StopPrice\":\"0\",\"origQty\":\"5.9\",\"executedQty\":\"1.1\",\"cummulativeQuoteQty\":\"0.9402800000000001\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"time\":1702721743000,\"updateTime\":1702721743000,\"origQuoteOrderQty\":\"0\",\"fee\":0,\"avgPrice\":\"0.0005027\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"如設置 orderId , 訂單将 >= orderId。否則将返回最新訂單。\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間戳, 單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間戳, 單位:毫秒\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"分頁頁碼,必須大於0,如果不填寫則默認為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"分頁數量,必須大於0,最大值為100,如果不填寫則默認為100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"status\",\"type\":\"string\",\"required\":\"否\",\"description\":\"status: FILLED (完全成交) CANCELED: (已撤銷) FAILED: (失敗)\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"否\",\"description\":\"訂單類型:MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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\":\"float64\",\"description\":\"手續費\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"},{\"name\":\"avgPrice\",\"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","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an OCO Order List\"},{\"type\":\"normal\",\"text\":\"Used to cancel the entire OCOC order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1735964079647111280\",\"clientOrderId\":\"123456789\",\"symbol\":\"BTC-USDT\",\"timestamp\":1702721073626},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orderId\":\"1827980248763858944\",\"clientOrderId\":\"123456789\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"The order ID of the limit order or the stop-limit order. Either orderId or clientOrderId must be provided.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"The User-defined order ID of the limit order or the stop-limit order\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request validity window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"User-defined order ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/101_cancel_one_oco_order.json\n// module id = dd2V\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 = \"HHOOSSTT\" // \n\tchannel = \"AAPPII\" // \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\":\"領取VST\"},{\"type\":\"normal\",\"text\":\"領取用於模擬盤交易的VST資產\"},{\"type\":\"warning\",\"text\":\"僅模擬盤可以調用,模擬盤域名:https://open-api-vst.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/getVst\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1730863321895,\"data\":{\"amount\":20000}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"flot64\",\"description\":\"本次領取的VST數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/27_post_get_vst.json\n// module id = dtEQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place order in demo trading\"},{\"type\":\"desc\",\"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)\",\"desc\":[{\"type\":\"warning\",\"text\":\"demo trading domain: open-api-vst.bingx.com\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: Mandatory Parameters: quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: Mandatory Parameters: quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRAILING_STOP_MARKET (Tracking Stop Loss Order) or TRAILING_TP_SL (Trailing TakeProfit/StopLoss Order): The price field or priceRate field needs to be filled in
  • \"},{\"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;

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

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

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

    3. set stopLoss and takeProfit when open position:using takeProfit and stopLoss fields

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"The minimum order quantity can be obtained from the api /openApi/swap/v2/quote/contracts: tradeMinQuantity, tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]}]},{\"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\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"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. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId, clientOrderId only supports LIMIT/MARKET order type\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/01_post_trade_order_vst.json\n// module id = dww0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Rate limit\"},{\"type\":\"html\",\"text\":\"If the request is too frequent, the system will automatically restrict the request and recover after 5 minutes;\"},{\"type\":\"html\",\"text\":\"Based on account UID rate limit, each api has its own independent rate limit, which does not affect each other\"},{\"type\":\"html\",\"text\":\"Users can check the current frequency limit usage and the expiration of the time window according to \\\"X-RateLimit-Requests-Remain\\\" (remaining number of frequency limits) and \\\"X-RateLimit-Requests-Expire\\\" (window expiration time) in the Http Header. time, and dynamically adjust your request frequency based on this value.\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"The API requests are subject to different rate limits based on UID and IP. Please refer to the respective API documentation for UID rate limits. IP rate limits are based on the following grouping rules:\"},{\"type\":\"html\",\"text\":\"
  • Market API Group [1]: The total IP rate limit for all interfaces within the group is 100 requests per 10 seconds.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [2]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 100 requests per 10 seconds for each interface.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [3]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 200 requests per 10 seconds for each interface.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic/04_rate_limits.json\n// module id = dz5L\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Coin-M Perpetuals: new WS DataType-ACCOUNT_UPDATE Account balance and position update push\"},{\"type\":\"html\",\"text\":\"Coin-M Perpetuals:new WS DataType-ORDER_TRADE_UPDATE Order update push\"},{\"type\":\"html\",\"text\":\"Coin-M Perpetuals:nwe WS ACCOUNT-CONFIG_UPDATE Configuration updates such as leverage and margin mode\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-08-08.json\n// module id = dzxx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Order Book\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"SHIB-USDT\",\"limit\":\"5\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"T\":1702719083983,\"bids\":[[\"0.000009854\",\"483909\"],[\"0.000009853\",\"824851\"],[\"0.000009852\",\"539085\"],[\"0.000009851\",\"697410\"],[\"0.000009850\",\"488828\"]],\"asks\":[[\"0.000009860\",\"578208\"],[\"0.000009859\",\"279010\"],[\"0.000009858\",\"501588\"],[\"0.000009857\",\"976049\"],[\"0.000009856\",\"687669\"]],\"bidsCoin\":[[\"0.000009854\",\"483909000\"],[\"0.000009853\",\"824851000\"],[\"0.000009852\",\"539085000\"],[\"0.000009851\",\"697410000\"],[\"0.000009850\",\"488828000\"]],\"asksCoin\":[[\"0.000009860\",\"578208000\"],[\"0.000009859\",\"279010000\"],[\"0.000009858\",\"501588000\"],[\"0.000009857\",\"976049000\"],[\"0.000009856\",\"687669000\"]]}}},\"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]\"},{\"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\":\"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\"},{\"name\":\"asksCoin\",\"type\":\"array\",\"description\":\"depth of asks. first element price, second element quantity(coin)\"},{\"name\":\"bidsCoin\",\"type\":\"array\",\"description\":\"Buyer depth. first element price, second element quantity(coin)\"}]}]}]\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","// 模块名称\n// export const SWAP = 'swap' // USDT本位永续合约\nexport const SWAPV2 = 'swapV2' // USDT本位永续合约V2\nexport const CSWAP = 'cswap' // USDT本位永续合约V2\nexport const SPOT = 'spot' // 现货\nexport const STANDARD = 'standard' // 标准现货\nexport const COMMON = 'common' // 账户与钱包\nexport const COPYTRADE = 'copyTrade' // 账户与钱包\nexport const AGENT = 'agent' // 账户与钱包\n\nexport const moduleKeys = [SWAPV2,CSWAP, SPOT, STANDARD, COMMON,COPYTRADE,AGENT]\n\n\n// WEBPACK FOOTER //\n// ./src/config/modules.js","module.exports = [{\"type\":\"hash\",\"text\":\"Order Book aggregation\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Used to query aggregated depth
  • \"},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v2/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\",\"depth\":20,\"type\":\"step0\"},\"response\":{\"code\":0,\"timestamp\":1707143021361,\"data\":{\"bids\":[[\"43340.92\",\"1.91154\"],[\"43340.88\",\"3.85804\"],[\"43340.85\",\"4.26840\"],[\"43340.83\",\"2.08925\"],[\"43340.81\",\"2.04579\"],[\"43340.79\",\"1.58294\"],[\"43340.77\",\"1.54605\"],[\"43340.76\",\"2.11097\"],[\"43340.74\",\"1.82713\"],[\"43340.72\",\"1.97847\"],[\"43340.69\",\"3.12035\"],[\"43340.65\",\"3.49761\"],[\"43340.61\",\"3.61076\"],[\"43340.56\",\"4.56538\"],[\"43340.47\",\"4.3701\"],[\"43340.46\",\"3.47356\"],[\"43340.44\",\"10.99309\"],[\"43340.23\",\"9.78746\"],[\"43339.90\",\"9.77564\"],[\"43339.86\",\"11.06385\"]],\"asks\":[[\"43341.79\",\"5.76033\"],[\"43341.86\",\"3.9063\"],[\"43341.88\",\"5.76033\"],[\"43341.90\",\"4.98845\"],[\"43341.92\",\"4.98845\"],[\"43341.94\",\"5.25236\"],[\"43341.95\",\"22.48145\"],[\"43341.98\",\"9.40042\"],[\"43342.00\",\"13.58550\"],[\"43342.02\",\"9.44509\"],[\"43342.05\",\"5.25236\"],[\"43342.07\",\"4.83999\"],[\"43342.08\",\"4.74583\"],[\"43342.10\",\"4.58787\"],[\"43342.11\",\"5.61344\"],[\"43342.13\",\"4.57564\"],[\"43342.15\",\"5.14039\"],[\"43342.17\",\"4.65339\"],[\"43342.19\",\"5.32833\"],[\"43342.22\",\"9.74216\"]],\"ts\":1707143021361}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, such as: BTC_USDT\"},{\"name\":\"depth\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Query depth\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"step0 default precision, step1 to step5 are 10 to 100000 times precision respectively\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"bids\",\"type\":\"array\",\"description\":\"Buy depth, where the first element of the array is the price and the second element is the quantity\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"Sell depth, where the first element of the array is the price and the second element is the quantity\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"Timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/06_get_market_agg_depth.json\n// module id = eCwL\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/cswap/websocket/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"調整逐倉保證金\"},{\"type\":\"normal\",\"text\":\"針對逐倉模式下的倉位,調整其逐倉保證金資金\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"10000\",\"symbol\":\"BTC-USD\",\"type\":\"Increase\",\"amount\":\"0.01\",\"positionSide\":\"LONG\",\"timestamp\":\"1702718148654\"},\"response\":{\"code\":0,\"msg\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"保證金資金\"},{\"name\":\"type\",\"type\":\"int\",\"required\":\"是\",\"description\":\"調整方向 1: 增加逐倉保證金Increase,2: 減少逐倉保證金Decrease\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"是\",\"description\":\"持倉方向,且僅可選擇 LONG 或 SHORT\"},{\"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\":\"錯誤信息提示\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/17_post_trade_positionMargin.json\n// module id = eN7O\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-04-15\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Changes to api rate limits, please refer to:Rate limit\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-04-15.json\n// module id = eP5L\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-tw/spot/websocket/introduce/03_data_compress.json\n// module id = eQk0\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/cswap/websocket/introduce/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Create an API Key for a sub-account\"},{\"type\":\"normal\",\"text\":\"Create sub account apikey\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":14189999,\"note\":\"abc6798\",\"permissions\":[3]},\"response\":{\"code\":0,\"timestamp\":1701526872165,\"data\":{\"note\":\"abc6798\",\"apiKey\":\"kRaent****jg\",\"apiSecret\":\"2b****Og\",\"permissions\":[],\"ipAddresses\":[]}}},\"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,5-Widthdraw,7-Allow internal transfer of sub accounts\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"no\",\"description\":\"IP whitelist\"},{\"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\":\"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","\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 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},]\nexport const codeLangConfig3 = [{\n label: 'Python',\n value: CODE_LANG_KEY.python,\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.tw,\n}]\n\nexport const getLang = () => {\n return window.localStorage.getItem(CACHE_KEY) || LANG_KEY[defaultLangKey]\n}\n\nexport const setLang = (lang) => {\n let url = window.location.href\n if (lang == \"zh-tw\") {\n url = url.replaceAll(\"/#/zh-cn\", \"/#/zh-tw\")\n url = url.replaceAll(\"/#/en-us\", \"/#/zh-tw\")\n }\n if (lang == \"zh-hans\") {\n url = url.replaceAll(\"/#/zh-tw\", \"/#/zh-cn\")\n url = url.replaceAll(\"/#/en-us\", \"/#/zh-cn\")\n }\n if (lang == \"en-US\") {\n url = url.replaceAll(\"/#/zh-tw\", \"/#/en-us\")\n url = url.replaceAll(\"/#/zh-cn\", \"/#/en-us\")\n }\n if (url.indexOf(\"/#/zh-cn/\") < 0 && url.indexOf(\"/#/zh-tw/\") < 0 && url.indexOf(\"/#/en-us/\") < 0) {\n const arr = url.split(\"#\")\n if (lang == \"zh-tw\") {\n url = arr[0] + \"#/zh-tw/swapV2/changelog\"\n }\n if (lang == \"en-hans\") {\n url = arr[0] + \"#/zh-cn/swapV2/changelog\"\n }\n if (lang == \"en-US\") {\n url = arr[0] + \"#/en-us/swapV2/changelog\"\n }\n }\n window.location.href = url\n window.location.reload()\n window.localStorage.setItem(CACHE_KEY, lang)\n}\n\nexport const getLangKeyByLang = (lang) => {\n // alert(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","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-09\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USDT Websocket Service: Each time a new connection is established, it will push the full data of 'Account balance and position update', then push updates every 5 seconds.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT Websocket Service: Each time a new connection is established, it will push the full data of 'Configuration updates such as leverage and margin mode', then push updates every 5 seconds.\"},{\"type\":\"html\",\"text\":\"Perpetual USD-Margined Restful Service: The 'Position and Maintenance Margin Ratio' endpoint has added a new 'tier' field.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-09.json\n// module id = esMP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1735964079647111280\",\"symbol\":\"NEMS-USDT\",\"timestamp\":\"1702721073626\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"NEMS-USDT\",\"orderId\":1735964079647111200,\"price\":\"0.1532\",\"stopPrice\":\"0.1532\",\"origQty\":\"126\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\"}}},\"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\":\"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\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Cancel orders with specified status: NEW: new order, PENDING: order in progress, PARTIALLY_FILLED: partially filled\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"trigger price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/021_post_trade_order_cancel.json\n// module id = ev9X\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Swap Open Positions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/openInterest\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"openInterest\":\"35876.52\",\"symbol\":\"BTC-USD\",\"time\":1702719692859}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"trading pair, for example: BTC-USD\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status Code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"openInterest\",\"type\":\"string\",\"description\":\"Position Quantity\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading Pair\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"time, Unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/03_get_openInterest.json\n// module id = ewcP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱最優掛單\"},{\"type\":\"normal\",\"text\":\"訂閱最優掛單\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @bookTicker 例如 BTC-USD@bookTicker\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@bookTicker\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@bookTicker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"最優掛單信息\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"幣對名稱\"},{\"name\":\"e\",\"type\":\"bookTicker\",\"description\":\"事件類型\"},{\"name\":\"T\",\"type\":1717665274199,\"description\":\"最新成交時間戳\"},{\"name\":\"p\",\"type\":\"71093.6\",\"description\":\"最新成交價格\"},{\"name\":\"u\",\"type\":\"20345288\",\"description\":\"成交id\"},{\"name\":\"E\",\"type\":\"1717665274907\",\"description\":\"深度(最優掛單)更新時間\"},{\"name\":\"b\",\"type\":\"71093.1\",\"description\":\"最優買價\"},{\"name\":\"B\",\"type\":\"2872\",\"description\":\"最優買價合約掛單張數\"},{\"name\":\"a\",\"type\":\"71096.1\",\"description\":\"最優賣價\"},{\"name\":\"A\",\"type\":\"336\",\"description\":\"最優賣價合約掛單張數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/05_bookTicker.json\n// module id = exCQ\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\":\"warning\",\"text\":\"Websocket訂閱,每個IP最多可以連接240個websocket\"},{\"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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢訂單成交明細\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/allFillOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1796163365782945792\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718423719019,\"data\":[{\"orderId\":\"1796163365782945792\",\"symbol\":\"ETH-USD\",\"type\":\"MARKET\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"tradeId\":\"20789331\",\"volume\":\"376\",\"baseQty\":0,\"tradePrice\":\"3761.12\",\"amount\":\"3760.00000000\",\"realizedPnl\":\"0.00000000\",\"commission\":\"-0.00039988\",\"currency\":\"ETH\",\"buyer\":true,\"maker\":false,\"tradeTime\":1717073692000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"是\",\"description\":\"訂單號\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"頁數,不傳默認1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"每頁數量,不傳默認100,最大1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"回應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"成交明細 list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, LIMIT:限价單/MARKET:市价單/STOP_MARKET:市价止损單/TAKE_PROFIT_MARKET:市价止盈單/STOP:限价止损單/TAKE_PROFIT:限价止盈單\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,雙向持仓僅可選擇 LONG 或 SHORT\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"成交id\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"成交數量,合約張數\"},{\"name\":\"tradePrice\",\"type\":\"string\",\"description\":\"成交價格\"},{\"name\":\"amount\",\"type\":\"string\",\"description\":\"成交金額,折usd\"},{\"name\":\"realizedPnl\",\"type\":\"string\",\"description\":\"已實現盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"資產單位\"},{\"name\":\"buyer\",\"type\":\"bool\",\"description\":\"是買方?\"},{\"name\":\"maker\",\"type\":\"bool\",\"description\":\"是掛單方?\"},{\"name\":\"tradeTime\",\"type\":\"int64\",\"description\":\"成交時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/09_get_allFillOrders.json\n// module id = f4x/\n// module chunks = 3","var map = {\n\t\"./01_dept_info_interval.json\": \"0EuA\",\n\t\"./02_latest_records.json\": \"4L7x\",\n\t\"./03_kline_data.json\": \"zKQU\",\n\t\"./04_quote_ticker.json\": \"xVTF\",\n\t\"./05_last_trade_price.json\": \"gvF4\",\n\t\"./06_last_mark_price.json\": \"pgER\",\n\t\"./07_book_ticker.json\": \"wF+v\",\n\t\"./08_depth_incr_info.json\": \"hH3F\"\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","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\"./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\"./19_get_historicalTrades\": \"iQjo\",\n\t\"./19_get_historicalTrades.json\": \"iQjo\",\n\t\"./20_get_trade_quote_bookTicker\": \"1iLz\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"1iLz\",\n\t\"./21_get_quote_mark_price_klines\": \"5vst\",\n\t\"./21_get_quote_mark_price_klines.json\": \"5vst\",\n\t\"./22_get_quote_price_v2\": \"OSRE\",\n\t\"./22_get_quote_price_v2.json\": \"OSRE\",\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\":\"Query pending order status\"},{\"type\":\"normal\",\"text\":\"Query order details\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/openOrder\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1736012449498123456\",\"symbol\":\"OP-USDT\",\"timestamp\":\"1702733255486\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"OP-USDT\",\"orderId\":1736012449498123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"1.0\",\"price\":\"2.1710\",\"executedQty\":\"0.0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1702732596168,\"updateTime\":1702732596188,\"clientOrderId\":\"l*****e\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80016,\"msg\":\"order does not exist\",\"data\":{}}}]},\"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\":\"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\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]},{\"type\":\"status\",\"key\":\"key1\",\"data\":[{\"name\":\"NEW\",\"type\":\"\",\"required\":\"\",\"description\":\"New Order\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/08_check_pending_order.json\n// module id = fLAw\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\":\"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\":\"ATOM-USDT\",\"startTime\":\"1696291200\",\"timestamp\":\"1699982303257\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ATOM-USDT\",\"orderId\":172264854643022330000,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"2.36\",\"price\":\"8.096\",\"executedQty\":\"2.36\",\"avgPrice\":\"8.095\",\"cumQuote\":\"19\",\"stopPrice\":\"\",\"profit\":\"-0.9346\",\"commission\":\"-0.009553\",\"status\":\"FILLED\",\"time\":1699546393000,\"updateTime\":1699546393000,\"clientOrderId\":\"\",\"leverage\":\"21X\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"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\":\"currency\",\"type\":\"string\",\"required\":\"no\",\"description\":\"USDC or 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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\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\":\"Subscribe to Limited Depth\"},{\"type\":\"normal\",\"text\":\"Subscribe to Limited Depth\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"Data type is @depth, e.g., BTC-USD@depth5, ETH-USDT@depth5\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@depth5\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@depth5\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair symbol must contain a hyphen \\\"-\\\", e.g., BTC-USD\"},{\"name\":\"count\",\"type\":\"integer\",\"required\":\"yes\",\"description\":\"Depth levels: 100, 50, 20, 10, 5\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@depth5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push depth\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"dataType\",\"type\":\"BTC-USD@depth5\",\"description\":\"Event type\"},{\"name\":\"symbol\",\"type\":\"BTC-USD\",\"description\":\"Trading pair\"},{\"name\":\"bids\",\"type\":\"[\\\"p\\\": \\\"70977.5\\\",\\\"a\\\": \\\"3.029129\\\",\\\"v\\\": \\\"2150.0\\\"]\",\"description\":\"Bid levels\"},{\"name\":\"asks\",\"type\":\"[\\\"p\\\": \\\"70978.5\\\",\\\"a\\\": \\\"3.029129\\\",\\\"v\\\": \\\"2150.0\\\"]\",\"description\":\"Ask levels\"},{\"name\":\"aggPrecision\",\"type\":\"0.1\",\"description\":\"Aggregation precision\"},{\"name\":\"timestamp\",\"type\":\"1717662601938\",\"description\":\"Timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/04_depth.json\n// module id = fcau\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Spot Latest Trade Price\"},{\"type\":\"normal\",\"text\":\"Real-time Push\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @lastPrice, for example, BTC_USDT@lastPrice\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"c\",\"type\":\"\",\"description\":\"Price\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Symbol, e.g., BTC\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/05_last_price.json\n// module id = fqiK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe Market Depth Data\"},{\"type\":\"normal\",\"text\":\"Push limited file depth information every 500ms .default level 20 \"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @depth E.g.BTC-USDT@depth50\"},{\"type\":\"normal\",\"text\":\"Subscription example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth50\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth50\\\"}\"},\"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\":\"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\":\"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","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\":\"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/06_subscribe.json\n// module id = g2tG\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 api 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\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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","var map = {\n\t\"./csharp.js\": \"EiXA\",\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\"./php.js\": \"4jl5\",\n\t\"./python.js\": \"yMq5\",\n\t\"./shell.js\": \"45yt\",\n\t\"./spot/csharp.js\": \"INcn\",\n\t\"./spot/golang.js\": \"y0aS\",\n\t\"./spot/html.js\": \"5KyA\",\n\t\"./spot/java.js\": \"zJn2\",\n\t\"./spot/nodejs.js\": \"qxtL\",\n\t\"./spot/php.js\": \"252X\",\n\t\"./spot/python.js\": \"bTzu\",\n\t\"./spot/shell.js\": \"bfXa\"\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","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-27\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Spot: Supports OCO order features, providing OCO order placement, OCO order cancellation, querying individual OCO orders, querying open OCO orders, and querying OCO order interfaces.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-08-27.json\n// module id = gYbm\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/en-us/swapV2/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingX API, welcome to sign up for the BingX BrokerProject BingX Broker Program Application\"},{\"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\"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\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\":\"Asset transfer records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_PFUTURES\",\"timestamp\":\"1702624474847\"},\"response\":{\"total\":2,\"rows\":[{\"asset\":\"VST\",\"amount\":\"100000.00000000000000000000\",\"type\":\"FUND_PFUTURES\",\"status\":\"CONFIRMED\",\"tranId\":37600111,\"timestamp\":1702252271000},{\"asset\":\"USDT\",\"amount\":\"2218.72352626000000000000\",\"type\":\"FUND_PFUTURES\",\"status\":\"CONFIRMED\",\"tranId\":37600222,\"timestamp\":1702351131000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"yes\",\"description\":\"transfer type, (query by type or tranId)\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"transaction ID, (query by type or tranId)\"},{\"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","module.exports = [{\"type\":\"hash\",\"text\":\"交易員當前帶單\"},{\"type\":\"normal\",\"text\":\"此節點用於交易員查詢永續業務的當前帶單訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/currentTrack\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1702731524284,\"data\":{\"result\":[{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0041\",\"openAvgPrice\":\"42113.4000000000000\",\"unrealizedProfit\":\"+1.2169\",\"openTime\":1702651291745,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.70%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"8.633247\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0041\",\"openAvgPrice\":\"42113.4000000000000\",\"unrealizedProfit\":\"+1.2169\",\"openTime\":1702651291398,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.70%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"8.633247\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0014\",\"openAvgPrice\":\"42108.2000000000000\",\"unrealizedProfit\":\"+0.4228\",\"openTime\":1702651291040,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.71%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"2.947574\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0014\",\"openAvgPrice\":\"42107.7000000000000\",\"unrealizedProfit\":\"+0.4235\",\"openTime\":1702651290638,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.71%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"2.947539\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"}],\"searchResult\":true,\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默認0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"查詢數量,默認20,最大50\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求時間戳, 單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求有效時間空窗值, 單位:毫秒,不填默認5秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"永續業務訂單號\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"帶單訂單號\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"保證金模式,逐倉:ISOLATED,全倉:CROSSED\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向\"},{\"name\":\"openLeverage\",\"type\":\"string\",\"description\":\"開倉杠桿\"},{\"name\":\"openAvgPrice\",\"type\":\"string\",\"description\":\"開倉均價\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"標記價格\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"開倉時間\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"持倉數量\"},{\"name\":\"margain\",\"type\":\"string\",\"description\":\"保證金數量\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"未實現盈虧\"},{\"name\":\"profitRatio\",\"type\":\"string\",\"description\":\"收益率,單位%\"},{\"name\":\"stopProfitPrice\",\"type\":\"string\",\"description\":\"止盈價格,不設置時為空\"},{\"name\":\"stopLossPrice\",\"type\":\"string\",\"description\":\"止損價格,不設置時為空\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader/01_get_currentTrack.json\n// module id = gp62\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to latest price changes\"},{\"type\":\"normal\",\"text\":\"Real time push.\"},{\"type\":\"normal\",\"text\":\"Push latest price changes.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @lastPrice, such as BTC-USDT@lastPrice.\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},\"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\":\"Subscribed data type, e.g., BTC-USDT@lastPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"Latest transaction price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/05_last_trade_price.json\n// module id = gvF4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel all Open Orders on a Symbol\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelOpenOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"GM-USDT\",\"timestamp\":\"1702721320676\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"GM-USDT\",\"orderId\":1735964997957275600,\"transactTime\":1702721242701,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"8061558\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721242645506402\"},{\"symbol\":\"GM-USDT\",\"orderId\":1735965127519326200,\"transactTime\":1702721249787,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"5806281\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721249647382871\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT,If not filled out, cancel all orders.\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"trigger price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/023_post_cancelOpenOrders.json\n// module id = gz1R\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\":\"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\":{\"startTime\":\"1702713615001\",\"endTime\":\"1702731787011\",\"limit\":\"1000\",\"timestamp\":\"1702731787011\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"LDO-USDT\",\"incomeType\":\"FUNDING_FEE\",\"income\":\"-0.0292\",\"asset\":\"USDT\",\"info\":\"Funding Fee\",\"time\":1702713615000,\"tranId\":\"170***6*2_3*9_20***97\",\"tradeId\":\"170***6*2_3*9_20***97\"}]}},\"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\"},{\"name\":\"GTD_PRICE\",\"type\":\"\",\"description\":\"Guaranteed price\"}]}]}]\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\":\"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/02_connect.json\n// module id = hDC3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Incremental Depth Information\"},{\"type\":\"normal\",\"text\":\"Push Frequency Description\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"The push frequency for BTC-USDT and ETH-USDT is 200ms, while for other trading pairs it is 800ms.\"},{\"type\":\"normal\",\"text\":\"How the client should maintain incremental depth locally\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"1. After successfully subscribing, a full depth with an action field value of 'all' will be returned, along with a lastUpdateId used to handle the continuity of subsequent incremental depth. After receiving the full depth, the WebSocket should cache the full depth data in memory.\"},{\"type\":\"normal\",\"text\":\"2. Subsequent depth changes will return incremental depth, with the action field set to 'update'. The value of the Nth incremental depth's lastUpdateId should be the N-1th depth's lastUpdateId + 1.\"},{\"type\":\"normal\",\"text\":\"3. In rare cases where lastUpdateId is not continuous, you can choose to reconnect, or cache the last three incremental depths and try to merge the data by finding continuous lastUpdateId from the cache (because due to multithreading or network routing issues, data order may not be strongly guaranteed).\"},{\"type\":\"normal\",\"text\":\"4. Then, iterate over the received incremental depth and compare it with the current depth one by one. It's recommended to consider thread-safe design and coding practices (as the push frequency may increase later). The data structure could be a sorted map, such as TreeMap:\"},{\"type\":\"normal\",\"text\":\"(1) If the price level does not exist in the current depth, it means a new price level should be added. (Add)\"},{\"type\":\"normal\",\"text\":\"(2) If the quantity corresponding to the price is 0, the price level should be removed from the current depth. (Delete)\"},{\"type\":\"normal\",\"text\":\"(3) If the quantity corresponding to the price is different from the current value, replace it with the quantity returned by the incremental depth. (Update)\"},{\"type\":\"normal\",\"text\":\"(4) After traversing, you will obtain the latest depth, update the depth cache, and remember to update the lastUpdateId.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @incrDepth, for example, BTC-USDT@incrDepth\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Symbol name, the symbol must include a '-' like BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of data subscribed to, for example, BTC-USDT@incrDepth\"},{\"name\":\"action\",\"type\":\"\",\"description\":\"Depth type: all for full depth, update for incremental depth\"},{\"name\":\"lastUpdateId\",\"type\":\"\",\"description\":\"Change ID, a continuously increasing long integer used to describe the sequential relationship between returned incremental depths\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"Changed ask depth (price: quantity)\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"Changed bid depth (price: quantity)\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/08_depth_incr_info.json\n// module id = hH3F\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量撤單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的部分訂單進行批量撤銷操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderIdList\":\"[1735924831603391122, 1735924833239172233]\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702711750843\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[{\"symbol\":\"BTC-USDT\",\"orderId\":1735924831603391200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0032\",\"price\":\"41682.9\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702711706435,\"updateTime\":1702711706453,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1735924833239172400,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0033\",\"price\":\"41182.9\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702711706825,\"updateTime\":1702711706838,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}],\"failed\":null}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"orderIdList & clientOrderIDList are both empty;\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderIdList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"係統訂單號, 最多支持10個訂單[1234567,2345678]\"},{\"name\":\"clientOrderIdList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,[\\\"abc1234567\\\",\\\"abc2345678\\\"]\"},{\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"60000\",\"timestamp\":\"1702624167523\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"balances\":[{\"asset\":\"USDT\",\"free\":\"566773.193402631\",\"locked\":\"244.18616265388994\"},{\"asset\":\"CHEEMS\",\"free\":\"294854132046232\",\"locked\":\"18350553840\"},{\"asset\":\"VST\",\"free\":\"0\",\"locked\":\"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/account/00_get_account_balance.json\n// module id = hIqz\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","var map = {\n\t\".\": \"XH2f\",\n\t\"./\": \"XH2f\",\n\t\"./01_get_currentTrack\": \"U2sZ\",\n\t\"./01_get_currentTrack.json\": \"U2sZ\",\n\t\"./02_post_close_currentTrack\": \"TXP6\",\n\t\"./02_post_close_currentTrack.json\": \"TXP6\",\n\t\"./03_post_tpsl_currentTrack\": \"qkYN\",\n\t\"./03_post_tpsl_currentTrack.json\": \"qkYN\",\n\t\"./04_spot_trader_sell_order\": \"mCp6\",\n\t\"./04_spot_trader_sell_order.json\": \"mCp6\",\n\t\"./index\": \"XH2f\",\n\t\"./index.js\": \"XH2f\"\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 = \"hUlE\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader ^.*$\n// module id = hUlE\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_limit\": \"WMCK\",\n\t\"./01_limit.json\": \"WMCK\",\n\t\"./02_connect\": \"Jf00\",\n\t\"./02_connect.json\": \"Jf00\",\n\t\"./03_data_compress\": \"eQk0\",\n\t\"./03_data_compress.json\": \"eQk0\",\n\t\"./04_heart_beat\": \"nCmZ\",\n\t\"./04_heart_beat.json\": \"nCmZ\",\n\t\"./05_subscribe\": \"D11h\",\n\t\"./05_subscribe.json\": \"D11h\",\n\t\"./06_cancel_subscribe\": \"8PHc\",\n\t\"./06_cancel_subscribe.json\": \"8PHc\",\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","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=1696751141337
    recvWindow=0

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

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    \"},{\"type\":\"html\",\"text\":\"
  • 參數通過query string發送示例
  • \"},{\"type\":\"html\",\"text\":\"1.對接口所有參數拼接(無需排序)\"},{\"type\":\"code\",\"text\":\"recvWindow=0&symbol=BTC-USDT×tamp=1696751141337\"},{\"type\":\"html\",\"text\":\"2. 對拼接好的參數字串使用secretKey生成簽名: 1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8
    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"recvWindow=0&symbol=BTC-USDT×tamp=1696751141337\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 发送请求\"},{\"type\":\"html\",\"text\":\"有些通過query string場景(比如a='1'&b={a:'2'})需要對請求參數的每一個值都進行URL編碼,只對值value進行URL編碼,不對欄位key進行URL編碼,也不是對整個原始的parameters字串進行URL編碼,這裡有個特殊欄位:timestamp的value也不用URL編碼,參考:URL編碼場景說明\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/user/positions?recvWindow=0&symbol=BTC-USDT×tamp=1696751141337&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'\"},{\"type\":\"html\",\"text\":\"
  • 參數通過request body發送示例
  • \"},{\"type\":\"html\",\"text\":\"1.對介面所有參數按照(a-z)排序拼接(需要排序)\"},{\"type\":\"code\",\"text\":\"recvWindow=0&subAccountString=abc12345×tamp=1696751141337\"},{\"type\":\"html\",\"text\":\"2.對拼接好的參數字串使用secretKey生成簽名: 1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\"},{\"type\":\"code\",\"text\":\"echo -n \\\"recvWindow=0&subAccountString=abc12345×tamp=1696751141337\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3.組合成json,放入request body,並且設定header:'Content-Type': 'application/json'\"},{\"type\":\"code\",\"text\":\"{\\\"recvWindow\\\":0,\\\"subAccountString\\\":\\\"abc12345\\\",\\\"timestamp\\\":1696751141337,\\\"signature\\\":\\\"1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\\\"}\"},{\"type\":\"code\",\"text\":\"curl --location 'https://open-api.bingx.com/openApi/subAccount/v1/create' --header 'Content-Type: application/json' --data '{\\\"recvWindow\\\":0,\\\"subAccountString\\\":\\\"abc12345\\\",\\\"timestamp\\\":1696751141337,\\\"signature\\\":\\\"1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\\\"}'\"}]\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\":\"title\",\"text\":\"2024-04-15\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"接口頻率限制改動詳見:頻率限制\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-04-15.json\n// module id = i/xj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Modify Isolated Position 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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"10000\",\"symbol\":\"BTC-USDT\",\"type\":\"1\",\"amount\":\"3\",\"positionSide\":\"LONG\",\"timestamp\":\"1702718148654\"},\"response\":{\"code\":0,\"msg\":\"\",\"amount\":3,\"type\":1}},\"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\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Position ID, if it is filled, the system will use the positionId first\"},{\"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\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"Position ID\"}]}]}]\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\":\"warning\",\"text\":\"GET https://open-api.bingx.com/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\":\"用於查詢市場上歷史成交數據\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"請求參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/market/historicalTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"fromId\":\"412551\",\"limit\":\"500\",\"symbol\":\"ETH-USDT\",\"timestamp\":\"1702731995838\",\"recvWindow\":\"60000\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"time\":1705063108365,\"isBuyerMaker\":true,\"price\":\"2662.83\",\"qty\":\"0.10\",\"quoteQty\":\"266.28\",\"id\":\"8179911\"},{\"time\":1705063108486,\"isBuyerMaker\":true,\"price\":\"2662.82\",\"qty\":\"0.10\",\"quoteQty\":\"266.28\",\"id\":\"8179912\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"fromId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"從哪個交易ID開始返回。默認返回最近的交易記錄\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"請求時間戳,單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求有效時間窗口值,單位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"交易對符號。交易對符號中必須包含連字符\\\"-\\\",例如:BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"返回結果集的數量。默認值為50,最大值為100\"}]},{\"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\":\"成交額\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"交易ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/19_get_historicalTrades.json\n// module id = iQjo\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢所有訂單\"},{\"type\":\"normal\",\"text\":\"查詢用戶所有訂單(訂單狀態為已成交、已撤銷、部分成交、委託中、新建)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 查詢時間範圍最大不得超過7天
  • \"},{\"type\":\"html\",\"text\":\"
  • 默認查詢最近7天內的數據
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/fullOrder\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USDT\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母,如果不填寫symbol,則會查詢所有幣對的訂單。\"},{\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"},{\"name\":\"triggerOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"这一訂單關聯的觸發單訂單號\"},{\"name\":\"isTwap\",\"type\":\"bool\",\"description\":\"是否為TWAP訂單,true:是,flase:不是\"},{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP委託訂單編號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/23_get_trade_allOrdersV2.json\n// module id = iRbd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel TWAP Order\"},{\"type\":\"normal\",\"text\":\"Used to cancel TWAP commission orders \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/cancelOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"mainOrderId\":\"12312435134\",\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"mainOrderId\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"TWAP order number\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request 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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP order number\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction; SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG or SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"Price limit type, constant: price interval, percentage: slippage\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order.\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"After the strategic order is split, the time interval for order placing is between 5-120s\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order. \"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions. \"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: New/Running: In operation/Canceling: Cancellation of order/Filled: Fully filled/PartiallyFilled: Partially filled/Pending: Not triggered/PartiallyFilledAndResidueFailed: Partially filled (remaining order failed), algorithm order status/PartiallyFilledAndResidueCancelled: Partially filled ( Remaining cancellation), algorithm order status/Cancelled: Canceled (no partial deal exists)/Failed: Order failed (no partial deal exists)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Volume\"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"Execution time, in seconds. The order will be canceled after the execution time expires. \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"Maximum execution time execution time, unit: seconds.\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"Order creation time, unit: milliseconds\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Order update time, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/32_cancel_twap_cancel_order.json\n// module id = iXtv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶內部轉賬\"},{\"type\":\"html\",\"text\":\"用戶在bingx平台內互相轉賬,僅限主賬戶轉主賬戶和主賬戶轉子賬戶,如需子賬號內轉請使用專用接口: 子賬戶內部轉賬\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"amount\":\"10.0\",\"coin\":\"USDT\",\"userAccount\":\"16779999\",\"userAccountType\":\"1\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702558152381,\"data\":{\"id\":\"12******1\"}}},\"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\":\"電話區號,當userAccountType=2時必填。\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"賬戶類型,1 資金賬戶;2 標合賬戶;3 永續賬戶\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID,數字和字母組合,長度小於100字符\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"平台返回內轉記錄唯一id\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID,數字和字母組合,長度小於100字符\"}]}]}]\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","\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/copyTrade/api/trader/index.js","module.exports = {\"module\":\"cswap\",\"path\":\"/zh-tw/cswap/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/cswap/2_description.json\n// module id = ihU3\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\":\"Query Order history\"},{\"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\":\"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\":\"html\",\"text\":\"
  • Return order list sorted by updateTime from smallest to largest
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USDT\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500}]}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"the query range is more than seven days\",\"data\":{}}}]},\"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 symbol is specified, it will query the historical orders for all trading pairs.\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"no\",\"description\":\"USDC or USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Only return 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.If a specific pair is not provided, a history of transactions for all pairs will be returned\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"},{\"name\":\"triggerOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"trigger order ID associated with this order\"},{\"name\":\"isTwap\",\"type\":\"bool\",\"description\":\"Whether it is a TWAP order, true: yes, false: no\"},{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP order number\"}]}]}]\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\":\"Set 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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"leverage\":\"8\",\"side\":\"SHORT\",\"symbol\":\"ETH-USDT\",\"timestamp\":\"1702733704941\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"leverage\":8,\"symbol\":\"ETH-USDT\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"margin is not enough\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'Side' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'Side' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"symbol not exist\",\"data\":{}}}]},\"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. In the Hedge mode, LONG for long positions, SHORT for short positions. In the One-way mode, only supports BOTH.\"},{\"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\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"Available Long Volume\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"Available Short Volume\"},{\"name\":\"availableLongVal\",\"type\":\"string\",\"description\":\"Available Long Value\"},{\"name\":\"availableShortVal\",\"type\":\"string\",\"description\":\"Available Short Value\"},{\"name\":\"maxPositionLongVal\",\"type\":\"string\",\"description\":\"Maximum Position Long Value\"},{\"name\":\"maxPositionShortVal\",\"type\":\"string\",\"description\":\"Maximum Position Short Value\"}]}]}]\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\":\"Open Interest Statistics\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/openInterest\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"EOS-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"openInterest\":\"7409966.52\",\"symbol\":\"EOS-USDT\",\"time\":1702719692859}}},\"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\":\"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\":\"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\":\"title\",\"text\":\"2024-03-19\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:按倉位ID平倉。\"},{\"type\":\"html\",\"text\":\"永續websocket:訂單信息新增stopGuaranteed字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢訂單接口返回stopGuaranteed字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢訂單、查詢歷史訂單接口返回triggerOrderId字段。\"},{\"type\":\"html\",\"text\":\"永續行情接口/openApi/swap/v2/quote/contracts新增:tradeMinQuantity、tradeMinUSDT、makerFeeRate、takerFeeRate\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-03-19.json\n// module id = j7dp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":\"1702731721672\",\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[1736008778921491200],\"failed\":null}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"service has some errors, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109414,\"msg\":\"order not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters.\"},{\"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","module.exports = [{\"type\":\"hash\",\"text\":\"批量下單\"},{\"type\":\"desc\",\"text\":\"可用於在現貨批量下單\",\"desc\":[{\"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\":\"warning\",\"text\":\"如果需要計算最大最小下單幣對數量可使用公式:U (最小/最大下單金額) / (限價單輸入Limit price or 市價單Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"查詢價格可參考:GET /openApi/spot/v1/ticker/24hr\"},{\"type\":\"html\",\"text\":\"最小最大下單金額可參考:GET /openApi/spot/v1/common/symbols\"}]},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/spot/trading-rules/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/spot/v1/common/symbols\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]},{\"type\":\"html\",\"text\":\"
  • 批量下單, 如何對request簽名? 請參考 永續: 批量下單
  • \"}]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"data\":\"[{\\\"symbol\\\": \\\"ETHS-USDT\\\", \\\"side\\\": \\\"BUY\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"quantity\\\": 7.663, \\\"price\\\": 12.479, \\\"newClientOrderId\\\": \\\"abc122345\\\"}]\",\"recvWindow\":\"60000\",\"timestamp\":\"1702721964975\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ETHS-USDT\",\"orderId\":1735967859282101200,\"transactTime\":1702721965033,\"price\":\"12.479\",\"origQty\":\"7.663\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"clientOrderID\":\"abc122345\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"是\",\"description\":\"下單的request數組\"},{\"name\":\"sync\",\"type\":\"bool\",\"required\":\"否\",\"description\":\"sync=false(如不填寫則默認false):並行下單(但是需要所有訂單的symbol/side/type相同),sync=true(多個訂單串行下單,所有訂單不要求symbol/side/type相同)\"}]},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"觸發價格,用於TAKE_ STOP_ LIMIT, TAKE_ STOP_ MARKET,TRIGGER_ LIMIT,TRIGGER_ MARKET類型的訂單。\"},{\"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\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"只能字母、數字和_,用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的newClientOrderId,僅支持2個小時的查詢範圍\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC,不填寫則默認GTC\"},{\"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/01_post_trade_batchOrders.json\n// module id = jKsK\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Spot: Added a limit where a single websocket can only successfully subscribe to 200 dataTypes.\"},{\"type\":\"html\",\"text\":\"Spot: Added a limit where a single IP can have at most 60 websockets.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-08-17.json\n// module id = jPZq\n// module chunks = 3","var map = {\n\t\".\": \"Q3ZN\",\n\t\"./\": \"Q3ZN\",\n\t\"./01_dept_info_interval\": \"0EuA\",\n\t\"./01_dept_info_interval.json\": \"0EuA\",\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\"./04_quote_ticker\": \"xVTF\",\n\t\"./04_quote_ticker.json\": \"xVTF\",\n\t\"./05_last_trade_price\": \"gvF4\",\n\t\"./05_last_trade_price.json\": \"gvF4\",\n\t\"./06_last_mark_price\": \"pgER\",\n\t\"./06_last_mark_price.json\": \"pgER\",\n\t\"./07_book_ticker\": \"wF+v\",\n\t\"./07_book_ticker.json\": \"wF+v\",\n\t\"./08_depth_incr_info\": \"hH3F\",\n\t\"./08_depth_incr_info.json\": \"hH3F\",\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\":\"Subscription transaction by transaction\"},{\"type\":\"normal\",\"text\":\"Subscribe to the trade detail data of a trading pair\"},{\"type\":\"warning\",\"text\":\"Due to multi-threaded push, it cannot be guaranteed that the push transaction ID is orderedg\"},{\"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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},\"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\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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 Multi-Assets Rules\"},{\"type\":\"normal\",\"text\":\"Query platform-defined multi-assets rules\"},{\"type\":\"warning\",\"text\":\"Only available for live trading, live trading domain: https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/multiAssetsRules\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"marginAssets\":\"USDT\",\"ltv\":\"99.99%\",\"collateralValueRatio\":\"99.99%\",\"maxTransfer\":\"\",\"indexPrice\":\"1.0006981800\"},{\"marginAssets\":\"USDC\",\"ltv\":\"99.99%\",\"collateralValueRatio\":\"99.99%\",\"maxTransfer\":\"\",\"indexPrice\":\"0.9998772499\"},{\"marginAssets\":\"TRX\",\"ltv\":\"85.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"300000\",\"indexPrice\":\"0.1778813333\"},{\"marginAssets\":\"DOGE\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"300000\",\"indexPrice\":\"0.3891840533\"},{\"marginAssets\":\"BNB\",\"ltv\":\"90.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"160\",\"indexPrice\":\"622.9584792100\"},{\"marginAssets\":\"DOT\",\"ltv\":\"90.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"12000\",\"indexPrice\":\"5.0431331628\"},{\"marginAssets\":\"BTC\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"10\",\"indexPrice\":\"90230.3058075903\"},{\"marginAssets\":\"ETH\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"100\",\"indexPrice\":\"3214.4279682820\"}]},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"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\":\"marginAssets\",\"type\":\"string\",\"description\":\"Margin assets, such as BTC, ETH, etc.\"},{\"name\":\"ltv\",\"type\":\"string\",\"description\":\"Loan-to-Value ratio, value conversion ratio used when calculating available margin.\"},{\"name\":\"collateralValueRatio\",\"type\":\"string\",\"description\":\"Collateral ratio, value conversion ratio used when calculating risk rate.\"},{\"name\":\"maxTransfer\",\"type\":\"string\",\"description\":\"Transfer limit, maximum amount that can be transferred in. Empty means no limit.\"},{\"name\":\"indexPrice\",\"type\":\"string\",\"description\":\"Current latest USD index price for the asset.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/35_get_multi_asset_rule.json\n// module id = jifI\n// module chunks = 3","var map = {\n\t\"./00_post_trade_order.json\": \"YI4R\",\n\t\"./01_get_commissionRate.json\": \"n+yS\",\n\t\"./02_get_leverage.json\": \"bFqw\",\n\t\"./03_post_leverage.json\": \"N7P3\",\n\t\"./04_post_allOpenOrders.json\": \"0Lu1\",\n\t\"./05_post_closeAllPositions.json\": \"vDcD\",\n\t\"./06_get_positions.json\": \"+oba\",\n\t\"./07_get_balance.json\": \"ptJe\",\n\t\"./08_get_forceOrders.json\": \"D/10\",\n\t\"./09_get_allFillOrders.json\": \"f4x/\",\n\t\"./10_delete_trade_order.json\": \"01Ul\",\n\t\"./11_get_all_openOrders.json\": \"TzVG\",\n\t\"./12_get_trade_order.json\": \"c76v\",\n\t\"./14_get_trade_allOrders.json\": \"I2ee\",\n\t\"./15_get_margin_type.json\": \"qPGu\",\n\t\"./16_post_margin_type.json\": \"LawJ\",\n\t\"./17_post_trade_positionMargin.json\": \"eN7O\"\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 = \"jmrT\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade \\.json$\n// module id = jmrT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Current All Open Orders\"},{\"type\":\"normal\",\"text\":\"Query all orders that the user is currently entrusted with.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702733126509\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44459.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702256915574,\"updateTime\":1702256915610,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"workingType\":\"MARK_PRICE\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44454.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702111071719,\"updateTime\":1702111071735,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"workingType\":\"MARK_PRICE\"}]}}},\"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,When not filled, query all pending orders. When filled, query the pending orders for the corresponding currency pair\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order/ TRIGGER_REVERSE_MARKET:trigger reverse Market order \"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"postOnly\",\"type\":\"bool\",\"description\":\"Maker only\"},{\"name\":\"trailingStopRate\",\"type\":\"float64\",\"description\":\"Retracement rate\"},{\"name\":\"trailingStopDistance\",\"type\":\"int64\",\"description\":\"價差\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢持倉模式\"},{\"type\":\"normal\",\"text\":\"用於查詢永續合約的持倉方式,支援雙向持倉和單向持倉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionSide/dual\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"dualSidePosition\":\"true\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109401,\"msg\":\"user has pending orders or position\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"string\",\"description\":\"\\\"true\\\": 雙向持倉模式;\\\"false\\\": 單向持倉模式\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/19_get_positionSide.json\n// module id = jzOs\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-01-10\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history response added fields: sourceAddress/transferType/addressTag\"},{\"type\":\"html\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec response added field: sourceAddress\"},{\"type\":\"html\",\"text\":\"Perpetual contract new: Query Pending Order Status Interface\"},{\"type\":\"html\",\"text\":\"Spot addition: Query transaction details api GET /openApi/spot/v1/trade/myTrades\"},{\"type\":\"html\",\"text\":\"Perpetual contract new:Query Historical Trading Orders api GET /openApi/swap/v1/market/historicalTrades\"},{\"type\":\"html\",\"text\":\"Perpetual contract:Query the historical funding rate. 1. Change the input parameter 'symbol' to non-mandatory. 2. response added field: fairPrice\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - Optional Push Interval for Depth Information\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-01-10.json\n// module id = k/At\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","var map = {\n\t\"./00_get_account_balance.json\": \"HY4c\",\n\t\"./01_get_asset_transfer.json\": \"bSWG\",\n\t\"./02_get_asset_transfer2.json\": \"gp5h\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"KPNz\",\n\t\"./14.get_wallet_queryInnerTransferRecords.json\": \"9tS2\",\n\t\"./21_get_account_allAccountBalance.json\": \"Exaw\"\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\":\"Withdraw records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"USDT\",\"endTime\":\"1702536564000\",\"recvWindow\":\"60\",\"startTime\":\"1702450164000\",\"timestamp\":\"1702622964230\"},\"response\":[{\"address\":\"TR****zc\",\"amount\":\"3500.00000000000000000000\",\"applyTime\":\"2023-12-14T04:05:02.000+08:00\",\"coin\":\"USDTTRC20\",\"id\":\"125*****98\",\"network\":\"TRC20\",\"transferType\":1,\"transactionFee\":\"1.00000000000000000000\",\"confirmNo\":2,\"info\":\"\",\"txId\":\"b9***********b67\"}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Unique id of the withdrawal record returned by the platform\"},{\"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,When both the platform ID and withdraw order ID are passed as parameters, the query will be based on the platform ID\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"4-Under Review 5-Failed 6-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\":\"withdraw 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,When both the platform ID and withdraw order ID are passed as parameters, the query will be based on the platform ID\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Withdrawal network\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"4-Under Review 5-Failed 6-Completed\"},{\"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\"},{\"name\":\"sourceAddress\",\"type\":\"String\",\"description\":\"Source address\"},{\"name\":\"transferType\",\"type\":\"int\",\"description\":\"Transfer type: 1 Withdrawal, 2 Internal transfer\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"Some currencies like XRP/XMR allow filling in secondary address tags\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/04_get_withdraw_history.json\n// module id = kh23\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-06-28\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:查詢歷史成交明細\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-06-28.json\n// module id = khDw\n// module chunks = 3","var map = {\n\t\".\": \"eIko\",\n\t\"./\": \"eIko\",\n\t\"./01_trade_info\": \"m2cs\",\n\t\"./01_trade_info.json\": \"m2cs\",\n\t\"./02_last_price\": \"ntfQ\",\n\t\"./02_last_price.json\": \"ntfQ\",\n\t\"./03_mark_price\": \"D6bT\",\n\t\"./03_mark_price.json\": \"D6bT\",\n\t\"./04_depth\": \"pvqc\",\n\t\"./04_depth.json\": \"pvqc\",\n\t\"./05_bookTicker\": \"exCQ\",\n\t\"./05_bookTicker.json\": \"exCQ\",\n\t\"./06_kline\": \"p1RX\",\n\t\"./06_kline.json\": \"p1RX\",\n\t\"./07_24hr_ticker\": \"5LXd\",\n\t\"./07_24hr_ticker.json\": \"5LXd\",\n\t\"./index\": \"eIko\",\n\t\"./index.js\": \"eIko\"\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 = \"kiRb\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market ^.*$\n// module id = kiRb\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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1min\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1min\\\"}\"},\"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\":\"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\":\"1分鐘k線\"},{\"name\":\"3min\",\"description\":\"3分鐘k線\"},{\"name\":\"5min\",\"description\":\"5分鐘k線\"},{\"name\":\"15min\",\"description\":\"15分鐘k線\"},{\"name\":\"30min\",\"description\":\"30分鐘k線\"},{\"name\":\"60min\",\"description\":\"60分鐘k線\"},{\"name\":\"2hour\",\"description\":\"2小時k線\"},{\"name\":\"4hour\",\"description\":\"4小時k線\"},{\"name\":\"6hour\",\"description\":\"6小時k線\"},{\"name\":\"8hour\",\"description\":\"8小時k線\"},{\"name\":\"12hour\",\"description\":\"12小時k線\"},{\"name\":\"1day\",\"description\":\"1日k線\"},{\"name\":\"3day\",\"description\":\"3日k線\"},{\"name\":\"1week\",\"description\":\"1週k線\"},{\"name\":\"1mon\",\"description\":\"1月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","module.exports = [{\"type\":\"hash\",\"text\":\"交易員按買入訂單號賣出现货資產\"},{\"type\":\"normal\",\"text\":\"此節點用於交易員按现货買入訂單號賣出現貨資產,用於賣出帶單訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/spot/trader/sellOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1253517936071234567\"},\"response\":{\"code\":0,\"timestamp\":1711619555065,\"data\":{\"orderNo\":1773285851363541000,\"coinName\":\"BTC\",\"valuationCoinName\":\"USDT\",\"side\":2,\"price\":\"70850\",\"dealPrice\":\"70612.7438655\",\"delegatePrice\":\"70613.45\",\"status\":30}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"交易員現貨買入訂單號\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderNo\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"成交訂單號\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"用戶傳過來的價格\"},{\"name\":\"dealPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"成交均價\"},{\"name\":\"coinName\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易幣的名稱,比如BTC\"},{\"name\":\"status\",\"type\":\"int8\",\"required\":\"是\",\"description\":\"訂單的狀態 5 未觸發 10處理中 11委託中 20撤銷中 30 成功 31 已撤銷 40失敗\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader/04_spot_trader_sell_order.json\n// module id = kpfu\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\t\"./05_get_quote_ticker.json\": \"wj44\",\n\t\"./06_get_market_agg_depth.json\": \"cYhj\",\n\t\"./07_get_market_price.json\": \"ymfm\",\n\t\"./08_get_market_book_ticker.json\": \"Tbeq\",\n\t\"./09_get_market_history_klines.json\": \"7UNC\",\n\t\"./10_get_ market_histroy_traders.json\": \"cRRp\"\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\":\"撤單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1735964079647111280\",\"symbol\":\"NEMS-USDT\",\"timestamp\":\"1702721073626\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"NEMS-USDT\",\"orderId\":1735964079647111200,\"price\":\"0.1532\",\"stopPrice\":\"0.1532\",\"origQty\":\"126\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\"}}},\"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\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"否\",\"description\":\"撤销指定状态的订单:NEW:新订单 ,PENDING:委托中,PARTIALLY_FILLED:部分成交\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/021_post_trade_order_cancel.json\n// module id = l/8P\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query historical transaction details\"},{\"type\":\"normal\",\"text\":\"Obtain the transaction history details of a certain transaction pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Explanation of Order List Retrieval Rules\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"Sorting: ORDER BY filledTime ASC, in ascending order of filledTime field\"},{\"type\":\"normal\",\"text\":\"Maximum range: [From current date] up to past 7 days & maximum of 1000 historical filled orders, startTs = [current date] - 7 days\"},{\"type\":\"normal\",\"text\":\"If both startTs and endTs are provided, the data range returned is: startTs < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"If only endTs is provided, the data range returned is: ([current date] - 7 days) < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"If only startTs is provided, no data is returned\"},{\"type\":\"normal\",\"text\":\"If orderId is provided, only the filled orders of that orderId are returned\"}]},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/fillHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTs\":\"1702731530000\",\"startTs\":\"1702724330000\",\"symbol\":\"WLD-USDT\",\"lastFillId\":130753,\"pageSize\":50,\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"fill_history_orders\":[{\"filledTm\":\"2023-12-16T20:58:36Z\",\"volume\":\"4.10\",\"price\":\"3.1088\",\"qty\":\"12.74\",\"quoteQty\":\"211.40\",\"commission\":\"-0.0025\",\"commissionAsset\":\"USDT\",\"orderId\":\"1736007768311123456\",\"tradeId\":\"241512\",\"filledTime\":\"2023-12-16T20:58:36.000+0800\",\"symbol\":\"WLD-USDT\",\"role\":\"maker\",\"side\":\"buy\",\"positionSide\":\"short\"}],\"total\":290}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"no\",\"description\":\"USDC or USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"If orderId is provided, only the filled orders of that orderId are returned\"},{\"name\":\"lastFillId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The last tradeId of the last query, default is 0 if not filled in.\"},{\"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\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The page number must be greater than 0, if not filled in, the default is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The size of each page must be greater than 0, the maximum value is 1000, if you do not fill in, then the default 50\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"Transaction quantity\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Transaction price\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"Transaction amount\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"commission\"},{\"name\":\"commissionAsset\",\"type\":\"string\",\"description\":\"Asset unit, usually USDT\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"order id\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"trade id\"},{\"name\":\"filledTime\",\"type\":\"string\",\"description\":\"Match the transaction time in the format of 2006-01-02T15:04:05.999+0800\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"role\",\"type\":\"string\",\"description\":\"Active selling and buying, taker: active buying, maker: active selling\"},{\"name\":\"total\",\"type\":\"int64\",\"description\":\"total records\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/25_get_fill_history_detail.json\n// module id = l3pU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢用戶API Key權限\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiRestrictions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702624501386\"},\"response\":{\"ipRestrict\":false,\"createTime\":1684763997626,\"permitsUniversalTransfer\":false,\"enableReading\":true,\"enableFutures\":false,\"enableSpotAndMarginTrading\":false}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"Kline/Candlestick Data\"},{\"type\":\"normal\",\"text\":\"Check the candlestick chart data of the filled price\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Up to 15 days of data can be returned
  • \"},{\"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/v2/market/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"1m\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720626772,\"data\":[[1702720620000,42216.29,42216.94,42216.29,42216.72,0.2,1702720679999,8548.46],[1702720560000,42220.61,42221.1,42215.56,42216.63,2.93,1702720619999,123968.7],[1702720500000,42182.59,42220.38,42182.59,42220.38,1.53,1702720559999,64851.33],[1702720440000,42182.84,42183.16,42182.22,42182.81,2.54,1702720499999,107559.45],[1702720380000,42199.72,42204.53,42180.2,42182.76,1.1,1702720439999,46549.09]]}},\"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\"},{\"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\":\"klines\",\"type\":\"array\",\"description\":\"Candlestick chart array\"}]},{\"type\":\"data in array\",\"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\":\"Trading volume (number of coins)\"},{\"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\":\"title\",\"text\":\"2024-07-30\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位:所有行情接口和websocket DataType支持USDC幣對。\"},{\"type\":\"html\",\"text\":\"新增: /openApi/swap/v3/user/balance 同時返回 USDT 和 USDC\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-07-30.json\n// module id = l7kI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢係統時間\"},{\"type\":\"html\",\"text\":\"

    HTTP請求

    \"},{\"type\":\"warning\",\"text\":\"GET https://open-api.bingx.com/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/cswap/api/basic/05_system_time.json\n// module id = lC7j\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 https://open-api.bingx.com/openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/del\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":14189999,\"apiKey\":\"2W****mA\"},\"response\":{\"code\":0,\"timestamp\":1702021810315}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子母賬戶資金劃轉可劃轉金額(僅限母賬戶操作)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"fromUid\":\"25472377\",\"fromAccountType\":\"2\",\"toUid\":\"25316652\",\"toAccountType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1719498078761,\"data\":{\"coins\":[{\"id\":4,\"name\":\"USDT\",\"showName\":\"Tether\",\"icon\":{\"id\":4,\"uri\":\"https://static-app.teststar.cc/icon/USDT.png\"},\"type\":0,\"fiatSymbol\":\"$\",\"availableAmount\":\"79.02345678\",\"usdtRate\":\"1\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"fromUid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方uid\"},{\"name\":\"fromAccountType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方賬戶類型:1-資金賬戶;2-標合賬戶;3-永續U本位賬戶\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方uid\"},{\"name\":\"toAccountType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方賬戶類型:1-資金賬戶;2-標合賬戶;3-永續U本位賬戶\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"coins\",\"type\":\"ARRAY\",\"description\":\"幣種列表\"},{\"name\":\"id\",\"type\":\"LONG\",\"description\":\"幣種id\"},{\"name\":\"name\",\"type\":\"STRING\",\"description\":\"幣種名稱,例如USDT\"},{\"name\":\"availableAmount\",\"type\":\"DECIMAL\",\"description\":\"可劃轉金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/19_sub_account_transfer_support_coin.json\n// module id = lU9A\n// module chunks = 3","var map = {\n\t\"./01_server_url.json\": \"wWlE\",\n\t\"./03_error_code.json\": \"/sx7\",\n\t\"./04_rate_limits.json\": \"bIsO\",\n\t\"./04_server_url.json\": \"GK5R\"\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\"./03_get_deposit_hisrec.json\": \"ZlbJ\",\n\t\"./04_get_withdraw_history.json\": \"DNed\",\n\t\"./05_post_wallets_coins.json\": \"BYvq\",\n\t\"./06_post_wallets_withdraw.json\": \"yxdj\",\n\t\"./13.get_wallet_queryDepositAddress.json\": \"WnFl\",\n\t\"./14_get_risk_deposit_records.json\": \"JbVL\"\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 = \"loP8\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet \\.json$\n// module id = loP8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱最新價格變動\"},{\"type\":\"normal\",\"text\":\"實時推送。\"},{\"type\":\"normal\",\"text\":\"推送最新價格變動。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @lastPrice,比如BTC-USDT@lastPrice。\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},\"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@lastPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"最新交易價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/05_last_trade_price.json\n// module id = lqZR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"合約交易幣對\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"contractId\":\"100\",\"symbol\":\"BTC-USDT\",\"size\":\"0\",\"quantityPrecision\":4,\"pricePrecision\":1,\"feeRate\":0.0005,\"makerFeeRate\":0.0002,\"takerFeeRate\":0.0005,\"tradeMinLimit\":0,\"tradeMinQuantity\":0.0001,\"tradeMinUSDT\":2,\"maxLongLeverage\":125,\"maxShortLeverage\":125,\"currency\":\"USDT\",\"asset\":\"BTC\",\"status\":1,\"apiStateOpen\":\"true\",\"apiStateClose\":\"true\",\"brokerState\":\"true\",\"launchTime\":1586275200000,\"maintainTime\":0,\"offTime\":0},{\"contractId\":\"101\",\"symbol\":\"ETH-USDT\",\"size\":\"0\",\"quantityPrecision\":2,\"pricePrecision\":2,\"feeRate\":0.0005,\"makerFeeRate\":0.0002,\"takerFeeRate\":0.0005,\"tradeMinLimit\":0,\"tradeMinQuantity\":0.01,\"tradeMinUSDT\":2,\"maxLongLeverage\":125,\"maxShortLeverage\":125,\"currency\":\"USDT\",\"asset\":\"ETH\",\"status\":1,\"apiStateOpen\":\"true\",\"apiStateClose\":\"true\",\"brokerState\":\"true\",\"launchTime\":1586275200000,\"maintainTime\":0,\"offTime\":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\":\"contractId\",\"type\":\"string\",\"description\":\"合約ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"quantityPrecision\",\"type\":\"int\",\"description\":\"交易數量精度\"},{\"name\":\"pricePrecision\",\"type\":\"int\",\"description\":\"價格精度\"},{\"name\":\"makerFeeRate\",\"type\":\"float64\",\"description\":\"maker 交易手續費\"},{\"name\":\"takerFeeRate\",\"type\":\"float64\",\"description\":\"taker 交易手續費\"},{\"name\":\"tradeMinQuantity\",\"type\":\"float64\",\"description\":\"交易最小單位,單位為:幣\"},{\"name\":\"tradeMinUSDT\",\"type\":\"float64\",\"description\":\"交易最小單位,單位為:USDT\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"結算和保證金货幣資產\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"合約交易資產\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"1:上線,25:禁止開倉, 5:預上線,0:已下線\"},{\"name\":\"apiStateOpen\",\"type\":\"string\",\"description\":\"API是否可開倉\"},{\"name\":\"apiStateClose\",\"type\":\"string\",\"description\":\"API是否可平倉\"},{\"name\":\"ensureTrigger\",\"type\":\"bool\",\"description\":\"是否支持保證止損\"},{\"name\":\"triggerFeeRate\",\"type\":\"string\",\"description\":\"保證止損的手續費\"},{\"name\":\"brokerState\",\"type\":\"bool\",\"description\":\"是否禁止broker用戶交易,true:禁止\"},{\"name\":\"launchTime\",\"type\":\"long\",\"description\":\"上架時間;上架時間前幣對狀態為預上線,上架時間後幣對狀態變為已上線\"},{\"name\":\"maintainTime\",\"type\":\"long\",\"description\":\"禁止開倉開始時間,時間到後幣對處於禁止開倉狀態,僅可以平倉\"},{\"name\":\"offTime\",\"type\":\"long\",\"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\":\"Access\"},{\"type\":\"normal\",\"text\":\"the base URL of Websocket Market Data :wss://open-api-cswap-ws.bingx.com/market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/introduce/01_connect.json\n// module id = lyY+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢API KEY權限\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiPermissions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702624501386\"},\"response\":{\"apiKey\":\"\",\"permissions\":[1,2],\"ipAddresses\":[],\"note\":\"demo\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"String\",\"description\":\"apiKey\"},{\"name\":\"permissions\",\"type\":\"array\",\"description\":\"權限,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,5-提幣,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/02_get_account_apiPermission.json\n// module id = m+RL\n// module chunks = 3","var map = {\n\t\".\": \"tksP\",\n\t\"./\": \"tksP\",\n\t\"./01_post_trade_aorder\": \"MZay\",\n\t\"./01_post_trade_aorder.json\": \"MZay\",\n\t\"./01_post_trade_batchOrders\": \"jKsK\",\n\t\"./01_post_trade_batchOrders.json\": \"jKsK\",\n\t\"./021_post_trade_order_cancel\": \"l/8P\",\n\t\"./021_post_trade_order_cancel.json\": \"l/8P\",\n\t\"./022_post_trade_orders_cancel\": \"uDFu\",\n\t\"./022_post_trade_orders_cancel.json\": \"uDFu\",\n\t\"./023_post_cancelOpenOrders\": \"BdSn\",\n\t\"./023_post_cancelOpenOrders.json\": \"BdSn\",\n\t\"./023_post_trade_order_cancel_replace\": \"qru4\",\n\t\"./023_post_trade_order_cancel_replace.json\": \"qru4\",\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\"./077_get_trade_fill_details\": \"ui1J\",\n\t\"./077_get_trade_fill_details.json\": \"ui1J\",\n\t\"./08_get_commissionRate\": \"OkZ/\",\n\t\"./08_get_commissionRate.json\": \"OkZ/\",\n\t\"./09_cancel_all_after\": \"IW4y\",\n\t\"./09_cancel_all_after.json\": \"IW4y\",\n\t\"./100_post_one_oco_order\": \"0DXm\",\n\t\"./100_post_one_oco_order.json\": \"0DXm\",\n\t\"./101_cancel_one_oco_order\": \"cfpy\",\n\t\"./101_cancel_one_oco_order.json\": \"cfpy\",\n\t\"./102_get_one_oco_order\": \"bM6w\",\n\t\"./102_get_one_oco_order.json\": \"bM6w\",\n\t\"./103_get_all_pending_oco_order\": \"EsEh\",\n\t\"./103_get_all_pending_oco_order.json\": \"EsEh\",\n\t\"./104_get_all_history_oco_order\": \"bjJG\",\n\t\"./104_get_all_history_oco_order.json\": \"bjJG\",\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","module.exports = [{\"type\":\"hash\",\"text\":\"按交易訂閱交易\"},{\"type\":\"normal\",\"text\":\"訂閱交易對的交易詳情數據\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @trade 例如 BTC-USD@trade\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@trade\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@trade\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送數據\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"trade\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"交易ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"交易價格\"},{\"name\":\"q\",\"type\":\"1\",\"description\":\"成交數量(合約數量)\"},{\"name\":\"T\",\"type\":\"1649832413512\",\"description\":\"交易時間\"},{\"name\":\"m\",\"type\":\"true\",\"description\":\"買方是否為做市商。如果為true,此交易為主動賣單,否則為主動買單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/01_trade_info.json\n// module id = m2cs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約基礎信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"pricePrecision\":1,\"minTickSize\":\"100\",\"minTradeValue\":\"100\",\"minQty\":\"1.00000000\",\"status\":1,\"timeOnline\":1710738000000},{\"symbol\":\"ETH-USD\",\"pricePrecision\":2,\"minTickSize\":\"10\",\"minTradeValue\":\"10\",\"minQty\":\"1.00000000\",\"status\":1,\"timeOnline\":1710738000000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USD\"},{\"name\":\"pricePrecision\",\"type\":\"int64\",\"description\":\"交易數量精度\"},{\"name\":\"minTickSize\",\"type\":\"string\",\"description\":\"價格精度\"},{\"name\":\"minTradeValue\",\"type\":\"string\",\"description\":\"最小交易金額\"},{\"name\":\"minQty\",\"type\":\"string\",\"description\":\"交易最小單位,單位為:幣\"},{\"name\":\"status\",\"type\":\"int64\",\"description\":\"1上線, 25 暫停\"},{\"name\":\"timeOnline\",\"type\":\"int64\",\"description\":\"幣對上線時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market/01_get_contracts.json\n// module id = mCcU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Trader sells spot assets based on buy order number\"},{\"type\":\"normal\",\"text\":\"This node is used for traders to buy spot orders and sell spot assets, used for selling orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/spot/trader/sellOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1253517936071234567\"},\"response\":{\"code\":0,\"timestamp\":1711619555065,\"data\":{\"orderNo\":1773285851363541000,\"coinName\":\"BTC\",\"valuationCoinName\":\"USDT\",\"side\":2,\"price\":\"70850\",\"dealPrice\":\"70612.7438655\",\"delegatePrice\":\"70613.45\",\"status\":30}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Trader's spot buy order number\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderNo\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Transaction order number\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Price passed by the user\"},{\"name\":\"dealPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Average transaction price\"},{\"name\":\"coinName\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Name of the trading coin, such as BTC\"},{\"name\":\"status\",\"type\":\"int8\",\"required\":\"yes\",\"description\":\"Order status 5 Not triggered 10 Processing 11 In commission 20 Cancelling 30 Success 31 Cancelled 40 Failed\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader/04_spot_trader_sell_order.json\n// module id = mCp6\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 await bingXOpenApiTest(API.protocol, HOST, API.uri, API.method, API_KEY, API_SECRET)\n}\nfunction getParameters(API, timestamp, urlEncode) {\n let parameters = \"\"\n for (const key in API.payload) {\n if (urlEncode) {\n parameters += key + \"=\" + encodeURIComponent(API.payload[key]) + \"&\"\n } else {\n parameters += key + \"=\" + API.payload[key] + \"&\"\n }\n }\n if (parameters) {\n parameters = parameters.substring(0, parameters.length - 1)\n parameters = parameters + \"×tamp=\" + timestamp\n } else {\n parameters = \"timestamp=\" + timestamp\n }\n return parameters\n}\n\nmain().catch(console.err);\nasync function bingXOpenApiTest(protocol, host, path, method, API_KEY, API_SECRET) {\n const timestamp = new Date().getTime()\n const sign = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(getParameters(API, timestamp), API_SECRET))\n const url = protocol+\"://\"+host+path+\"?\"+getParameters(API, timestamp, true)+\"&signature=\"+sign\n console.log(\"protocol:\", protocol)\n console.log(\"method:\", method)\n console.log(\"host:\", host)\n console.log(\"path:\", path)\n console.log(\"parameters:\", getParameters(API, timestamp))\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 !!!!!!!very important\n Notice:in nodeJS when you converts original resp(string) to json, order id is a big-int in some response\n it may have big-int issue, will be transformed automatically\n for example: order id: 172998235239792314304 -be transformed automatically to-->172998235239792314300\n if you find something wrong with order id like 'order not exist' or found the order id suffix with 00 or more 0, chould be the reason \n then can print the original response like below to check the origianl order id \n console.log(resp); \n return resp;\n }\n };\n const resp = await axios(config);\n console.log(resp.status);\n console.log(resp.data);\n !!!!!!!very important\n if there is a Big int ,can transfer it like this below:\n let jsonString = '{\"longInt\":1807651653281644544}';\n console.log(\"original data:\",jsonString)\n let obj = JSON.parse(jsonString);\n console.log(\"JSON.parse:\",obj)\n let longInt = BigInt(obj.longInt);\n console.log(\"to longInt:\",longInt.toString())\n}`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/javascript.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\":\"24hr Ticker Price Change Statistics\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • It is used to query the price change data of the current currency pair in the 24-hour rolling window. Without the symbols parameter, all transaction pair data will be returned
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/24hr\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702720770200\"},\"response\":{\"code\":0,\"timestamp\":1702720823624,\"data\":[{\"symbol\":\"BTC-USDT\",\"openPrice\":42827.65,\"highPrice\":42893.56,\"lowPrice\":41648.71,\"lastPrice\":42215.15,\"priceChange\":1244.85,\"priceChangePercent\":\"2.91%\",\"volume\":5099.21,\"quoteVolume\":214948771.34,\"openTime\":1702634423624,\"closeTime\":1702720823624,\"askPrice\":42215.55,\"askQty\":2.20125,\"bidPrice\":42214.65,\"bidQty\":0.8962}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pairs, such as: BTC-USDT, will return all symbol data when no parameters are entered\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"The timestamp of the request, in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, for example: BTC-USDT\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"Opening price in the last 24 hours\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"The highest price in the last 24 hours\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"The lowest price in the last 24 hours\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"Latest price\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Total trading volume (base asset)\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"Total quote volume (quote asset)\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"The start time of the ticker interval\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"description\":\"end time of the ticker interval\"},{\"name\":\"count\",\"type\":\"int\",\"description\":\"The number of transactions within the statistical time\"},{\"name\":\"bidPrice\",\"type\":\"float64\",\"description\":\"bid price\"},{\"name\":\"bidQty\",\"type\":\"float64\",\"description\":\"bid quantity\"},{\"name\":\"askPrice\",\"type\":\"float64\",\"description\":\"ask price\"},{\"name\":\"askQty\",\"type\":\"float64\",\"description\":\"ask quantity\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"Price change percentage field\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/05_get_quote_ticker.json\n// module id = mWiW\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query API transaction commission (non-invitation relationship)\"},{\"type\":\"normal\",\"text\":\"Query API transaction commissions, commissions from API transactions for non-invited relationship users.Broker platform specific.\"},{\"type\":\"html\",\"text\":\"
  • 1. Only supports querying data after December 1, 2023;
  • \"},{\"type\":\"html\",\"text\":\"
  • 2. startTime 'endtime, endtime -startTime' = 7.
  • \"},{\"type\":\"html\",\"text\":\"
  • 3.Only supports querying the commissions of users who have no invitation relationship but place orders through the corresponding channel API.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/reward/third/commissionDataList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\",\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"commissionBizType\":\"81\",\"recWindow\":\"6000\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"list\":[{\"uid\":25053735,\"commissionTime\":1700759104737,\"tradeVolume\":\"10.234\",\"commissionVolume\":\"0.02663866\",\"commissionBizType\":81}],\"total\":3}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"UID of the trading user (non-invitation relationship user)\"},{\"name\":\"commissionBizType\",\"type\":\"int\",\"required\":\"YES\",\"description\":\"81: perpetual contract trading API commission 82: spot trading API commission\"},{\"name\":\"startTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"Start timestamp (days), Only supports querying data after December 1, 2023.\"},{\"name\":\"endTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"End timestamp (days). Only supports querying data after December 1, 2023.\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page number for pagination, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"The number of pages must be greater than 0 and the maximum value is 100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: milliseconds. If not filled, the default is 5 seconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"request timestamp, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"UID of the trading user (non-invitation relationship user)\"},{\"name\":\"commissionTime\",\"type\":\"long\",\"description\":\"Commission timestamp, date\"},{\"name\":\"tradeVolume\",\"type\":\"string\",\"description\":\"API order amount is discounted in USDT\"},{\"name\":\"commissionVolume\",\"type\":\"string\",\"description\":\"ebate commission amount in USDT\"},{\"name\":\"commissionBizType\",\"type\":\"int\",\"description\":\"81: perpetual contract trading API commission 82: spot trading API commission\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/05_get_Query_API_transaction_commission.json\n// module id = mYC+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量査詢子帳戶資產概覽\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/allAccountBalance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":25316652,\"accountType\":\"sopt\",\"pageIndex\":1,\"pageSize\":10,\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"result\":[{\"subUid\":\"16477999\",\"accountBalances\":[{\"accountType\":\"sopt\",\"usdtBalance\":\"100\"}]}],\"pageId\":1,\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"否\",\"description\":\"子賬戶uid\"},{\"name\":\"accountType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"帳戶類型,不填默認查全部帳戶的資產。 sopt:現貨(資金帳戶),stdFutures:標準合約帳戶,coinMPerp:幣本位帳戶,USDTMPerp:U本位帳戶,copyTrading:跟單帳戶,grid:策略帳戶,eran:理財帳戶,c2c:c2c帳戶等。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁頁碼,必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁大小,必須大於0,最大10\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子賬戶uid\"},{\"name\":\"accountType\",\"type\":\"string\",\"description\":\"帳戶類型,不填默認查全部帳戶的資產。 sopt:現貨(資金帳戶),stdFutures:標準合約帳戶,coinMPerp:幣本位帳戶,USDTMPerp:U本位帳戶,copyTrading:跟單帳戶,grid:策略帳戶,eran:理財帳戶,c2c:c2c帳戶等。\"},{\"name\":\"usdtBalance\",\"type\":\"string\",\"description\":\"折合USDT金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/22_sub_account_allAccountBalance.json\n// module id = mYOy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶充值地址\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶查詢子用戶特定幣種在其所在區塊鏈中的充幣地址,限母用戶可用。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccount/deposit/address\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"limit\":\"100\",\"offset\":0,\"subUid\":16239999},\"response\":{\"code\":0,\"timestamp\":1700741585439,\"data\":{\"data\":[],\"total\":0}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"充值地址列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"網絡名稱\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"帶有前綴的儲值地址\"},{\"name\":\"tag\",\"type\":\"string\",\"description\":\"地址tag\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0已激活 1已申請 2未申請\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/15.get_wallet_querySubDepositAddress.json\n// module id = mcEH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"創建子帳戶充值地址\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶創建子用戶的充幣地址,每個幣種僅支持1個充值地址,限母用戶可用\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/createSubAddress\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":\"16769999\",\"walletType\":\"1\",\"coin\":\"USDT\",\"network\":\"TRC20\",\"recvWindow\":\"10000\"},\"response\":{\"code\":0,\"timestamp\":1702444060331,\"data\":{\"coin\":\"USDT\",\"address\":\"T********D\",\"network\":\"TRC20\",\"addressTag\":\"\",\"status\":0,\"ts\":1702444060331}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣種名稱\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子帳戶uid\"},{\"name\":\"network\",\"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\":\"address\",\"type\":\"string\",\"description\":\"地址\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"帶有前綴的儲值地址\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"地址標籤\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"網絡名稱\"},{\"name\":\"status\",\"type\":\"decimal\",\"description\":\"地址狀態 0已激活 1申請中 2未申請\"},{\"name\":\"ts\",\"type\":\"long\",\"description\":\"創建時間,Unix 時間戳的毫秒數格式,如 1597026383085\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/12.post_wallet_createSubDepositAddress.json\n// module id = mmsx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query position data\"},{\"type\":\"normal\",\"text\":\"Retrieve information on users' positions of Perpetual Swap.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BNB-USDT\",\"timestamp\":\"1702731661854\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"positionId\":\"1735*****52\",\"symbol\":\"BNB-USDT\",\"currency\":\"USDT\",\"positionAmt\":\"0.20\",\"availableAmt\":\"0.20\",\"positionSide\":\"SHORT\",\"isolated\":true,\"avgPrice\":\"246.43\",\"initialMargin\":\"9.7914\",\"leverage\":5,\"unrealizedProfit\":\"-0.0653\",\"realisedProfit\":\"-0.0251\",\"liquidationPrice\":294.16914617776246}]}},\"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\":\"initialMargin\"},{\"name\":\"margin\",\"type\":\"string\",\"description\":\"margin\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average opening price\"},{\"name\":\"liquidationPrice\",\"type\":\"float64\",\"description\":\"liquidation price\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"leverage\"},{\"name\":\"positionValue\",\"type\":\"string\",\"description\":\"Position value\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"Mark price\"},{\"name\":\"riskRate\",\"type\":\"string\",\"description\":\"Risk rate. When the risk rate reaches 100%, it will force liquidation or position reduction\"},{\"name\":\"maxMarginReduction\",\"type\":\"string\",\"description\":\"Maximum margin reduction\"},{\"name\":\"pnlRatio\",\"type\":\"string\",\"description\":\"Unrealized P&L ratio\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Position update time, in milliseconds timestamp.\"}]}]}]\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\":\"查詢交易手續費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718353924453,\"data\":{\"takerCommissionRate\":\"0.0004\",\"makerCommissionRate\":\"0.00013999\"}}},\"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\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"takerCommissionRate\",\"type\":\"string\",\"description\":\"吃單手續費率\"},{\"name\":\"makerCommissionRate\",\"type\":\"string\",\"description\":\"掛單手續費率\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/01_get_commissionRate.json\n// module id = n+yS\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query standard contract balance\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":[{\"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\":\"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\":\"/zh-tw/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\":\"Query position mode\"},{\"type\":\"normal\",\"text\":\"Used to get the position mode of perpetual contract, supporting both dual position mode and single position mode\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionSide/dual\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"dualSidePosition\":\"true\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109401,\"msg\":\"user has pending orders or position\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"The window time for the request to be valid, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"string\",\"description\":\"\\\"true\\\": dual position mode; \\\"false\\\": single position mode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/19_get_positionSide.json\n// module id = n7WW\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","\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/q&a/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/forceOrders 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/allOrders 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/allFillOrders 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/fillHistory 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v1/trade/positionHistory 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v3/user/balance 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/user/positions 已支持USDC \"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-23.json\n// module id = nC6P\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/04_heart_beat.json\n// module id = nCmZ\n// module chunks = 3","import { codeLangConfig3, CODE_LANG_KEY } from '../lang'\n\nfunction generateCodeJson(api, codeLang, host, defaultCode) {\n\n const code = codeLangConfig3.find(item => item.value === codeLang)\n\n if (!code) {\n return defaultCode || 'No Code'\n }\n const api2 = {}\n let codeStr = require(\"@/utils/codeJson/\" + codeLang + '.js').default\n\n if (code.value === CODE_LANG_KEY.js) {\n api2.uri = api.uri\n api2.method = api.method\n api2.payload = api.payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/AAPPII/g, JSON.stringify(api2, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n return codeStr\n } else if (codeLang == CODE_LANG_KEY.shell) {\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 codeStr = codeStr.replace(/AAPPII/g, api.uri)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api.method)\n codeStr = codeStr.replace(/PPAARRAAMMEETTEERRSS/g, parameters)\n codeStr = codeStr.replace(/\\^/g, '`')\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.go) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = api.payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, JSON.stringify(api2, null, 4))\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, JSON.stringify(api.payload, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.java) {\n // codeStr = require(\"@/utils/code/\" + codeLang + '.js').default\n api2.uri = api.uri\n api2.method = api.method\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n let str = ``\n for (const prop in api.payload) {\n str += `\n parameters.put(\"${prop}\", \"\");`\n }\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, str)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.python) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = api.payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, JSON.stringify(api.payload, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.csharp) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = api.payload\n api2.protocol = api.protocol\n let payloadStr = JSON.stringify(api.payload, null, 4)\n payloadStr = payloadStr.replace(/:/g, \"=\")\n payloadStr = payloadStr.replace(/\\\"/g, \"\")\n\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, payloadStr)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.php) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = api.payload\n api2.protocol = api.protocol\n let payloadStr = JSON.stringify(api.payload, null, 4)\n payloadStr = payloadStr.replace(/:/g, \"=\")\n payloadStr = payloadStr.replace(/\\\"/g, \"\")\n\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, payloadStr)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else {\n return defaultCode || 'No Code'\n }\n}\n\nexport default generateCodeJson\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeJson/generate.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-02-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract: adjust the switch leverage interface's 'side' field to support the 'BOTH' value.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: In the 'Trade Order' & 'Bulk order' interfaces, the 'stopLoss' and 'takeProfit' fields do not support the 'quantity' field input.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: New parameter 'closePosition' for 'Trade order' & 'Bulk order' interface.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: New parameter 'activationPrice' for 'Trade order' & 'Bulk order' interface.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-02-23.json\n// module id = nFKt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Rate limit\"},{\"type\":\"html\",\"text\":\"If the request is too frequent, the system will automatically restrict the request and recover after 5 minutes;\"},{\"type\":\"html\",\"text\":\"Based on account UID rate limit, each api has its own independent rate limit, which does not affect each other\"},{\"type\":\"html\",\"text\":\"Users can check the current frequency limit usage and the expiration of the time window according to \\\"X-RateLimit-Requests-Remain\\\" (remaining number of frequency limits) and \\\"X-RateLimit-Requests-Expire\\\" (window expiration time) in the Http Header. time, and dynamically adjust your request frequency based on this value.\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"The API requests are subject to different rate limits based on UID and IP. Please refer to the respective API documentation for UID rate limits. IP rate limits are based on the following grouping rules:\"},{\"type\":\"html\",\"text\":\"
  • Market API Group [1]: The total IP rate limit for all interfaces within the group is 100 requests per 10 seconds and 500 requests per minute
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [2]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 100 requests per 10 seconds for each interface.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [3]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 200 requests per 10 seconds for each interface.
  • \"}]\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 and unfreeze sub-accounts\"},{\"type\":\"normal\",\"text\":\"Freeze/Unfreeze Sub Accounts\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\"},{\"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\":\"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\":\"title\",\"text\":\"2024-09-29\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位:Websocket行情推送,增加推送頻率說明。\"},{\"type\":\"html\",\"text\":\"永續U本位:Websocket訂閱,每個IP最多可以連接240個websocket\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-09-23.json\n// module id = nNlN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel orders in batches and place orders in batches\"},{\"type\":\"normal\",\"text\":\"This api is used to cancel orders in batches and place orders in batches.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/batchCancelReplace\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"batchOrders\":\"[{\\\"cancelOrderId\\\": 1753337028434464768, \\\"cancelReplaceMode\\\": \\\"ALLOW_FAILURE\\\", \\\"symbol\\\": \\\"BTC-USDT\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"side\\\": \\\"BUY\\\", \\\"positionSide\\\": \\\"LONG\\\", \\\"price\\\": 38000, \\\"quantity\\\": 1, \\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 45000, \\\\\\\"price\\\\\\\": 45000}\\\", \\\"stopLoss\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"STOP\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 37000, \\\\\\\"price\\\\\\\": 37000}\\\"}, {\\\"cancelOrderId\\\": 1753337028434464768, \\\"cancelReplaceMode\\\": \\\"ALLOW_FAILURE\\\", \\\"symbol\\\": \\\"BTC-USDT\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"side\\\": \\\"BUY\\\", \\\"positionSide\\\": \\\"LONG\\\", \\\"price\\\": 38000, \\\"quantity\\\": 1, \\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 45000, \\\\\\\"price\\\\\\\": 45000}\\\", \\\"stopLoss\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"STOP\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 37000, \\\\\\\"price\\\\\\\": 37000}\\\"}, {\\\"cancelOrderId\\\": 1753337028434464768, \\\"cancelReplaceMode\\\": \\\"ALLOW_FAILURE\\\", \\\"symbol\\\": \\\"BTC-USDT\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"side\\\": \\\"BUY\\\", \\\"positionSide\\\": \\\"LONG\\\", \\\"price\\\": 38000, \\\"quantity\\\": 1, \\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 45000, \\\\\\\"price\\\\\\\": 45000}\\\", \\\"stopLoss\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"STOP\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 37000, \\\\\\\"price\\\\\\\": 37000}\\\"}]\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"cancelResult\":\"true\",\"cancelMsg\":\"\",\"cancelResponse\":{\"cancelClientOrderId\":\"\",\"cancelOrderId\":1753337028434464800,\"symbol\":\"BTC-USDT\",\"orderId\":1753337028434464800,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"10.0000\",\"price\":\"38000.0\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1706863098000,\"updateTime\":1706863097000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"workingType\":\"MARK_PRICE\",\"onlyOnePosition\":false,\"reduceOnly\":false},\"replaceResult\":\"true\",\"ReplaceMsg\":\"\",\"newOrderResponse\":{\"orderId\":1753337098747777000,\"symbol\":\"BTC-USDT\",\"positionSide\":\"LONG\",\"side\":\"BUY\",\"type\":\"LIMIT\",\"price\":38000,\"quantity\":1,\"stopPrice\":0,\"workingType\":\"MARK_PRICE\",\"clientOrderId\":\"\",\"timeInForce\":\"GTC\",\"priceRate\":0,\"stopLoss\":\"{\\\"type\\\": \\\"STOP\\\", \\\"quantity\\\": 1, \\\"stopPrice\\\": 37000, \\\"price\\\": 37000}\",\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT\\\", \\\"quantity\\\": 1, \\\"stopPrice\\\": 45000, \\\"price\\\": 45000}\",\"reduceOnly\":false}}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"batchOrders\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"A batch of orders, string form of LIST\"},{\"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\":\"OrderRequest\",\"key\":\"orderRequest\",\"data\":[{\"name\":\"cancelReplaceMode\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"STOP_ON_FAILURE: If the order cancellation fails, the replacement order will not continue.\\nALLOW_FAILURE: Regardless of the success of the order cancellation, the replacement order will proceed.\"},{\"name\":\"cancelClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"The original client-defined order ID to be canceled. The system will convert this field to lowercase. Either cancelClientOrderId or cancelOrderId must be provided. If both parameters are provided, cancelOrderId takes precedence.\"},{\"name\":\"cancelOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The platform order ID to be canceled. The system will convert this field to lowercase. Either cancelClientOrderId or cancelOrderId must be provided. If both parameters are provided, cancelOrderId takes precedence.\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"ONLY_NEW: If the order status is NEW, the cancellation will succeed.\\nONLY_PENDING: If the order status is PENDING, the cancellation will succeed.\\nONLY_PARTIALLY_FILLED: If the order status is PARTIALLY_FILLED, the cancellation will succeed.\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId, clientOrderId only supports LIMIT/MARKET order type\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in Force, currently supports PostOnly, GTC, IOC, and FOK\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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\":\"OrderResponse\",\"type\":\"OrderResponse\",\"required\":\"yes\",\"description\":\"\"}]},{\"type\":\"OrderResponse\",\"key\":\"orderResponse\",\"data\":[{\"name\":\"cancelResult\",\"type\":\"string\",\"description\":\"Cancellation result. true: Cancellation successful, false: Cancellation failed\"},{\"name\":\"cancelMsg\",\"type\":\"string\",\"description\":\"Reason for the cancellation failure\"},{\"name\":\"cancelResponse\",\"type\":\"CancelResponse\",\"description\":\"Information about the canceled order\"},{\"name\":\"replaceResult\",\"type\":\"string\",\"description\":\"Replacement result. true: Replacement successful, false: Replacement failed\"},{\"name\":\"replaceMsg\",\"type\":\"string\",\"description\":\"Reason for the replacement failure\"},{\"name\":\"newOrderResponse\",\"type\":\"NewOrderResponse\",\"description\":\"Information about the new order\"}]},{\"type\":\"CancelResponse\",\"key\":\"cancelResponse\",\"data\":[{\"name\":\"cancelClientOrderId\",\"type\":\"string\",\"description\":\"Custom OrderId of the canceled order. The system will convert this field to lowercase.\"},{\"name\":\"cancelOrderId\",\"type\":\"string\",\"description\":\"OrderId of the canceled order\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"leverage\",\"type\":\"string\",\"description\":\"Leverage\"},{\"name\":\"workingType\",\"type\":\"string\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"onlyOnePosition\",\"type\":\"bool\",\"description\":\"is OneWay Position mode, true: yes; false: no\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"NewOrderResponse\",\"key\":\"newOrderResponse\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"original order quantity\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"timeInForce\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/21_batch_cancel_replace_order.json\n// module id = nNrq\n// module chunks = 3","var map = {\n\t\".\": \"y74g\",\n\t\"./\": \"y74g\",\n\t\"./01_get_contracts\": \"mCcU\",\n\t\"./01_get_contracts.json\": \"mCcU\",\n\t\"./02_get_premiumIndex\": \"nco7\",\n\t\"./02_get_premiumIndex.json\": \"nco7\",\n\t\"./03_get_openInterest\": \"pnyN\",\n\t\"./03_get_openInterest.json\": \"pnyN\",\n\t\"./04_get_kline\": \"Yskp\",\n\t\"./04_get_kline.json\": \"Yskp\",\n\t\"./05_get_depth\": \"2qcG\",\n\t\"./05_get_depth.json\": \"2qcG\",\n\t\"./06_get_ticker\": \"PaEN\",\n\t\"./06_get_ticker.json\": \"PaEN\",\n\t\"./index\": \"y74g\",\n\t\"./index.js\": \"y74g\"\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 = \"nZZO\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market ^.*$\n// module id = nZZO\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新標記價格和資金費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"BTC-USD\",\"markPrice\":\"42216.4\",\"indexPrice\":\"42219.9\",\"lastFundingRate\":\"0.00025100\",\"nextFundingTime\":1702742400000}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USD\"},{\"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-tw/cswap/api/market/02_get_premiumIndex.json\n// module id = nco7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel 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\":\"warning\",\"text\":\"The cancellation api is limited to one second and can only cancel the same orderId or clientOrderId. Please do not resubmit\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderId\":\"1736011869418901234\",\"symbol\":\"RNDR-USDT\",\"timestamp\":\"1702732515704\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"RNDR-USDT\",\"orderId\":1736011869418901200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"3\",\"price\":\"4.5081\",\"executedQty\":\"0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702732457867,\"updateTime\":1702732457888,\"clientOrderId\":\"lo******7\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"service has some errors, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109414,\"msg\":\"order not exist\",\"data\":{}}}]},\"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. The system will convert this field to lowercase. 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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"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. The system will convert this field to lowercase.\"}]}]}]\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","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\":\"Query Order\"},{\"type\":\"normal\",\"text\":\"Query order details\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/orderDetail\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1736012449498123456\",\"symbol\":\"OP-USDT\",\"timestamp\":\"1702733255486\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"OP-USD\",\"orderId\":1736012449498123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"1.0\",\"price\":\"2.1710\",\"executedQty\":\"0.0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1702732596168,\"updateTime\":1702732596188,\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}}}},\"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-USD\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Order ID\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]},{\"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/cswap/api/trade/12_get_trade_order.json\n// module id = nj2w\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱最新成交價\"},{\"type\":\"normal\",\"text\":\"訂閱最新成交價\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @lastPrice 例如 BTC-USD@lastPrice ETH-USDT@lastPrice\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@lastPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@lastPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@lastPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送价格\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"lastPrice\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"最新價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/02_last_price.json\n// module id = ntfQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"編輯子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"編輯子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":\"16259999\",\"apiKey\":\"CK***g\",\"ipAddresses\":[\"51.**.**.172\",\"51.**.**.135\"],\"note\":\"note\",\"permissions\":[1,2,3,4,6,7]},\"response\":{\"code\":0,\"timestamp\":1699785925994,\"data\":{\"note\":\"note\",\"permissions\":[1,2,3,4,6,7],\"ipAddresses\":[\"51.**.**.172\",\"51.**.**.135\"]}}},\"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白名單\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"hash\",\"text\":\"現貨交易對\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"注意:此接口返回的最大最小下單數量字段minQty/maxQty已廢棄請勿使用,如果需要計算最大最小下單幣對數量可使用公式:U (最小下單金額minNotional 或者 最大下單金額maxNotional) / (限價單輸入Limit price or 市價單Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"查詢價格可參考:GET /openApi/spot/v1/ticker/24hr\"}]},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/common/symbols\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbols\":[{\"symbol\":\"BTC-USDT\",\"minQty\":0.0001826,\"maxQty\":18.2663756,\"minNotional\":5,\"maxNotional\":500000,\"status\":1,\"tickSize\":0.01,\"stepSize\":0.00001}]}}},\"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\":\"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\":\"版本升級,此字段已廢棄,請忽略此字段;可自行計算,公式為:minQty=minNotional/price\"},{\"name\":\"maxQty\",\"type\":\"float64\",\"description\":\"版本升級,此字段已廢棄,請忽略此字段;可自行計算,公式為:maxQty=maxNotional/price\"},{\"name\":\"minNotional\",\"type\":\"float64\",\"description\":\"最小交易金額\"},{\"name\":\"maxNotional\",\"type\":\"float64\",\"description\":\"最大交易金額\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0下線, 1上線, 5預開放, 25暫停交易\"},{\"name\":\"apiStateBuy\",\"type\":\"Boolen\",\"description\":\"可買\"},{\"name\":\"apiStateSell\",\"type\":\"Boolen\",\"description\":\"可賣\"},{\"name\":\"timeOnline\",\"type\":\"long\",\"description\":\"幣對上線時間\"},{\"name\":\"offTime\",\"type\":\"long\",\"description\":\"幣對下線時間\"},{\"name\":\"maintainTime\",\"type\":\"long\",\"description\":\"幣對暫停交易時間\"}]}]}]\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\":\"Spot Best Order Book\"},{\"type\":\"normal\",\"text\":\"Real-time Push\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @bookTicker, for example, BTC_USDT@bookTicker\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Best bid price\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Best bid quantity\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Best ask price\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Best ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/06_book_ticker.json\n// module id = o9Mz\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/cswap/api/basic/02_timestamp.json\n// module id = oPkH\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/agent/api/agent/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"深度信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"SHIB-USDT\",\"limit\":\"5\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"T\":1702719083983,\"bids\":[[\"0.000009854\",\"483909\"],[\"0.000009853\",\"824851\"],[\"0.000009852\",\"539085\"],[\"0.000009851\",\"697410\"],[\"0.000009850\",\"488828\"]],\"asks\":[[\"0.000009860\",\"578208\"],[\"0.000009859\",\"279010\"],[\"0.000009858\",\"501588\"],[\"0.000009857\",\"976049\"],[\"0.000009856\",\"687669\"]],\"bidsCoin\":[[\"0.000009854\",\"483909000\"],[\"0.000009853\",\"824851000\"],[\"0.000009852\",\"539085000\"],[\"0.000009851\",\"697410000\"],[\"0.000009850\",\"488828000\"]],\"asksCoin\":[[\"0.000009860\",\"578208000\"],[\"0.000009859\",\"279010000\"],[\"0.000009858\",\"501588000\"],[\"0.000009857\",\"976049000\"],[\"0.000009856\",\"687669000\"]]}}},\"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]\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"係統時間,單位:毫秒\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"賣方深度。第一個元素價格,第二個元素數量\"},{\"name\":\"bids\",\"type\":\"array\",\"description\":\"買方深度。第一個元素價格,第二個元素數量\"},{\"name\":\"asksCoin\",\"type\":\"array\",\"description\":\"賣方深度。第一個元素價格,第二個元素數量(币)\"},{\"name\":\"bidsCoin\",\"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\":\"/zh-tw/standard/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了標准合約交易業務相關API的使用方法介紹。\"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/1_introduce.json\n// module id = okpR\n// module chunks = 3","module.exports = {\"module\":\"cswap\",\"path\":\"/en-us/cswap/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingX API, welcome to sign up for the BingX BrokerProject BingX Broker Program Application\"},{\"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\"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/1_introduce.json\n// module id = omwE\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"lyY+\",\n\t\"./02_data_compress.json\": \"Q5Jp\",\n\t\"./03_heart_beat.json\": \"IMXD\",\n\t\"./04_subscribe.json\": \"rEmz\",\n\t\"./05_cancel_subscribe.json\": \"SBKE\"\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 = \"osrw\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/introduce \\.json$\n// module id = osrw\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","module.exports = [{\"type\":\"hash\",\"text\":\"頻率限制\"},{\"type\":\"html\",\"text\":\"如果請求過於頻繁系統將自動限制請求,5分鐘後,會自動恢復;\"},{\"type\":\"html\",\"text\":\"基於賬號UID的限頻,每個接口的都有自己獨立的限頻,相互不影響\"},{\"type\":\"html\",\"text\":\"使用者可依據Http Header中的\\\"X-RateLimit-Requests-Remain\\\"(限頻剩餘次數)及\\\"X-RateLimit-Requests-Expire\\\"(視窗過期時間)查看目前限頻使用情況,以及所在時間視窗的過期時間,根據該數值動態調整您的請求頻率。\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"同時會受到根據UID和IP的不同限頻,基於UID限頻詳見各接口文檔,其中基於IP限頻會基於以下分組規則進行\"},{\"type\":\"html\",\"text\":\"
  • 行情接口分組[1]: 分組內所有接口基於IP限頻總和:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[2]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[3]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:200/10s
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic/04_rate_limits.json\n// module id = p+dP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"推送最新成交價K線\"},{\"type\":\"normal\",\"text\":\"推送最新成交價K線\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @kline_,比如BTC-USD@kline_1m\"},{\"type\":\"normal\",\"text\":\"訂閱舉例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@kline_1m\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@kline_1min\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱,合約名稱中需有\\\"-\\\",如BTC-USD\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"參考字段說明,K線類型\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USD@kline_1min\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"t\",\"type\":1717662900000,\"description\":\"這根K線的開始時間\"},{\"name\":\"o\",\"type\":70941,\"description\":\"這根K線的開盤價\"},{\"name\":\"c\",\"type\":70923.1,\"description\":\"這根K線期的收盤價\"},{\"name\":\"h\",\"type\":70941.3,\"description\":\"這根K線期間最高成交價\"},{\"name\":\"l\",\"type\":70904.2,\"description\":\"這根K線期間最低成交價\"},{\"name\":\"u\",\"type\":336,\"description\":\"這根K線期間成交筆數\"},{\"name\":\"a\",\"type\":2.55,\"description\":\"成交的幣對數量\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"v\",\"type\":1813,\"description\":\"成交的合約張數\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"1分鐘K線\"},{\"name\":\"3m\",\"description\":\"3分鐘K線\"},{\"name\":\"5m\",\"description\":\"5分鐘K線\"},{\"name\":\"15m\",\"description\":\"15分鐘K線\"},{\"name\":\"30m\",\"description\":\"30分鐘K線\"},{\"name\":\"1h\",\"description\":\"1小時K線\"},{\"name\":\"2h\",\"description\":\"2小時K線\"},{\"name\":\"4h\",\"description\":\"4小時K線\"},{\"name\":\"6h\",\"description\":\"6小時K線\"},{\"name\":\"8h\",\"description\":\"8小時K線\"},{\"name\":\"12h\",\"description\":\"12小時K線\"},{\"name\":\"1d\",\"description\":\"1日K線\"},{\"name\":\"3d\",\"description\":\"3日K線\"},{\"name\":\"1w\",\"description\":\"1週K線\"},{\"name\":\"1M\",\"description\":\"1月K線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/06_kline.json\n// module id = p1RX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Symbol Price Ticker\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Used to query the latest transaction price
  • \"},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\"},\"response\":{\"code\":0,\"timestamp\":1707147143049,\"data\":[{\"symbol\":\"BTC_USDT\",\"trades\":[{\"timestamp\":1707147142579,\"tradeId\":\"86521463\",\"price\":\"42902.61\",\"amount\":\"\",\"type\":1,\"volume\":\"0.11689\"}]}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, such as: BTC_USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"price\",\"type\":\"string\",\"description\":\"Latest price\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, such as: BTC_USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/07_get_market_price.json\n// module id = p4oz\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\":\"warning\",\"text\":\"每次建立連接成功都會全量推送1次,之後每隔5秒全量推送1次。\"},{\"type\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":\"1702731721672\",\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[1736008778921491200],\"failed\":null}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"service has some errors, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109414,\"msg\":\"order not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對\"},{\"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","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續下單:新增追跡止損單類型 永續合約下單接口\"},{\"type\":\"html\",\"text\":\"永續下單:stopPrice觸發價 支持價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE 永續合約下單接口\"},{\"type\":\"html\",\"text\":\"現貨: 批量撤單\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-08-11.json\n// module id = pV/D\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place multiple orders\"},{\"type\":\"desc\",\"text\":\"Can be used to place orders in bulk on spot\",\"desc\":[{\"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 api will not be displayed on the app and web pages.\"}]},{\"type\":\"warning\",\"text\":\"If you need to calculate the maximum and minimum order quantities for a currency pair, you can use the formula: U (minNotional or maxNotional) / (Limit price or Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"For price reference, please check: GET /openApi/spot/v1/ticker/24hr\"},{\"type\":\"html\",\"text\":\"For Minimum/Maximum transaction amount reference, please check: GET /openApi/spot/v1/common/symbols\"}]},{\"type\":\"normal\",\"text\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/spot/trading-rules/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/spot/v1/common/symbols\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]},{\"type\":\"html\",\"text\":\"
  • place batch orders, how to sign the request? please refer to Perpetual: place batch orders
  • \"}]},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"data\":\"[{\\\"symbol\\\": \\\"ETHS-USDT\\\", \\\"side\\\": \\\"BUY\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"quantity\\\": 7.663, \\\"price\\\": 12.479, \\\"newClientOrderId\\\": \\\"abc122345\\\"}]\",\"recvWindow\":\"60000\",\"timestamp\":\"1702721964975\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ETHS-USDT\",\"orderId\":1735967859282101200,\"transactTime\":1702721965033,\"price\":\"12.479\",\"origQty\":\"7.663\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"clientOrderID\":\"abc122345\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"Yes\",\"description\":\"The request array for placing orders, limited to 5 orders.\"},{\"name\":\"sync\",\"type\":\"bool\",\"required\":\"no\",\"description\":\"sync=false (default false if not filled in): parallel ordering (but all orders need to have the same symbol/side/type), sync = true (multiple orders are ordered serially, all orders do not require the same symbol/side/type)\"}]},{\"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\":\"MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"order trigger price, used for TAKE_ STOP_ LIMITED,TAKE_ STOP_ MARKET, TRIGGER_ LIMITED, TRIGGER_ Market type orders.\"},{\"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\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Only letters, numbers and _,Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same newClientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in force, currently supports PostOnly, GTC, IOC. Default is GTC if not specified.\"},{\"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/01_post_trade_batchOrders.json\n// module id = pX3/\n// module chunks = 3","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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/list\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"limit\":100},\"response\":{\"code\":0,\"timestamp\":1701088491202,\"data\":{\"result\":[{\"subUid\":\"16477999\",\"subAccountString\":\"abc123456\",\"note\":\"\",\"freeze\":false,\"createTime\":1700847351000}],\"pageId\":1,\"total\":1}}},\"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\":\"分頁大小,最大1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"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\":\"hash\",\"text\":\"Subscribe to latest mark price changes\"},{\"type\":\"normal\",\"text\":\"Real time push.\"},{\"type\":\"normal\",\"text\":\"Push latest mark price changes.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @markPrice, such as BTC-USDT@markPrice.\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@markPrice\\\"}\"},\"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\":\"Subscribed data type, e.g., BTC-USDT@markPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"Latest mark price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/06_last_mark_price.json\n// module id = pgER\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 api 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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},\"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","module.exports = [{\"type\":\"hash\",\"text\":\"獲取合約未平倉數\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/openInterest\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"openInterest\":\"35876.52\",\"symbol\":\"BTC-USD\",\"time\":1702719692859}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"openInterest\",\"type\":\"string\",\"description\":\"持倉數量\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合約名稱\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"撮合引擎時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market/03_get_openInterest.json\n// module id = pnyN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢用戶資產\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718421301887,\"data\":[{\"asset\":\"BTC\",\"balance\":\"0.14438227\",\"equity\":\"0.14428116\",\"unrealizedProfit\":\"-0.0001011\",\"availableMargin\":\"0.14317271\",\"usedMargin\":\"0.00110845\",\"freezedMargin\":\"0\",\"shortUid\":\"12345678\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"回應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"資產list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"用戶資產\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"資產餘額\"},{\"name\":\"equity\",\"type\":\"string\",\"description\":\"資產淨值\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"未實現盈餘\"},{\"name\":\"availableMargin\",\"type\":\"string\",\"description\":\"可用保證金\"},{\"name\":\"usedMargin\",\"type\":\"string\",\"description\":\"可用保證金\"},{\"name\":\"freezedMargin\",\"type\":\"string\",\"description\":\"凍結保證金\"},{\"name\":\"shortUid\",\"type\":\"string\",\"description\":\"用戶uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/07_get_balance.json\n// module id = ptJe\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/en-us/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. \"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\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\":\"訂閱有限深度\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @depth 例如 BTC-USD@depth5 ETH-USDT@depth5\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@depth5\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@depth5\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"},{\"name\":\"count\",\"type\":\"integer\",\"required\":\"yes\",\"description\":\"深度檔位數: 100, 50, 20, 10, 5\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@depth5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送深度\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"dataType\",\"type\":\"BTC-USD@depth5\",\"description\":\"事件類型\"},{\"name\":\"symbol\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"bids\",\"type\":\"[\\\"p\\\": \\\"70977.5\\\",\\\"a\\\": \\\"3.029129\\\",\\\"v\\\": \\\"2150.0\\\"]\",\"description\":\"買方檔位\"},{\"name\":\"asks\",\"type\":\"[\\\"p\\\": \\\"70978.5\\\",\\\"a\\\": \\\"3.029129\\\",\\\"v\\\": \\\"2150.0\\\"]\",\"description\":\"賣方檔位\"},{\"name\":\"aggPrecision\",\"type\":\"0.1\",\"description\":\"聚合精度\"},{\"name\":\"timestamp\",\"type\":\"1717662601938\",\"description\":\"時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/04_depth.json\n// module id = pvqc\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/forceOrders now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/allOrders now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/allFillOrders now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/fillHistory now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v1/trade/positionHistory now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v3/user/balance now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/user/positions now support USDC \"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-23.json\n// module id = pxxT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"現貨最新價格\"},{\"type\":\"normal\",\"text\":\"實時推送\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @lastPrice,比如BTC_USDT@lastPrice\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對名稱,如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"c\",\"type\":\"\",\"description\":\"價格\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"幣對名稱,如BTC\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/05_last_price.json\n// module id = q1yk\n// module chunks = 3","var map = {\n\t\"./2023-09-12.json\": \"WisP\"\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 = \"q9zR\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/q&a \\.json$\n// module id = q9zR\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\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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-USD\"},{\"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/cswap/websocket/account/01_balance.json\n// module id = qHKX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Spot trading symbols\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"Note: The fields minQty/maxQty returned by this api have been deprecated and should not be used. If you need to calculate the maximum and minimum order quantities for a currency pair, you can use the formula: U (minNotional or maxNotional) / (Limit price or Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"For price reference, please check: GET /openApi/spot/v1/ticker/24hr\"}]},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/common/symbols\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbols\":[{\"symbol\":\"BTC-USDT\",\"minQty\":0.0001826,\"maxQty\":18.2663756,\"minNotional\":5,\"maxNotional\":500000,\"status\":1,\"tickSize\":0.01,\"stepSize\":0.00001}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"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\":\"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\":\"Version upgrade, this field is deprecated, please ignore this field,the formula is: minQty= minNotional/price\"},{\"name\":\"maxQty\",\"type\":\"float64\",\"description\":\"Version upgrade, this field is deprecated, please ignore this field,the formula is: maxQty = maxNotional/price\"},{\"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, 5 pre-open, 25 trading suspended\"},{\"name\":\"apiStateBuy\",\"type\":\"Boolean\",\"description\":\"available buy via api\"},{\"name\":\"apiStateSell\",\"type\":\"Boolean\",\"description\":\"available sell via api\"},{\"name\":\"timeOnline\",\"type\":\"long\",\"description\":\"online time \"},{\"name\":\"offTime\",\"type\":\"long\",\"description\":\"offline time\"},{\"name\":\"maintainTime\",\"type\":\"long\",\"description\":\"trading suspension time\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢倉位模式\"},{\"type\":\"normal\",\"text\":\"獲取倉位模式\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[{\"symbol\":\"BTC-USD\",\"marginType\":\"ISOLATED\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"持倉模式, 比如:CROSSED,ISOLATED\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/15_get_margin_type.json\n// module id = qPGu\n// module chunks = 3","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\"./04_24hr_ticker\": \"P0Vd\",\n\t\"./04_24hr_ticker.json\": \"P0Vd\",\n\t\"./05_last_price\": \"fqiK\",\n\t\"./05_last_price.json\": \"fqiK\",\n\t\"./06_book_ticker\": \"o9Mz\",\n\t\"./06_book_ticker.json\": \"o9Mz\",\n\t\"./07_depth_incr_info\": \"soQQ\",\n\t\"./07_depth_incr_info.json\": \"soQQ\",\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\":\"Traders set take profit and stop loss based on order numbers\"},{\"type\":\"normal\",\"text\":\"This node is used by traders to set the market price stop profit and stop loss based on the order number with orders. Repeated settings will overwrite the previous settings\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/setTPSL\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"positionId\":\"1253517936071234567\",\"recvWindow\":\"0\",\"stopLossMarkPrice\":\"105.38\",\"timestamp\":\"1702731522946\"},\"response\":{\"code\":0,\"timestamp\":1702731523011,\"data\":{\"positionId\":1253517936071234600,\"stopLossMarkPrice\":105.38}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Order number with order\"},{\"name\":\"takeProfitMarkPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Set the price of the stop profit and stop loss mark, and the price of the stop profit and stop loss mark must be one of two options\"},{\"name\":\"stopLossMarkPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Set a stop loss marker price, and the stop loss marker price must be either\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request valid time empty window value, unit: milliseconds, default to 5 seconds if left blank\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Order number with order\"},{\"name\":\"takeProfitMarkPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Set the price of the stop profit and stop loss mark, and the price of the stop profit and stop loss mark must be one of two options\"},{\"name\":\"stopLossMarkPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Set a stop loss marker price, and the stop loss marker price must be either\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader/03_post_tpsl_currentTrack.json\n// module id = qkYN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷掛單再下單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order/cancelReplace\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"cancelOrderId\":\"17543893539094511234\",\"cancelReplaceMode\":\"ALLOW_FAILURE\",\"side\":\"BUY\",\"type\":\"LIMIT\",\"price\":40000,\"quantity\":1},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"cancelResult\":{\"code\":100400,\"msg\":\" order not exist\",\"result\":false},\"openResult\":{\"code\":0,\"msg\":\"\",\"result\":true},\"orderOpenResponse\":{\"symbol\":\"BTC-USDT\",\"orderId\":1754389353909452800,\"transactTime\":1707113991607,\"price\":\"40000\",\"stopPrice\":\"0\",\"origQty\":\"1\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"clientOrderID\":\"\"},\"orderCancelResponse\":{\"symbol\":\"\",\"orderId\":0,\"price\":\"0\",\"stopPrice\":\"0\",\"origQty\":\"0\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"\",\"type\":\"\",\"side\":\"\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"cancelOrderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"要取消的訂單id\"},{\"name\":\"cancelClientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"要取消的用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderID,僅支持2個小時的查詢範圍\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"否\",\"description\":\"撤销指定状态的订单:NEW:新订单 ,PENDING:委托中,PARTIALLY_FILLED:部分成交\"},{\"name\":\"CancelReplaceMode\",\"type\":\"string\",\"required\":\"是\",\"description\":\"STOP_ ON_ FAILURE:如果撤銷訂單失敗將不會繼續重新下單。 ALLOW_ FAILURE:不管撤銷訂單是否成功都會繼續重新下單。\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"觸發價格,用於TAKE_ STOP_ LIMIT, TAKE_ STOP_ MARKET,TRIGGER_ LIMIT,TRIGGER_ MARKET類型的訂單。\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量, 例如: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單金額, 例如: 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格, 例如: 10000USDT\"},{\"name\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"只能字母、數字和_,用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的newClientOrderId\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"否\",\"description\":\"撤销指定状态的订单:NEW:新订单 ,PENDING:委托中,PARTIALLY_FILLED:部分成交\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"交易時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/023_post_trade_order_cancel_replace.json\n// module id = qru4\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/cswap/api/basic/index_share_to_v1.js","const nodejs = `const WebSocket = require('ws');\nconst zlib = require('zlib');\n\nconst path = \"HHOOSSTT\"; \nconst CHANNEL = AAPPII; \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.indexOf(\"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/spot/nodejs.js","module.exports = [{\"type\":\"hash\",\"text\":\"Symbol Price Ticker\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/ticker/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702718923479\",\"symbol\":\"TIA-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"TIA-USDT\",\"price\":\"14.0658\",\"time\":1702718922941}}},\"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\"},{\"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\":\"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/22_get_quote_price_v2.json\n// module id = rCcB\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/cswap/websocket/introduce/04_subscribe.json\n// module id = rEmz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Main Account Deposit Address\"},{\"type\":\"normal\",\"text\":\"This endpoint is used for a mother account to query the deposit address of a specific coin in the blockchain it belongs to. Only available for mother accounts.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/address\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"limit\":\"1000\",\"offset\":\"0\",\"recvWindow\":\"0\",\"timestamp\":\"1702623917652\"},\"response\":{\"code\":0,\"timestamp\":1702623918163,\"data\":{\"data\":[{\"coinId\":760,\"coin\":\"USDT\",\"network\":\"ERC20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":780,\"coin\":\"USDT\",\"network\":\"TRC20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":799,\"coin\":\"USDT\",\"network\":\"BEP20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":857,\"coin\":\"USDT\",\"network\":\"SOL\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1192,\"coin\":\"USDT\",\"network\":\"POLYGON\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1367,\"coin\":\"USDT\",\"network\":\"ARBITRUM\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1371,\"coin\":\"USDT\",\"network\":\"OPTIMISM\",\"address\":\"40e*****95\",\"tag\":\"\"}],\"total\":7}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Name of the coin for transfer\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request window validity, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"List of deposit addresses\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Name of the coin\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Name of the network\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"Deposit address\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"Deposit address with prefix\"},{\"name\":\"tag\",\"type\":\"string\",\"description\":\"Address tag\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0 for activated, 1 for applied, 2 for not applied\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/13.get_wallet_queryDepositAddress.json\n// module id = rgh9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query transaction details\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Can only check data within the past 24 hours range
  • \"},{\"type\":\"html\",\"text\":\"
  • If trigTime/endTime is not filled in or invalid, the data of the past 24 hours is returned by default
  • \"},{\"type\":\"html\",\"text\":\"
  • Simultaneously limit the maximum number of returns limit = 500
  • \"},{\"type\":\"html\",\"text\":\"
  • Return to the list sorted by time field, from smallest to largest
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/myTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":1745362930595004400,\"limit\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"fills\":[{\"symbol\":\"BTC-USDT\",\"id\":36767057,\"orderId\":1745362930595004400,\"price\":\"46820.155\",\"qty\":\"0.1430254\",\"quoteQty\":\"6696.471396937\",\"commission\":-0.000046483255,\"commissionAsset\":\"BTC\",\"time\":1704961925000,\"isBuyer\":true,\"isMaker\":false},{\"symbol\":\"BTC-USDT\",\"id\":36767058,\"orderId\":1745362930595004400,\"price\":\"46820.155\",\"qty\":\"0.0003844\",\"quoteQty\":\"17.997667582000002\",\"commission\":-1.2493e-7,\"commissionAsset\":\"BTC\",\"time\":1704961925000,\"isBuyer\":true,\"isMaker\":false}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g. BTC-USDT, please use uppercase letters\"},{\"name\":\"orderId\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Order ID\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"No\",\"description\":\"Start timestamp, unit: ms\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"No\",\"description\":\"End timestamp, unit: ms\"},{\"name\":\"fromId\",\"type\":\"long\",\"required\":\"No\",\"description\":\"Starting trade ID. By default, the latest trade will be retrieved\"},{\"name\":\"limit\",\"type\":\"long\",\"required\":\"No\",\"description\":\"Default 500, maximum 1000\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Request valid time window, unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading symbol\"},{\"name\":\"id\",\"type\":\"int\",\"description\":\"Trade ID\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price of the trade\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"Quantity of the trade\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"Quote asset quantity traded\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"Commission amount\"},{\"name\":\"commissionAsset\",\"type\":\"string\",\"description\":\"Commission asset type\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Trade time\"},{\"name\":\"isBuyer\",\"type\":\"bool\",\"description\":\"Whether the buyer\"},{\"name\":\"isMaker\",\"type\":\"bool\",\"description\":\"Whether the maker\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/077_get_trade_fill_details.json\n// module id = s+Dd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Order history\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":{\"endTime\":\"1702721825418\",\"pageIndex\":\"1\",\"pageSize\":\"100\",\"startTime\":\"1702720925417\",\"symbol\":\"SWCH-USDT\",\"timestamp\":\"1702721825418\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"SWCH-USDT\",\"orderId\":1735966927102231300,\"price\":\"0.8548\",\"StopPrice\":\"0\",\"origQty\":\"5.9\",\"executedQty\":\"1.1\",\"cummulativeQuoteQty\":\"0.9402800000000001\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"time\":1702721743000,\"updateTime\":1702721743000,\"origQuoteOrderQty\":\"0\",\"fee\":0,\"avgPrice\":\"0.8881\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"If orderId is set, orders >= orderId. Otherwise, the most recent orders will be returned.\"},{\"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\":\"no\",\"description\":\"Page number, must >0,If not specified, it defaults to 1.\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Page size, must >0,Max 100,If not specified, it defaults to 100.\"},{\"name\":\"status\",\"type\":\"string\",\"required\":\"no\",\"description\":\"status: FILLED (fully filled) CANCELED: (canceled) FAILED: (failed)\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"no\",\"description\":\"order type: MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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\":\"float64\",\"description\":\"fee\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"trigger price\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average fill price\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"Query partner information\"},{\"type\":\"normal\",\"text\":\"This api is used to query partner profile data.\"},{\"type\":\"html\",\"text\":\"
  • 1.Only supports querying data from the last 3 months.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/asset/partnerData\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"pageIndex\":\"1\",\"pageSize\":\"100\",\"recWindow\":\"6000\",\"timestamp\":\"1689426920000\"},\"response\":{\"code\":0,\"timestamp\":1718441614690,\"data\":{\"list\":[{\"uid\":25414560,\"email\":\"jo***@niubi.im\",\"phone\":\"*******7294\",\"referralType\":1,\"remarks\":\"123\",\"referrerUid\":24186664,\"language\":\"en\",\"newReferees\":0,\"firstTrade\":0,\"branchDeposits\":\"24534.446799999998\",\"branchTrading\":4,\"branchTradingVol\":\"98434310.99579316\",\"level\":0,\"commissionRatio\":0.04}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Partner UID\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: day, only supports querying the latest 3 months. If neither the start time nor the settlement time is filled in, the default query is for this month's data\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: day, only supports querying the latest 3 months. If neither the start time nor the settlement time is filled in, the default query is for this month's data\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"If not filled in, the default value is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The number of pages is 100 by default if not filled in, and the maximum value is 200\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: milliseconds. If not filled, the default is 5 seconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"request timestamp, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"Partner UID\"},{\"name\":\"email\",\"type\":\"STRING\",\"description\":\"Partner mailbox, encrypted status\"},{\"name\":\"Phone\",\"type\":\"STRING\",\"description\":\"Partner's mobile phone number,Partner's mobile phone number, encrypted\"},{\"name\":\"referralType\",\"type\":\"int\",\"description\":\"Invitation type: 1: direct invitation, 2: indirect invitation\"},{\"name\":\"remarks\",\"type\":\"STRING\",\"description\":\"Remarks\"},{\"name\":\"referrerUid\",\"type\":\"long\",\"description\":\"Superior Uid\"},{\"name\":\"language\",\"type\":\"STRING\",\"description\":\"language\"},{\"name\":\"newReferees\",\"type\":\"STRING\",\"description\":\"The number of new invitees during the query period\"},{\"name\":\"firstTrade\",\"type\":\"STRING\",\"description\":\"Number of people who made their first transaction during the query period\"},{\"name\":\"branchDeposits\",\"type\":\"STRING\",\"description\":\"The amount of channel recharge during the query period\"},{\"name\":\"branchTrading\",\"type\":\"STRING\",\"description\":\"Number of channel transactions during query time\"},{\"name\":\"branchTradingVol\",\"type\":\"STRING\",\"description\":\"The transaction amount of the channel during the query period\"},{\"name\":\"level\",\"type\":\"STRING\",\"description\":\"level\"},{\"name\":\"commissionRatio\",\"type\":\"STRING\",\"description\":\"Rebate ratio\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/06_get_Query_partner_information.json\n// module id = sHlI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to Latest Trading Pair K-Line\"},{\"type\":\"normal\",\"text\":\"Subscribe to Latest Trading Pair K-Line\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @kline_, e.g., BTC-USD@kline_1m\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@kline_1m\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@kline_1min\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Contract name, must contain \\\"-\\\", e.g., BTC-USD\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Reference field description, K-line type\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@kline_1min\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Pushed content\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"t\",\"type\":1717662900000,\"description\":\"Start time of this K-line\"},{\"name\":\"o\",\"type\":70941,\"description\":\"Opening price of this K-line\"},{\"name\":\"c\",\"type\":70923.1,\"description\":\"Closing price of this K-line period\"},{\"name\":\"h\",\"type\":70941.3,\"description\":\"Highest price during this K-line period\"},{\"name\":\"l\",\"type\":70904.2,\"description\":\"Lowest price during this K-line period\"},{\"name\":\"u\",\"type\":336,\"description\":\"Number of transactions during this K-line period\"},{\"name\":\"a\",\"type\":2.55,\"description\":\"Amount of trading pair\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"Trading pair\"},{\"name\":\"v\",\"type\":1813,\"description\":\"Number of contracts traded\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"1 minute K-line\"},{\"name\":\"3m\",\"description\":\"3 minutes K-line\"},{\"name\":\"5m\",\"description\":\"5 minutes K-line\"},{\"name\":\"15m\",\"description\":\"15 minutes K-line\"},{\"name\":\"30m\",\"description\":\"30 minutes K-line\"},{\"name\":\"1h\",\"description\":\"1 hour K-line\"},{\"name\":\"2h\",\"description\":\"2 hours K-line\"},{\"name\":\"4h\",\"description\":\"4 hours K-line\"},{\"name\":\"6h\",\"description\":\"6 hours K-line\"},{\"name\":\"8h\",\"description\":\"8 hours K-line\"},{\"name\":\"12h\",\"description\":\"12 hours K-line\"},{\"name\":\"1d\",\"description\":\"1 day K-line\"},{\"name\":\"3d\",\"description\":\"3 days K-line\"},{\"name\":\"1w\",\"description\":\"1 week K-line\"},{\"name\":\"1M\",\"description\":\"1 month K-line\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/06_kline.json\n// module id = sLxw\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-02-04\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual contract new: Query Latest price\"},{\"type\":\"html\",\"text\":\"Perpetual contract new: Cancel an order and place another one\"},{\"type\":\"html\",\"text\":\"Perpetual contract new: Cancel orders in batches and place orders in batches\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - Book Ticker streams\"},{\"type\":\"html\",\"text\":\"Spot ew endpoint: Cancel order and place a new order\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP api for querying aggregated depth\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP api for querying latest transaction price\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP api for querying best order\"},{\"type\":\"html\",\"text\":\"Spot: Added WS ticker - subscribe to 24-hour price changes\"},{\"type\":\"html\",\"text\":\"Spot: Added WS lastPrice - subscribe to latest transaction price\"},{\"type\":\"html\",\"text\":\"Spot: Added WS bookTicker - subscribe to best order\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP historical transaction query\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP historical k-line query\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-02-04.json\n// module id = sMHE\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Trading Commission Rate\"},{\"type\":\"normal\",\"text\":\"Used to query the current trading commission rate for spot trading.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702720966321\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"takerCommissionRate\":0.000325,\"makerCommissionRate\":0.0001}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g. BTC-USDT, please use uppercase letters\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Request valid time window in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"takerCommissionRate\",\"type\":\"float64\",\"description\":\"Taker commission rate\"},{\"name\":\"makerCommissionRate\",\"type\":\"float64\",\"description\":\"Maker commission rate\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/08_get_commissionRate.json\n// module id = sPli\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢倉位歷史\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約的倉位歷史情況。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/positionHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BNB-USDT\",\"pageId\":0,\"pageSize\":20,\"startTime\":1700409600000,\"1703001599000\":1703001599000,\"timestamp\":\"1702731661854\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"positionId\":\"180870089***590996\",\"symbol\":\"BTC-USDT\",\"isolated\":false,\"positionSide\":\"LONG\",\"openTime\":1720062873000,\"updateTime\":1720062878000,\"avgPrice\":\"58942.31\",\"avgClosePrice\":\"58930.00\",\"realisedProfit\":\"-0.04\",\"netProfit\":\"-0.16\",\"positionAmt\":\"33.0000\",\"closePositionAmt\":\"33.0000\",\"leverage\":20,\"closeAllPositions\":true,\"positionCommission\":\"-0.11669358690000001\",\"totalFunding\":\"0.00000000000000001388\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"倉位id,不傳則默認返回相關幣對的所有倉位歷史\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"起始時間戳,單位毫秒,時間跨度最大支持三個月,若不傳開始時間,則默認開始時間90天前時間。\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"結束時間戳,單位毫秒。時間跨度最大支持三個月,若不傳結束時間,則默認結束時間為當前時間。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"分頁頁碼,必須大於0,如果不填寫則默認為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"分頁數量,必須大於0,最大值為100,如果不填寫則默認為1000\"},{\"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\":\"closeAllPositions\",\"type\":\"bool\",\"description\":\"是否已全部平倉\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"持倉數量\"},{\"name\":\"closePositionAmt\",\"type\":\"string\",\"description\":\"已平倉量\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"已實現盈虧\"},{\"name\":\"netProfit\",\"type\":\"string\",\"description\":\"淨盈虧\"},{\"name\":\"avgClosePrice\",\"type\":\"float64\",\"description\":\"平倉均價\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"開倉均價\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"槓桿\"},{\"name\":\"positionCommission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"totalFunding\",\"type\":\"string\",\"description\":\"資金費用\"},{\"name\":\"openTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"開倉時間\"},{\"name\":\"openTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"平倉時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/26_get_user_position_history.json\n// module id = sWA2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"創建子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"創建子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":14189999,\"note\":\"abc6798\",\"permissions\":[3]},\"response\":{\"code\":0,\"timestamp\":1701526872165,\"data\":{\"note\":\"abc6798\",\"apiKey\":\"kRaent****jg\",\"apiSecret\":\"2b****Og\",\"permissions\":[],\"ipAddresses\":[]}}},\"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-萬向劃轉,5-提幣,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"否\",\"description\":\"ip白名單\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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-萬向劃轉,5-提幣,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 multiple 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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderIdList\":\"[1735924831603391122, 1735924833239172233]\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702711750843\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[{\"symbol\":\"BTC-USDT\",\"orderId\":1735924831603391200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0032\",\"price\":\"41682.9\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702711706435,\"updateTime\":1702711706453,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1735924833239172400,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0033\",\"price\":\"41182.9\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702711706825,\"updateTime\":1702711706838,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}],\"failed\":null}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"orderIdList & clientOrderIDList are both empty;\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}}]},\"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 [\\\"abc1234567\\\",\\\"abc2345678\\\"]. The system will convert this field to lowercase.\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"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. The system will convert this field to lowercase.\"}]}]}]\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\":\"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\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"Incremental and Full Depth Information\"},{\"type\":\"normal\",\"text\":\"Push incremental depth information of 1000 levels every 500ms.\"},{\"type\":\"normal\",\"text\":\"How the client should maintain incremental depth locally\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"1. After successfully subscribing, a full depth with an action field value of 'all' will be returned, along with a lastUpdateId used to handle the continuity of subsequent incremental depth. After receiving the full depth, the WebSocket should cache the full depth data in memory.\"},{\"type\":\"normal\",\"text\":\"2. Subsequent depth changes will return incremental depth, with the action field set to 'update'. The value of the Nth incremental depth's lastUpdateId should be the N-1th depth's lastUpdateId + 1.\"},{\"type\":\"normal\",\"text\":\"3. In rare cases where lastUpdateId is not continuous, you can choose to reconnect, or cache the last three incremental depths and try to merge the data by finding continuous lastUpdateId from the cache (because due to multithreading or network routing issues, data order may not be strongly guaranteed).\"},{\"type\":\"normal\",\"text\":\"4. Then, iterate over the received incremental depth and compare it with the current depth one by one. It's recommended to consider thread-safe design and coding practices (as the push frequency may increase later). The data structure could be a sorted map, such as TreeMap:\"},{\"type\":\"normal\",\"text\":\"(1) If the price level does not exist in the current depth, it means a new price level should be added. (Add)\"},{\"type\":\"normal\",\"text\":\"(2) If the quantity corresponding to the price is 0, the price level should be removed from the current depth. (Delete)\"},{\"type\":\"normal\",\"text\":\"(3) If the quantity corresponding to the price is different from the current value, replace it with the quantity returned by the incremental depth. (Update)\"},{\"type\":\"normal\",\"text\":\"(4) After traversing, you will obtain the latest depth, update the depth cache, and remember to update the lastUpdateId.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @incrDepth, for example, BTC-USDT@incrDepth\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Symbol name, the symbol must include a '-' like BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of data subscribed to, for example, BTC-USDT@incrDepth\"},{\"name\":\"action\",\"type\":\"\",\"description\":\"Depth type: all for full depth, update for incremental depth\"},{\"name\":\"lastUpdateId\",\"type\":\"\",\"description\":\"Change ID, a continuously increasing long integer used to describe the sequential relationship between returned incremental depths\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"Changed ask depth (price: quantity)\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"Changed bid depth (price: quantity)\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/07_depth_incr_info.json\n// module id = soQQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"TWAP歷史委託\"},{\"type\":\"normal\",\"text\":\"用於查詢TWAP歷史委託記錄,包含部分完成,已完成,已撤銷和委託失敗。 \"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDT\",\"pageIndex\":1,\"pageSize\":100,\"startTime\":1702731661854,\"endTime\":1702738661854,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"list\":[{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對,例如:BTC-USDT,請使用大寫字母\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁參數,最小值是1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"返回的結果集數量;最大值:1000\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"開始時間,單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"結束時間,單位:毫秒\"},{\"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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP委託訂單編號\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG 或 SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"價格限制類型,constant:價格間距,percentage:滑點\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"策略订单拆单后,委托下单的时间间隔,5-120s之间\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。\"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: 新建 /Running:運作中/Canceling:撤銷單中/Filled:全部成交/PartiallyFilled:部分成交/Pending:未觸發/PartiallyFilledAndResidueFailed:部分成交(剩餘委託失敗),演算法單狀態/ PartiallyFilledAndResidueCancelled:部分成交(剩餘撤銷),演算法單狀態/Cancelled:已撤銷(不存在部分成交)/Failed:委托失败(不存在部分成交)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"已執行時間,單位秒。執行時間到期後委託單將被取消。 \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"最大執行時間執行時間,單位:秒。\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"訂單創建時間,單位:毫秒\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"訂單更新時間,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/30_get_twap_history_orders.json\n// module id = srGS\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:‘訂單更新推送’增加ro字段(reduceOnly字段)\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-11.json\n// module id = ss+C\n// module chunks = 3","var map = {\n\t\"./2023-06-03.json\": \"jVl+\",\n\t\"./2023-07-29.json\": \"MfXY\",\n\t\"./2023-08-03.json\": \"9HpD\",\n\t\"./2023-08-11.json\": \"pV/D\",\n\t\"./2023-08-23.json\": \"bKtD\",\n\t\"./2023-09-18.json\": \"a/u1\",\n\t\"./2023-10-12.json\": \"DJaF\",\n\t\"./2023-11-10.json\": \"bGx6\",\n\t\"./2023-11-22.json\": \"axDH\",\n\t\"./2023-12-08.json\": \"+29D\",\n\t\"./2023-12-21.json\": \"CpXJ\",\n\t\"./2024-01-10.json\": \"KYMz\",\n\t\"./2024-01-23.json\": \"G8cI\",\n\t\"./2024-02-04.json\": \"NFKy\",\n\t\"./2024-02-23.json\": \"NuRj\",\n\t\"./2024-03-04.json\": \"3c71\",\n\t\"./2024-03-14.json\": \"Jip9\",\n\t\"./2024-03-19.json\": \"j7dp\",\n\t\"./2024-03-28.json\": \"ZNZv\",\n\t\"./2024-04-15.json\": \"i/xj\",\n\t\"./2024-04-25.json\": \"87c6\",\n\t\"./2024-05-23.json\": \"KSJz\",\n\t\"./2024-05-27.json\": \"5LYy\",\n\t\"./2024-06-13.json\": \"vBmL\",\n\t\"./2024-06-28.json\": \"khDw\",\n\t\"./2024-07-11.json\": \"vGFC\",\n\t\"./2024-07-22.json\": \"/chU\",\n\t\"./2024-07-30.json\": \"l7kI\",\n\t\"./2024-08-08.json\": \"F1dE\",\n\t\"./2024-08-17.json\": \"aG00\",\n\t\"./2024-08-22.json\": \"L5DY\",\n\t\"./2024-08-27.json\": \"TvGs\",\n\t\"./2024-09-11.json\": \"EMrv\",\n\t\"./2024-09-23.json\": \"nNlN\",\n\t\"./2024-10-09.json\": \"zB9+\",\n\t\"./2024-10-11.json\": \"ss+C\",\n\t\"./2024-10-16.json\": \"UDLl\",\n\t\"./2024-10-23.json\": \"nC6P\",\n\t\"./2024-10-24.json\": \"Aw6+\",\n\t\"./2024-10-30.json\": \"J9sz\",\n\t\"./2024-11-07.json\": \"R99K\",\n\t\"./2024-11-15.json\": \"aAh/\"\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_aorder.json\": \"MZay\",\n\t\"./01_post_trade_batchOrders.json\": \"jKsK\",\n\t\"./021_post_trade_order_cancel.json\": \"l/8P\",\n\t\"./022_post_trade_orders_cancel.json\": \"uDFu\",\n\t\"./023_post_cancelOpenOrders.json\": \"BdSn\",\n\t\"./023_post_trade_order_cancel_replace.json\": \"qru4\",\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\"./077_get_trade_fill_details.json\": \"ui1J\",\n\t\"./08_get_commissionRate.json\": \"OkZ/\",\n\t\"./09_cancel_all_after.json\": \"IW4y\",\n\t\"./100_post_one_oco_order.json\": \"0DXm\",\n\t\"./101_cancel_one_oco_order.json\": \"cfpy\",\n\t\"./102_get_one_oco_order.json\": \"bM6w\",\n\t\"./103_get_all_pending_oco_order.json\": \"EsEh\",\n\t\"./104_get_all_history_oco_order.json\": \"bjJG\"\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\":\"當有新訂單創建、訂單有新成交或者新的狀態變化時會推送此類事件 事件類型統一為 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\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"sp\",\"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 or BOTH\"},{\"name\":\"rp\",\"type\":\"\",\"description\":\"該交易實現盈虧: 0.00000000\"},{\"name\":\"z\",\"type\":\"\",\"description\":\"訂單累計已成交量: 0.00000000\"},{\"name\":\"sg\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。\"},{\"name\":\"ti\",\"type\":\"\",\"description\":\"與此訂單關聯的條件單ID:1771124709866754048\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/account/02_order.json\n// module id = tdP1\n// module chunks = 3","var map = {\n\t\"./01_get_Query_Invited_Users.json\": \"zsZ4\",\n\t\"./02_get_Daily_Commission_Query.json\": \"Gwkw\",\n\t\"./03_get_Query_agent_user_nformation.json\": \"P9RC\",\n\t\"./04_get_Query_the_deposit_details.json\": \"7XUQ\",\n\t\"./05_get_Query_API_transaction_commission.json\": \"IoyB\",\n\t\"./06_get_Query_partner_information.json\": \"8au9\"\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 = \"tepN\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent \\.json$\n// module id = tepN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"切換保證金模式\"},{\"type\":\"normal\",\"text\":\"切換賬戶保證金模式保證金模式\"},{\"type\":\"warning\",\"text\":\"僅實盤可以調用,實盤域名:https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/assetMode\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"assetMode\":\"multiAssetsMode\",\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"assetMode\":\"multiAssetsMode\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"assetMode\",\"type\":\"string\",\"required\":\"是\",\"description\":\"保證金模式,singleAssetMode 或 multiAssetsMode\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"assetMode\",\"type\":\"string\",\"description\":\"保證金模式,singleAssetMode 或 multiAssetsMode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/33_post_asset_mode.json\n// module id = thBV\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱逐筆交易\"},{\"type\":\"normal\",\"text\":\"逐筆交易推送每一筆成交的信息。成交,或者說交易的定義是僅有一個吃單者與一個掛單者相互交易\"},{\"type\":\"warning\",\"text\":\"因多線程推送,無法保證推送成交ID是有序的\"},{\"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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},\"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\":\"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\":[{\"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\":\"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\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"響應: Excel File\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 僅保留最近3個月的數據。
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income/export\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"\",\"limit\":\"200\",\"recvWindow\":\"10000\",\"startTime\":\"\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702449874964\"}},\"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/account/18_get_trade_income_export.json\n// module id = tvLy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Recent Trades List\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720325973,\"data\":[{\"id\":76909154,\"price\":42195.21,\"qty\":0.00195,\"time\":1702720325553,\"buyerMaker\":true},{\"id\":76909153,\"price\":42195.31,\"qty\":0.00139,\"time\":1702720325552,\"buyerMaker\":true},{\"id\":76909152,\"price\":42195.48,\"qty\":0.00177,\"time\":1702720325552,\"buyerMaker\":false},{\"id\":76909151,\"price\":42195.15,\"qty\":0.00247,\"time\":1702720324643,\"buyerMaker\":true},{\"id\":76909150,\"price\":42195.25,\"qty\":0.02968,\"time\":1702720324643,\"buyerMaker\":true}]}},\"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 500\"},{\"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\":\"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\":\"buyerMaker\",\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BNB-USDT\",\"timestamp\":\"1702731661854\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"positionId\":\"1849*********54112\",\"symbol\":\"EIGEN-USDT\",\"currency\":\"USDT\",\"positionAmt\":\"31.877\",\"availableAmt\":\"31.877\",\"positionSide\":\"LONG\",\"isolated\":false,\"avgPrice\":\"3.227\",\"initialMargin\":\"5.1431\",\"margin\":\"4.2938\",\"leverage\":20,\"unrealizedProfit\":\"-0.8493\",\"realisedProfit\":\"-0.0526\",\"liquidationPrice\":1.017,\"pnlRatio\":\"-0.1651\",\"maxMarginReduction\":\"0.0000\",\"riskRate\":\"0.1074\",\"markPrice\":\"3.200\",\"positionValue\":\"102.012\",\"onlyOnePosition\":false,\"updateTime\":1729770634050}]}},\"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\":\"margin\",\"type\":\"string\",\"description\":\"保證金\"},{\"name\":\"liquidationPrice\",\"type\":\"float64\",\"description\":\"強平價\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"開倉均價\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"槓桿\"},{\"name\":\"positionValue\",\"type\":\"string\",\"description\":\"持有價值\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"標記價格\"},{\"name\":\"riskRate\",\"type\":\"string\",\"description\":\"風險率,風險率達到100%時會強制減倉或者平倉\"},{\"name\":\"maxMarginReduction\",\"type\":\"string\",\"description\":\"最大可減少保證金\"},{\"name\":\"pnlRatio\",\"type\":\"string\",\"description\":\"未實現盈虧收益率\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"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\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderIds\":\"1735964997957275648,1735965127519326208\",\"symbol\":\"GM-USDT\",\"timestamp\":\"1702721320676\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"GM-USDT\",\"orderId\":1735964997957275600,\"transactTime\":1702721242701,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"8061558\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721242645506402\"},{\"symbol\":\"GM-USDT\",\"orderId\":1735965127519326200,\"transactTime\":1702721249787,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"5806281\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721249647382871\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderIds\",\"type\":\"stirng\",\"required\":\"否\",\"description\":\"訂單ids,舉例:orderIds=id1,id2,id3\"},{\"name\":\"clientOrderIDs\",\"type\":\"stirng\",\"required\":\"否\",\"description\":\"自定義訂單ids,舉例:clientOrderIDs=id1,id2,id3\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/022_post_trade_orders_cancel.json\n// module id = uDFu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Requests\"},{\"type\":\"warning\",\"text\":\"Root URL for REST access: https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"Alternate domain name: open-api.bingx.io (total frequency limit: 60/min) Release the frequency limit of the alternate domain name only when there is a problem with the primary domain name open-api.bingx.com\"},{\"type\":\"html\",\"text\":\"Request Description\"},{\"type\":\"html\",\"text\":\"
  • Request parameter: Parameter encapsulation is performed according to the api 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\":\"實盘行情Websocket的接入URL:wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"模擬盘行情Websocket的接入URL:wss://vst-open-api-ws.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 = [{\"type\":\"hash\",\"text\":\"查詢成交明細\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 只能查詢過去24小時範圍內的數據
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果startTime/endTime不填寫後者無效,則默認返回過去24小時的數據
  • \"},{\"type\":\"html\",\"text\":\"
  • 同時限制最大返回數量limit=500
  • \"},{\"type\":\"html\",\"text\":\"
  • 返回列表按照時間time字段,從小到大排序
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/myTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":1745362930595004400,\"limit\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"fills\":[{\"symbol\":\"BTC-USDT\",\"id\":36767057,\"orderId\":1745362930595004400,\"price\":\"46820.155\",\"qty\":\"0.1430254\",\"quoteQty\":\"6696.471396937\",\"commission\":-0.000046483255,\"commissionAsset\":\"BTC\",\"time\":1704961925000,\"isBuyer\":true,\"isMaker\":false},{\"symbol\":\"BTC-USDT\",\"id\":36767058,\"orderId\":1745362930595004400,\"price\":\"46820.155\",\"qty\":\"0.0003844\",\"quoteQty\":\"17.997667582000002\",\"commission\":-1.2493e-7,\"commissionAsset\":\"BTC\",\"time\":1704961925000,\"isBuyer\":true,\"isMaker\":false}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"long\",\"required\":\"是\",\"description\":\"訂單id\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"開始時間戳,單位:ms\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"結束時間戳,單位:ms\"},{\"name\":\"fromId\",\"type\":\"long\",\"required\":\"否\",\"description\":\"起始trade id。默認獲取最新交易\"},{\"name\":\"limit\",\"type\":\"long\",\"required\":\"否\",\"description\":\"默認500,最大1000\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"id\",\"type\":\"int\",\"description\":\"trade ID\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單id\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成家價格\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"成交金額\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"交易費金額\"},{\"name\":\"commissionAsset\",\"type\":\"string\",\"description\":\"交易費資產類型\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"交易時間\"},{\"name\":\"isBuyer\",\"type\":\"bool\",\"description\":\"是否是買家\"},{\"name\":\"isMaker\",\"type\":\"bool\",\"description\":\"是否是掛單方\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/077_get_trade_fill_details.json\n// module id = ui1J\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","module.exports = [{\"type\":\"hash\",\"text\":\"Get sub-account list\"},{\"type\":\"normal\",\"text\":\"Query sub account list\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/list\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"limit\":100},\"response\":{\"code\":0,\"timestamp\":1701088491202,\"data\":{\"result\":[{\"subUid\":\"16477999\",\"subAccountString\":\"abc123456\",\"note\":\"\",\"freeze\":false,\"createTime\":1700847351000}],\"pageId\":1,\"total\":1}}},\"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 1000\"},{\"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\":\"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\":\"
  • 100204 - 無數據
  • \"},{\"type\":\"html\",\"text\":\"
  • 100400 - 參數錯誤
  • \"},{\"type\":\"html\",\"text\":\"
  • 100440 - 下單價格跟市場市場價格偏离太远
  • \"},{\"type\":\"html\",\"text\":\"
  • 100500 - 服務器內部錯誤
  • \"},{\"type\":\"html\",\"text\":\"
  • 100503 - 服務器繁忙
  • \"},{\"type\":\"normal\",\"text\":\"100202\",\"children\":[{\"type\":\"html\",\"text\":\"Insufficient assets\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"}]},{\"type\":\"normal\",\"text\":\"100421\",\"children\":[{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"}]},{\"type\":\"normal\",\"text\":\"100400\",\"children\":[{\"type\":\"html\",\"text\":\"quantity/quoteOrderQty can't both be lte 0 in limit order\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"},{\"type\":\"html\",\"text\":\"The same order can only be submitted once per second.\"},{\"type\":\"html\",\"text\":\"invalid symbol, send symbol like BTC-USDT\"},{\"type\":\"html\",\"text\":\"The minimum amount per order is *\"},{\"type\":\"html\",\"text\":\"miss arguments\"}]},{\"type\":\"normal\",\"text\":\"100414\",\"children\":[{\"type\":\"html\",\"text\":\"The account is abnormal, please contact customer service.\"}]},{\"type\":\"normal\",\"text\":\"100413\",\"children\":[{\"type\":\"html\",\"text\":\"Incorrect apiKey\"},{\"type\":\"html\",\"text\":\"Null apiKey\"}]},{\"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\":\"\",\"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\":\"title\",\"text\":\"2023-09-18\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual Futures: Added support for setting stop-profit and stop-loss when placing an order\"},{\"type\":\"html\",\"text\":\"Perpetual Futures: Add historical transaction orders to return trading pair information\"},{\"type\":\"html\",\"text\":\"Perpetual Futures:/openApi/swap/v2/user/positions return liquidation price\"},{\"type\":\"html\",\"text\":\"Perpetual Futures: New contract depth query api adds returns in currency units\"},{\"type\":\"html\",\"text\":\"Perpetual Futures: Added contract ordering, order checking, push support and return to workingType\"},{\"type\":\"html\",\"text\":\"Spot: Fix the problem that the K-line does not include the start and end time; update the K-line query api V2. When only starttime is transmitted, the time sequence is returned in descending order\"},{\"type\":\"html\",\"text\":\"Wallet: AddedSub-account recharge Address-related creation and query interface interface\"},{\"type\":\"html\",\"text\":\"Copy Trading: AddedAPI for copy trading system\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-09-18.json\n// module id = v1XT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Trading Commission Rate\"},{\"type\":\"normal\",\"text\":\"Obtain the transaction rate for the current user\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"commission\":{\"takerCommissionRate\":0.0005,\"makerCommissionRate\":0.0002}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"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\":\"takerCommissionRate\",\"type\":\"float64\",\"description\":\"taker fee rate\"},{\"name\":\"makerCommissionRate\",\"type\":\"float64\",\"description\":\"maker fee rate\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account/19_get_trade_user_commissionRate.json\n// module id = v5LS\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-06-13\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續幣本位新增系列交易API\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-06-13.json\n// module id = vBmL\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"下單\"},{\"type\":\"desc\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\",\"desc\":[{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRAILING_STOP_MARKET(追跡委託單)和TRAILING_TP_SL(移動止盈止損單):需填寫price欄位或者priceRate欄位
  • \"},{\"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\":\"html\",\"text\":\"

    3. 開倉加倉的同時設置止盈止損:使用takeProfit或者stopLoss字段

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"最小下單數量可從接口 /openApi/swap/v2/quote/contracts 獲取:tradeMinQuantity、tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]}]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"title\":\"MARKET\",\"desc\":\"以市場價格下訂單並設定止盈\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"}},{\"title\":\"STOP_MARKET\",\"desc\":\"市場价止損單\",\"payload\":{\"type\":\"STOP_MARKET\",\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_PROFIT_MARKET\",\"desc\":\"市場价止盈單\",\"payload\":{\"type\":\"TAKE_PROFIT_MARKET\",\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"STOP\",\"desc\":\"止損限價單\",\"payload\":{\"type\":\"STOP\",\"price\":50000,\"stopPrice\":50000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_PROFIT\",\"desc\":\"限價止盈訂單\",\"payload\":{\"type\":\"TAKE_PROFIT\",\"price\":70000,\"stopPrice\":70000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_LIMIT\",\"desc\":\"計劃委託單限價單\",\"payload\":{\"type\":\"TRIGGER_LIMIT\",\"price\":70000,\"stopPrice\":70000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"takeProfit\":\"\",\"recvWindow\":1000,\"stopLoss\":\"\",\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_MARKET\",\"desc\":\"計劃委託市價單\",\"payload\":{\"type\":\"TRIGGER_MARKET\",\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"takeProfit\":\"\",\"recvWindow\":1000,\"stopLoss\":\"\",\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRAILING_STOP_MARKET\",\"desc\":\"追蹤委託單\",\"payload\":{\"type\":\"TRAILING_STOP_MARKET\",\"price\":0,\"stopPrice\":0,\"priceRate\":0.1,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRAILING_TP_SL\",\"desc\":\"移動止盈止損\",\"payload\":{\"type\":\"TRAILING_TP_SL\",\"price\":0,\"stopPrice\":0,\"priceRate\":0.1,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726231037325}},{\"title\":\"POSITION_STOP_MARKET\",\"desc\":\"倉位市價止損單\",\"payload\":{\"type\":\"STOP_MARKET\",\"closePosition\":true,\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"POSITION_TAKE_PROFIT_MARKET\",\"desc\":\"倉位市價止盈單\",\"payload\":{\"type\":\"TAKE_PROFIT_MARKET\",\"closePosition\":true,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}}],\"errors\":[{\"desc\":\"溫馨提醒:由於市場波動較大,為降低爆倉風險,API訂單暫時關閉。\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"需要滿足最小下單金額2U\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"當前您的賬號被風控,當前無法使用API下單,需要聯繫我們客服確認\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"需要填寫quantity字段\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"止損價格需要低於當前最新價\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"當前無倉位,請先檢查是否有倉位\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"保證金不足,請先檢查是否足夠\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"需要填寫必填參數\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}],\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}}},\"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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,不同訂單不可使用相同的clientOrderId, clientOrderId 僅支援 LIMIT/MARKET 訂單類型\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC和FOK\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能;cutfee:啟用保證停損功能,同時啟用VIP保證停損費用減免功能,VIP費用減免只有在停損單時才起作用。預設不啟用保證止盈止損功能。stopGuaranteed為true或cutfee的時候,quantity字段不生效。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能;cutfee:啟用保證停損功能,同時啟用VIP保證停損費用減免功能,VIP費用減免只有在停損單時才起作用。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"orderID\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能;cutfee:啟用保證停損功能,同時啟用VIP保證停損費用減免功能,VIP費用減免只有在停損單時才起作用。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"全部一鍵平倉下單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718434280880,\"data\":{\"success\":[\"1801870087554072576\"],\"failed\":[{\"positionId\":\"12345678910111234\",\"errCode\":123,\"errorMsg\":\"balabala\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"Obj\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"success\",\"type\":\"List\",\"description\":\"平倉成功的訂單id list\"},{\"name\":\"failed\",\"type\":\"List\",\"description\":\"平仓失敗的msg\"}]},{\"type\":\"Failed\",\"key\":\"failed\",\"data\":[{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"平倉失敗的仓位id\"},{\"name\":\"errCode\",\"type\":\"int32\",\"description\":\"錯誤碼\"},{\"name\":\"errorMsg\",\"type\":\"string\",\"description\":\"錯誤描述訊息\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/05_post_closeAllPositions.json\n// module id = vDcD\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-07-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨批量下單新增功能:POST /openApi/spot/v1/trade/batchOrders,新增字段sync(true/false)支持並行和串行批量下單兩種方式\"},{\"type\":\"html\",\"text\":\"永續U本位調整接口:下單接口 Post /openApi/swap/v2/trade/order,StopGuaranteed字段新增一個參數值cutfee,表示開啟停損功能,並且啟用VIP減免停損費用\"},{\"type\":\"html\",\"text\":\"永續U本位調整接口:查詢訂單、查詢歷史訂單接口返回triggerOrderId字段。\"},{\"type\":\"html\",\"text\":\"永續U本位新增接口:查詢倉位歷史 Get /openApi/swap/v1/trade/positionHistory。\"},{\"type\":\"html\",\"text\":\"永續幣本位新增接口:查詢倉位模式 Get /openApi/cswap/v1/trade/marginType。\"},{\"type\":\"html\",\"text\":\"永續幣本位新增接口:設置倉位模式 Post /openApi/cswap/v1/trade/marginType。\"},{\"type\":\"html\",\"text\":\"永續幣本位新增接口:設置倉位保證金 Post /openApi/cswap/v1/trade/positionMargin。\"},{\"type\":\"html\",\"text\":\"永續幣本位調整接口:下單接口 Post /openApi/cswap/v1/trade/order,下單支持逐倉模式、計劃委託\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-07-11.json\n// module id = vGFC\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an Existing Order and Send a New Orde\"},{\"type\":\"normal\",\"text\":\"This api is used to cancel an order and place a new one on the same trading pair.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/cancelReplace\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"cancelReplaceMode\":\"STOP_ON_FAILURE\",\"cancelClientOrderId\":\"abc123test\",\"cancelOrderId\":123456789,\"cancelRestrictions\":\"ONLY_NEW\",\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"cancelResult\":\"true\",\"cancelMsg\":\"\",\"cancelResponse\":{\"cancelClientOrderId\":\"\",\"cancelOrderId\":123456789,\"symbol\":\"BTC-USDT\",\"orderId\":123456789,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"1.0000\",\"price\":\"38000.0\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1706858471000,\"updateTime\":1706858471000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"workingType\":\"MARK_PRICE\",\"onlyOnePosition\":false,\"reduceOnly\":false},\"replaceResult\":\"true\",\"replaceMsg\":\"\",\"newOrderResponse\":{\"orderId\":987654321,\"symbol\":\"BTC-USDT\",\"positionSide\":\"LONG\",\"side\":\"BUY\",\"type\":\"LIMIT\",\"price\":38000,\"quantity\":1,\"stopPrice\":0,\"workingType\":\"MARK_PRICE\",\"clientOrderId\":\"\",\"timeInForce\":\"GTC\",\"priceRate\":0,\"stopLoss\":\"{\\\"type\\\": \\\"STOP\\\", \\\"stopPrice\\\": 37000, \\\"price\\\": 37000}\",\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT\\\", \\\"stopPrice\\\": 45000, \\\"price\\\": 45000}\",\"reduceOnly\":false}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"cancelReplaceMode\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"STOP_ON_FAILURE: If the order cancellation fails, the replacement order will not continue.\\nALLOW_FAILURE: Regardless of the success of the order cancellation, the replacement order will proceed.\"},{\"name\":\"cancelClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"The original client-defined order ID to be canceled. The system will convert this field to lowercase. Either cancelClientOrderId or cancelOrderId must be provided. If both parameters are provided, cancelOrderId takes precedence.\"},{\"name\":\"cancelOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The platform order ID to be canceled. Either cancelClientOrderId or cancelOrderId must be provided. If both parameters are provided, cancelOrderId takes precedence.\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"ONLY_NEW: If the order status is NEW, the cancellation will succeed.\\nONLY_PENDING: If the order status is PENDING, the cancellation will succeed.\\nONLY_PARTIALLY_FILLED: If the order status is PARTIALLY_FILLED, the cancellation will succeed.\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL ; Maximum: 1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId, clientOrderId only supports LIMIT/MARKET order type\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in Force, currently supports PostOnly, GTC, IOC, and FOK\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"cancelResult\",\"type\":\"string\",\"description\":\"Cancellation result. true: Cancellation successful, false: Cancellation failed\"},{\"name\":\"cancelMsg\",\"type\":\"string\",\"description\":\"Reason for the cancellation failure\"},{\"name\":\"cancelResponse\",\"type\":\"CancelResponse\",\"description\":\"Information about the canceled order\"},{\"name\":\"replaceResult\",\"type\":\"string\",\"description\":\"Replacement result. true: Replacement successful, false: Replacement failed\"},{\"name\":\"replaceMsg\",\"type\":\"string\",\"description\":\"Reason for the replacement failure\"},{\"name\":\"newOrderResponse\",\"type\":\"NewOrderResponse\",\"description\":\"Information about the new order\"}]},{\"type\":\"CancelResponse\",\"key\":\"cancelResponse\",\"data\":[{\"name\":\"cancelClientOrderId\",\"type\":\"string\",\"description\":\"Custom OrderId of the canceled order. The system will convert this field to lowercase.\"},{\"name\":\"cancelOrderId\",\"type\":\"string\",\"description\":\"OrderId of the canceled order\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"leverage\",\"type\":\"string\",\"description\":\"Leverage\"},{\"name\":\"workingType\",\"type\":\"string\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"onlyOnePosition\",\"type\":\"bool\",\"description\":\"is OneWay Position mode, true: yes; false: no\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"NewOrderResponse\",\"key\":\"newOrderResponse\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"original order quantity\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"timeInForce\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL ; Maximum: 1\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/20_cancel_replace_order.json\n// module id = vKvg\n// module chunks = 3","var map = {\n\t\".\": \"Tl8j\",\n\t\"./\": \"Tl8j\",\n\t\"./01_balance\": \"qHKX\",\n\t\"./01_balance.json\": \"qHKX\",\n\t\"./02_order\": \"tdP1\",\n\t\"./02_order.json\": \"tdP1\",\n\t\"./03_setting\": \"PEUY\",\n\t\"./03_setting.json\": \"PEUY\",\n\t\"./index\": \"Tl8j\",\n\t\"./index.js\": \"Tl8j\"\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 = \"vOn1\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/account ^.*$\n// module id = vOn1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query user API Key permissions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiPermissions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702624501386\"},\"response\":{\"apiKey\":\"\",\"permissions\":[1,2],\"ipAddresses\":[],\"note\":\"demo\"}},\"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\":\"apiKey\",\"type\":\"String\",\"description\":\"apiKey\"},{\"name\":\"permissions\",\"type\":\"array\",\"description\":\"Permissions, 1-spot trading, 2-reading, 3-professional contract trading, 4-universal transfer, 5-coin withdrawal, 7-allow transfer within sub-account\"},{\"name\":\"ipAddresses\",\"type\":\"array\",\"description\":\"ip whitelist\"},{\"name\":\"note\",\"type\":\"String\",\"description\":\"Remark\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/02_get_account_apiPermission.json\n// module id = vPcu\n// module chunks = 3","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/cswap/websocket/introduce/03_heart_beat.json\n// module id = vR2M\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\":\"現貨最優掛單\"},{\"type\":\"normal\",\"text\":\"實時推送\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @bookTicker,比如BTC_USDT@bookTicker\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對名稱,如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件推送時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"買單最優掛單價格\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"買單最優掛單數量\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賣單最優掛單價格\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"賣單最優掛單數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/06_book_ticker.json\n// module id = vVRe\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-07-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"New Spot features: POST /openApi/spot/v1/trade/batchOrders, new field sync (true/false) supports parallel and serial batch ordering\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: Order api Post /openApi/swap/v2/trade/order, StopGuaranteed field add a new parameter value cutfee, it means to turn on the stop-loss function, and enable VIP to reduce the stop-loss fee.\"},{\"type\":\"html\",\"text\":\"Perpetual U-based api adjustment: query order, query historical order interfaces return the triggerOrderId field.\"},{\"type\":\"html\",\"text\":\"New perpetual U-based interface: query position history Get /openApi/swap/v1/trade/positionHistory.\"},{\"type\":\"html\",\"text\":\"New perpetual coin-based interface: query margin mode Get /openApi/cswap/v1/trade/marginType.\"},{\"type\":\"html\",\"text\":\"New perpetual coin-based interface: set margin mode Post /openApi/cswap/v1/trade/marginType.\"},{\"type\":\"html\",\"text\":\"New perpetual coin-based interface: set position margin Post /openApi/cswap/v1/trade/positionMargin.\"},{\"type\":\"html\",\"text\":\"Perpetual coin-based api adjustment: order api Post /openApi/cswap/v1/trade/order, order supports isolated margin mode and planned entrusted limit orders\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-07-11.json\n// module id = vZQv\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_interval.json\": \"bP1Q\",\n\t\"./02_latest_records.json\": \"cRtg\",\n\t\"./03_kline_data.json\": \"WbRb\",\n\t\"./04_quote_ticker.json\": \"AAve\",\n\t\"./05_last_trade_price.json\": \"lqZR\",\n\t\"./06_last_mark_price.json\": \"zVt3\",\n\t\"./07_book_ticker.json\": \"5TRZ\",\n\t\"./08_depth_incr_info.json\": \"PEl6\"\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\":\"warning\",\"text\":\"https://open-api.bingx.com/openApi/spot/v1/server/time\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic/04_server_url.json\n// module id = w7yn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to the Book Ticker Streams\"},{\"type\":\"normal\",\"text\":\"Push every 10 ms.\"},{\"type\":\"normal\",\"text\":\"Push the Book Ticker Streams.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @bookTicker, such as BTC-USDT@bookTicker.\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters.\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"Whether there is an error message, 0 for normal, 1 for error.\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USDT@bookTicker.\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"u\",\"type\":\"\",\"description\":\"Update ID\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"Transaction time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Best bid price\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Best bid quantity\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Best ask price\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Best ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/07_book_ticker.json\n// module id = wF+v\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-05-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual New Interface: Query Position and Maintenance Margin Ratio.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-05-23.json\n// module id = wQ5t\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Service Address\"},{\"type\":\"code\",\"text\":\"https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"Alternate domain name: open-api.bingx.io (total frequency limit: 60/min) Release the frequency limit of the alternate domain name only when there is a problem with the primary domain name 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","module.exports = [{\"type\":\"hash\",\"text\":\"All Orders\"},{\"type\":\"normal\",\"text\":\"Query the user's historical orders (order status is fully executed, pending, newly created, partially executed, or cancelled.).\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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/v1/trade/fullOrder\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USDT\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500,\"isTwap\":true,\"mainOrderId\":\"21312431241234\"}]}}},\"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 symbol is specified, it will query the orders for all trading pairs.\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Only return 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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"},{\"name\":\"triggerOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"trigger order ID associated with this order\"},{\"name\":\"isTwap\",\"type\":\"bool\",\"description\":\"Whether it is a TWAP order, true: yes, false: no\"},{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP order number\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/23_get_trade_allOrdersV2.json\n// module id = wYbs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Access\"},{\"type\":\"normal\",\"text\":\"the base URL of Live Websocket Market Data :wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"the base URL of VST Websocket Market Data :wss://vst-open-api-ws.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\"./2023-08-03\": \"H0k7\",\n\t\"./2023-08-03.json\": \"H0k7\",\n\t\"./2023-08-11\": \"D1C9\",\n\t\"./2023-08-11.json\": \"D1C9\",\n\t\"./2023-08-23\": \"CcT1\",\n\t\"./2023-08-23.json\": \"CcT1\",\n\t\"./2023-09-18\": \"v1XT\",\n\t\"./2023-09-18.json\": \"v1XT\",\n\t\"./2023-10-12\": \"7wfK\",\n\t\"./2023-10-12.json\": \"7wfK\",\n\t\"./2023-11-10\": \"U8SU\",\n\t\"./2023-11-10.json\": \"U8SU\",\n\t\"./2023-11-22\": \"4w61\",\n\t\"./2023-11-22.json\": \"4w61\",\n\t\"./2023-12-08\": \"aUA7\",\n\t\"./2023-12-08.json\": \"aUA7\",\n\t\"./2023-12-21\": \"R2wc\",\n\t\"./2023-12-21.json\": \"R2wc\",\n\t\"./2024-01-10\": \"k/At\",\n\t\"./2024-01-10.json\": \"k/At\",\n\t\"./2024-01-23\": \"FtO6\",\n\t\"./2024-01-23.json\": \"FtO6\",\n\t\"./2024-02-04\": \"sMHE\",\n\t\"./2024-02-04.json\": \"sMHE\",\n\t\"./2024-02-23\": \"nFKt\",\n\t\"./2024-02-23.json\": \"nFKt\",\n\t\"./2024-03-04\": \"VZgP\",\n\t\"./2024-03-04.json\": \"VZgP\",\n\t\"./2024-03-14\": \"UMYu\",\n\t\"./2024-03-14.json\": \"UMYu\",\n\t\"./2024-03-19\": \"68aw\",\n\t\"./2024-03-19.json\": \"68aw\",\n\t\"./2024-03-28\": \"96CF\",\n\t\"./2024-03-28.json\": \"96CF\",\n\t\"./2024-04-15\": \"eP5L\",\n\t\"./2024-04-15.json\": \"eP5L\",\n\t\"./2024-04-25\": \"0uHt\",\n\t\"./2024-04-25.json\": \"0uHt\",\n\t\"./2024-05-23\": \"wQ5t\",\n\t\"./2024-05-23.json\": \"wQ5t\",\n\t\"./2024-05-27\": \"ED08\",\n\t\"./2024-05-27.json\": \"ED08\",\n\t\"./2024-06-13\": \"Jim+\",\n\t\"./2024-06-13.json\": \"Jim+\",\n\t\"./2024-06-28\": \"xM8g\",\n\t\"./2024-06-28.json\": \"xM8g\",\n\t\"./2024-07-11\": \"vZQv\",\n\t\"./2024-07-11.json\": \"vZQv\",\n\t\"./2024-07-22\": \"OOYK\",\n\t\"./2024-07-22.json\": \"OOYK\",\n\t\"./2024-07-30\": \"OTiI\",\n\t\"./2024-07-30.json\": \"OTiI\",\n\t\"./2024-08-08\": \"dzxx\",\n\t\"./2024-08-08.json\": \"dzxx\",\n\t\"./2024-08-17\": \"jPZq\",\n\t\"./2024-08-17.json\": \"jPZq\",\n\t\"./2024-08-22\": \"POz2\",\n\t\"./2024-08-22.json\": \"POz2\",\n\t\"./2024-08-27\": \"gYbm\",\n\t\"./2024-08-27.json\": \"gYbm\",\n\t\"./2024-09-11\": \"Lezn\",\n\t\"./2024-09-11.json\": \"Lezn\",\n\t\"./2024-09-23\": \"6qxj\",\n\t\"./2024-09-23.json\": \"6qxj\",\n\t\"./2024-10-09\": \"esMP\",\n\t\"./2024-10-09.json\": \"esMP\",\n\t\"./2024-10-11\": \"McI3\",\n\t\"./2024-10-11.json\": \"McI3\",\n\t\"./2024-10-16\": \"OleB\",\n\t\"./2024-10-16.json\": \"OleB\",\n\t\"./2024-10-23\": \"pxxT\",\n\t\"./2024-10-23.json\": \"pxxT\",\n\t\"./2024-10-24\": \"SHTI\",\n\t\"./2024-10-24.json\": \"SHTI\",\n\t\"./2024-10-30\": \"Gmgm\",\n\t\"./2024-10-30.json\": \"Gmgm\",\n\t\"./2024-11-07\": \"1koR\",\n\t\"./2024-11-07.json\": \"1koR\",\n\t\"./2024-11-15\": \"yLee\",\n\t\"./2024-11-15.json\": \"yLee\",\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\":\"24小時價格變動情況\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 用於查詢現貨幣對24小時滾動窗口價格變動數據。不攜帶symbols參數會返回全部交易對數據
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/24hr\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702720770200\"},\"response\":{\"code\":0,\"timestamp\":1702720823624,\"data\":[{\"symbol\":\"BTC-USDT\",\"openPrice\":42827.65,\"highPrice\":42893.56,\"lowPrice\":41648.71,\"lastPrice\":42215.15,\"priceChange\":1244.85,\"priceChangePercent\":\"2.91%\",\"volume\":5099.21,\"quoteVolume\":214948771.34,\"openTime\":1702634423624,\"closeTime\":1702720823624,\"askPrice\":42215.55,\"askQty\":2.20125,\"bidPrice\":42214.65,\"bidQty\":0.8962}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對,如:BTC-USDT,不入參時將返回所有symbol的數據\"},{\"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\":\"openPrice\",\"type\":\"string\",\"description\":\"最近24小時的開盤價\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"最近24小時的最高價\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"最近24小時的最低價\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"最新價\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"總交易量(base asset)\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"總交易額(quote asset)\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"ticker間隔的開始時間\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"description\":\"ticker間隔的結束時間\"},{\"name\":\"count\",\"type\":\"int\",\"description\":\"統計時間內交易筆數\"},{\"name\":\"bidPrice\",\"type\":\"float64\",\"description\":\"買一價格\"},{\"name\":\"bidQty\",\"type\":\"float64\",\"description\":\"買一數量\"},{\"name\":\"askPrice\",\"type\":\"float64\",\"description\":\"賣一價格\"},{\"name\":\"askQty\",\"type\":\"float64\",\"description\":\"賣一數量\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"價格變動百分比欄位\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/05_get_quote_ticker.json\n// module id = wj44\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Set Position Mode\"},{\"type\":\"normal\",\"text\":\"Used to set the position mode of perpetual contract, supporting both dual position mode and single position mode\"},{\"type\":\"warning\",\"text\":\"*The Position Mode applies to all contracts and can be set when there are no active positions or pending orders.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionSide/dual\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"dualSidePosition\":\"true\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"dualSidePosition\":\"true\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"margin not enough\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"position is not isolated\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"true\",\"required\":\"Yes\",\"description\":\"\\\"true\\\": dual position mode; \\\"false\\\": single position mode\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"The window time for the request to be valid, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"string\",\"description\":\"\\\"true\\\": dual position mode; \\\"false\\\": single position mode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/18_set_positionSide.json\n// module id = wp4b\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"頻率限制\"},{\"type\":\"html\",\"text\":\"如果請求過於頻繁系統將自動限制請求,5分鐘後,會自動恢復;\"},{\"type\":\"html\",\"text\":\"基於賬號UID的限頻,每個接口的都有自己獨立的限頻,相互不影響\"},{\"type\":\"html\",\"text\":\"使用者可依據Http Header中的\\\"X-RateLimit-Requests-Remain\\\"(限頻剩餘次數)及\\\"X-RateLimit-Requests-Expire\\\"(視窗過期時間)查看目前限頻使用情況,以及所在時間視窗的過期時間,根據該數值動態調整您的請求頻率。\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"同時會受到根據UID和IP的不同限頻,基於UID限頻詳見各接口文檔,其中基於IP限頻會基於以下分組規則進行\"},{\"type\":\"html\",\"text\":\"
  • 行情接口分組[1]: 分組內所有接口基於IP限頻總和:100/10s,500/min
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[2]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[3]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:200/10s
  • \"}]\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\"./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\":\"title\",\"text\":\"2024-06-28\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual New Interface: Query historical transaction details.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-06-28.json\n// module id = xM8g\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel all orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/allOpenOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718372477371,\"data\":{\"success\":[{\"symbol\":\"BTC-USD\",\"orderId\":\"1801610628516806656\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"quantity\":2,\"origQty\":\"0\",\"price\":\"27173\",\"executedQty\":\"0\",\"avgPrice\":\"0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1718372420802,\"updateTime\":1718372420820,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"stopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"stopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}],\"failed\":[{\"orderId\":\"1801610628516806656\",\"code\":123,\"msg\":\"\"},{\"orderId\":\"1801610628516806656\",\"code\":123,\"msg\":\"\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, example: BTC-USD, use uppercase letters\"},{\"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\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation time point, unit: milliseconds\"},{\"name\":\"data\",\"type\":\"Obj\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"success\",\"type\":\"List\",\"description\":\"\"},{\"name\":\"failed\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Success\",\"key\":\"success\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order number\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Buy or sell direction, SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, bidirectional holding can only select LONG or SHORT\"},{\"name\":\"time\",\"type\":\"string\",\"description\":\"Order time\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Commission for this order\"},{\"name\":\"updateTime\",\"type\":\"string\",\"description\":\"Latest trade time\"},{\"name\":\"quantity\",\"type\":\"string\",\"description\":\"Order quantity\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Order price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average price\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"Trade volume\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"Profit or loss for this order\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Cumulative traded quantity\"}]},{\"type\":\"Failed\",\"key\":\"failed\",\"data\":[{\"name\":\"OrderId\",\"type\":\"string\",\"description\":\"Order number\"},{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/04_post_allOpenOrders.json\n// module id = xM9z\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Switch Multi-Assets Mode\"},{\"type\":\"normal\",\"text\":\"Switch account multi-assets mode\"},{\"type\":\"warning\",\"text\":\"Only available for live trading, live trading domain: https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/assetMode\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"assetMode\":\"multiAssetsMode\",\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"assetMode\":\"multiAssetsMode\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"assetMode\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"multi-assets mode, singleAssetMode or multiAssetsMode\"},{\"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\":\"assetMode\",\"type\":\"string\",\"description\":\"multi-assets mode, singleAssetMode or multiAssetsMode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/33_post_asset_mode.json\n// module id = xS3w\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Kline/Candlestick Data\"},{\"type\":\"normal\",\"text\":\"Get the latest Kline Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v3/quote/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"KNC-USDT\",\"interval\":\"1h\",\"limit\":\"1000\",\"startTime\":\"1702717199998\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"0.7034\",\"close\":\"0.7065\",\"high\":\"0.7081\",\"low\":\"0.7033\",\"volume\":\"635494.00\",\"time\":1702717200000}]}},\"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\"},{\"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\":\"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\":\"Subscribe to 24-hour price changes\"},{\"type\":\"normal\",\"text\":\"Push every 1 second.\"},{\"type\":\"normal\",\"text\":\"Push 24-hour price changes.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @ticker, such as BTC-USDT@ticker.\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},\"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 BTC-USDT@ticker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"24-hour price change\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"Price change percentage\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"First price in the last 24 hours\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"Highest price in the last 24 hours\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Lowest price in the last 24 hours\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"24-hour turnover, the unit is USDT\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"The latest transaction price\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"24-hour trading volume\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"24-hour trading amount, in USDT\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"Time of the first transaction in the last 24 hours\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"Time of the last transaction in the last 24 hours\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Bid price\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Bid quantity\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Ask price\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/04_quote_ticker.json\n// module id = xVTF\n// module chunks = 3","var map = {\n\t\".\": \"ZM3m\",\n\t\"./\": \"ZM3m\",\n\t\"./2023-09-12\": \"Sd/4\",\n\t\"./2023-09-12.json\": \"Sd/4\",\n\t\"./index\": \"ZM3m\",\n\t\"./index.js\": \"ZM3m\"\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 = \"xY+c\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/q&a ^.*$\n// module id = xY+c\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Order Book\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720487674,\"data\":{\"bids\":[[\"42182.22\",\"0.99114\"],[\"42182.19\",\"1.00643\"],[\"42182.17\",\"0.95406\"],[\"42182.10\",\"0.87420\"],[\"42182.08\",\"1.17445\"]],\"asks\":[[\"42183.23\",\"3.57139\"],[\"42183.22\",\"2.05573\"],[\"42183.20\",\"2.26065\"],[\"42183.19\",\"1.61695\"],[\"42183.17\",\"4.14752\"]],\"ts\":1702720487674}}},\"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 1000\"},{\"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\":\"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","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 Position History\"},{\"type\":\"normal\",\"text\":\"Query the position history of perpetual contracts under the current account.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/positionHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BNB-USDT\",\"pageId\":0,\"pageSize\":20,\"startTime\":1700409600000,\"1703001599000\":1703001599000,\"timestamp\":\"1702731661854\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"positionId\":\"180870089***590996\",\"symbol\":\"BTC-USDT\",\"isolated\":false,\"positionSide\":\"LONG\",\"openTime\":1720062873000,\"updateTime\":1720062878000,\"avgPrice\":\"58942.31\",\"avgClosePrice\":\"58930.00\",\"realisedProfit\":\"-0.04\",\"netProfit\":\"-0.16\",\"positionAmt\":\"33.0000\",\"closePositionAmt\":\"33.0000\",\"leverage\":20,\"closeAllPositions\":true,\"positionCommission\":\"-0.11669358690000001\",\"totalFunding\":\"0.00000000000000001388\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, e.g.: BTC-USDT, please use uppercase letters\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"no\",\"description\":\"USDC or USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Position ID, if not provided, all position histories of the relevant trading pair will be returned by default\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Start timestamp, in milliseconds, maximum time span is three months, if not provided, the default start time is 90 days ago\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"End timestamp, in milliseconds, maximum time span is three months, if not provided, the default end time is the current time\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Page number, must be greater than 0, if not provided, the default is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Page size, must be greater than 0, maximum value is 100, if not provided, the default is 1000\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid window value, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, e.g.: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position side LONG/SHORT\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Isolated mode, true: isolated mode, false: cross margin\"},{\"name\":\"closeAllPositions\",\"type\":\"bool\",\"description\":\"All positions closed\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"Position amount\"},{\"name\":\"closePositionAmt\",\"type\":\"string\",\"description\":\"Closed position amount\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"Realized profit and loss\"},{\"name\":\"netProfit\",\"type\":\"string\",\"description\":\"Net profit and loss\"},{\"name\":\"avgClosePrice\",\"type\":\"float64\",\"description\":\"Average close price\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average open price\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"Leverage\"},{\"name\":\"positionCommission\",\"type\":\"string\",\"description\":\"Commission fee\"},{\"name\":\"totalFunding\",\"type\":\"string\",\"description\":\"Funding fee\"},{\"name\":\"openTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Open time\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Close time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/26_get_user_position_history.json\n// module id = xptQ\n// module chunks = 3","var map = {\n\t\".\": \"Q6u2\",\n\t\"./\": \"Q6u2\",\n\t\"./01_get_contracts\": \"Fui1\",\n\t\"./01_get_contracts.json\": \"Fui1\",\n\t\"./02_get_premiumIndex\": \"5uda\",\n\t\"./02_get_premiumIndex.json\": \"5uda\",\n\t\"./03_get_openInterest\": \"ewcP\",\n\t\"./03_get_openInterest.json\": \"ewcP\",\n\t\"./04_get_kline\": \"FuQd\",\n\t\"./04_get_kline.json\": \"FuQd\",\n\t\"./05_get_depth\": \"GbOE\",\n\t\"./05_get_depth.json\": \"GbOE\",\n\t\"./06_get_ticker\": \"6xac\",\n\t\"./06_get_ticker.json\": \"6xac\",\n\t\"./index\": \"Q6u2\",\n\t\"./index.js\": \"Q6u2\"\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 = \"xwDQ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market ^.*$\n// module id = xwDQ\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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/uid\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"timestamp\":1702558965648,\"data\":{\"uid\":16844999}}},\"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\":\"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 = [{\"type\":\"hash\",\"text\":\"Query historical transaction orders\"},{\"type\":\"normal\",\"text\":\"Used to query historical transaction data in the market\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/market/historicalTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"fromId\":\"412551\",\"limit\":\"500\",\"symbol\":\"ETH-USDT\",\"timestamp\":\"1702731995838\",\"recvWindow\":\"60000\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"time\":1705063108365,\"isBuyerMaker\":true,\"price\":\"2662.83\",\"qty\":\"0.10\",\"quoteQty\":\"266.28\",\"id\":\"8179911\"},{\"time\":1705063108486,\"isBuyerMaker\":true,\"price\":\"2662.82\",\"qty\":\"0.10\",\"quoteQty\":\"266.28\",\"id\":\"8179912\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"fromId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"From which transaction ID to start returning. By default, it returns the most recent transaction records\"},{\"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\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"The number of returned result sets The default value is 50, the maximum value is 100\"}]},{\"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\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"transaction ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/19_get_historicalTrades.json\n// module id = xyiP\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 = \"HHOOSSTT\" // \n\tchannel = \"AAPPII\" // \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 strings.Contains(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/spot/golang.js","module.exports = {\"module\":\"common\",\"path\":\"/en-us/common/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingX API, welcome to sign up for the BingX BrokerProject BingX Broker Program Application\"},{\"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. \"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\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\":\"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\":\"數量,選填\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"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","\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/cswap/api/market/index.js","const nodejs = `const WebSocket = require('ws');\nconst zlib = require('zlib');\n\nconst path = \"HHOOSSTT\"; \nconst CHANNEL = AAPPII; \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\t\"./2023-08-03.json\": \"H0k7\",\n\t\"./2023-08-11.json\": \"D1C9\",\n\t\"./2023-08-23.json\": \"CcT1\",\n\t\"./2023-09-18.json\": \"v1XT\",\n\t\"./2023-10-12.json\": \"7wfK\",\n\t\"./2023-11-10.json\": \"U8SU\",\n\t\"./2023-11-22.json\": \"4w61\",\n\t\"./2023-12-08.json\": \"aUA7\",\n\t\"./2023-12-21.json\": \"R2wc\",\n\t\"./2024-01-10.json\": \"k/At\",\n\t\"./2024-01-23.json\": \"FtO6\",\n\t\"./2024-02-04.json\": \"sMHE\",\n\t\"./2024-02-23.json\": \"nFKt\",\n\t\"./2024-03-04.json\": \"VZgP\",\n\t\"./2024-03-14.json\": \"UMYu\",\n\t\"./2024-03-19.json\": \"68aw\",\n\t\"./2024-03-28.json\": \"96CF\",\n\t\"./2024-04-15.json\": \"eP5L\",\n\t\"./2024-04-25.json\": \"0uHt\",\n\t\"./2024-05-23.json\": \"wQ5t\",\n\t\"./2024-05-27.json\": \"ED08\",\n\t\"./2024-06-13.json\": \"Jim+\",\n\t\"./2024-06-28.json\": \"xM8g\",\n\t\"./2024-07-11.json\": \"vZQv\",\n\t\"./2024-07-22.json\": \"OOYK\",\n\t\"./2024-07-30.json\": \"OTiI\",\n\t\"./2024-08-08.json\": \"dzxx\",\n\t\"./2024-08-17.json\": \"jPZq\",\n\t\"./2024-08-22.json\": \"POz2\",\n\t\"./2024-08-27.json\": \"gYbm\",\n\t\"./2024-09-11.json\": \"Lezn\",\n\t\"./2024-09-23.json\": \"6qxj\",\n\t\"./2024-10-09.json\": \"esMP\",\n\t\"./2024-10-11.json\": \"McI3\",\n\t\"./2024-10-16.json\": \"OleB\",\n\t\"./2024-10-23.json\": \"pxxT\",\n\t\"./2024-10-24.json\": \"SHTI\",\n\t\"./2024-10-30.json\": \"Gmgm\",\n\t\"./2024-11-07.json\": \"1koR\",\n\t\"./2024-11-15.json\": \"yLee\"\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\":\"查詢子母賬戶劃轉歷史記錄(僅限母賬戶操作)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/asset/transferHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"213342\",\"tranId\":\"1051323896482406240336\",\"type\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"startTime\":\"1719496046943\",\"endTime\":\"1719596046943\",\"pageId\":1,\"pagingSize\":10},\"response\":{\"total\":1,\"rows\":[{\"asset\":\"VST\",\"amount\":\"100000.00000000000000000000\",\"type\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"status\":\"CONFIRMED\",\"tranId\":\"1051323896482406240336\",\"timestamp\":1702252271000,\"fromUid\":2332424,\"toUid\":123244}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"需要查詢的UID\"},{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"否\",\"description\":\"劃轉類型\"},{\"name\":\"tranId\",\"type\":\"STRING\",\"required\":\"否\",\"description\":\"劃轉id\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"開始時間 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"結束時間 1658748648396\"},{\"name\":\"pageId\",\"type\":\"int\",\"required\":\"否\",\"description\":\"當前頁 默認1\"},{\"name\":\"pagingSize\",\"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\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"母賬戶資金賬戶->子賬戶資金賬戶\"},{\"name\":\"MAIN_CAPITAL_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"母账户資金賬戶->子账户標合账户\"},{\"name\":\"MAIN_CAPITAL_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"母账户資金賬戶->子账户永續U本位账户\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"母账户標合賬戶->子账户資金賬戶\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"母账户標合賬戶->子账户標合账户\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"母账户標合賬戶->子账户永續U本位账户\"},{\"name\":\"MAIN_SWAP_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"母账户永續U本位賬戶->子账户資金賬戶\"},{\"name\":\"MAIN_SWAP_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"母账户永續U本位賬戶->子账户標合账户\"},{\"name\":\"MAIN_SWAP_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"母账户永續U本位賬戶->子账户永續U本位账户\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"子账户資金賬戶->母账户資金賬戶\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"子账户資金賬戶->母账户標合賬户\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"子账户資金賬戶->母账户永續U本位賬戶\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"子账户標合賬戶->母账户資金賬戶\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"子账户標合賬戶->母账户標合賬户\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"子账户標合賬戶->母账户永續U本位賬戶\"},{\"name\":\"SUB_SWAP_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"子账户永續U本位賬戶->母账户資金賬戶\"},{\"name\":\"SUB_SWAP_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"子账户永續U本位賬戶->母账户標合賬户\"},{\"name\":\"SUB_SWAP_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"子账户永續U本位賬戶->母账户永續U本位賬戶\"}]},{\"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\":\"劃轉的時間戳\"},{\"name\":\"fromUid\",\"type\":\"LONG\",\"description\":\"轉出方uid\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"description\":\"轉入方uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/18_query_sub_account_transfer_history.json\n// module id = yGUm\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\t\"./05_get_quote_ticker.json\": \"mWiW\",\n\t\"./06_get_market_agg_depth.json\": \"eCwL\",\n\t\"./07_get_market_price.json\": \"p4oz\",\n\t\"./08_get_market_book_ticker.json\": \"OdvA\",\n\t\"./09_get_market_history_klines.json\": \"Turq\",\n\t\"./10_get_ market_histroy_traders.json\": \"MGWO\"\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","module.exports = [{\"type\":\"title\",\"text\":\"2024-11-15\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USDT-M: Added 'Switch Multi-Assets Mode' interface.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT-M: Added 'Query Multi-Assets Mode' interface.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT-M: Added 'Query Multi-Assets Rules' interface.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT-M: Added 'Query Multi-Assets Margin' interface.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-11-15.json\n// module id = yLee\n// module chunks = 3","\nconst python = `\nimport json\nimport websocket\nimport gzip\nimport io\nURL=\"HHOOSSTT\" \nCHANNEL= AAPPII\nclass Test(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 test = Test()\n test.start()`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/python.js","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶內轉記錄\"},{\"type\":\"normal\",\"text\":\"此節點用於子賬戶查詢自己的內轉記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccount/innerTransfer/records\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"startTime\":1694761643000,\"endTime\":1694765243428,\"offset\":0,\"limit\":100,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID。同時入參平臺ID和transferClientId時以平臺id查詢為主\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"開始時間\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"結束時間\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"內轉記錄列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"id\",\"type\":\"long\",\"description\":\"內轉id\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"receiver\",\"type\":\"long\",\"description\":\"收款人uid\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"轉賬金額\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"內轉時間\"},{\"name\":\"status\",\"type\":\"Integer\",\"description\":\"狀態 4-審核中 5-已失敗 6-已完成\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID。同時入參平臺ID和transferClientId時以平臺id查詢為主\"},{\"name\":\"fromUid\",\"type\":\"long\",\"description\":\"付款人帳戶\"},{\"name\":\"recordType\",\"type\":\"string\",\"description\":\"out:轉出記錄,in:轉入記錄\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/17.get_wallet_querySubInnerTransferRecords.json\n// module id = yVRY\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","module.exports = [{\"type\":\"hash\",\"text\":\"最新成交價\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 用於查詢最新成交價
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\"},\"response\":{\"code\":0,\"timestamp\":1707147143049,\"data\":[{\"symbol\":\"BTC_USDT\",\"trades\":[{\"timestamp\":1707147142579,\"tradeId\":\"86521463\",\"price\":\"42902.61\",\"amount\":\"\",\"type\":1,\"volume\":\"0.11689\"}]}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對,如:BTC_USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"price\",\"type\":\"string\",\"description\":\"最新價格\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,如:BTC_USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/07_get_market_price.json\n// module id = ymfm\n// module chunks = 3","var map = {\n\t\"./01_post_trade_a_order.json\": \"ZnNv\",\n\t\"./01_post_trade_batchOrders.json\": \"pX3/\",\n\t\"./021_post_trade_order_cancel.json\": \"ev9X\",\n\t\"./022_post_trade_orders_cancel.json\": \"aTY/\",\n\t\"./023_post_cancelOpenOrders.json\": \"gz1R\",\n\t\"./023_post_trade_order_cancel_replace.json\": \"TA5G\",\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\"./077_get_trade_fill_details.json\": \"s+Dd\",\n\t\"./08_get_commissionRate.json\": \"sPli\",\n\t\"./09_cancel_all_after.json\": \"KWsz\",\n\t\"./100_post_one_oco_order.json\": \"R/1P\",\n\t\"./101_cancel_one_oco_order.json\": \"dd2V\",\n\t\"./102_get_one_oco_order.json\": \"MN46\",\n\t\"./103_get_all_pending_oco_order.json\": \"YC1x\",\n\t\"./104_get_all_history_oco_order.json\": \"JLQZ\"\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","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to 24-Hour Price Change\"},{\"type\":\"normal\",\"text\":\"Pushes data of 24-hour price change every 1000ms\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @ticker, e.g., BTC_USDT@ticker\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@ticker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair name, e.g., BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair name\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Millisecond timestamp, timestamp\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"Opening price, open\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"Highest price, high\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Lowest price, low\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"Volume\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"Turnover, coin-coin quantity, U base-amount USDT\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"Turnover, coin base-is USD, U base-useless\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"Price change\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"Price change percentage\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"Latest price\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"Latest trade time\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"Latest trade quantity\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Bid price\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Bid quantity\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Ask price\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/07_24hr_ticker.json\n// module id = ywsQ\n// module chunks = 3","var map = {\n\t\"./01_limit.json\": \"+dFG\",\n\t\"./02_connect.json\": \"hDC3\",\n\t\"./03_data_compress.json\": \"YUWz\",\n\t\"./04_heart_beat.json\": \"Ze9p\",\n\t\"./05_cancel_subscribe.json\": \"hlb8\",\n\t\"./06_subscribe.json\": \"g2tG\"\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\":\"hash\",\"text\":\"提幣\"},{\"type\":\"normal\",\"text\":\"指定用戶賬戶發起提幣\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"address\":\"0x8****11\",\"addressTag\":\"None\",\"amount\":\"4998.0\",\"coin\":\"USDT\",\"network\":\"BEP20\",\"timestamp\":\"1702619167144\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702619168218,\"data\":{\"id\":\"125*****4\"}}},\"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\":\"addressTag\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Tag or memo,部分幣種支持tag或者memo\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"提幣金額\"},{\"name\":\"walletType\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"賬戶類型,1資金賬戶,2標合賬戶,3永續賬戶\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義提幣ID,數字和字母組合,長度小於100字符\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"平台返回內轉記錄唯一id\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義提幣ID,數字和字母組合,長度小於100字符\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/06_post_wallets_withdraw.json\n// module id = yxdj\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/en-us/spot/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/1_introduce.json\n// module id = yyuB\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/zh-tw/spot/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔, 歡迎報名BingX經濟商項目 BingX Broker Program Application\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\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\":\"title\",\"text\":\"2024-10-09\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:每次新建連接都會推送全量的“賬戶餘額和倉位更新推送”數據,之後每5秒推送一次。\"},{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:每次新建連接都會推送全量的“槓桿倍數和保證金模式”數據,之後每5秒推送一次。\"},{\"type\":\"html\",\"text\":\"永續U本位Restful服務:‘持倉與維持保證金率’接口新增tier字段。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-09.json\n// module id = zB9+\n// module chunks = 3","const java = `\npackage org.socket;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.util.Timer;\nimport java.util.TimerTask;\nimport java.util.zip.GZIPInputStream;\n\nimport org.java_websocket.client.WebSocketClient;\nimport org.java_websocket.handshake.ServerHandshake;\nimport org.java_websocket.enums.ReadyState;\n\nimport java.net.URI;\nimport java.nio.ByteBuffer;\n\npublic class WebSocketExample {\n private static final String PATH = \"wss://open-api-swap.bingx.com/swap-market?listenKey=425f783f4a17cd65f4a5d7470cfd45a956dba0c29564aa4b70967bee4e4a8984\";\n private static final String CHANNEL = \"https://open-api.bingx.com/openApi/user/auth/userDataStream\";\n private static WebSocketClient webSocketClient;\n\n public static void main(String[] args) {\n try {\n // Initialize WebSocket client\n URI uri = new URI(PATH);\n webSocketClient = new WebSocketClient(uri) {\n @Override\n public void onOpen(ServerHandshake handshakedata) {\n System.out.println(\"WebSocket connection opened\");\n send(CHANNEL);\n }\n\n @Override\n public void onMessage(String message) {\n System.out.println(\"Received Text Message: \" + message);\n }\n\n @Override\n public void onMessage(ByteBuffer bytes) {\n try {\n String decodedMsg = decodeGzip(bytes.array());\n System.out.println(\"Received Binary Message: \" + decodedMsg);\n\n if (mainStr.contains(\"ping\")) { \n send(\"pong\");\n System.out.println(\"Sent pong\");\n }\n\n } catch (IOException e) {\n System.out.println(\"Error decoding message: \" + e.getMessage());\n }\n }\n\n @Override\n public void onClose(int code, String reason, boolean remote) {\n System.out.println(\"WebSocket connection closed: \" + reason);\n }\n\n @Override\n public void onError(Exception ex) {\n System.out.println(\"WebSocket error: \" + ex.getMessage());\n }\n };\n\n webSocketClient.connectBlocking();\n\n // Schedule periodic ping messages\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n if (webSocketClient.getReadyState() == ReadyState.OPEN) {\n webSocketClient.send(\"Ping\");\n System.out.println(\"Sent Ping\");\n }\n }\n }, 0, 5000);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n // GZIP decoding function\n private static String decodeGzip(byte[] compressedData) throws IOException {\n GZIPInputStream gzipInputStream = new GZIPInputStream(new ByteArrayInputStream(compressedData));\n byte[] buffer = new byte[1024];\n StringBuilder decodedMessage = new StringBuilder();\n\n int len;\n while ((len = gzipInputStream.read(buffer)) != -1) {\n decodedMessage.append(new String(buffer, 0, len));\n }\n\n gzipInputStream.close();\n return decodedMessage.toString();\n }\n}\n`\nexport default java\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/spot/java.js","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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"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\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},\"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\":\"desc\",\"text\":\"查詢當前賬戶下永續合約(USDT和USDC)資產的相關信息\",\"desc\":[]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v3/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702731518913\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"userId\":\"116***295\",\"asset\":\"USDT\",\"balance\":\"194.8212\",\"equity\":\"196.7431\",\"unrealizedProfit\":\"1.9219\",\"realisedProfit\":\"-109.2504\",\"availableMargin\":\"193.7609\",\"usedMargin\":\"1.0602\",\"freezedMargin\":\"0.0000\"}]}},\"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\":\"凍結保證金\"},{\"name\":\"shortUid\",\"type\":\"string\",\"description\":\"短uid\"}]}]}]\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\":\"warning\",\"text\":\"GET https://open-api.bingx.com/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","var map = {\n\t\"./en-US/agent/1_introduce.json\": \"CM7q\",\n\t\"./en-US/agent/api/agent/01_get_Query_Invited_Users.json\": \"Bd4q\",\n\t\"./en-US/agent/api/agent/02_get_Daily_Commission_Query.json\": \"Czkf\",\n\t\"./en-US/agent/api/agent/03_get_Query_agent_user_nformation.json\": \"N9hH\",\n\t\"./en-US/agent/api/agent/04_get_Query_the_deposit_details.json\": \"ZKxt\",\n\t\"./en-US/agent/api/agent/05_get_Query_API_transaction_commission.json\": \"mYC+\",\n\t\"./en-US/agent/api/agent/06_get_Query_partner_information.json\": \"sHlI\",\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/changelog/2023-08-03.json\": \"H0k7\",\n\t\"./en-US/changelog/2023-08-11.json\": \"D1C9\",\n\t\"./en-US/changelog/2023-08-23.json\": \"CcT1\",\n\t\"./en-US/changelog/2023-09-18.json\": \"v1XT\",\n\t\"./en-US/changelog/2023-10-12.json\": \"7wfK\",\n\t\"./en-US/changelog/2023-11-10.json\": \"U8SU\",\n\t\"./en-US/changelog/2023-11-22.json\": \"4w61\",\n\t\"./en-US/changelog/2023-12-08.json\": \"aUA7\",\n\t\"./en-US/changelog/2023-12-21.json\": \"R2wc\",\n\t\"./en-US/changelog/2024-01-10.json\": \"k/At\",\n\t\"./en-US/changelog/2024-01-23.json\": \"FtO6\",\n\t\"./en-US/changelog/2024-02-04.json\": \"sMHE\",\n\t\"./en-US/changelog/2024-02-23.json\": \"nFKt\",\n\t\"./en-US/changelog/2024-03-04.json\": \"VZgP\",\n\t\"./en-US/changelog/2024-03-14.json\": \"UMYu\",\n\t\"./en-US/changelog/2024-03-19.json\": \"68aw\",\n\t\"./en-US/changelog/2024-03-28.json\": \"96CF\",\n\t\"./en-US/changelog/2024-04-15.json\": \"eP5L\",\n\t\"./en-US/changelog/2024-04-25.json\": \"0uHt\",\n\t\"./en-US/changelog/2024-05-23.json\": \"wQ5t\",\n\t\"./en-US/changelog/2024-05-27.json\": \"ED08\",\n\t\"./en-US/changelog/2024-06-13.json\": \"Jim+\",\n\t\"./en-US/changelog/2024-06-28.json\": \"xM8g\",\n\t\"./en-US/changelog/2024-07-11.json\": \"vZQv\",\n\t\"./en-US/changelog/2024-07-22.json\": \"OOYK\",\n\t\"./en-US/changelog/2024-07-30.json\": \"OTiI\",\n\t\"./en-US/changelog/2024-08-08.json\": \"dzxx\",\n\t\"./en-US/changelog/2024-08-17.json\": \"jPZq\",\n\t\"./en-US/changelog/2024-08-22.json\": \"POz2\",\n\t\"./en-US/changelog/2024-08-27.json\": \"gYbm\",\n\t\"./en-US/changelog/2024-09-11.json\": \"Lezn\",\n\t\"./en-US/changelog/2024-09-23.json\": \"6qxj\",\n\t\"./en-US/changelog/2024-10-09.json\": \"esMP\",\n\t\"./en-US/changelog/2024-10-11.json\": \"McI3\",\n\t\"./en-US/changelog/2024-10-16.json\": \"OleB\",\n\t\"./en-US/changelog/2024-10-23.json\": \"pxxT\",\n\t\"./en-US/changelog/2024-10-24.json\": \"SHTI\",\n\t\"./en-US/changelog/2024-10-30.json\": \"Gmgm\",\n\t\"./en-US/changelog/2024-11-07.json\": \"1koR\",\n\t\"./en-US/changelog/2024-11-15.json\": \"yLee\",\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_get_account_apiPermission.json\": \"vPcu\",\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/common/api/subAccount/11_post_capital_innerTransfer_apply.json\": \"4v69\",\n\t\"./en-US/common/api/subAccount/12.post_wallet_createSubDepositAddress.json\": \"33ms\",\n\t\"./en-US/common/api/subAccount/15.get_wallet_querySubDepositAddress.json\": \"zfQA\",\n\t\"./en-US/common/api/subAccount/16.get_wallet_querySubDepositRecords.json\": \"cjvr\",\n\t\"./en-US/common/api/subAccount/17.get_wallet_querySubInnerTransferRecords.json\": \"FRId\",\n\t\"./en-US/common/api/subAccount/18.query_sub_account_transfer_history.json\": \"Jxen\",\n\t\"./en-US/common/api/subAccount/19.sub_account_transfer_support_coin.json\": \"A6qi\",\n\t\"./en-US/common/api/subAccount/20.sub_account_transfer.json\": \"6Epj\",\n\t\"./en-US/common/api/subAccount/22_sub_account_allAccountBalance.json\": \"aaNH\",\n\t\"./en-US/copyTrade/1_introduce.json\": \"yyuB\",\n\t\"./en-US/copyTrade/api/trader/01_get_currentTrack.json\": \"U2sZ\",\n\t\"./en-US/copyTrade/api/trader/02_post_close_currentTrack.json\": \"TXP6\",\n\t\"./en-US/copyTrade/api/trader/03_post_tpsl_currentTrack.json\": \"qkYN\",\n\t\"./en-US/copyTrade/api/trader/04_spot_trader_sell_order.json\": \"mCp6\",\n\t\"./en-US/cswap/1_introduce.json\": \"omwE\",\n\t\"./en-US/cswap/2_description.json\": \"WXeB\",\n\t\"./en-US/cswap/api/basic/01_error_code.json\": \"Py8D\",\n\t\"./en-US/cswap/api/basic/02_timestamp.json\": \"Ui1f\",\n\t\"./en-US/cswap/api/basic/03_digital_rule.json\": \"OGaA\",\n\t\"./en-US/cswap/api/basic/04_rate_limits.json\": \"dz5L\",\n\t\"./en-US/cswap/api/basic/05_system_time.json\": \"TbUJ\",\n\t\"./en-US/cswap/api/market/01_get_contracts.json\": \"Fui1\",\n\t\"./en-US/cswap/api/market/02_get_premiumIndex.json\": \"5uda\",\n\t\"./en-US/cswap/api/market/03_get_openInterest.json\": \"ewcP\",\n\t\"./en-US/cswap/api/market/04_get_kline.json\": \"FuQd\",\n\t\"./en-US/cswap/api/market/05_get_depth.json\": \"GbOE\",\n\t\"./en-US/cswap/api/market/06_get_ticker.json\": \"6xac\",\n\t\"./en-US/cswap/api/trade/00_post_trade_order.json\": \"JG85\",\n\t\"./en-US/cswap/api/trade/01_get_commissionRate.json\": \"3Csz\",\n\t\"./en-US/cswap/api/trade/01_get_leverage.json\": \"6Wqe\",\n\t\"./en-US/cswap/api/trade/03_post_leverage.json\": \"HWdZ\",\n\t\"./en-US/cswap/api/trade/04_post_allOpenOrders.json\": \"xM9z\",\n\t\"./en-US/cswap/api/trade/05_post_closeAllPositions.json\": \"A11g\",\n\t\"./en-US/cswap/api/trade/06_get_positions.json\": \"Uqg4\",\n\t\"./en-US/cswap/api/trade/07_get_balance.json\": \"DyCG\",\n\t\"./en-US/cswap/api/trade/08_get_forceOrders.json\": \"79Xw\",\n\t\"./en-US/cswap/api/trade/09_get_allFillOrders.json\": \"KXGF\",\n\t\"./en-US/cswap/api/trade/10_delete_trade_order.json\": \"Mwlf\",\n\t\"./en-US/cswap/api/trade/11_get_all_openOrders.json\": \"Ui0Y\",\n\t\"./en-US/cswap/api/trade/12_get_trade_order.json\": \"nj2w\",\n\t\"./en-US/cswap/api/trade/14_get_trade_allOrders.json\": \"BW7b\",\n\t\"./en-US/cswap/api/trade/15_get_margin_type.json\": \"Qb5x\",\n\t\"./en-US/cswap/api/trade/16_post_margin_type.json\": \"dI3A\",\n\t\"./en-US/cswap/api/trade/17_post_trade_positionMargin.json\": \"2WEb\",\n\t\"./en-US/cswap/websocket/account/01_balance.json\": \"bzx+\",\n\t\"./en-US/cswap/websocket/account/02_order.json\": \"K1eD\",\n\t\"./en-US/cswap/websocket/account/03_setting.json\": \"2Cei\",\n\t\"./en-US/cswap/websocket/introduce/01_connect.json\": \"lyY+\",\n\t\"./en-US/cswap/websocket/introduce/02_data_compress.json\": \"Q5Jp\",\n\t\"./en-US/cswap/websocket/introduce/03_heart_beat.json\": \"IMXD\",\n\t\"./en-US/cswap/websocket/introduce/04_subscribe.json\": \"rEmz\",\n\t\"./en-US/cswap/websocket/introduce/05_cancel_subscribe.json\": \"SBKE\",\n\t\"./en-US/cswap/websocket/market/01_trade_info.json\": \"dF/+\",\n\t\"./en-US/cswap/websocket/market/02_last_price.json\": \"GtO6\",\n\t\"./en-US/cswap/websocket/market/03_mark_price.json\": \"BwZb\",\n\t\"./en-US/cswap/websocket/market/04_depth.json\": \"fcau\",\n\t\"./en-US/cswap/websocket/market/05_bookTicker.json\": \"KrjX\",\n\t\"./en-US/cswap/websocket/market/06_kline.json\": \"sLxw\",\n\t\"./en-US/cswap/websocket/market/07_24hr_ticker.json\": \"ywsQ\",\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/q&a/2023-09-12.json\": \"WisP\",\n\t\"./en-US/spot/1_introduce.json\": \"y1S6\",\n\t\"./en-US/spot/api/account/00_get_account_balance.json\": \"HY4c\",\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/07_post_capital_innerTransfer_apply.json\": \"KPNz\",\n\t\"./en-US/spot/api/account/14.get_wallet_queryInnerTransferRecords.json\": \"9tS2\",\n\t\"./en-US/spot/api/account/21_get_account_allAccountBalance.json\": \"Exaw\",\n\t\"./en-US/spot/api/basic/01_server_url.json\": \"wWlE\",\n\t\"./en-US/spot/api/basic/03_error_code.json\": \"/sx7\",\n\t\"./en-US/spot/api/basic/04_rate_limits.json\": \"bIsO\",\n\t\"./en-US/spot/api/basic/04_server_url.json\": \"GK5R\",\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/market/05_get_quote_ticker.json\": \"mWiW\",\n\t\"./en-US/spot/api/market/06_get_market_agg_depth.json\": \"eCwL\",\n\t\"./en-US/spot/api/market/07_get_market_price.json\": \"p4oz\",\n\t\"./en-US/spot/api/market/08_get_market_book_ticker.json\": \"OdvA\",\n\t\"./en-US/spot/api/market/09_get_market_history_klines.json\": \"Turq\",\n\t\"./en-US/spot/api/market/10_get_ market_histroy_traders.json\": \"MGWO\",\n\t\"./en-US/spot/api/trade/01_post_trade_a_order.json\": \"ZnNv\",\n\t\"./en-US/spot/api/trade/01_post_trade_batchOrders.json\": \"pX3/\",\n\t\"./en-US/spot/api/trade/021_post_trade_order_cancel.json\": \"ev9X\",\n\t\"./en-US/spot/api/trade/022_post_trade_orders_cancel.json\": \"aTY/\",\n\t\"./en-US/spot/api/trade/023_post_cancelOpenOrders.json\": \"gz1R\",\n\t\"./en-US/spot/api/trade/023_post_trade_order_cancel_replace.json\": \"TA5G\",\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/077_get_trade_fill_details.json\": \"s+Dd\",\n\t\"./en-US/spot/api/trade/08_get_commissionRate.json\": \"sPli\",\n\t\"./en-US/spot/api/trade/09_cancel_all_after.json\": \"KWsz\",\n\t\"./en-US/spot/api/trade/100_post_one_oco_order.json\": \"R/1P\",\n\t\"./en-US/spot/api/trade/101_cancel_one_oco_order.json\": \"dd2V\",\n\t\"./en-US/spot/api/trade/102_get_one_oco_order.json\": \"MN46\",\n\t\"./en-US/spot/api/trade/103_get_all_pending_oco_order.json\": \"YC1x\",\n\t\"./en-US/spot/api/trade/104_get_all_history_oco_order.json\": \"JLQZ\",\n\t\"./en-US/spot/api/wallet/03_get_deposit_hisrec.json\": \"dXH3\",\n\t\"./en-US/spot/api/wallet/04_get_withdraw_history.json\": \"kh23\",\n\t\"./en-US/spot/api/wallet/05_post_wallets_coins.json\": \"zgmp\",\n\t\"./en-US/spot/api/wallet/06_post_wallets_withdraw.json\": \"YSKw\",\n\t\"./en-US/spot/api/wallet/13.get_wallet_queryDepositAddress.json\": \"rgh9\",\n\t\"./en-US/spot/api/wallet/14_get_risk_deposit_records.json\": \"CxZu\",\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_limit.json\": \"+dFG\",\n\t\"./en-US/spot/websocket/introduce/02_connect.json\": \"hDC3\",\n\t\"./en-US/spot/websocket/introduce/03_data_compress.json\": \"YUWz\",\n\t\"./en-US/spot/websocket/introduce/04_heart_beat.json\": \"Ze9p\",\n\t\"./en-US/spot/websocket/introduce/05_cancel_subscribe.json\": \"hlb8\",\n\t\"./en-US/spot/websocket/introduce/06_subscribe.json\": \"g2tG\",\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/spot/websocket/market/04_24hr_ticker.json\": \"P0Vd\",\n\t\"./en-US/spot/websocket/market/05_last_price.json\": \"fqiK\",\n\t\"./en-US/spot/websocket/market/06_book_ticker.json\": \"o9Mz\",\n\t\"./en-US/spot/websocket/market/07_depth_incr_info.json\": \"soQQ\",\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/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/account/18_get_trade_income_export.json\": \"/Pe4\",\n\t\"./en-US/swapV2/api/account/19_get_trade_user_commissionRate.json\": \"v5LS\",\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/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/market/19_get_historicalTrades.json\": \"xyiP\",\n\t\"./en-US/swapV2/api/market/20_get_trade_quote_bookTicker.json\": \"E4EJ\",\n\t\"./en-US/swapV2/api/market/21_get_quote_mark_price_klines.json\": \"VeQG\",\n\t\"./en-US/swapV2/api/market/22_get_quote_price_v2.json\": \"rCcB\",\n\t\"./en-US/swapV2/api/trade/00_post_trade_order_test.json\": \"TrnZ\",\n\t\"./en-US/swapV2/api/trade/01_post_trade_order.json\": \"YLkf\",\n\t\"./en-US/swapV2/api/trade/01_post_trade_order_vst.json\": \"dww0\",\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_check_pending_order.json\": \"fLAw\",\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/17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./en-US/swapV2/api/trade/18_set_positionSide.json\": \"wp4b\",\n\t\"./en-US/swapV2/api/trade/19_get_positionSide.json\": \"n7WW\",\n\t\"./en-US/swapV2/api/trade/20_cancel_replace_order.json\": \"vKvg\",\n\t\"./en-US/swapV2/api/trade/21_batch_cancel_replace_order.json\": \"nNrq\",\n\t\"./en-US/swapV2/api/trade/22_cancel_all_after.json\": \"6Ivy\",\n\t\"./en-US/swapV2/api/trade/22_post_closePosition.json\": \"JRrP\",\n\t\"./en-US/swapV2/api/trade/23_get_trade_allOrdersV2.json\": \"wYbs\",\n\t\"./en-US/swapV2/api/trade/24_get_maint_margin_ratio.json\": \"OkoV\",\n\t\"./en-US/swapV2/api/trade/25_get_fill_history_detail.json\": \"l3pU\",\n\t\"./en-US/swapV2/api/trade/26_get_user_position_history.json\": \"xptQ\",\n\t\"./en-US/swapV2/api/trade/27_get_position_margin_history.json\": \"bHz9\",\n\t\"./en-US/swapV2/api/trade/27_post_get_vst.json\": \"cn9g\",\n\t\"./en-US/swapV2/api/trade/28_post_twap_order.json\": \"6+7u\",\n\t\"./en-US/swapV2/api/trade/29_get_twap_open_orders.json\": \"2vkv\",\n\t\"./en-US/swapV2/api/trade/30_get_twap_history_orders.json\": \"BBsp\",\n\t\"./en-US/swapV2/api/trade/31_get_twap_order_detail.json\": \"NQ2q\",\n\t\"./en-US/swapV2/api/trade/32_cancel_twap_cancel_order.json\": \"iXtv\",\n\t\"./en-US/swapV2/api/trade/33_post_asset_mode.json\": \"xS3w\",\n\t\"./en-US/swapV2/api/trade/34_get_asset_mode.json\": \"ZFUX\",\n\t\"./en-US/swapV2/api/trade/35_get_multi_asset_rule.json\": \"jifI\",\n\t\"./en-US/swapV2/api/trade/36_get_margin_asset.json\": \"+eKI\",\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_interval.json\": \"0EuA\",\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\"./en-US/swapV2/websocket/market/04_quote_ticker.json\": \"xVTF\",\n\t\"./en-US/swapV2/websocket/market/05_last_trade_price.json\": \"gvF4\",\n\t\"./en-US/swapV2/websocket/market/06_last_mark_price.json\": \"pgER\",\n\t\"./en-US/swapV2/websocket/market/07_book_ticker.json\": \"wF+v\",\n\t\"./en-US/swapV2/websocket/market/08_depth_incr_info.json\": \"hH3F\",\n\t\"./zh-tw/agent/1_introduce.json\": \"Nfjq\",\n\t\"./zh-tw/agent/api/agent/01_get_Query_Invited_Users.json\": \"zsZ4\",\n\t\"./zh-tw/agent/api/agent/02_get_Daily_Commission_Query.json\": \"Gwkw\",\n\t\"./zh-tw/agent/api/agent/03_get_Query_agent_user_nformation.json\": \"P9RC\",\n\t\"./zh-tw/agent/api/agent/04_get_Query_the_deposit_details.json\": \"7XUQ\",\n\t\"./zh-tw/agent/api/agent/05_get_Query_API_transaction_commission.json\": \"IoyB\",\n\t\"./zh-tw/agent/api/agent/06_get_Query_partner_information.json\": \"8au9\",\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/changelog/2023-08-03.json\": \"9HpD\",\n\t\"./zh-tw/changelog/2023-08-11.json\": \"pV/D\",\n\t\"./zh-tw/changelog/2023-08-23.json\": \"bKtD\",\n\t\"./zh-tw/changelog/2023-09-18.json\": \"a/u1\",\n\t\"./zh-tw/changelog/2023-10-12.json\": \"DJaF\",\n\t\"./zh-tw/changelog/2023-11-10.json\": \"bGx6\",\n\t\"./zh-tw/changelog/2023-11-22.json\": \"axDH\",\n\t\"./zh-tw/changelog/2023-12-08.json\": \"+29D\",\n\t\"./zh-tw/changelog/2023-12-21.json\": \"CpXJ\",\n\t\"./zh-tw/changelog/2024-01-10.json\": \"KYMz\",\n\t\"./zh-tw/changelog/2024-01-23.json\": \"G8cI\",\n\t\"./zh-tw/changelog/2024-02-04.json\": \"NFKy\",\n\t\"./zh-tw/changelog/2024-02-23.json\": \"NuRj\",\n\t\"./zh-tw/changelog/2024-03-04.json\": \"3c71\",\n\t\"./zh-tw/changelog/2024-03-14.json\": \"Jip9\",\n\t\"./zh-tw/changelog/2024-03-19.json\": \"j7dp\",\n\t\"./zh-tw/changelog/2024-03-28.json\": \"ZNZv\",\n\t\"./zh-tw/changelog/2024-04-15.json\": \"i/xj\",\n\t\"./zh-tw/changelog/2024-04-25.json\": \"87c6\",\n\t\"./zh-tw/changelog/2024-05-23.json\": \"KSJz\",\n\t\"./zh-tw/changelog/2024-05-27.json\": \"5LYy\",\n\t\"./zh-tw/changelog/2024-06-13.json\": \"vBmL\",\n\t\"./zh-tw/changelog/2024-06-28.json\": \"khDw\",\n\t\"./zh-tw/changelog/2024-07-11.json\": \"vGFC\",\n\t\"./zh-tw/changelog/2024-07-22.json\": \"/chU\",\n\t\"./zh-tw/changelog/2024-07-30.json\": \"l7kI\",\n\t\"./zh-tw/changelog/2024-08-08.json\": \"F1dE\",\n\t\"./zh-tw/changelog/2024-08-17.json\": \"aG00\",\n\t\"./zh-tw/changelog/2024-08-22.json\": \"L5DY\",\n\t\"./zh-tw/changelog/2024-08-27.json\": \"TvGs\",\n\t\"./zh-tw/changelog/2024-09-11.json\": \"EMrv\",\n\t\"./zh-tw/changelog/2024-09-23.json\": \"nNlN\",\n\t\"./zh-tw/changelog/2024-10-09.json\": \"zB9+\",\n\t\"./zh-tw/changelog/2024-10-11.json\": \"ss+C\",\n\t\"./zh-tw/changelog/2024-10-16.json\": \"UDLl\",\n\t\"./zh-tw/changelog/2024-10-23.json\": \"nC6P\",\n\t\"./zh-tw/changelog/2024-10-24.json\": \"Aw6+\",\n\t\"./zh-tw/changelog/2024-10-30.json\": \"J9sz\",\n\t\"./zh-tw/changelog/2024-11-07.json\": \"R99K\",\n\t\"./zh-tw/changelog/2024-11-15.json\": \"aAh/\",\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_get_account_apiPermission.json\": \"m+RL\",\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/common/api/subAccount/11_post_capital_innerTransfer_apply.json\": \"S1Mk\",\n\t\"./zh-tw/common/api/subAccount/12.post_wallet_createSubDepositAddress.json\": \"mmsx\",\n\t\"./zh-tw/common/api/subAccount/15.get_wallet_querySubDepositAddress.json\": \"mcEH\",\n\t\"./zh-tw/common/api/subAccount/16.get_wallet_querySubDepositRecords.json\": \"Iuwz\",\n\t\"./zh-tw/common/api/subAccount/17.get_wallet_querySubInnerTransferRecords.json\": \"yVRY\",\n\t\"./zh-tw/common/api/subAccount/18_query_sub_account_transfer_history.json\": \"yGUm\",\n\t\"./zh-tw/common/api/subAccount/19_sub_account_transfer_support_coin.json\": \"lU9A\",\n\t\"./zh-tw/common/api/subAccount/20_sub_account_transfer.json\": \"7zc5\",\n\t\"./zh-tw/common/api/subAccount/22_sub_account_allAccountBalance.json\": \"mYOy\",\n\t\"./zh-tw/copyTrade/1_introduce.json\": \"Le/y\",\n\t\"./zh-tw/copyTrade/api/trader/01_get_currentTrack.json\": \"gp62\",\n\t\"./zh-tw/copyTrade/api/trader/02_post_close_currentTrack.json\": \"Fxil\",\n\t\"./zh-tw/copyTrade/api/trader/03_post_tpsl_currentTrack.json\": \"Sfdp\",\n\t\"./zh-tw/copyTrade/api/trader/04_spot_trader_sell_order.json\": \"kpfu\",\n\t\"./zh-tw/cswap/1_introduce.json\": \"2yPl\",\n\t\"./zh-tw/cswap/2_description.json\": \"ihU3\",\n\t\"./zh-tw/cswap/api/basic/01_error_code.json\": \"XCkz\",\n\t\"./zh-tw/cswap/api/basic/02_timestamp.json\": \"oPkH\",\n\t\"./zh-tw/cswap/api/basic/03_digital_rule.json\": \"WihS\",\n\t\"./zh-tw/cswap/api/basic/04_rate_limits.json\": \"p+dP\",\n\t\"./zh-tw/cswap/api/basic/05_system_time.json\": \"lC7j\",\n\t\"./zh-tw/cswap/api/market/01_get_contracts.json\": \"mCcU\",\n\t\"./zh-tw/cswap/api/market/02_get_premiumIndex.json\": \"nco7\",\n\t\"./zh-tw/cswap/api/market/03_get_openInterest.json\": \"pnyN\",\n\t\"./zh-tw/cswap/api/market/04_get_kline.json\": \"Yskp\",\n\t\"./zh-tw/cswap/api/market/05_get_depth.json\": \"2qcG\",\n\t\"./zh-tw/cswap/api/market/06_get_ticker.json\": \"PaEN\",\n\t\"./zh-tw/cswap/api/trade/00_post_trade_order.json\": \"YI4R\",\n\t\"./zh-tw/cswap/api/trade/01_get_commissionRate.json\": \"n+yS\",\n\t\"./zh-tw/cswap/api/trade/02_get_leverage.json\": \"bFqw\",\n\t\"./zh-tw/cswap/api/trade/03_post_leverage.json\": \"N7P3\",\n\t\"./zh-tw/cswap/api/trade/04_post_allOpenOrders.json\": \"0Lu1\",\n\t\"./zh-tw/cswap/api/trade/05_post_closeAllPositions.json\": \"vDcD\",\n\t\"./zh-tw/cswap/api/trade/06_get_positions.json\": \"+oba\",\n\t\"./zh-tw/cswap/api/trade/07_get_balance.json\": \"ptJe\",\n\t\"./zh-tw/cswap/api/trade/08_get_forceOrders.json\": \"D/10\",\n\t\"./zh-tw/cswap/api/trade/09_get_allFillOrders.json\": \"f4x/\",\n\t\"./zh-tw/cswap/api/trade/10_delete_trade_order.json\": \"01Ul\",\n\t\"./zh-tw/cswap/api/trade/11_get_all_openOrders.json\": \"TzVG\",\n\t\"./zh-tw/cswap/api/trade/12_get_trade_order.json\": \"c76v\",\n\t\"./zh-tw/cswap/api/trade/14_get_trade_allOrders.json\": \"I2ee\",\n\t\"./zh-tw/cswap/api/trade/15_get_margin_type.json\": \"qPGu\",\n\t\"./zh-tw/cswap/api/trade/16_post_margin_type.json\": \"LawJ\",\n\t\"./zh-tw/cswap/api/trade/17_post_trade_positionMargin.json\": \"eN7O\",\n\t\"./zh-tw/cswap/websocket/account/01_balance.json\": \"qHKX\",\n\t\"./zh-tw/cswap/websocket/account/02_order.json\": \"tdP1\",\n\t\"./zh-tw/cswap/websocket/account/03_setting.json\": \"PEUY\",\n\t\"./zh-tw/cswap/websocket/introduce/01_connect.json\": \"3tXb\",\n\t\"./zh-tw/cswap/websocket/introduce/02_data_compress.json\": \"CVyP\",\n\t\"./zh-tw/cswap/websocket/introduce/03_heart_beat.json\": \"vR2M\",\n\t\"./zh-tw/cswap/websocket/introduce/04_subscribe.json\": \"UYWd\",\n\t\"./zh-tw/cswap/websocket/introduce/05_cancel_subscribe.json\": \"2xEp\",\n\t\"./zh-tw/cswap/websocket/market/01_trade_info.json\": \"m2cs\",\n\t\"./zh-tw/cswap/websocket/market/02_last_price.json\": \"ntfQ\",\n\t\"./zh-tw/cswap/websocket/market/03_mark_price.json\": \"D6bT\",\n\t\"./zh-tw/cswap/websocket/market/04_depth.json\": \"pvqc\",\n\t\"./zh-tw/cswap/websocket/market/05_bookTicker.json\": \"exCQ\",\n\t\"./zh-tw/cswap/websocket/market/06_kline.json\": \"p1RX\",\n\t\"./zh-tw/cswap/websocket/market/07_24hr_ticker.json\": \"5LXd\",\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/q&a/2023-09-12.json\": \"Sd/4\",\n\t\"./zh-tw/spot/1_introduce.json\": \"z74M\",\n\t\"./zh-tw/spot/api/account/00_get_account_balance.json\": \"hIqz\",\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/07_post_capital_innerTransfer_apply.json\": \"iYO+\",\n\t\"./zh-tw/spot/api/account/14.get_wallet_queryInnerTransferRecords.json\": \"Jtu9\",\n\t\"./zh-tw/spot/api/account/21_get_account_allAccountBalance.json\": \"9SLF\",\n\t\"./zh-tw/spot/api/basic/01_server_url.json\": \"FVkd\",\n\t\"./zh-tw/spot/api/basic/03_error_code.json\": \"uv3h\",\n\t\"./zh-tw/spot/api/basic/04_rate_limits.json\": \"XvOK\",\n\t\"./zh-tw/spot/api/basic/04_server_url.json\": \"w7yn\",\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/market/05_get_quote_ticker.json\": \"wj44\",\n\t\"./zh-tw/spot/api/market/06_get_market_agg_depth.json\": \"cYhj\",\n\t\"./zh-tw/spot/api/market/07_get_market_price.json\": \"ymfm\",\n\t\"./zh-tw/spot/api/market/08_get_market_book_ticker.json\": \"Tbeq\",\n\t\"./zh-tw/spot/api/market/09_get_market_history_klines.json\": \"7UNC\",\n\t\"./zh-tw/spot/api/market/10_get_ market_histroy_traders.json\": \"cRRp\",\n\t\"./zh-tw/spot/api/trade/01_post_trade_aorder.json\": \"MZay\",\n\t\"./zh-tw/spot/api/trade/01_post_trade_batchOrders.json\": \"jKsK\",\n\t\"./zh-tw/spot/api/trade/021_post_trade_order_cancel.json\": \"l/8P\",\n\t\"./zh-tw/spot/api/trade/022_post_trade_orders_cancel.json\": \"uDFu\",\n\t\"./zh-tw/spot/api/trade/023_post_cancelOpenOrders.json\": \"BdSn\",\n\t\"./zh-tw/spot/api/trade/023_post_trade_order_cancel_replace.json\": \"qru4\",\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/077_get_trade_fill_details.json\": \"ui1J\",\n\t\"./zh-tw/spot/api/trade/08_get_commissionRate.json\": \"OkZ/\",\n\t\"./zh-tw/spot/api/trade/09_cancel_all_after.json\": \"IW4y\",\n\t\"./zh-tw/spot/api/trade/100_post_one_oco_order.json\": \"0DXm\",\n\t\"./zh-tw/spot/api/trade/101_cancel_one_oco_order.json\": \"cfpy\",\n\t\"./zh-tw/spot/api/trade/102_get_one_oco_order.json\": \"bM6w\",\n\t\"./zh-tw/spot/api/trade/103_get_all_pending_oco_order.json\": \"EsEh\",\n\t\"./zh-tw/spot/api/trade/104_get_all_history_oco_order.json\": \"bjJG\",\n\t\"./zh-tw/spot/api/wallet/03_get_deposit_hisrec.json\": \"ZlbJ\",\n\t\"./zh-tw/spot/api/wallet/04_get_withdraw_history.json\": \"DNed\",\n\t\"./zh-tw/spot/api/wallet/05_post_wallets_coins.json\": \"BYvq\",\n\t\"./zh-tw/spot/api/wallet/06_post_wallets_withdraw.json\": \"yxdj\",\n\t\"./zh-tw/spot/api/wallet/13.get_wallet_queryDepositAddress.json\": \"WnFl\",\n\t\"./zh-tw/spot/api/wallet/14_get_risk_deposit_records.json\": \"JbVL\",\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_limit.json\": \"WMCK\",\n\t\"./zh-tw/spot/websocket/introduce/02_connect.json\": \"Jf00\",\n\t\"./zh-tw/spot/websocket/introduce/03_data_compress.json\": \"eQk0\",\n\t\"./zh-tw/spot/websocket/introduce/04_heart_beat.json\": \"nCmZ\",\n\t\"./zh-tw/spot/websocket/introduce/05_subscribe.json\": \"D11h\",\n\t\"./zh-tw/spot/websocket/introduce/06_cancel_subscribe.json\": \"8PHc\",\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/spot/websocket/market/04_24hr_ticker.json\": \"7Biw\",\n\t\"./zh-tw/spot/websocket/market/05_last_price.json\": \"q1yk\",\n\t\"./zh-tw/spot/websocket/market/06_book_ticker.json\": \"vVRe\",\n\t\"./zh-tw/spot/websocket/market/07_depth_incr_info.json\": \"MY8u\",\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/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/account/18_get_trade_income_export.json\": \"tvLy\",\n\t\"./zh-tw/swapV2/api/account/19_get_trade_user_commissionRate.json\": \"IIQZ\",\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/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/market/19_get_historicalTrades.json\": \"iQjo\",\n\t\"./zh-tw/swapV2/api/market/20_get_trade_quote_bookTicker.json\": \"1iLz\",\n\t\"./zh-tw/swapV2/api/market/21_get_quote_mark_price_klines.json\": \"5vst\",\n\t\"./zh-tw/swapV2/api/market/22_get_quote_price_v2.json\": \"OSRE\",\n\t\"./zh-tw/swapV2/api/trade/00_post_trade_order_test.json\": \"CwX9\",\n\t\"./zh-tw/swapV2/api/trade/01_post_trade_order.json\": \"vDBD\",\n\t\"./zh-tw/swapV2/api/trade/01_post_trade_order_vst.json\": \"6dPc\",\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_check_pending_order.json\": \"26Si\",\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/17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./zh-tw/swapV2/api/trade/18_set_positionSide.json\": \"QEfH\",\n\t\"./zh-tw/swapV2/api/trade/19_get_positionSide.json\": \"jzOs\",\n\t\"./zh-tw/swapV2/api/trade/20_cancel_replace_order.json\": \"4bTX\",\n\t\"./zh-tw/swapV2/api/trade/21_batch_cancel_replace_order.json\": \"/nLp\",\n\t\"./zh-tw/swapV2/api/trade/22_cancel_all_after.json\": \"1pQ9\",\n\t\"./zh-tw/swapV2/api/trade/22_post_closePosition.json\": \"/qZT\",\n\t\"./zh-tw/swapV2/api/trade/23_get_trade_allOrdersV2.json\": \"iRbd\",\n\t\"./zh-tw/swapV2/api/trade/24_get_maint_margin_ratio.json\": \"OyBm\",\n\t\"./zh-tw/swapV2/api/trade/25_get_fill_history_detail.json\": \"PJcf\",\n\t\"./zh-tw/swapV2/api/trade/26_get_user_position_history.json\": \"sWA2\",\n\t\"./zh-tw/swapV2/api/trade/27_get_position_margin_history.json\": \"5iQm\",\n\t\"./zh-tw/swapV2/api/trade/27_post_get_vst.json\": \"dtEQ\",\n\t\"./zh-tw/swapV2/api/trade/28_post_twap_order.json\": \"50Mv\",\n\t\"./zh-tw/swapV2/api/trade/29_get_twap_open_orders.json\": \"0L6n\",\n\t\"./zh-tw/swapV2/api/trade/30_get_twap_history_orders.json\": \"srGS\",\n\t\"./zh-tw/swapV2/api/trade/31_get_twap_order_detail.json\": \"+xXY\",\n\t\"./zh-tw/swapV2/api/trade/32_cancel_twap_order.json\": \"5pjb\",\n\t\"./zh-tw/swapV2/api/trade/33_post_asset_mode.json\": \"thBV\",\n\t\"./zh-tw/swapV2/api/trade/34_get_asset_mode.json\": \"cRAY\",\n\t\"./zh-tw/swapV2/api/trade/35_get_multi_asset_rule.json\": \"EWHP\",\n\t\"./zh-tw/swapV2/api/trade/36_get_margin_asset.json\": \"/HCz\",\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_interval.json\": \"bP1Q\",\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\t\"./zh-tw/swapV2/websocket/market/04_quote_ticker.json\": \"AAve\",\n\t\"./zh-tw/swapV2/websocket/market/05_last_trade_price.json\": \"lqZR\",\n\t\"./zh-tw/swapV2/websocket/market/06_last_mark_price.json\": \"zVt3\",\n\t\"./zh-tw/swapV2/websocket/market/07_book_ticker.json\": \"5TRZ\",\n\t\"./zh-tw/swapV2/websocket/market/08_depth_incr_info.json\": \"PEl6\"\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\":\"實時推送。\"},{\"type\":\"normal\",\"text\":\"推送最新標記價格變動。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @markPrice,比如BTC-USDT@markPrice。\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@markPrice\\\"}\"},\"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@markPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"最新標記價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/06_last_mark_price.json\n// module id = zVt3\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 \"method\" => $method\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\":\"html\",\"text\":\"用於子帳戶在bingx平台內互相轉賬(子帳戶轉子帳戶、子帳戶轉主帳戶),本接口不可用於主帳戶內轉,主賬號內轉請使用專用接口 (主)用戶內部轉賬\"},{\"type\":\"html\",\"text\":\"此接口需要主帳戶API KEY設置權限:允許子帳戶內轉,可前往 配置API KEY權限 \"},{\"type\":\"html\",\"text\":\"註:使用此接口前,請確認已經對相應子帳號授權內轉權限,可調用接口: 授權子帳號內轉 \"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"amount\":20,\"coin\":\"usdt\",\"userAccount\":\"16689999\",\"userAccountType\":1,\"walletType\":1},\"response\":{\"code\":0,\"timestamp\":1702520425652,\"data\":{\"id\":\"12*******12\"}}},\"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\":\"電話區號,當userAccountType=2時必填。\"},{\"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\":\"平台返回內轉記錄唯一id\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"Get sub-account deposit address\"},{\"type\":\"normal\",\"text\":\"This endpoint is used for the parent user to query the deposit address of a specific coin for a child user in the blockchain where the child user is located. Only available for parent users.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccount/deposit/address\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"limit\":\"100\",\"offset\":0,\"subUid\":16239999},\"response\":{\"code\":0,\"timestamp\":1700741585439,\"data\":{\"data\":[],\"total\":0}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Name of the transfer coin\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"Yes\",\"description\":\"Sub-account UID\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"List of deposit addresses\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Coin name\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Network name\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"Deposit address\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"Deposit address with prefix\"},{\"name\":\"tag\",\"type\":\"string\",\"description\":\"Address tag\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0: Activated, 1: Applied, 2: Not applied\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/15.get_wallet_querySubDepositAddress.json\n// module id = zfQA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query currency deposit and withdrawal data\"},{\"type\":\"normal\",\"text\":\"Get information of coins,And query the limit corresponding to the coins\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/config/getall\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702623270607\"},\"response\":{\"code\":0,\"timestamp\":1702623271477,\"data\":[{\"coin\":\"BTC\",\"name\":\"BTC\",\"networkList\":[{\"name\":\"BTC\",\"network\":\"BTC\",\"isDefault\":true,\"minConfirm\":2,\"withdrawEnable\":true,\"depositEnable\":true,\"withdrawFee\":\"0.0006\",\"withdrawMax\":\"1.17522\",\"withdrawMin\":\"0.0005\",\"depositMin\":\"0.0002\"},{\"name\":\"BTC\",\"network\":\"BEP20\",\"isDefault\":false,\"minConfirm\":15,\"withdrawEnable\":true,\"depositEnable\":true,\"withdrawFee\":\"0.0000066\",\"withdrawMax\":\"1.17522\",\"withdrawMin\":\"0.0000066\",\"depositMin\":\"0.0002\"}]}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Coin identification\"},{\"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\":\"coin\",\"type\":\"string\",\"description\":\"Coin identification\"},{\"name\":\"name\",\"type\":\"string\",\"description\":\"Coin name\"},{\"name\":\"networkList\",\"type\":\"Network\",\"description\":\"Network information\"}]},{\"type\":\"Network\",\"key\":\"key1\",\"data\":[{\"name\":\"name\",\"type\":\"string\",\"description\":\"Network name\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Network identification\"},{\"name\":\"depositEnable\",\"type\":\"boolean\",\"description\":\"Whether the currency is enabled for deposit\"},{\"name\":\"depositMin\",\"type\":\"decimal\",\"description\":\"Minimum deposit amount\"},{\"name\":\"minConfirm\",\"type\":\"int64\",\"description\":\"Minimum number of confirmed blocks\"},{\"name\":\"isDefault\",\"type\":\"boolean\",\"description\":\"Is it the default network\"},{\"name\":\"withdrawEnable\",\"type\":\"boolean\",\"description\":\"Is the coin open for withdrawal\"},{\"name\":\"withdrawFee\",\"type\":\"float64\",\"description\":\"withdraw fee\"},{\"name\":\"withdrawMax\",\"type\":\"float64\",\"description\":\"Maximum withdrawal amount(Withdrawal limit)\"},{\"name\":\"withdrawMin\",\"type\":\"float64\",\"description\":\"Minimum withdrawal amount\"},{\"name\":\"withdrawDesc\",\"type\":\"string\",\"description\":\"Description of withdrawal\"},{\"name\":\"withdrawPrecision\",\"type\":\"int\",\"description\":\"Withdrawal precision\"},{\"name\":\"depositPrecision\",\"type\":\"int\",\"description\":\"Deposit precision\"},{\"name\":\"contractAddress\",\"type\":\"int\",\"description\":\"Contract address\"},{\"name\":\"needTagOrMemo\",\"type\":\"String\",\"description\":\"Whether memo or tag is required, true: required, false: not required\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/05_post_wallets_coins.json\n// module id = zgmp\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_get_account_apiPermission\": \"m+RL\",\n\t\"./02_get_account_apiPermission.json\": \"m+RL\",\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\"./11_post_capital_innerTransfer_apply\": \"S1Mk\",\n\t\"./11_post_capital_innerTransfer_apply.json\": \"S1Mk\",\n\t\"./12.post_wallet_createSubDepositAddress\": \"mmsx\",\n\t\"./12.post_wallet_createSubDepositAddress.json\": \"mmsx\",\n\t\"./15.get_wallet_querySubDepositAddress\": \"mcEH\",\n\t\"./15.get_wallet_querySubDepositAddress.json\": \"mcEH\",\n\t\"./16.get_wallet_querySubDepositRecords\": \"Iuwz\",\n\t\"./16.get_wallet_querySubDepositRecords.json\": \"Iuwz\",\n\t\"./17.get_wallet_querySubInnerTransferRecords\": \"yVRY\",\n\t\"./17.get_wallet_querySubInnerTransferRecords.json\": \"yVRY\",\n\t\"./18_query_sub_account_transfer_history\": \"yGUm\",\n\t\"./18_query_sub_account_transfer_history.json\": \"yGUm\",\n\t\"./19_sub_account_transfer_support_coin\": \"lU9A\",\n\t\"./19_sub_account_transfer_support_coin.json\": \"lU9A\",\n\t\"./20_sub_account_transfer\": \"7zc5\",\n\t\"./20_sub_account_transfer.json\": \"7zc5\",\n\t\"./22_sub_account_allAccountBalance\": \"mYOy\",\n\t\"./22_sub_account_allAccountBalance.json\": \"mYOy\",\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\":\"代理KOL可以使用此介面査詢受邀下級用戶的基本資訊。\"},{\"type\":\"html\",\"text\":\"
  • 開始時間<結束時間,結束時間-開始時間<=30天。 如果不填寫,將査詢所有數據.
  • \"},{\"type\":\"html\",\"text\":\"
  • 只有具有驗證UID的代理才能使用此功能。 3.蒐索在startTime和endTime之間注册的下級用戶,按註冊時間從最近到最近排序。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteAccountList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":\"1\",\"pageSize\":\"2\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1690428366803,\"data\":{\"list\":[{\"uid\":24828902,\"ownInviteCode\":\"LYA1453\",\"superiorsUid\":2293934,\"InvitationCode\":\"LYA2023\",\"registerDateTime\":1688992720000,\"directInvitation\":false,\"kycResult\":\"false\",\"deposit\":false,\"trade\":false,\"userLevel\":0,\"commissionRatio\":3,\"currentBenefit\":0,\"benefitRatio\":0,\"benefitExpiration\":0}],\"total\":1,\"currentAgentUid\":1115195195666423800}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"開始時間戳(毫秒),最大査詢視窗為30天。 如果要檢索所有數據,可以將startTime和endTime欄位留空。\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"結束時間戳(毫秒),最大査詢視窗為30天。 如果査詢所有數據,startTime和endTime可以留空\"},{\"name\":\"lastUid\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"當査詢的數據超過10000時,必須傳輸用戶UID。不需要傳遞第一個請求,之後每次傳遞當前頁面的最後一個UID\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁碼必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"頁數必須大於0,最大值為200\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"請求有效時間視窗,以毫秒為組織。 如果未提供,預設值為5秒。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求時間戳記(毫秒)\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"string\",\"description\":\"受邀用戶UID\"},{\"name\":\"ownInviteCode\",\"type\":\"string\",\"description\":\"受邀用戶的邀請碼\"},{\"name\":\"inviterSid\",\"type\":\"long\",\"description\":\"上級Uid\"},{\"name\":\"InvitationCode\",\"type\":\"string\",\"description\":\"上級邀請碼\"},{\"name\":\"registerTime\",\"type\":\"long\",\"description\":\"註冊時間戳,組織:毫秒\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true:直接邀請,false:間接邀請\"},{\"name\":\"kycResult\",\"type\":\"string\",\"description\":\"true:KYC,false:無KYC\"},{\"name\":\"deposit\",\"type\":\"boolean\",\"description\":\"true(已存入),false(未存入)\"},{\"name\":\"balanceVolume\",\"type\":\"string\",\"description\":\"淨資產(美元)\"},{\"name\":\"trade\",\"type\":\"boolean\",\"description\":\"true:已交易,false:未交易,不包括使用試用基金或額外基金進行的交易\"},{\"name\":\"userLevel\",\"type\":\"int\",\"description\":\"客戶級別\"},{\"name\":\"commissionRatio\",\"type\":\"int\",\"description\":\"傭金百分比,單位:%\"},{\"name\":\"currentBenefit \",\"type\":\"int\",\"description\":\"當前福利管道:0-無福利,1-費用返現,2-永久費用折扣\"},{\"name\":\"benefitRatio\",\"type\":\"int\",\"description\":\"交易手續費减免百分比,單位:%\"},{\"name\":\"benefitExpiration\",\"type\":\"long\",\"description\":\"福利到期時間戳記,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/01_get_Query_Invited_Users.json\n// module id = zsZ4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"資產劃轉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/api/v3/post/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/post/asset/transfer\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"asset\":\"USDT\",\"amount\":\"1095\",\"type\":\"FUND_PFUTURES\"},\"response\":{\"tranId\":\"17********28\"}},\"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.95d127ce922e93c0f0a3.js b/static/js/app.95d127ce922e93c0f0a3.js new file mode 100644 index 00000000..3d5e8034 --- /dev/null +++ b/static/js/app.95d127ce922e93c0f0a3.js @@ -0,0 +1,2 @@ +webpackJsonp([3],{"+29D":function(e,t){e.exports=[{type:"title",text:"2023-12-08"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"html",text:"現貨:24小時價格變動新增價格百分之字段"},{type:"html",text:"現貨:查詢委託訂單列表支持symbol非必填,不填寫symbol字段會返回用戶所有幣對的當前委託單"},{type:"html",text:"永續一鍵平倉接口: 新增”symbol“非必填string字段,不填市價平倉所有幣對持倉,填寫後市價平掉對應幣對倉位"},{type:"html",text:"永續撤銷全部訂單接口: 1,入參”symbol“改為非必填,不填時撤銷所有訂單,填入時撤銷對應幣對的訂單 2,入參新增”type“非必填字段,填寫時撤銷指定類型的訂單,不填撤銷所有訂單類型的訂單"},{type:"html",text:"子賬戶:查詢子賬戶列表:調整入參字段limit:最大1000"},{type:"html",text:"子賬戶:創建子賬戶apikey:入參字段permissions,新增參數值:5-提幣"}]}]},"+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:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/subAccount/v1/create",protocol:"https",method:"POST",payload:{recvWindow:1e4,subAccountString:"abc123456"},response:{code:0,timestamp:1702288510557,data:{subUid:"16777654",subAccountString:"abc123456"}}},params:[{type:"Request",key:"request",data:[{name:"subAccountString",type:"string",required:"yes",description:"Sub account username(Starting with a letter, containing a number, and longer than 6 characters)"},{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"}]}]}]},"+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 on
    BingXUpon 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:"common",path:"/zh-tw/common/introduce",name:"聯繫我們",content:[{type:"html",text:"歡迎使用BingX開發者文檔。"},{type:"normal",text:"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 "},{type:"html",text:"如有問題反饋可加入:API問題telegram電報群"}]}},"+W0b":function(e,t){e.exports=[{type:"hash",text:"Sub-account internal transfer"},{type:"html",text:"Used for transferring funds between sub-accounts within the Bingx platform (sub-account to sub-account, sub-account to main account). This api cannot be used for transferring funds within the main account or from the main account to a sub-account. To initiate transfers within the main account, please use the dedicated api (Main) User Internal Transfer."},{type:"html",text:"This api requires the main account API KEY permission to be set as 'allow sub-account transfer'. You can go to configure API KEY permissions."},{type:"html",text:"Note: Before using this interface, please make sure that the corresponding sub-account has been authorized for internal transfers. You can use the api Authorize Sub-Account Internal Transfers."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply",protocol:"https",method:"POST",payload:{amount:20,coin:"usdt",userAccount:"16689999",userAccountType:1,walletType:1},response:{code:0,timestamp:1702520425652,data:{id:"12*******12"}}},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 for telephone, required when userAccountType=2."},{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:"The platform returns the unique ID of the internal transfer record."}]}]}]},"+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 https://open-api.bingx.com/openApi/user/auth/userDataStream"},{type:"normal",text:"CURL",style:{"font-weight":"bold"}},{type:"normal",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"}]}]}]},"+dFG":function(e,t){e.exports=[{type:"hash",text:"Connection Limits"},{type:"normal",text:"A single websocket is limited to a maximum of 200 topics; exceeding this will return error code 100416."},{type:"normal",text:"A single IP is limited to a maximum of 60 websockets; exceeding this will return error code 100419."}]},"+eKI":function(e,t){e.exports=[{type:"hash",text:"Query Multi-Assets Margin"},{type:"normal",text:"Query multi-assets margin"},{type:"warning",text:"Only available for live trading, live trading domain: https://open-api.bingx.com"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"normal",text:"Interface Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/user/marginAssets",protocol:"https",method:"GET",payload:{timestamp:1730863321895},response:{code:0,msg:"",data:[{currency:"USDC",totalAmount:"0.00000000",availableTransfer:"0.00000000",latestMortgageAmount:"0.00000000"},{currency:"USDT",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"},{currency:"BTC",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"},{currency:"ETH",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"}]},errors:[{desc:"",sample:{code:109500,msg:"Account Service Unavailable, err:symbol not exist",data:{}}}]},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 in milliseconds"}]},{type:"Response",key:"response",data:[{name:"currency",type:"string",description:"Margin assets, such as BTC and ETH etc."},{name:"totalAmount",type:"string",description:"Total amount of margin assets."},{name:"availableTransfer",type:"string",description:"Current available amount for transfer out, dynamic data needs to be re-queried and calculated after each transfer."},{name:"latestMortgageAmount",type:"string",description:"Latest collateral amount available."}]}]}]},"+eZJ":function(e,t,i){var r={"./00_post_trade_order.json":"JG85","./01_get_commissionRate.json":"3Csz","./01_get_leverage.json":"6Wqe","./03_post_leverage.json":"HWdZ","./04_post_allOpenOrders.json":"xM9z","./05_post_closeAllPositions.json":"A11g","./06_get_positions.json":"Uqg4","./07_get_balance.json":"DyCG","./08_get_forceOrders.json":"79Xw","./09_get_allFillOrders.json":"KXGF","./10_delete_trade_order.json":"Mwlf","./11_get_all_openOrders.json":"Ui0Y","./12_get_trade_order.json":"nj2w","./14_get_trade_allOrders.json":"BW7b","./15_get_margin_type.json":"Qb5x","./16_post_margin_type.json":"dI3A","./17_post_trade_positionMargin.json":"2WEb"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="+eZJ"},"+hJF":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("Wd1J").keys(),n=[],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:"
  • 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:"
  • 80020 - risk forbidden
  • "},{type:"html",text:"
  • 100004 - Permission denied as the API key was created without the permission
  • "},{type:"html",text:"
  • 100419 - IP does not match IP whitelist
  • "},{type:"html",text:"
  • 101204 - Insufficient margin
  • "},{type:"html",text:"
  • 80013 - The number of your entrusted orders has reached the system limit. If you need to place an order, please cancel other orders first
  • "},{type:"html",text:"
  • 80018 - order is already filled
  • "},{type:"html",text:"
  • 80019 - The order is being processed. Please use the allOrders api to retrieve the order details later
  • "},{type:"normal",text:"100400",children:[{type:"html",text:"arguments invalid"},{type:"html",text:"miss arguments"}]},{type:"html",text:"
  • 100412 - Null signature
  • "},{type:"html",text:"
  • 100413 - Incorrect apiKey
  • "},{type:"html",text:"
  • 100421 - Null timestamp or timestamp mismatch
  • "},{type:"html",text:"
  • 100410 - rate limitation
  • "},{type:"html",text:"
  • 101209 - The maximum position value for this leverage is ** USDT
  • "},{type:"html",text:"
  • 101212 - Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again
  • "},{type:"html",text:"
  • 101215 - The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.
  • "},{type:"html",text:"
  • 101414 - The maximum leverage for the trading pair is *, please reduce the leverage
  • "},{type:"html",text:"
  • 101415 - This trading pair is suspended from opening new position
  • "},{type:"html",text:"
  • 101460 - The order price should be higher than the estimated liquidation price of the long position
  • "},{type:"html",text:"
  • 101500 - rpc timeout
  • "},{type:"html",text:"
  • 101514 - You're temporarily suspended from opening positions. Please try again later
  • "},{type:"html",text:"
  • 109201 - The same order number is only allowed to be submitted once within 1 second.
  • "},{type:"normal",text:"101211",children:[{type:"html",text:"Order price should be lower than*"},{type:"html",text:"Order price should be higher than*"}]},{type:"normal",text:"80012",children:[{type:"html",text:"GetMarketTrades getContractInfo failled"},{type:"html",text:"symbol not exist"},{type:"html",text:"invalid parameter"},{type:"html",text:"Service Unavailable"},{type:"html",text:"leverage illegal"},{type:"html",text:"connect: connection refused"},{type:"html",text:"margin is not enough"},{type:"html",text:"startTime is later than endTime"},{type:"html",text:"OpenInterestNotExist"},{type:"html",text:"The current system is busy, please try again later"},{type:"html",text:"invalid connection"},{type:"html",text:"stop order cnt hit limit 50"},{type:"html",text:"network failed"},{type:"html",text:"trading has been locked"},{type:"html",text:"position limit"}]},{type:"normal",text:"101400",children:[{type:"html",text:"No position to close"},{type:"html",text:"Order size error"},{type:"html",text:"Insufficient margin"},{type:"html",text:"Must be lower than the maximum callback rate of 90%"},{type:"html",text:"Must be greater than the minimum callback rate of 0.1%"},{type:"html",text:"Invalid Parameter"}]},{type:"normal",text:"80001",children:[{type:"html",text:"tickers is nil"},{type:"html",text:"Request failed"},{type:"html",text:"service has some errors, order not exist"},{type:"html",text:"orderId and clientOrderId are both empty, orderId and clientOrderId are both empty"},{type:"html",text:"order state illegal, order not exist"},{type:"html",text:"the account has positions or pending orders"},{type:"html",text:"margin is not enough"},{type:"html",text:"You're temporarily suspended from opening positions. Please try again later"},{type:"html",text:"order state illegalorder not exist"},{type:"html",text:"Mismatch type"},{type:"html",text:"At present, the actual position is occupied by a Limit Order. If you need to close the position, please cancel other orders first"},{type:"html",text:"trading strategy available is false"},{type:"html",text:"order not exist"},{type:"html",text:"The maximum leverage for the trading pair is 5, please reduce the leverage"},{type:"html",text:"Order size error"},{type:"html",text:"The current system is 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.
  • "}]},"+oba":function(e,t){e.exports=[{type:"hash",text:"查詢倉位"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/cswap/v1/user/positions",protocol:"https",method:"GET",payload:{symbol:"BTC-USD"},response:{code:0,msg:"",data:[{symbol:"BTC-USD",positionId:0x18ff065cb8d00000,positionSide:"LONG",isolated:!1,positionAmt:"3",availableAmt:"3",unrealizedProfit:"-0.00010485",initialMargin:"0.00110845",liquidationPrice:2024.7812708419876,avgPrice:"67662",leverage:4,markPrice:"66098.9",riskRate:"0.00013841",maxMarginReduction:"0",updateTime:1718409600901},{symbol:"ETH-USD",positionId:0x18ed4110a0d00000,positionSide:"LONG",isolated:!1,positionAmt:"376",availableAmt:"376",unrealizedProfit:"-0.08051938",initialMargin:"0.19994044",liquidationPrice:630.4805786791729,avgPrice:"3761.12",leverage:5,markPrice:"3480.77",riskRate:"0.00096807",maxMarginReduction:"0",updateTime:1718409600705}]}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USD, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int32",description:"狀態碼"},{name:"msg",type:"string",description:"描述信息"},{name:"timestamp",type:"int64",description:"響應生成時間點,單位:毫秒"},{name:"data",type:"List",description:"倉位list"}]},{type:"Data",key:"data",data:[{name:"symbol",type:"string",description:"交易對"},{name:"positionId",type:"string",description:"仓位號"},{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:"initialMargin",type:"string",description:"初始保證金"},{name:"liquidationPrice",type:"float64",description:"強平價"},{name:"avgPrice",type:"string",description:"開仓均價"},{name:"leverage",type:"int32",description:"槓桿"},{name:"markPrice",type:"string",description:"標記價格"},{name:"riskRate",type:"string",description:"風險率"},{name:"maxMarginReduction",type:"string",description:"最大可減少保證金"},{name:"updateTime",type:"int64",description:"仓位更新時間,毫秒時間戳"}]}]}]},"+xXY":function(e,t){e.exports=[{type:"hash",text:"TWAP委託詳情"},{type:"normal",text:"用於查詢TWAP委託訂單的詳情信息 "},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/twap/orderDetail",protocol:"https",method:"GET",payload:{mainOrderId:"12312435134",timestamp:1702731661854,recvWindow:"0"},response:{code:0,msg:"",timestamp:1702731661854,data:{symbol:"BNB-USDT",side:"BUY",positionSide:"LONG",priceType:"constant",priceVariance:"2000",triggerPrice:"68000",interval:8,amountPerOrder:"0.111",totalAmount:"0.511",orderStatus:"Running",executedQty:"0.1",duration:800,maxDuration:9e3,createdTime:1702731661854,updateTime:1702731661854}}},params:[{type:"Request",key:"request",data:[{name:"mainOrderId",type:"string",required:"是",description:"TWAP委託訂單編號"},{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:"mainOrderId",type:"string",description:"TWAP委託訂單編號"},{name:"side",type:"string",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",description:"LONG 或 SHORT"},{name:"priceType",type:"string",description:"價格限制類型,constant:價格間距,percentage:滑點"},{name:"priceVariance",type:"string",description:"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)"},{name:"triggerPrice",type:"string",description:"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單"},{name:"interval",type:"int64",description:"策略订单拆单后,委托下单的时间间隔,5-120s之间"},{name:"amountPerOrder",type:"string",description:"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。"},{name:"totalAmount",type:"string",description:"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。"},{name:"orderStatus",type:"string",description:"New: 新建 /Running:運作中/Canceling:撤銷單中/Filled:全部成交/PartiallyFilled:部分成交/Pending:未觸發/PartiallyFilledAndResidueFailed:部分成交(剩餘委託失敗),演算法單狀態/ PartiallyFilledAndResidueCancelled:部分成交(剩餘撤銷),演算法單狀態/Cancelled:已撤銷(不存在部分成交)/Failed:委托失败(不存在部分成交)"},{name:"executedQty",type:"string",description:"成交量"},{name:"duration",type:"int64",description:"已執行時間,單位秒。執行時間到期後委託單將被取消。 "},{name:"maxDuration",type:"int64",description:"最大執行時間執行時間,單位:秒。"},{name:"createdTime",type:"int64",description:"訂單創建時間,單位:毫秒"},{name:"updateTime",type:"int64",description:"訂單更新時間,單位:毫秒"}]}]}]},"/1k/":function(e,t){e.exports=[{type:"hash",text:"查詢訂單詳情"},{type:"normal",text:"查詢訂單詳情"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/order",protocol:"https",method:"GET",payload:{orderId:"1736012449498123456",symbol:"OP-USDT",timestamp:"1702733255486"},response:{code:0,msg:"",data:{order:{symbol:"OP-USDT",orderId:0x18178e2001fdcd00,side:"SELL",positionSide:"LONG",type:"LIMIT",origQty:"1.0",price:"2.1710",executedQty:"0.0",avgPrice:"0.0000",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"PENDING",time:1702732596168,updateTime:1702732596188,clientOrderId:"l*****e",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:"MARK_PRICE",stopGuaranteed:!1,triggerOrderId:0x18178e2001fdcd00}}},errors:[{desc:"",sample:{code:80016,msg:"order does not exist",data:{}}},{desc:"",sample:{code:109414,msg:"Request failed",data:{}}}]},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:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"reduceOnly",type:"string",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{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,系統會將該字段轉為英文小寫"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"},{name:"triggerOrderId",type:"int64",required:"no",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:"已撤銷"}]}]}]},"/Fs7":function(e,t){e.exports=[{type:"hash",text:"Cancel All Open 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:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/allOpenOrders",protocol:"https",method:"DELETE",payload:{recvWindow:"0",symbol:"ATOM-USDT",timestamp:"1702732849363"},response:{code:0,msg:"",data:{success:[{symbol:"ATOM-USDT",orderId:0x18178ef724070c00,side:"SELL",positionSide:"SHORT",type:"LIMIT",origQty:"3.00",price:"13.044",executedQty:"0.00",avgPrice:"0.000",cumQuote:"0",stopPrice:"",profit:"0",commission:"0",status:"CANCELLED",time:1702732816465,updateTime:1702732816488,clientOrderId:"",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:""},{symbol:"ATOM-USDT",orderId:0x18178ef724070c00,side:"BUY",positionSide:"SHORT",type:"LIMIT",origQty:"3.00",price:"11.292",executedQty:"0.00",avgPrice:"0.000",cumQuote:"0",stopPrice:"",profit:"0",commission:"0",status:"CANCELLED",time:1702732816820,updateTime:1702732816839,clientOrderId:"",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:""}],failed:[{orderId:111111,clientOrderId:"111111",errorCode:80012,errorMessage:"cancel order failed"},{orderId:222222,clientOrderId:"222222",errorCode:80012,errorMessage:"cancel order failed"}]}}},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 you do not fill this field,will delete all type of orders'},{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:"LIST",description:"list of failed orders"}]},{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:"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order"},{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:"FailOrder",key:"failedOrder",data:[{name:"orderId",type:"int64",description:"Order ID"},{name:"clientOrderId",type:"string",description:"Customized order ID for users"},{name:"errorCode",type:"int64",description:"error code, 0 means successfully response, others means response failure"},{name:"errorMessage",type:"string",description:"Error Details Description"}]}]}]},"/HCz":function(e,t){e.exports=[{type:"hash",text:"查詢聯合保證金抵押資產情況"},{type:"normal",text:"查詢聯合保證金抵押資產情況"},{type:"warning",text:"僅實盤可以調用,實盤域名:https://open-api.bingx.com"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/user/marginAssets",protocol:"https",method:"GET",payload:{timestamp:1730863321895},response:{code:0,msg:"",data:[{currency:"USDC",totalAmount:"0.00000000",availableTransfer:"0.00000000",latestMortgageAmount:"0.00000000"},{currency:"USDT",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"},{currency:"BTC",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"},{currency:"ETH",totalAmount:"6.89886320",availableTransfer:"6.89886320",latestMortgageAmount:"6.89886320"}]},errors:[{desc:"",sample:{code:109500,msg:"Account Service Unavailable, err:symbol not exist",data:{}}}]},params:[{type:"Request",key:"request",data:[{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"currency",type:"string",description:"保證金資產,例如BTC和ETH等。"},{name:"totalAmount",type:"string",description:"保證金資產數量。"},{name:"availableTransfer",type:"string",description:"當前可轉出數量,動態數據每次轉出後需要重新查詢和計算。"},{name:"latestMortgageAmount",type:"string",description:"最新可抵押金額。"}]}]}]},"/Kh3":function(e,t){e.exports=[{type:"hash",text:"查詢槓桿倍數"},{type:"normal",text:"查詢用戶在指定symbol合約的開倉槓桿。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/leverage",protocol:"https",method:"GET",payload:{symbol:"BCH-USDT",timestamp:"1702733572940"},response:{code:0,msg:"",data:{longLeverage:50,shortLeverage:50,maxLongLeverage:75,maxShortLeverage:75}},errors:[{desc:"",sample:{code:109500,msg:"Account Service Unavailable, err:symbol not exist",data:{}}}]},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:"空倉槓桿倍數"},{name:"maxLongLeverage",type:"int64",description:"最大多倉槓桿倍數"},{name:"maxShortLeverage",type:"int64",description:"最大空倉槓桿倍數"},{name:"availableLongVol",type:"string",description:"可開多數量"},{name:"availableShortVol",type:"string",description:"可開空數量"},{name:"availableLongVal",type:"string",description:"可開多價值"},{name:"availableShortVal",type:"string",description:"可開空價值"},{name:"maxPositionLongVal",type:"string",description:"持倉最大可開多價值"},{name:"maxPositionShortVal",type:"string",description:"持倉最大可開空價值"}]}]}]},"/Pe4":function(e,t){e.exports=[{type:"hash",text:"Export fund flow"},{type:"normal",text:"Export fund flow"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"warning",text:"response: Excel File"},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"html",text:"
  • Only keep the last 3 months data.
  • "},{type:"demo",api:{uri:"/openApi/swap/v2/user/income/export",protocol:"https",method:"GET",payload:{endTime:"",limit:"200",recvWindow:"10000",startTime:"",symbol:"BTC-USDT",timestamp:"1702449874964"}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"no",description:"trading pair, for example: BTC-USDT"},{name:"incomeType",type:"string",required:"no",description:"Fund flow type, optional values:REALIZED_PNL FUNDING_FEE TRADING_FEE INSURANCE_CLEAR TRIAL_FUND ADL SYSTEM_DEDUCTION"},{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:"Number of returned result sets default value: 100 maximum value: 1000"},{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"}]}]}]},"/YEw":function(e,t){e.exports=[{type:"hash",text:"查詢訂單詳情"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/trade/query",protocol:"https",method:"GET",payload:{symbol:"BRG-USDT",orderId:"1735965009395131234",timestamp:"1702721583560"},response:{code:0,msg:"",debugMsg:"",data:{symbol:"BRG-USDT",orderId:0x181762fa7f812300,price:"0.0005027",StopPrice:"0",origQty:"4038",executedQty:"0",cummulativeQuoteQty:"0",status:"PENDING",type:"LIMIT",side:"BUY",time:1702721285567,updateTime:1702721285567,origQuoteOrderQty:"0",fee:"0",feeAsset:"BRG",avgPrice:"0.0005027"}}},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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET"},{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"},{name:"stopPrice",type:"string",required:"是",description:"觸發價格"},{name:"avgPrice",type:"string",description:"平均成交價"}]}]}]},"/Z+/":function(e,t,i){var r={".":"cId4","./":"cId4","./00_get_account_balance":"HY4c","./00_get_account_balance.json":"HY4c","./01_get_asset_transfer":"bSWG","./01_get_asset_transfer.json":"bSWG","./02_get_asset_transfer2":"gp5h","./02_get_asset_transfer2.json":"gp5h","./07_post_capital_innerTransfer_apply":"KPNz","./07_post_capital_innerTransfer_apply.json":"KPNz","./14.get_wallet_queryInnerTransferRecords":"9tS2","./14.get_wallet_queryInnerTransferRecords.json":"9tS2","./21_get_account_allAccountBalance":"Exaw","./21_get_account_allAccountBalance.json":"Exaw","./index":"cId4","./index.js":"cId4"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.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 api 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:"Place multiple orders"},{type:"desc",text:"The current account performs batch order operations on the specified symbol contract",desc:[{type:"html",text:"
  • Specific order conditions and rules are consistent with ordinary orders
  • "},{type:"html",text:"
  • BatchOrders is kind of difficult but do not worry, please refer to 4 steps below:
  • "},{type:"html",text:"
  • 1. make your payload to string
  • "},{type:"code",text:'original parameters: 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=1692956597902'},{type:"html",text:"
  • 2. sign original parameters
  • "},{type:"code",text:"signature: bab521321a62a1381a76b485b92dd0f4a8b16b4616cfa4c75ffba899f80dfc86"},{type:"html",text:"
  • 3. url encode each value,for example the value of batchOrders field,except timestamp field value (not url encode the key, not url encode entire original parametersg), make it like below:
  • "},{type:"code",text:"after url encoded: batchOrders=%5B%7B%22symbol%22%3A%22ETH-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A1%7D%2C%7B%22symbol%22%3A%22BTC-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A0.001%7D%5D×tamp=1692956597902"},{type:"html",text:"
  • 4. final request should be like
  • "},{type:"code",text:"POST https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=%5B%7B%22symbol%22%3A%22ETH-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A1%7D%2C%7B%22symbol%22%3A%22BTC-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A0.001%7D%5D×tamp=1692956597902&signature=bab521321a62a1381a76b485b92dd0f4a8b16b4616cfa4c75ffba899f80dfc86"},{type:"warning",text:"Batch orders are processed concurrently, and order matching order is not guaranteed"},{type:"warning",text:"The minimum order quantity can be obtained from the api /openApi/swap/v2/quote/contracts: tradeMinQuantity, tradeMinUSDT"},{type:"normal",text:"Trading Rules:",style:{"font-weight":"bold"},children:[{type:"html",text:"Trading Rules: https://bingx.com/en/tradeInfo/perpetual/trading-rules/BTC-USDT/"},{type:"html",text:"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/swap/v2/quote/contracts"},{type:"html",text:"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234."}]}]},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{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": "ETH-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 1},{"symbol": "BTC-USDT","type": "MARKET","side": "BUY","positionSide": "LONG","quantity": 0.001}]'},response:{code:0,msg:"",data:{orders:[{symbol:"ID-USDT",orderId:0x18178c2ba6c03500,side:"SELL",positionSide:"LONG",type:"MARKET",clientOrderId:"",workingType:""}]}},errors:[{desc:"",sample:{code:80001,msg:"No position to close; parameter quantity is must",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"No position to close; parameter quantity is must",data:{code:80001,msg:"Order size error; Order size error; Order size error; Order size error",data:{orders:[]}}}},{desc:"",sample:{code:80001,msg:"No position to close; parameter quantity is must",data:{code:80014,msg:"orderIdList & clientOrderIDList are both empty;",data:{}}}},{desc:"",sample:{code:109400,msg:"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.",data:{}}},{desc:"",sample:{code:109400,msg:"symbol not exist",data:{}}},{desc:"",sample:{code:80001,msg:"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again; Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again; Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"No position to close",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"Insufficient margin",data:{orders:[]}}},{desc:"",sample:{code:109400,msg:"In the Hedge mode, the 'ReduceOnly' field can not be filled.; In the Hedge mode, the 'ReduceOnly' field can not be filled.",data:{}}},{desc:"",sample:{code:80001,msg:"This order exceeds the current position limit of 5000 USDT. Please try to reduce the leverage or adjust the order amount.; This order exceeds the current position limit of 5000 USDT. Please try to reduce the leverage or adjust the order amount.",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"The maximum position value for this leverage is 150000 USDT.",data:{orders:[]}}},{desc:"",sample:{code:100001,msg:"Signature verification failed due to signature mismatch,please verify our authentication signature and try to run our sample code from the link https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Query%20Assets",timestamp:1727124087795}},{desc:"",sample:{code:80020,msg:"risk forbidden",data:{}}},{desc:"",sample:{code:80001,msg:"Stop Loss price should be lower than the current price",data:{orders:[]}}},{desc:"",sample:{code:100421,msg:"Null timestamp or timestamp mismatch, try to run our sample code from the link https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Query%20Assets",timestamp:1726839221156}},{desc:"",sample:{code:80001,msg:"This operation is not allowed as your account assets are being processed. Please try again later.; This operation is not allowed as your account assets are being processed. Please try again later.",data:{orders:[]}}},{desc:"",sample:{code:80001,msg:"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.; In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.",data:{}}},{desc:"",sample:{code:80001,msg:"In the One-way mode, the 'PositionSide' field can only be set to BOTH.; In the One-way mode, the 'PositionSide' field can only be set to BOTH.; In the One-way mode, the 'PositionSide' field can only be set to BOTH.",data:{}}}]},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:"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss"},{name:"side",type:"string",required:"yes",description:"buying and selling direction SELL, BUY"},{name:"positionSide",type:"string",required:"no",description:"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty"},{name:"reduceOnly",type:"string",required:"no",description:"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode"},{name:"price",type:"float64",required:"no",description:"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL"},{name:"quantity",type:"float64",required:"no",description:"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported."},{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:"priceRate",type:"float64",required:"no",description:"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1"},{name:"stopLoss",type:"string",required:"no",description:"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP"},{name:"takeProfit",type:"string",required:"no",description:"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT"},{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. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId"},{name:"recvWindow",type:"int64",required:"no",description:"Request valid time window value, Unit: milliseconds"},{name:"workingType",type:"string",required:"no",description:"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE."},{name:"timeInForce",type:"string",required:"no",description:"Time in Force, currently supports PostOnly, GTC, IOC, and FOK"},{name:"closePosition",type:"string",required:"no",description:"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly"},{name:"activationPrice",type:"float64",required:"no",description:"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)"},{name:"stopGuaranteed",type:"string",required:"no",description:"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss."}]},{type:"stopLoss/takeProfit",key:"key3",data:[{name:"type",type:"string",description:"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT"},{name:"stopPrice",type:"float64",required:"no",description:"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT"},{name:"price",type:"float64",required:"no",description:"Order price"},{name:"workingType",type:"string",required:"no",description:"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE."},{name:"stopGuaranteed",type:"string",required:"no",description:"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss."}]},{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:"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss"},{name:"positionSide",type:"string",description:"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty"},{name:"reduceOnly",type:"string",description:"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode"},{name:"orderID",type:"string",description:"Order ID"},{name:"clientOrderId",type:"string",required:"no",description:"Customized order ID for users. The system will convert this field to lowercase."},{name:"stopGuaranteed",type:"string",required:"no",description:"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss."}]}]}]},"/chU":function(e,t){e.exports=[{type:"title",text:"2024-07-22"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"html",text:"永續U本位:請求中的ClientOrderId字段會被系統自動轉為英文小寫。"}]}]},"/iLc":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("NCXQ").keys(),n=[],o=0;o最多能返回15天的資料"},{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/v2/market/kline",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",interval:"1m",limit:5},response:{code:0,timestamp:1702720626772,data:[[170272062e4,42216.29,42216.94,42216.29,42216.72,.2,1702720679999,8548.46],[170272056e4,42220.61,42221.1,42215.56,42216.63,2.93,1702720619999,123968.7],[17027205e5,42182.59,42220.38,42182.59,42220.38,1.53,1702720559999,64851.33],[170272044e4,42182.84,42183.16,42182.22,42182.81,2.54,1702720499999,107559.45],[170272038e4,42199.72,42204.53,42180.2,42182.76,1.1,1702720439999,46549.09]]}},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"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{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線"}]}]}]},"/nLp":function(e,t){e.exports=[{type:"hash",text:"批量撤销订单再下单"},{type:"normal",text:"此接口用於批量撤銷掛單並在同個交易對上重新下單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/trade/batchCancelReplace",protocol:"https",method:"POST",payload:{batchOrders:'[{"cancelOrderId": 1753337028434464768, "cancelReplaceMode": "ALLOW_FAILURE", "symbol": "BTC-USDT", "type": "LIMIT", "side": "BUY", "positionSide": "LONG", "price": 38000, "quantity": 1, "takeProfit": "{\\"type\\": \\"TAKE_PROFIT\\", \\"stopPrice\\": 45000, \\"price\\": 45000}", "stopLoss": "{\\"type\\": \\"STOP\\", \\"stopPrice\\": 37000, \\"price\\": 37000}"}, {"cancelOrderId": 1753337028434464768, "cancelReplaceMode": "ALLOW_FAILURE", "symbol": "BTC-USDT", "type": "LIMIT", "side": "BUY", "positionSide": "LONG", "price": 38000, "quantity": 1, "takeProfit": "{\\"type\\": \\"TAKE_PROFIT\\", \\"stopPrice\\": 45000, \\"price\\": 45000}", "stopLoss": "{\\"type\\": \\"STOP\\", \\"stopPrice\\": 37000, \\"price\\": 37000}"}, {"cancelOrderId": 1753337028434464768, "cancelReplaceMode": "ALLOW_FAILURE", "symbol": "BTC-USDT", "type": "LIMIT", "side": "BUY", "positionSide": "LONG", "price": 38000, "quantity": 1, "takeProfit": "{\\"type\\": \\"TAKE_PROFIT\\", \\"stopPrice\\": 45000, \\"price\\": 45000}", "stopLoss": "{\\"type\\": \\"STOP\\", \\"stopPrice\\": 37000, \\"price\\": 37000}"}]',timestamp:"1702731530753"},response:{code:0,msg:"",data:[{cancelResult:"true",cancelMsg:"",cancelResponse:{cancelClientOrderId:"",cancelOrderId:0x18551abcdf601000,symbol:"BTC-USDT",orderId:0x18551abcdf601000,side:"BUY",positionSide:"LONG",type:"LIMIT",origQty:"10.0000",price:"38000.0",executedQty:"0.0000",avgPrice:"0.0",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"PENDING",time:1706863098e3,updateTime:1706863097e3,clientOrderId:"",leverage:"15X",workingType:"MARK_PRICE",onlyOnePosition:!1,reduceOnly:!1},replaceResult:"true",ReplaceMsg:"",newOrderResponse:{orderId:0x18551acd3e601000,symbol:"BTC-USDT",positionSide:"LONG",side:"BUY",type:"LIMIT",price:38e3,quantity:1,stopPrice:0,workingType:"MARK_PRICE",clientOrderId:"",timeInForce:"GTC",priceRate:0,stopLoss:'{"type": "STOP", "stopPrice": 37000, "price": 37000}',takeProfit:'{"type": "TAKE_PROFIT", "stopPrice": 45000, "price": 45000}',reduceOnly:!1}}]}},params:[{type:"Request",key:"request",data:[{name:"batchOrders",type:"string",required:"是",description:"一批訂單, LIST的字符串形式"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值,單位:毫秒"}]},{type:"OrderRequest",key:"orderRequest",data:[{name:"cancelReplaceMode",type:"string",required:"是",description:"STOP_ON_FAILURE:如果撤銷訂單失敗將不會繼續重新下單。\nALLOW_FAILURE: 不管撤銷訂單是否成功都會繼續重新下單。"},{name:"cancelClientOrderId",type:"string",required:"否",description:"要撤銷的原客戶自訂訂單號碼,系統會將該字段轉為英文小寫。必須提供cancelClientOrderId 或 cancelOrderId。如果兩個參數都提供, cancelOrderId 會佔優先。"},{name:"cancelOrderId",type:"int64",required:"否",description:"要撤銷的平台訂單號碼。必須提供cancelClientOrderId 或 cancelOrderId。如果兩個參數都提供, cancelOrderId 會佔優先。"},{name:"cancelRestrictions",type:"string",required:"否",description:"ONLY_NEW :如果訂單狀態為 NEW,撤銷將會成功。\nONLY_PENDING:如果訂單狀態為 PENDING,撤銷將成功。\nONLY_PARTIALLY_FILLED :如果訂單狀態為 PARTIALLY_FILLED,撤銷將會成功。"},{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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"是",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"reduceOnly",type:"string",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{name:"price",type:"float64",required:"否",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"quantity",type:"float64",required:"否",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單"},{name:"stopPrice",type:"float64",required:"否",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數"},{name:"priceRate",type:"float64",required:"否",description:"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"stopLoss",type:"string",required:"否",description:"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP"},{name:"takeProfit",type:"string",required:"否",description:"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,不同訂單不可使用相同的clientOrderID, clientOrderId 僅支援 LIMIT/MARKET 訂單類型"},{name:"closePosition",type:"string",required:"否",description:"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用"},{name:"activationPrice",type:"float64",required:"no",description:"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKETT 需要此參數, 預設為下單當前市場價格(支援不同workingType)"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"錯誤碼,0表示成功,不為0表示異常失敗"},{name:"msg",type:"string",description:"錯誤信息提示"},{name:"orderResponse",type:"OrderResponse",required:"yes",description:""}]},{type:"OrderResponse",key:"orderResponse",data:[{name:"cancelResult",type:"string",description:"撤單結果,true:撤單成功,false:撤單失敗"},{name:"cancelMsg",type:"string",description:"撤單失敗時的原因"},{name:"cancelResponse",type:"CancelResponse",description:"撤銷訂單的信息"},{name:"replaceResult",type:"string",description:"撤單結果,true:撤單成功,false:撤單失敗"},{name:"replaceMsg",type:"string",description:"撤單失敗時的原因"},{name:"newOrderResponse",type:"NewOrderResponse",description:"新訂單的信息"}]},{type:"CancelResponse",key:"cancelResponse",data:[{name:"cancelClientOrderId",type:"string",description:"撤單訂單的自定義OrderId,系統會將該字段轉為英文小寫"},{name:"cancelOrderId",type:"string",description:"撤銷訂單的OrderId"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"orderId",type:"int64",description:"訂單號"},{name:"side",type:"string",description:"買賣方向"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"price",type:"string",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"executedQty",type:"string",description:"成交量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"status",type:"string",description:"訂單狀態"},{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫"},{name:"leverage",type:"string",description:"槓桿倍數"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"onlyOnePosition",type:"bool",description:"是否單向持倉,true:是;false:不是"},{name:"reduceOnly",type:"bool",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"}]},{type:"NewOrderResponse",key:"newOrderResponse",data:[{name:"orderId",type:"int64",description:"訂單號"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"positionSide",type:"string",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"price",type:"float64",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"quantity",type:"float64",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單"},{name:"stopPrice",type:"float64",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\n"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫"},{name:"timeInForce",type:"string",description:"有效方式,目前支援PostOnly、GTC、IOC和FOK"},{name:"priceRate",type:"float64",description:"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1"},{name:"reduceOnly",type:"bool",description:"是否僅減倉"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]}]}]},"/nlw":function(e,t,i){var r={"./01_get_contract_allPosition.json":"ttu5","./02_get_contract_allOrders.json":"RhU9","./03_get_contract_balance.json":"n0S/"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="/nlw"},"/qZT":function(e,t){e.exports=[{type:"hash",text:"按倉位ID平倉"},{type:"normal",text:""},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/trade/closePosition",protocol:"https",method:"POST",payload:{timestamp:"1702731721672",positionId:"1769649551460794368"},response:{code:0,msg:"",timestamp:0,data:{orderId:0x188f0ef61a800000,positionId:"1769649551460794368",symbol:"BTC-USDT",side:"Ask",type:"Market",positionSide:"BOTH",origQty:"1.0000"}}},params:[{type:"Request",key:"request",data:[{name:"positionId",type:"string",required:"是",description:"倉位ID,将会把该仓位的持仓进行市价全额平仓"},{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:"data",type:"Data",required:"yes",description:""}]},{type:"Data",key:"data",data:[{name:"orderId",type:"int64",description:"訂單號"},{name:"positionId",type:"string",description:"倉位ID"},{name:"symbol",type:"string",description:""},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"MARKET:市價單"},{name:"positionSide",type:"string",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"origQty",type:"string",description:"委託數量,幣的數量"}]}]}]},"/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:"
  • 100204 - No data
  • "},{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:"normal",text:"100202",children:[{type:"html",text:"Insufficient assets"},{type:"html",text:"The current system is busy, please try again later"}]},{type:"normal",text:"100421",children:[{type:"html",text:"The current system is busy, please try again later"}]},{type:"normal",text:"100400",children:[{type:"html",text:"quantity/quoteOrderQty can't both be lte 0 in limit order"},{type:"html",text:"The current system is busy, please try again later"},{type:"html",text:"The same order can only be submitted once per second."},{type:"html",text:"invalid symbol, send symbol like BTC-USDT"},{type:"html",text:"The minimum amount per order is *"},{type:"html",text:"miss arguments"}]},{type:"normal",text:"100414",children:[{type:"html",text:"The account is abnormal, please contact customer service."}]},{type:"normal",text:"100413",children:[{type:"html",text:"Incorrect apiKey"},{type:"html",text:"Null apiKey"}]},{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.
  • "}]},"/ur1":function(e,t){e.exports=[{type:"hash",text:"Connection limitations"},{type:"normal",text:"A websocket is limited to a maximum of 200 topics, and 80403 error codes will be returned."},{type:"normal",text:"An IP limit is up to 60 websockets, beyond which the link will fail."}]},"/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:"TAKE_PROFIT_MARKET 市價止盈單"},{type:"normal",text:"STOP_MARKET 市價止損單"},{type:"normal",text:"LIMIT 限價單"},{type:"normal",text:"TAKE_PROFIT 限價止盈單"},{type:"normal",text:"STOP 限價止損單"},{type:"normal",text:"TRIGGER_MARKET 計劃委託市價單"},{type:"normal",text:"TRIGGER_LIMIT 計劃委託單限價單"},{type:"normal",text:"TRAILING_STOP_MARKET 追蹤委託單"},{type:"normal",text:"TRAILING_TP_SL 移動止盈止損"},{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:"warning",text:"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來"},{type:"warning",text:"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key"},{type:"normal",text:"推送數據",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"notice:":"no need to subscribe to any specific channel,please check the hightlight msg in the api docs"}'},params:[{type:"Response",key:"wssResponse",data:[{name:"e",type:"",description:"事件類型:ORDER_TRADE_UPDATE"},{name:"E",type:"",description:"事件時間:1676603102163"},{name:"T",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:"sp",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 or BOTH"},{name:"rp",type:"",description:"該交易實現盈虧: 0.00000000"},{name:"z",type:"",description:"訂單累計已成交量: 0.00000000"},{name:"sg",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。"},{name:"ti",type:"",description:"與此訂單關聯的條件單ID:1771124709866754048"},{name:"ro",type:"",description:"reduceOnly,是否僅減倉訂單"},{name:"td",type:"",description:"成交ID"},{name:"tv",type:"",description:"成交金額"}]}]}]},"01Ul":function(e,t){e.exports=[{type:"hash",text:"撤銷訂單"},{type:"normal",text:"将當前賬戶處於當前委託狀態的某個訂單進行撤銷操作。"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"warning",text:"撤單接口1s限制最多能撤同一條orderId或者clientOrderID,請勿重複提交"},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/cswap/v1/trade/cancelOrder",protocol:"https",method:"DELETE",payload:{orderId:"1736011869418901234",symbol:"RNDR-USD",timestamp:"1702732515704"},response:{code:0,msg:"",data:{order:{symbol:"RNDR-USD",orderId:0x18178d98f2934f00,side:"BUY",positionSide:"LONG",type:"LIMIT",origQty:"3",price:"4.5081",executedQty:"0",avgPrice:"0.0000",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"CANCELLED",time:1702732457867,updateTime:1702732457888,leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:""}}}},params:[{type:"Request",key:"request",data:[{name:"orderId",type:"int64",required:"否",description:"訂單號"},{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USD, 請使用大寫字母"},{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-USD"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單"},{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:"更新時間,單位:毫秒"}]}]}]},"0DXm":function(e,t){e.exports=[{type:"hash",text:"OCO下單"},{type:"normal",text:"發送新 one-cancels-the-other (OCO) 訂單,啟動其中一個訂單會立即取消另一個訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/oco/order",protocol:"https",method:"POST",payload:{symbol:"BTC-USDT",side:"BUY",quantity:.001,listClientOrderId:"12345610030",aboveClientOrderId:"12345610031",belowClientOrderId:"12345610031",orderPrice:88e3,limitPrice:48e3,triggerPrice:87e3,timestamp:1724655430675},response:{code:0,msg:"",debugMsg:"",data:[{transactionTime:0,orderId:"1827963624962916352",clientOrderId:"12345610034",symbol:"BTC-USDT",orderType:"ocoLimit",side:"BUY",triggerPrice:0,price:48e3,quantity:.001,orderListId:"12345610033",status:""},{transactionTime:0,orderId:"1827963624962916353",clientOrderId:"12345610035",symbol:"BTC-USDT",orderType:"ocoTps",side:"BUY",triggerPrice:87e3,price:88e3,quantity:.001,orderListId:"12345610033",status:""}]}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"side",type:"string",required:"是",description:"交易類型, BUY買 SELL賣"},{name:"quantity",type:"float64",required:"是",description:"下單數量, 例如: 0.1BTC"},{name:"limitPrice",type:"float64",required:"是",description:"限價單委託價格, 例如: 10000USDT"},{name:"orderPrice",type:"float64",required:"是",description:"止盈止損單觸發後創建的限價單的委託價格, 例如: 10000USDT"},{name:"triggerPrice",type:"float64",required:"是",description:"止盈止損單的觸發價格, 例如: 10000USDT"},{name:"listClientOrderId",type:"string",required:"否",description:'整個Order List的自定義唯一ID, 僅支持全數字的字符串, 例如: "123456"'},{name:"aboveClientOrderId",type:"string",required:"否",description:'限價單的自定義唯一ID,僅支持全數字的字符串, 例如: "123456"'},{name:"belowClientOrderId",type:"string",required:"否",description:'止盈止損單的自定義唯一ID,僅支持全數字的字符串, 例如: "123456"'},{name:"recvWindow",type:"float64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"},{name:"timestamp",type:"int64",required:"是",description:"請求時間戳, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"orderId",type:"string",description:"訂單ID"},{name:"clientOrderId",type:"string",description:"自定義訂單ID"},{name:"orderType",type:"string",description:"ocoLimit:OCO限價單,ocoTps:OCO止盈止損單"},{name:"symbol",type:"string",description:"交易品種"},{name:"price",type:"float64",description:"委託價格"},{name:"triggerPrice",type:"float64",description:"觸發價格"},{name:"quantity",type:"float64",description:"下單數量"},{name:"status",type:"string",description:"訂單狀態, NEW新訂單 PENDING委託中 PARTIALLY_FILLED部分成交 FILLED完全成交 CANCELED已撤銷 FAILED失敗"},{name:"side",type:"string",description:"交易類型, BUY買 SELL賣"}]}]}]},"0Dd3":function(e,t,i){var r={"./generate.js":"nFJB","./python.js":"M0Cl"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="0Dd3"},"0EuA":function(e,t){e.exports=[{type:"hash",text:"Subscribe Market Depth Data"},{type:"normal",text:"Push limited order book depth information with a customizable push interval."},{type:"normal",text:"Subscription Type",style:{"font-weight":"bold"}},{type:"code",text:"The dataType is @depth@, for example, BTC-USDT@depth5@100ms, BTC-USDT@depth20@200ms, BTC-USDT@depth100@500ms."},{type:"code",text:"If is not provided, the default is 500ms."},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","reqType": "sub","dataType":"BTC-USDT@depth5@500ms"}'},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"},{name:"interval",type:"string",required:"yes",description:"Interval, e.g., 100ms, 200ms, 500ms, 1000ms"}]},{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 BTC-USDT@depth5@500ms"},{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"}]},{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:"interval",key:"key3",data:[{name:"100ms",type:"",description:"100 milliseconds"},{name:"200ms",type:"",description:"200 milliseconds"},{name:"500ms",type:"",description:"500 milliseconds"},{name:"1000ms",type:"",description:"1000 milliseconds"}]}]}]},"0IKX":function(e,t){e.exports=[{type:"hash",text:"合約持倉量"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/quote/openInterest",protocol:"https",method:"GET",payload:{symbol:"EOS-USDT"},response:{code:0,msg:"",data:{openInterest:"7409966.52",symbol:"EOS-USDT",time:1702719692859}}},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:"openInterest",type:"string",description:"持倉數量"},{name:"symbol",type:"string",description:"合約名稱"},{name:"time",type:"int64",description:"撮合引擎時間"}]}]}]},"0L6n":function(e,t){e.exports=[{type:"hash",text:"TWAP委託中訂單"},{type:"normal",text:"用於查詢TWAP委託中訂單,即沒有執行或仍在執行中的委託訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/twap/openOrders",protocol:"https",method:"GET",payload:{symbol:"BNB-USDT",timestamp:1702731661854,recvWindow:"0"},response:{code:0,msg:"",timestamp:1702731661854,data:{list:[{symbol:"BNB-USDT",side:"BUY",positionSide:"LONG",priceType:"constant",priceVariance:"2000",triggerPrice:"68000",interval:8,amountPerOrder:"0.111",totalAmount:"0.511",orderStatus:"Running",executedQty:"0.1",duration:800,maxDuration:9e3,createdTime:1702731661854,updateTime:1702731661854}],total:1}}},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:"mainOrderId",type:"string",description:"TWAP委託訂單編號"},{name:"side",type:"string",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",description:"LONG 或 SHORT"},{name:"priceType",type:"string",description:"價格限制類型,constant:價格間距,percentage:滑點"},{name:"priceVariance",type:"string",description:"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)"},{name:"triggerPrice",type:"string",description:"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單"},{name:"interval",type:"int64",description:"策略订单拆单后,委托下单的时间间隔,5-120s之间"},{name:"amountPerOrder",type:"string",description:"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。"},{name:"totalAmount",type:"string",description:"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。"},{name:"orderStatus",type:"string",description:"New: 新建 /Running:運作中/Canceling:撤銷單中/Filled:全部成交/PartiallyFilled:部分成交/Pending:未觸發/PartiallyFilledAndResidueFailed:部分成交(剩餘委託失敗),演算法單狀態/ PartiallyFilledAndResidueCancelled:部分成交(剩餘撤銷),演算法單狀態/Cancelled:已撤銷(不存在部分成交)/Failed:委托失败(不存在部分成交)"},{name:"executedQty",type:"string",description:"成交量"},{name:"duration",type:"int64",description:"已執行時間,單位秒。執行時間到期後委託單將被取消。 "},{name:"maxDuration",type:"int64",description:"最大執行時間執行時間,單位:秒。"},{name:"createdTime",type:"int64",description:"訂單創建時間,單位:毫秒"},{name:"updateTime",type:"int64",description:"訂單更新時間,單位:毫秒"}]}]}]},"0Lu1":function(e,t){e.exports=[{type:"hash",text:"取消全部訂單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/cswap/v1/trade/allOpenOrders",protocol:"https",method:"POST",payload:{symbol:"BTC-USD"},response:{code:0,msg:"",timestamp:1718372477371,data:{success:[{symbol:"BTC-USD",orderId:"1801610628516806656",side:"BUY",positionSide:"LONG",type:"LIMIT",quantity:2,origQty:"0",price:"27173",executedQty:"0",avgPrice:"0",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"CANCELLED",time:1718372420802,updateTime:1718372420820,clientOrderId:"",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:"",stopGuaranteed:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:"",stopGuaranteed:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:""}],failed:[{orderId:"1801610628516806656",code:123,msg:""},{orderId:"1801610628516806656",code:123,msg:""}]}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"否",description:"交易對, 例如: BTC-USD, 請使用大寫字母"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int32",description:"狀態碼"},{name:"msg",type:"string",description:"描述信息"},{name:"timestamp",type:"int64",description:"響應生成時間點,單位:毫秒"},{name:"data",type:"Obj",description:""}]},{type:"Data",key:"data",data:[{name:"success",type:"List",description:""},{name:"failed",type:"List",description:""}]},{type:"Success",key:"success",data:[{name:"symbol",type:"string",description:"交易對"},{name:"orderId",type:"string",description:"訂單號"},{name:"side",type:"string",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",description:"持倉方向,雙向持倉僅可選擇 LONG 或 SHORT"},{name:"time",type:"string",description:"委托時間"},{name:"type",type:"string",description:"訂單類型"},{name:"status",type:"string",description:"訂單狀態"},{name:"commission",type:"string",description:"該筆訂單的手續費"},{name:"updateTime",type:"string",description:"最新成交時間"},{name:"quantity",type:"string",description:"下單數量"},{name:"price",type:"string",description:"委託價格"},{name:"origQty",type:"string",description:"委託數量"},{name:"avgPrice",type:"string",description:"成交均價"},{name:"cumQuote",type:"string",description:"成交額"},{name:"profit",type:"string",description:"該筆訂單盈虧利潤"},{name:"executedQty",type:"string",description:"累計已成交數量"}]},{type:"Failed",key:"failed",data:[{name:"OrderId",type:"string",description:"訂單號"},{name:"code",type:"int32",description:"狀態碼"},{name:"msg",type:"string",description:"描述信息"}]}]}]},"0iHJ":function(e,t,i){var r={"./csharp.js":"INcn","./golang.js":"y0aS","./html.js":"5KyA","./java.js":"zJn2","./nodejs.js":"qxtL","./php.js":"252X","./python.js":"bTzu","./shell.js":"bfXa"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="0iHJ"},"0uHt":function(e,t){e.exports=[{type:"title",text:"2024-04-25"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"html",text:"Change perpetual contract: 'Contract Information' api supports querying by a symbol."},{type:"html",text:"change perpetual contract: allFillOrders interface, when the symbol field is not provided, it will return the historical transaction information of all pairs."},{type:"html",text:"Change perpetual contract: The query position api has a new Return Margin field."}]}]},"0uMI":function(e,t,i){var r={"./01_get_currentTrack.json":"gp62","./02_post_close_currentTrack.json":"Fxil","./03_post_tpsl_currentTrack.json":"Sfdp","./04_spot_trader_sell_order.json":"kpfu"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="0uMI"},"0xDb":function(e,t,i){"use strict";i.d(t,"d",function(){return E}),i.d(t,"n",function(){return O}),i.d(t,"p",function(){return q}),i.d(t,"q",function(){return k}),i.d(t,"m",function(){return v}),i.d(t,"o",function(){return D}),i.d(t,"h",function(){return M}),i.d(t,"l",function(){return C});var r,n,o=i("Gu7T"),s=i.n(o),a=i("W3Iv"),p=i.n(a),d=i("BO1k"),c=i.n(d),m=i("d7EF"),l=i.n(m),y=i("bOdI"),u=i.n(y),g=i("OvRC"),h=i.n(g),T=i("7+uW"),_=i("e5CW"),f=i("J7jo"),b=i("W+8S"),x=i.n(b),I=i("BxwQ"),w=i("nFJB"),R=i("2uFj"),P=i("ecdD");i.d(t,"a",function(){return P.a}),i.d(t,"b",function(){return P.b}),i.d(t,"c",function(){return P.c}),i.d(t,"e",function(){return P.d}),i.d(t,"f",function(){return P.e}),i.d(t,"g",function(){return P.f}),i.d(t,"i",function(){return f.default}),i.d(t,"k",function(){return I.default}),i.d(t,"j",function(){return w.default});var S=h()(null),A=[],E=x.a,O=function(e){var t=e;return"zh-hans"==e&&(t="zh-cn"),"zh-tw"==e&&(t="zh-tw"),"en-US"==e&&(t="en-us"),_.h.map(function(e){return{name:e,path:"/"+t+"/"+e}})},q={success:(r={},u()(r,P.c.zh,"复制成功"),u()(r,P.c.tw,"複製成功"),u()(r,P.c.en,"Copy Successfully"),r),error:(n={},u()(n,P.c.zh,"复制失败"),u()(n,P.c.tw,"複製失敗"),u()(n,P.c.en,"Copy Failed"),n)},k=function(e){S=h()(null),A=[];var t=Object(R.a)(e),i=Object(R.b)(e);for(var r in i)i[r].forEach(function(e){var i=e.path;S[i]={name:e.name,content:e.content,moduleName:t[e.module]},Array.isArray(e.children)&&e.children.forEach(function(r){var n=i+"/"+r.path;S[n]={name:r.name,content:r.content,moduleName:t[e.module]}})});!function(){A=[];var e=!0,t=!1,i=void 0;try{for(var r,n=c()(p()(S));!(e=(r=n.next()).done);e=!0){var o=r.value,a=l()(o,2),d=a[0],m=a[1],y=d,u=m.name,g=m.content,h=m.moduleName;if(Array.isArray(g)){for(var T=null,_=0;_send($channel);\n\n // Main loop to keep the connection open and process messages\n while (true) {\n $message = $client->receive(); // Receive message\n if ($message) {\n // Check if message is binary\n if (is_string($message)) {\n $decodedMsg = decodeGzip($message);\n echo "Received Binary Message: $decodedMsg\n";\n if (str_contains($decodedMsg, "ping")) { \n $client->send("pong");\n echo "Sent pong\n";\n }\n } else {\n echo "Received Text Message: $message\n";\n }\n }\n\n // Send periodic ping messages\n $client->send("Ping");\n echo "Sent Ping\n";\n sleep(5); // 5 seconds\n }\n\n} catch (Exception $e) {\n echo "Exception: " . $e->getMessage() . "\n";\n}\n\n// GZIP decoding function\nfunction decodeGzip($compressedData) {\n $stream = gzopen(\'data://text/plain;base64,\' . base64_encode($compressedData), \'rb\');\n $decodedMessage = \'\';\n\n while (!gzeof($stream)) {\n $decodedMessage .= gzread($stream, 1024);\n }\n\n gzclose($stream);\n return $decodedMessage;\n}'},"26Si":function(e,t){e.exports=[{type:"hash",text:"查詢委托訂單状态"},{type:"normal",text:"查詢訂單詳情"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v2/trade/openOrder",protocol:"https",method:"GET",payload:{orderId:"1736012449498123456",symbol:"OP-USDT",timestamp:"1702733255486"},response:{code:0,msg:"",data:{order:{symbol:"OP-USDT",orderId:0x18178e2001fdcd00,side:"SELL",positionSide:"LONG",type:"LIMIT",origQty:"1.0",price:"2.1710",executedQty:"0.0",avgPrice:"0.0000",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"PENDING",time:1702732596168,updateTime:1702732596188,clientOrderId:"l*****e",leverage:"",takeProfit:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},stopLoss:{type:"",quantity:0,stopPrice:0,price:0,workingType:""},advanceAttr:0,positionID:0,takeProfitEntrustPrice:0,stopLossEntrustPrice:0,orderType:"",workingType:"MARK_PRICE"}}},errors:[{desc:"",sample:{code:80016,msg:"order does not exist",data:{}}}]},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:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"reduceOnly",type:"string",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{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"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE"}]},{type:"status",key:"key1",data:[{name:"NEW",type:"",required:"",description:"新建訂單"}]}]}]},"2Cei":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:"warning",text:"Account data no longer need to subscribe to channel type,after connect wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed"},{type:"warning",text:"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly"},{type:"normal",text:"Push data",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"notice:":"no need to subscribe to any specific channel,please check the hightlight msg in the api docs"}'},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"}]}]}]},"2KwY":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("g+/I").keys(),n=[],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表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。
  • "}]},"2p/L":function(e,t,i){var r={".":"V3+W","./":"V3+W","./01_balance":"bzx+","./01_balance.json":"bzx+","./02_order":"K1eD","./02_order.json":"K1eD","./03_setting":"2Cei","./03_setting.json":"2Cei","./index":"V3+W","./index.js":"V3+W"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="2p/L"},"2qJV":function(e,t){e.exports=[{type:"hash",text:"深度信息"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/spot/v1/market/depth",protocol:"https",method:"GET",payload:{symbol:"BTC-USDT",limit:5},response:{code:0,timestamp:1702720487674,data:{bids:[["42182.22","0.99114"],["42182.19","1.00643"],["42182.17","0.95406"],["42182.10","0.87420"],["42182.08","1.17445"]],asks:[["42183.23","3.57139"],["42183.22","2.05573"],["42183.20","2.26065"],["42183.19","1.61695"],["42183.17","4.14752"]],ts:1702720487674}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易品種, 例如: BTC-USDT, 請使用大寫字母"},{name:"limit",type:"int",required:"否",description:"默認20,最多1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"bids",type:"array",description:"第一個元素價格,第二個元素數量"},{name:"asks",type:"array",description:"第一個元素價格,第二個元素數量"},{name:"ts",type:"int",description:"深度時間戳,單位毫秒"}]}]}]},"2qcG":function(e,t){e.exports=[{type:"hash",text:"查詢幣對深度數據"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/cswap/v1/market/depth",protocol:"https",method:"GET",payload:{symbol:"BTC-USD",limit:100,timestamp:1717050357477},response:{code:0,msg:"",debugMsg:"",data:{T:1717052420270,bids:[["67753.0","1360.0"],["67752.9","10.0"],["67752.8","11.0"],["67752.7","1.0"],["67752.6","1.0"]],asks:[["67754.9","4.0"],["67754.8","4.0"],["67754.7","22.0"],["67754.6","19.0"],["67754.5","703.0"]]}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對, 例如: BTC-USD, 請使用大寫字母"},{name:"limit",type:"int64",required:"否",description:"返回結果的數量,不填默認為20,可選值:5, 10, 20, 50, 100, 500, 1000"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"code",type:"int64",description:"狀態碼"},{name:"msg",type:"string",description:"描述信息"},{name:"timestamp",type:"int64",description:"響應時間,毫秒"},{name:"data",type:"List",description:""}]},{type:"Data",key:"Data",data:[{name:"T",type:"int64",description:"系統時間,毫秒"},{name:"asks",type:"List",description:"賣方深度,第一個是價格,第二個是數量(張)"},{name:"bids",type:"List",description:"買方深度,第一個是價格,第二個是數量(張)"}]}]}]},"2uFj":function(e,t,i){"use strict";var r=i("bOdI"),n=i.n(r),o=i("e5CW"),s=i("mvHQ"),a=i.n(s),p=i("/jWt"),d=i("W/J5"),c=i("otUP"),m=i("XWMS"),l=i("ohLs"),y=i("BJ4d"),u=a()(c.Data).replaceAll("/market/","/market?");u=(u=u.replaceAll("/market?","/market?listenKey=")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var g={path:"listenKey.html",name:"Listen Key",content:JSON.parse(u)},h={path:"market.html",name:"Websocket Market Data",content:m.Data},T={path:"account.html",name:"Websocket Account Data",content:l.Data},_=[{path:"",name:"Introduction",content:y.Data},g,h,T],f=i("sHXP"),b=i("cId4"),x=i("1pD3"),I=i("puzn"),w=i.n(I),R=(i("W+Bc"),i("S9BK")),P=i("nAo7"),S=a()(c.Data);S=(S=S.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var A="en-us/common",E={module:A,path:"/en-us/common/q&a",name:"Frequently Asked Questions",content:P.Data},O={module:A,path:"/en-us/common/changelog",name:"Change Log",content:d.Data},q={module:A,path:"/en-us/common/sub-account",name:"Sub-account management",content:R.Data},k={module:A,path:"/en-us/common/authentication.html",name:"Authentication",content:p.Data},v={module:A,path:"/en-us/common/base-info.html",name:"General Info",content:f.Data},D={module:A,path:"/en-us/common/account-api.html",name:"Fund Account",content:b.Data},M={module:A,path:"/en-us/common/wallet-api.html",name:"Wallet deposits and withdrawals",content:x.Data},C={module:A,path:"/en-us/common/authentication-interface.html",name:"Authentication Interface",content:JSON.parse(S)},L=[w.a,O,E,v,k,D,M,q,C],U=i("y1S6"),j=i.n(U),K=i("2ggw"),N=i("BbCp"),G={module:B,path:"/"+B+"/q&a",name:"Frequently Asked Questions",content:P.Data},B="en-us/spot",F={module:B,path:"/"+B+"/socket",name:"Socket API Reference",children:_},z={module:B,path:"/"+B+"/changelog",name:"Change Log",content:d.Data},W={module:B,path:"/"+B+"/trade-api.html",name:"Trades Endpoints",content:K.Data},H={module:B,path:"/"+B+"/authentication.html",name:"Authentication",content:p.Data},Q={module:B,path:"/"+B+"/base-info.html",name:"General Info",content:f.Data},Y={module:B,path:"/"+B+"/account-api.html",name:"Fund Account",content:b.Data},V={module:B,path:"/"+B+"/wallet-api.html",name:"Wallet deposits and withdrawals",content:x.Data},X={module:B,path:"/"+B+"/market-api.html",name:"Market Data",content:N.Data},Z=[j.a,z,G,Q,H,X,V,Y,W,F],J=i("CSFx"),$=i("HGsQ"),ee=i.n($),te={module:ie,path:"/"+ie+"/q&a",name:"Frequently Asked Questions",content:P.Data},ie="en-us/standard",re={module:ie,path:"/"+ie+"/changelog",name:"Change Log",content:d.Data},ne={module:ie,path:"/"+ie+"/contract-interface.html",name:"Standard Contract Interface",content:J.Data},oe={module:ie,path:"/"+ie+"/authentication.html",name:"Authentication",content:p.Data},se={module:ie,path:"/"+ie+"/base-info.html",name:"General Info",content:f.Data},ae=[ee.a,re,te,se,oe,ne],pe=i("yse3"),de=i("5ECq"),ce=i("vVGz"),me=i("2KwY"),le=i("goAe"),ye=i.n(le),ue=i("5MML"),ge=i.n(ue),he=i("Q3ZN"),Te=i("336Z"),_e=i("C8jp"),fe=a()(c.Data).replaceAll("/market/","/swap-market?");fe=(fe=(fe=(fe=fe.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 be={path:"listenKey.html",name:"Listen Key",content:JSON.parse(fe)},xe={path:"market.html",name:"Websocket Market Data",content:he.Data},Ie={path:"account.html",name:"Websocket Account Data",content:Te.Data},we=[{path:"",name:"Introduction",content:_e.Data},be,xe,Ie],Re={module:"en-us/swapV2",path:"/en-us/swapV2/q&a",name:"Frequently Asked Questions",content:P.Data},Pe={module:"en-us/swapV2",path:"/en-us/swapV2/socket",name:"Socket API Reference",children:we},Se={module:"en-us/swapV2",path:"/en-us/swapV2/changelog",name:"Change Log",content:d.Data},Ae={module:"en-us/swapV2",path:"/en-us/swapV2/trade-api.html",name:"Trades Endpoints",content:de.Data},Ee={module:"en-us/swapV2",path:"/en-us/swapV2/authentication.html",name:"Authentication",content:p.Data},Oe={module:"en-us/swapV2",path:"/en-us/swapV2/base-info.html",name:"General Info",content:me.Data},qe={module:"en-us/swapV2",path:"/en-us/swapV2/account-api.html",name:"Account Endpoints",content:pe.Data},ke={module:"en-us/swapV2",path:"/en-us/swapV2/market-api.html",name:"Market Data",content:ce.Data},ve=[ye.a,Se,Re,ge.a,Ee,Oe,ke,qe,Ae,Pe],De=i("V/PH"),Me=i("Q6u2"),Ce=i("Ow07"),Le=i("omwE"),Ue=i.n(Le),je=i("WXeB"),Ke=i.n(je),Ne=i("/iLc"),Ge=i("V3+W"),Be=i("eRNY"),Fe=a()(c.Data).replaceAll("/market/","/market?");Fe=(Fe=(Fe=(Fe=Fe.replaceAll("/swap-market","/market")).replaceAll("open-api-ws.bingx.com","open-api-cswap-ws.bingx.com")).replaceAll("/market?","/market?listenKey=")).replaceAll("wss://open-api-cswap-ws.bingx.com/market?listenKey=","wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var ze={path:"listenKey.html",name:"Listen Key",content:JSON.parse(Fe)},We={path:"market.html",name:"Websocket Market Data",content:Ne.Data},He=[{path:"",name:"Introduction",content:Be.Data},ze,We,{path:"account.html",name:"Account Endpoints",content:Ge.Data}],Qe={module:"en-us/cswap",path:"/en-us/cswap/q&a",name:"Frequently Asked Questions",content:P.Data},Ye={module:"en-us/cswap",path:"/en-us/cswap/socket",name:"Socket API Reference",children:He},Ve={module:"en-us/cswap",path:"/en-us/cswap/changelog",name:"Change Log",content:d.Data},Xe={module:"en-us/cswap",path:"/en-us/cswap/authentication.html",name:"Authentication",content:p.Data},Ze={module:"en-us/cswap",path:"/en-us/cswap/base-info.html",name:"General Info",content:De.Data},Je={module:"en-us/cswap",path:"/en-us/cswap/market-api.html",name:"Market Data",content:Me.Data},$e={module:"en-us/cswap",path:"/en-us/cswap/trade-api.html",name:"Trades Endpoints",content:Ce.Data},et=[Ue.a,Ve,Qe,Ke.a,Xe,Ze,Je,$e,Ye],tt=i("XH2f"),it=a()(c.Data);it=(it=it.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var rt={module:"en-us/copyTrade",path:"/en-us/copyTrade/q&a",name:"Frequently Asked Questions",content:P.Data},nt={module:"en-us/copyTrade",path:"/en-us/copyTrade/changelog",name:"Change Log",content:d.Data},ot={module:"en-us/copyTrade",path:"/en-us/copyTrade/authentication.html",name:"Authentication",content:p.Data},st={module:"en-us/copyTrade",path:"/en-us/copyTrade/base-info.html",name:"General Info",content:f.Data},at={module:"en-us/copyTrade",path:"/en-us/copyTrade/trader-interface.html",name:"Trader",content:tt.Data},pt=(JSON.parse(it),[nt,rt,st,ot,at]),dt=i("KeEM"),ct=a()(c.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,lt,yt={module:"en-us/agent",path:"/en-us/agent/q&a",name:"Frequently Asked Questions",content:P.Data},ut={module:"en-us/agent",path:"/en-us/agent/changelog",name:"Change Log",content:d.Data},gt={module:"en-us/agent",path:"/en-us/agent/authentication.html",name:"Authentication",content:p.Data},ht={module:"en-us/agent",path:"/en-us/agent/base-info.html",name:"General Info",content:f.Data},Tt={module:"en-us/agent",path:"/en-us/agent/agent-interface.html",name:"Agent",content:dt.Data},_t=(JSON.parse(ct),[ut,yt,ht,gt,Tt]),ft=(mt={},n()(mt,o.g,"USDT-M Perp Futures"),n()(mt,o.d,"Coin-M Perp Futures"),n()(mt,o.e,"Spot"),n()(mt,o.f,"Standard Futures"),n()(mt,o.b,"Account & Wallet"),n()(mt,o.c,"Copy Trading"),n()(mt,o.a,"Agent"),mt),bt=(lt={},n()(lt,o.g,ve),n()(lt,o.d,et),n()(lt,o.b,L),n()(lt,o.e,Z),n()(lt,o.f,ae),n()(lt,o.c,pt),n()(lt,o.a,_t),lt),xt=i("yjnE"),It=i("X9kl"),wt=i("R9OT"),Rt=i("FZvV"),Pt=i("KsRT"),St=i("kq5u"),At=a()(wt.Data).replaceAll("/market/","/market?");At=(At=At.replaceAll("/market?","/market?listenKey=")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Et={path:"listenKey.html",name:"Listen Key",content:JSON.parse(At)},Ot={path:"market.html",name:"Websocket 行情推送",content:Rt.Data},qt={path:"account.html",name:"Websocket 賬戶信息推送",content:Pt.Data},kt=[{path:"",name:"聯繫我們",content:St.Data},Et,Ot,qt],vt=i("qM4I"),Dt=i("LuFD"),Mt=i("GHqA"),Ct=i("+Vb3"),Lt=i.n(Ct),Ut=(i("8e1X"),i("b9rl")),jt=i("ZM3m"),Kt=a()(wt.Data);Kt=(Kt=Kt.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Nt={module:"zh-tw/common",path:"/zh-tw/common/q&a",name:"常見問題",content:jt.Data},Gt={module:"zh-tw/common",path:"/zh-tw/common/sub-account",name:"子賬戶管理",content:Ut.Data},Bt={module:"zh-tw/common",path:"/zh-tw/common/changelog",name:"變更日誌",content:It.Data},Ft={module:"zh-tw/common",path:"/zh-tw/common/authentication.html",name:"簽名認證",content:xt.Data},zt={module:"zh-tw/common",path:"/zh-tw/common/base-info.html",name:"基礎信息",content:vt.Data},Wt={module:"zh-tw/common",path:"/zh-tw/common/account-api.html",name:"資金賬戶",content:Dt.Data},Ht={module:"zh-tw/common",path:"/zh-tw/common/wallet-api.html",name:"錢包充提",content:Mt.Data},Qt={module:"zh-tw/common",path:"/zh-tw/common/authentication-interface.html",name:"鑒權服務",content:JSON.parse(Kt)},Yt=[Lt.a,Bt,Nt,zt,Ft,Wt,Ht,Gt,Qt],Vt=i("z74M"),Xt=i.n(Vt),Zt=i("tksP"),Jt=i("9GqO"),$t={module:"zh-tw/spot",path:"/zh-tw/spot/q&a",name:"常見問題",content:jt.Data},ei={module:"zh-tw/spot",path:"/zh-tw/spot/socket",name:"Socket 文檔",children:kt},ti={module:"zh-tw/spot",path:"/zh-tw/spot/changelog",name:"變更日誌",content:It.Data},ii={module:"zh-tw/spot",path:"/zh-tw/spot/trade-api.html",name:"交易接口",content:Zt.Data},ri={module:"zh-tw/spot",path:"/zh-tw/spot/authentication.html",name:"簽名認證",content:xt.Data},ni={module:"zh-tw/spot",path:"/zh-tw/spot/base-info.html",name:"基礎信息",content:vt.Data},oi={module:"zh-tw/spot",path:"/zh-tw/spot/account-api.html",name:"資金賬戶",content:Dt.Data},si={module:"zh-tw/spot",path:"/zh-tw/spot/wallet-api.html",name:"錢包充提",content:Mt.Data},ai={module:"zh-tw/spot",path:"/zh-tw/spot/market-api.html",name:"行情數據",content:Jt.Data},pi=[Xt.a,ti,$t,ni,ri,ai,si,oi,ii,ei],di=i("wbzr"),ci=i("okpR"),mi=i.n(ci),li={module:yi,path:"/"+yi+"/q&a",name:"常見問題",content:jt.Data},yi="zh-tw/standard",ui={module:yi,path:"/"+yi+"/changelog",name:"變更日誌",content:It.Data},gi={module:yi,path:"/"+yi+"/contract-interface.html",name:"標准合約接口",content:di.Data},hi={module:yi,path:"/"+yi+"/authentication.html",name:"簽名認證",content:xt.Data},Ti={module:yi,path:"/"+yi+"/base-info.html",name:"基礎信息",content:vt.Data},_i=[mi.a,ui,li,Ti,hi,gi],fi=i("KJg6"),bi=i("2xjp"),xi=i("ByCb"),Ii=i("2/Td"),wi=i("5GrR"),Ri=i.n(wi),Pi=i("n5PB"),Si=i.n(Pi),Ai=i("B7jJ"),Ei=i("3Fwp"),Oi=i("+hJF"),qi=a()(wt.Data).replaceAll("/market/","/swap-market?");qi=(qi=(qi=(qi=qi.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 ki={path:"listenKey.html",name:"Listen Key",content:JSON.parse(qi)},vi={path:"market.html",name:"Websocket 行情推送",content:Ai.Data},Di={path:"account.html",name:"Websocket 賬戶信息推送",content:Ei.Data},Mi=[{path:"",name:"聯繫我們",content:Oi.Data},ki,vi,Di],Ci=a()(wt.Data).replaceAll("/market/","/swap-market?");Ci=(Ci=(Ci=(Ci=Ci.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 Li={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/q&a",name:"常見問題",content:jt.Data},Ui={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/socket",name:"Socket 文檔",children:Mi},ji={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/changelog",name:"變更日誌",content:It.Data},Ki={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/trade-api.html",name:"交易接口",content:bi.Data},Ni={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/authentication.html",name:"簽名認證",content:xt.Data},Gi={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/base-info.html",name:"基礎信息",content:Ii.Data},Bi={module:"zh-tw/swapV2",path:"/zh-tw/swapV2/account-api.html",name:"賬戶接口",content:fi.Data},Fi=(JSON.parse(Ci),{module:"zh-tw/swapV2",path:"/zh-tw/swapV2/market-api.html",name:"行情數據",content:xi.Data}),zi=[Ri.a,ji,Li,Si.a,Ni,Gi,Fi,Bi,Ki,Ui],Wi=i("4RZf"),Hi=i("y74g"),Qi=i("D4vT"),Yi=i("2yPl"),Vi=i.n(Yi),Xi=i("ihU3"),Zi=i.n(Xi),Ji=i("eIko"),$i=i("Tl8j"),er=i("a9sA"),tr=a()(wt.Data).replaceAll("/market/","/market?");tr=(tr=(tr=(tr=tr.replaceAll("/swap-market","/market")).replaceAll("open-api-ws.bingx.com","open-api-cswap-ws.bingx.com")).replaceAll("/market?","/market?listenKey=")).replaceAll("wss://open-api-cswap-ws.bingx.com/market?listenKey=","wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var ir={path:"listenKey.html",name:"Listen Key",content:JSON.parse(tr)},rr={path:"market.html",name:"Websocket 行情推送",content:Ji.Data},nr={path:"account.html",name:"Websocket 賬戶信息推送",content:$i.Data},or=[{path:"",name:"聯繫我們",content:er.Data},ir,rr,nr],sr={module:"zh-tw/cswap",path:"/zh-tw/cswap/q&a",name:"常見問題",content:jt.Data},ar={module:"zh-tw/cswap",path:"/zh-tw/cswap/socket",name:"Socket 文檔",children:or},pr={module:"zh-tw/cswap",path:"/zh-tw/cswap/changelog",name:"變更日誌",content:It.Data},dr={module:"zh-tw/cswap",path:"/zh-tw/cswap/authentication.html",name:"簽名認證",content:xt.Data},cr={module:"zh-tw/cswap",path:"/zh-tw/cswap/base-info.html",name:"基礎信息",content:Wi.Data},mr={module:"zh-tw/cswap",path:"/zh-tw/cswap/market-api.html",name:"行情數據",content:Hi.Data},lr={module:"zh-tw/cswap",path:"/zh-tw/cswap/trade-api.html",name:"交易接口",content:Qi.Data},yr=[Vi.a,pr,sr,Zi.a,dr,cr,mr,lr,ar],ur=i("igyE"),gr=a()(wt.Data);gr=(gr=gr.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var hr={module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/q&a",name:"常見問題",content:jt.Data},Tr={module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/changelog",name:"變更日誌",content:It.Data},_r={module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/authentication.html",name:"簽名認證",content:xt.Data},fr=[Tr,hr,{module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/base-info.html",name:"基礎信息",content:vt.Data},_r,{module:"zh-tw/copyTrade",path:"/zh-tw/copyTrade/trader-interface.html",name:"交易員",content:ur.Data}],br=i("oZzG"),xr=a()(wt.Data);xr=(xr=xr.replaceAll("/market/","/market?listenKey==")).replaceAll("wss://open-api-ws.bingx.com/market?listenKey=","wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7");var Ir,wr,Rr,Pr,Sr={module:"zh-tw/agent",path:"/zh-tw/agent/q&a",name:"常見問題",content:jt.Data},Ar={module:"zh-tw/agent",path:"/zh-tw/agent/changelog",name:"變更日誌",content:It.Data},Er={module:"zh-tw/agent",path:"/zh-tw/agent/authentication.html",name:"簽名認證",content:xt.Data},Or=[Ar,Sr,{module:"zh-tw/agent",path:"/zh-tw/agent/base-info.html",name:"基礎信息",content:vt.Data},Er,{module:"zh-tw/agent",path:"/zh-tw/agent/agent-interface.html",name:"代理",content:br.Data}],qr=(Ir={},n()(Ir,o.g,"U本位永續合約"),n()(Ir,o.d,"币本位永續合約"),n()(Ir,o.e,"現貨"),n()(Ir,o.f,"標準合約"),n()(Ir,o.b,"賬戶與錢包"),n()(Ir,o.c,"跟單"),n()(Ir,o.a,"代理"),Ir),kr=(wr={},n()(wr,o.g,zi),n()(wr,o.d,yr),n()(wr,o.b,Yt),n()(wr,o.e,pi),n()(wr,o.f,_i),n()(wr,o.c,fr),n()(wr,o.a,Or),wr),vr=i("0xDb");i.d(t,"a",function(){return Ur}),i.d(t,"b",function(){return jr});var Dr=ft,Mr=bt,Cr=(Rr={},n()(Rr,vr.c.en,ft),n()(Rr,vr.c.tw,qr),Rr),Lr=(Pr={},n()(Pr,vr.c.en,bt),n()(Pr,vr.c.tw,kr),Pr),Ur=function(e){return Cr[e]||Dr},jr=function(e){return Lr[e]||Mr}},"2vkv":function(e,t){e.exports=[{type:"hash",text:"Query TWAP Entrusted Order"},{type:"normal",text:"Used to query orders in TWAP orders, that is, orders that have not been executed or are still being executed."},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"normal",text:"API Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/twap/openOrders",protocol:"https",method:"GET",payload:{symbol:"BNB-USDT",timestamp:1702731661854,recvWindow:"0"},response:{code:0,msg:"",timestamp:1702731661854,data:{list:[{symbol:"BNB-USDT",side:"BUY",positionSide:"LONG",priceType:"constant",priceVariance:"2000",triggerPrice:"68000",interval:8,amountPerOrder:"0.111",totalAmount:"0.511",orderStatus:"Running",executedQty:"0.1",duration:800,maxDuration:9e3,createdTime:1702731661854,updateTime:1702731661854}],total:1}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"No",description:"Trading pair, for example: BTC-USDT, please use capital letters"},{name:"timestamp",type:"int64",required:"Yes",description:"the timestamp of the request 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:"mainOrderId",type:"string",description:"TWAP order number"},{name:"side",type:"string",description:"buying and selling direction; SELL, BUY"},{name:"positionSide",type:"string",description:"LONG or SHORT"},{name:"priceType",type:"string",description:"Price limit type, constant: price interval, percentage: slippage"},{name:"priceVariance",type:"string",description:"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)"},{name:"triggerPrice",type:"string",description:"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order."},{name:"interval",type:"int64",description:"After the strategic order is split, the time interval for order placing is between 5-120s"},{name:"amountPerOrder",type:"string",description:"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order. "},{name:"totalAmount",type:"string",description:"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions. "},{name:"orderStatus",type:"string",description:"New: New/Running: In operation/Canceling: Cancellation of order/Filled: Fully filled/PartiallyFilled: Partially filled/Pending: Not triggered/PartiallyFilledAndResidueFailed: Partially filled (remaining order failed), algorithm order status/PartiallyFilledAndResidueCancelled: Partially filled ( Remaining cancellation), algorithm order status/Cancelled: Canceled (no partial deal exists)/Failed: Order failed (no partial deal exists)"},{name:"executedQty",type:"string",description:"Volume"},{name:"duration",type:"int64",description:"Execution time, in seconds. The order will be canceled after the execution time expires. "},{name:"maxDuration",type:"int64",description:"Maximum execution time execution time, unit: seconds."},{name:"createdTime",type:"int64",description:"Order creation time, unit: milliseconds"},{name:"updateTime",type:"int64",description:"Order update time, unit: milliseconds"}]}]}]},"2xEp":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": "" }'}]},"2xjp":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("Rqf2").keys(),n=[],o=0;oBingX開發者文檔, 歡迎報名BingX經濟商項目 BingX Broker Program Application"},{type:"normal",text:"本文檔提供了永續合約交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。"},{type:"html",text:"此頁面為永續合約V2版本的開發者文檔,推薦使用。如需查看V1版本的介面說明,可訪問:USDT本位永續合約V1"},{type:"html",text:"如有問題反饋可加入:API問題telegram電報群"}]}},"336Z":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("mzLI").keys(),n=[],o=0;o",description:""}]},{type:"Data",key:"data",data:[{name:"takerCommissionRate",type:"string",description:"Taker Commission Rate"},{name:"makerCommissionRate",type:"string",description:"Maker Commission Rate"}]}]}]},"3EGE":function(e,t){e.exports=[{type:"hash",text:"K-line Streams"},{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_1min"},{type:"normal",text:"Subscription Example",style:{"font-weight":"bold"}},{type:"code",text:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","reqType": "sub","dataType":"BTC-USDT@kline_1min"}'},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","reqType": "sub","dataType":"BTC-USDT@kline_1min"}'},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"}]},{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 kline"},{name:"3min",description:"3-minute kline"},{name:"5min",description:"5-minute kline"},{name:"15min",description:"15-minute kline"},{name:"30min",description:"30-minute kline"},{name:"60min",description:"60-minute 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:"3day",description:"3-day kline"},{name:"1week",description:"1-week kline"},{name:"1mon",description:"1-month kline"}]}]}]},"3Fwp":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("xE4z").keys(),n=[],o=0;o@trade E.g. BTC-USDT@trade ETH-USDT@trade"},{type:"normal",text:"Subscription Parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:'{"id":"e745cd6d-d0f6-4a70-8d5a-043e4c741b40","reqType": "sub","dataType":"BTC-USDT@trade"}'},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:"q",type:"",description:"volume"}]}]}]},"4RZf":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("ZP2+").keys(),n=[],o=0;o"}]},{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:"sp",type:"",description:"trigger 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 or BOTH"},{name:"rp",type:"",description:"The transaction achieves profit and loss: 0.00000000"},{name:"z",type:"",description:"Order Filled Accumulated Quantity: 0.00000000"},{name:"sg",type:"string",required:"no",description:"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. "},{name:"ti",type:"",description:"Conditional Order ID associated with this order:1771124709866754048"},{name:"ro",type:"",description:"reduceOnly"},{name:"td",type:"",description:"Trade ID"},{name:"tv",type:"",description:"Trade Value"}]}]}]},"4b0F":function(e,t,i){var r={"./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 n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="4b0F"},"4bTX":function(e,t){e.exports=[{type:"hash",text:"撤銷掛單再下單"},{type:"normal",text:"此接口用於撤銷掛單並在同個交易對上重新下單"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/trade/cancelReplace",protocol:"https",method:"POST",payload:{cancelReplaceMode:"STOP_ON_FAILURE",cancelClientOrderId:"abc123test",cancelOrderId:123456789,cancelRestrictions:"ONLY_NEW",symbol:"BTC-USDT",side:"BUY",positionSide:"LONG",type:"MARKET",quantity:5,takeProfit:'{"type": "TAKE_PROFIT_MARKET", "stopPrice": 31968.0,"price": 31968.0,"workingType":"MARK_PRICE"}',timestamp:"1702731530753"},response:{code:0,msg:"",data:{cancelResult:"true",cancelMsg:"",cancelResponse:{cancelClientOrderId:"",cancelOrderId:123456789,symbol:"BTC-USDT",orderId:123456789,side:"BUY",positionSide:"LONG",type:"LIMIT",origQty:"1.0000",price:"38000.0",executedQty:"0.0000",avgPrice:"0.0",cumQuote:"0",stopPrice:"",profit:"0.0000",commission:"0.000000",status:"PENDING",time:1706858471e3,updateTime:1706858471e3,clientOrderId:"",leverage:"15X",workingType:"MARK_PRICE",onlyOnePosition:!1,reduceOnly:!1},replaceResult:"true",replaceMsg:"",newOrderResponse:{orderId:987654321,symbol:"BTC-USDT",positionSide:"LONG",side:"BUY",type:"LIMIT",price:38e3,quantity:1,stopPrice:0,workingType:"MARK_PRICE",clientOrderId:"",timeInForce:"GTC",priceRate:0,stopLoss:'{"type": "STOP", "stopPrice": 37000, "price": 37000}',takeProfit:'{"type": "TAKE_PROFIT", "stopPrice": 45000, "price": 45000}',reduceOnly:!1}}}},params:[{type:"Request",key:"request",data:[{name:"cancelReplaceMode",type:"string",required:"是",description:"STOP_ON_FAILURE:如果撤銷訂單失敗將不會繼續重新下單。\nALLOW_FAILURE: 不管撤銷訂單是否成功都會繼續重新下單。"},{name:"cancelClientOrderId",type:"string",required:"否",description:"要撤銷的原客戶自訂訂單號碼,系統會將該字段轉為英文小寫。必須提供cancelClientOrderId 或 cancelOrderId。如果兩個參數都提供, cancelOrderId 會佔優先。"},{name:"cancelOrderId",type:"int64",required:"否",description:"要撤銷的平台訂單號碼。必須提供cancelClientOrderId 或 cancelOrderId。如果兩個參數都提供, cancelOrderId 會佔優先。"},{name:"cancelRestrictions",type:"string",required:"否",description:"ONLY_NEW :如果訂單狀態為 NEW,撤銷將會成功。\nONLY_PENDING:如果訂單狀態為 PENDING,撤銷將成功。\nONLY_PARTIALLY_FILLED :如果訂單狀態為 PARTIALLY_FILLED,撤銷將會成功。"},{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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"是",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"reduceOnly",type:"string",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"},{name:"price",type:"float64",required:"否",description:"委託價格"},{name:"quantity",type:"float64",required:"否",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單"},{name:"stopPrice",type:"float64",required:"否",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數"},{name:"priceRate",type:"float64",required:"否",description:"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"stopLoss",type:"string",required:"否",description:"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP"},{name:"takeProfit",type:"string",required:"否",description:"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT"},{name:"clientOrderId",type:"string",required:"否",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,不同訂單不可使用相同的clientOrderID, clientOrderId 僅支援 LIMIT/MARKET 訂單類型"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值,單位:毫秒"},{name:"closePosition",type:"string",required:"否",description:"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用"},{name:"activationPrice",type:"float64",required:"no",description:"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"},{name:"timeInForce",type:"string",required:"否",description:"有效方式,目前支持PostOnly、GTC、IOC和FOK"}]},{type:"Response",key:"response",data:[{name:"cancelResult",type:"string",description:"撤單結果,true:撤單成功,false:撤單失敗"},{name:"cancelMsg",type:"string",description:"撤單失敗時的原因"},{name:"cancelResponse",type:"CancelResponse",description:"撤銷訂單的信息"},{name:"replaceResult",type:"string",description:"撤單結果,true:撤單成功,false:撤單失敗"},{name:"replaceMsg",type:"string",description:"撤單失敗時的原因"},{name:"newOrderResponse",type:"NewOrderResponse",description:"新訂單的信息"}]},{type:"CancelResponse",key:"cancelResponse",data:[{name:"cancelClientOrderId",type:"string",description:"撤單訂單的自定義OrderId,系統會將該字段轉為英文小寫"},{name:"cancelOrderId",type:"string",description:"撤銷訂單的OrderId"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"orderId",type:"int64",description:"訂單號"},{name:"side",type:"string",description:"買賣方向"},{name:"positionSide",type:"string",required:"否",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"origQty",type:"string",description:"原始委託數量"},{name:"price",type:"string",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"executedQty",type:"string",description:"成交量"},{name:"avgPrice",type:"string",description:"平均成交價"},{name:"cumQuote",type:"string",description:"成交金額"},{name:"stopPrice",type:"string",description:"觸發價"},{name:"profit",type:"string",description:"盈虧"},{name:"commission",type:"string",description:"手續費"},{name:"status",type:"string",description:"訂單狀態"},{name:"time",type:"int64",description:"訂單時間,單位:毫秒"},{name:"updateTime",type:"int64",description:"更新時間,單位:毫秒"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫"},{name:"leverage",type:"string",description:"槓桿倍數"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"onlyOnePosition",type:"bool",description:"是否單向持倉,true:是;false:不是"},{name:"reduceOnly",type:"bool",required:"否",description:"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數"}]},{type:"NewOrderResponse",key:"newOrderResponse",data:[{name:"orderId",type:"int64",description:"訂單號"},{name:"symbol",type:"string",description:"交易對, 例如: BTC-USDT"},{name:"positionSide",type:"string",description:"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG"},{name:"side",type:"string",description:"買賣方向"},{name:"type",type:"string",description:"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損"},{name:"price",type:"float64",description:"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差"},{name:"quantity",type:"float64",description:"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單"},{name:"stopPrice",type:"float64",description:"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\n"},{name:"workingType",type:"string",required:"否",description:"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。"},{name:"clientOrderId",type:"string",description:"用戶自定義訂單ID,系統會將該字段轉為英文小寫"},{name:"timeInForce",type:"string",description:"有效方式,目前支援PostOnly、GTC、IOC和FOK"},{name:"priceRate",type:"float64",description:"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\n"},{name:"reduceOnly",type:"bool",description:"是否僅減倉"},{name:"stopGuaranteed",type:"string",required:"no",description:"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。"}]}]}]},"4izq":function(e,t,i){var r={"./00_get_account_balance.json":"hIqz","./01_get_asset_transfer.json":"zvGN","./02_get_asset_transfer2.json":"ah5Z","./07_post_capital_innerTransfer_apply.json":"iYO+","./14.get_wallet_queryInnerTransferRecords.json":"Jtu9","./21_get_account_allAccountBalance.json":"9SLF"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="4izq"},"4jl5":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='send($channel);\n\n // Main loop to keep the connection open and process messages\n while (true) {\n $message = $client->receive(); // Receive message\n if ($message) {\n // Check if message is binary\n if (is_string($message)) {\n $decodedMsg = decodeGzip($message);\n echo "Received Binary Message: $decodedMsg\n";\n\n if ($decodedMsg === "Ping") {\n $client->send("Pong");\n echo "Sent Pong\n";\n }\n } else {\n echo "Received Text Message: $message\n";\n }\n }\n\n // Send periodic ping messages\n $client->send("Ping");\n echo "Sent Ping\n";\n sleep(5); // 5 seconds\n }\n\n} catch (Exception $e) {\n echo "Exception: " . $e->getMessage() . "\n";\n}\n\n// GZIP decoding function\nfunction decodeGzip($compressedData) {\n $stream = gzopen(\'data://text/plain;base64,\' . base64_encode($compressedData), \'rb\');\n $decodedMessage = \'\';\n\n while (!gzeof($stream)) {\n $decodedMessage .= gzread($stream, 1024);\n }\n\n gzclose($stream);\n return $decodedMessage;\n}'},"4v69":function(e,t){e.exports=[{type:"hash",text:"Main Accoun internal transfer"},{type:"html",text:"Users can transfer money to each other within the bingx platform. Transfers are only allowed between main accounts and from main accounts to sub-accounts.
    For internal transfers within sub-accounts, please use the dedicated interface: User internal transfer"},{type:"normal",text:"HTTP Request",style:{"font-weight":"bold"}},{type:"normal",text:"request parameters",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/wallets/v1/capital/innerTransfer/apply",protocol:"https",method:"POST",payload:{amount:"10.0",coin:"USDT",userAccount:"16779999",userAccountType:"1",walletType:"1"},response:{code:0,timestamp:1702558152381,data:{id:"12******1"}}},params:[{type:"Request",key:"request",data:[{name:"coin",type:"string",required:"Yes",description:"Name of the transferred currency"},{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 number, email"},{name:"amount",type:"float64",required:"Yes",description:"Transfer amount"},{name:"callingCode",type:"string",required:"No",description:"Area code for telephone, required when userAccountType=2."},{name:"transferClientId",type:"string",required:"no",description:"Custom ID for internal transfer by the client, combination of numbers and letters, length less than 100 characters"},{name:"walletType",type:"int",required:"Yes",description:"Account type, 1 Fund Account; 2 Standard Futures Account; 3 Perpetual Futures Account"},{name:"timestamp",type:"int64",required:"Yes",description:"The timestamp of the request, in milliseconds."},{name:"recvWindow",type:"int64",required:"No",description:"Request validity time window, unit: milliseconds"}]},{type:"Response",key:"response",data:[{name:"id",type:"string",description:"The platform returns the unique ID of the internal transfer record."},{name:"transferClientId",type:"string",required:"no",description:"Custom ID for internal transfer by the client, combination of numbers and letters, length less than 100 characters"}]}]}]},"4w61":function(e,t){e.exports=[{type:"title",text:"2023-11-22"},{type:"normal",text:"",style:{"font-weight":"bold"},children:[{type:"html",text:"Spot depth websocket: Now supports 5/10/20/50/100 levels"},{type:"html",text:"Spot depth rest api: Now supports up to 1000 levels"},{type:"html",text:"Query user cross-transfer history: Added parameter 'tranId' to request"},{type:"html",text:"Get deposit history (supports multiple networks): Updated 'status' field in request/response to: 0-In progress, 6-Confirmed on chain, 1-Completed"},{type:"html",text:"Get withdrawal history (supports multiple networks): Updated 'status' field in request/response to: 4-Under review, 5-Failed, 6-Completed, Added parameter 'id' to request, Removed 'transferType' field from response"},{type:"html",text:"Query internal transfer records of master account: Added parameter 'status' to response: 4-Under review, 5-Failed, 6-Completed"},{type:"html",text:"Internal transfer of sub-account: Added 'callingCode' field, required when 'userAccountType' is 2"},{type:"html",text:"Query internal transfer records of sub-account: Added parameter 'status' to response: 4-Under review, 5-Failed, 6-Completed"},{type:"html",text:"Query deposit records of all coins: Added parameter 'coin' to request, Added fields 'depositEnable' and 'depositMin' to Network object in response"}]}]},"50Mv":function(e,t){e.exports=[{type:"hash",text:"TWAP下單"},{type:"normal",text:"創建一個時間加權委託(TWAP)訂單。此功能將幫助您在24小時內分批執行大額訂單,從而降低大額訂單對市場價格的影響,使平均成交價格更貼近實際市場價格,降低您的交易成本"},{type:"normal",text:"HTTP 請求",style:{"font-weight":"bold"}},{type:"normal",text:"接口參數",style:{"font-weight":"bold"}},{type:"demo",api:{uri:"/openApi/swap/v1/twap/order",protocol:"https",method:"POST",payload:{symbol:"BNB-USDT",side:"BUY",positionSide:"LONG",priceType:"constant",priceVariance:"2000",triggerPrice:"68000",interval:8,amountPerOrder:"0.111",totalAmount:"0.511",timestamp:1702731661854,recvWindow:"0"},response:{code:0,msg:"",timestamp:1702731661854,data:{mainOrderId:"12312413251322134"}}},params:[{type:"Request",key:"request",data:[{name:"symbol",type:"string",required:"是",description:"交易對,例如:BTC-USDT,請使用大寫字母"},{name:"side",type:"string",required:"是",description:"買賣方向 SELL, BUY"},{name:"positionSide",type:"string",required:"是",description:"LONG 或 SHORT"},{name:"priceType",type:"string",required:"是",description:"價格限制類型,constant:價格間距,percentage:滑點"},{name:"priceVariance",type:"string",required:"是",description:"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)"},{name:"triggerPrice",type:"string",required:"是",description:"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單"},{name:"interval",type:"int64",required:"是",description:"策略订单拆单后,委托下单的时间间隔,5-120s之间"},{name:"amountPerOrder",type:"string",required:"是",description:"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。"},{name:"totalAmount",type:"string",required:"是",description:"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。"},{name:"timestamp",type:"int64",required:"是",description:"請求的時間戳,單位為毫秒"},{name:"recvWindow",type:"int64",required:"否",description:"請求有效時間空窗值, 單位:毫秒"}]},{type:"Response",key:"response",data:[{name:"mainOrderId",type:"string",description:"TWAP委託訂單編號"}]}]}]},"5BSP":function(e,t,i){"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 "strings"\n\t"net/url"\n)\nconst HOST = "HHOOSSTT"\nconst API_KEY = ""\nconst API_SECRET = ""\nfunc main() {\n\n dataStr := ^AAPPII^\n payload := ^PPAAYYLLOOAADD^\n TIMESTAMP := time.Now().UnixNano()/1e6\n apiMap := getParameters(dataStr, payload,false,TIMESTAMP)\n sign := computeHmac256(fmt.Sprintf("%v",apiMap["parameters"]), API_SECRET)\n fmt.Println("parameters:",fmt.Sprintf("%v",apiMap["parameters"]))\n fmt.Println("sign:",sign)\n parameters := ""\n contains := strings.ContainsAny( fmt.Sprintf("%v",apiMap["parameters"]), "[{")\n if contains {\n apiMap2 := getParameters(dataStr, payload,true,TIMESTAMP)\n parameters = fmt.Sprintf("%v&signature=%s",apiMap2["parameters"], sign)\n } else {\n parameters = fmt.Sprintf("%v&signature=%s",apiMap["parameters"], sign)\n }\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("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, urlEncode bool, timestemp int64) map[string]interface{}{\n\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", 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", err)\n\t return apiMap\n\t}\n\tparameters := ""\n\tfor key, value := range payloadMap {\n\t\tif (urlEncode) {\n\t\t\tencodedStr := url.QueryEscape(fmt.Sprintf("%v",value))\n\t\t\tencodedStr = strings.ReplaceAll(encodedStr, "+", "%20")\n\t\t\tparameters = parameters + key+"="+encodedStr+"&"\n\t\t} else {\n\t\t\tparameters = parameters + key+"="+fmt.Sprintf("%v",value)+"&"\n\t\t}\n }\n\tparameters +="timestamp="+fmt.Sprintf("%d",timestemp)\n\tapiMap["parameters"]=fmt.Sprintf("%v",parameters)\n\treturn apiMap\n}'},"5ECq":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i.d(t,"Data",function(){return a});for(var r=i("btx7").keys(),n=[],o=0;oBingX開發者文檔, 歡迎報名BingX經濟商項目 BingX Broker Program Application"},{type:"normal",text:"本文檔提供了永續合約交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。"},{type:"html",text:"此頁面為永續合約V2版本的開發者文檔,推薦使用。如需查看V1版本的介面說明,可訪問:USDT本位永續合約V1"},{type:"html",text:"如有問題反饋可加入:API問題telegram電報群"}]}},"5H3S":function(e,t,i){var r={".":"2ggw","./":"2ggw","./01_post_trade_a_order":"ZnNv","./01_post_trade_a_order.json":"ZnNv","./01_post_trade_batchOrders":"pX3/","./01_post_trade_batchOrders.json":"pX3/","./021_post_trade_order_cancel":"ev9X","./021_post_trade_order_cancel.json":"ev9X","./022_post_trade_orders_cancel":"aTY/","./022_post_trade_orders_cancel.json":"aTY/","./023_post_cancelOpenOrders":"gz1R","./023_post_cancelOpenOrders.json":"gz1R","./023_post_trade_order_cancel_replace":"TA5G","./023_post_trade_order_cancel_replace.json":"TA5G","./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","./077_get_trade_fill_details":"s+Dd","./077_get_trade_fill_details.json":"s+Dd","./08_get_commissionRate":"sPli","./08_get_commissionRate.json":"sPli","./09_cancel_all_after":"KWsz","./09_cancel_all_after.json":"KWsz","./100_post_one_oco_order":"R/1P","./100_post_one_oco_order.json":"R/1P","./101_cancel_one_oco_order":"dd2V","./101_cancel_one_oco_order.json":"dd2V","./102_get_one_oco_order":"MN46","./102_get_one_oco_order.json":"MN46","./103_get_all_pending_oco_order":"YC1x","./103_get_all_pending_oco_order.json":"YC1x","./104_get_all_history_oco_order":"JLQZ","./104_get_all_history_oco_order.json":"JLQZ","./index":"2ggw","./index.js":"2ggw"};function n(e){return i(o(e))}function o(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}n.keys=function(){return Object.keys(r)},n.resolve=o,e.exports=n,n.id="5H3S"},"5KyA":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\n\n`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/spot/html.js","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱24小時價格變動\"},{\"type\":\"normal\",\"text\":\"每1000ms推送24小時價格變動的數據\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @ticker,比如BTC_USDT@ticker\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@ticker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對名稱,如BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"幣對名稱\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"毫秒時間戳,timestamp\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"開盤價,open\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"最高價,high\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"最低價,low\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"數量,volume\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"成交額,幣本位-幣數量,U本位-金額USDT\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"成交額,幣本位-是USD,U本位-無用\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"價格變動\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"價格變動幅度\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"最新價格\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"最新成交時間\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"最新成交張數\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"買一價\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"買一張數\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"賣一價\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賣一張數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/07_24hr_ticker.json\n// module id = 5LXd\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-05-27\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:訂閱所有幣對24小時價格變動\"},{\"type\":\"html\",\"text\":\"永續新增接口:訂閱合約所有幣對k線數據\"},{\"type\":\"html\",\"text\":\"永續新增接口:訂閱所有幣對有限檔深度信息\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-05-27.json\n// module id = 5LYy\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/en-us/swapV2/description\",\"name\":\"interface\",\"content\":[{\"type\":\"html\",\"text\":\"
  • The api 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.
  • \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/2_description.json\n// module id = 5MML\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱最優掛單\"},{\"type\":\"normal\",\"text\":\"每10ms推送一次。\"},{\"type\":\"normal\",\"text\":\"推送最優掛單。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @bookTicker,比如BTC-USDT@bookTicker。\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},\"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@bookTicker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"u\",\"type\":\"\",\"description\":\"更新ID\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件推送時間\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"撮合時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"買單最優掛單價格\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"買單最優掛單數量\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賣單最優掛單價格\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"賣單最優掛單價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/07_book_ticker.json\n// module id = 5TRZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"逐倉保證金變動歷史\"},{\"type\":\"normal\",\"text\":\"用於查詢最近30天U本位合約逐倉幣對的保證金調整的歷史記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionMargin/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDT\",\"positionId\":\"1847596444958068736\",\"startTime\":1728722649000,\"endTime\":1729336359406,\"pageIndex\":1,\"pageSize\":2,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"records\":[{\"symbol\":\"BTC-USDT\",\"positionId\":\"1847596444958068736\",\"changeReason\":\"OpenPosition\",\"marginChange\":\"7586.46841066\",\"marginAfterChange\":\"7586.46841066\",\"time\":1729336294000}],\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對,例如:BTC-USDT,請使用大寫字母\"},{\"name\":\"positionId\",\"type\":\"string\",\"required\":\"是\",\"description\":\"倉位ID\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"開始時間戳, 毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"結束時間戳, 毫秒\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"頁碼,必須大於0,如果不提供,預設為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"頁面大小,必須大於0,最大值為100\"},{\"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\":\"changeReason\",\"type\":\"string\",\"description\":\"ManualMarginAddition: 手動新增保證金 / ManualMarginReduction: 手動減少保證金/ IncreaseLeverage: 調高槓桿 / ReduceLeverage: 調低槓桿 / OpenPosition: 開倉 / ClosePosition: 平倉 / Liquidation: 強制平倉 / ADL:自動減倉 / CloseOpenPosition : 先平後開倉位 /FundingFeeSettlement: 資金費率結算/ AutoMarginAddition: 自動追加保證金\"},{\"name\":\"marginChange\",\"type\":\"string\",\"description\":\"變更金額\"},{\"name\":\"marginAfterChange\",\"type\":\"string\",\"description\":\"變更後總金額\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"變更時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/27_get_position_margin_history.json\n// module id = 5iQm\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷TWAP委託\"},{\"type\":\"normal\",\"text\":\"用於撤銷TWAP委託訂單 \"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/cancelOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"mainOrderId\":\"12312435134\",\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"mainOrderId\",\"type\":\"string\",\"required\":\"是\",\"description\":\"TWAP委託訂單編號\"},{\"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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP委託訂單編號\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG 或 SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"價格限制類型,constant:價格間距,percentage:滑點\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"策略订单拆单后,委托下单的时间间隔,5-120s之间\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。\"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: 新建 /Running:運作中/Canceling:撤銷單中/Filled:全部成交/PartiallyFilled:部分成交/Pending:未觸發/PartiallyFilledAndResidueFailed:部分成交(剩餘委託失敗),演算法單狀態/ PartiallyFilledAndResidueCancelled:部分成交(剩餘撤銷),演算法單狀態/Cancelled:已撤銷(不存在部分成交)/Failed:委托失败(不存在部分成交)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"已執行時間,單位秒。執行時間到期後委託單將被取消。 \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"最大執行時間執行時間,單位:秒。\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"訂單創建時間,單位:毫秒\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"訂單更新時間,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/32_cancel_twap_order.json\n// module id = 5pjb\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Price & Current Funding Rate\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"BTC-USD\",\"markPrice\":\"42216.4\",\"indexPrice\":\"42219.9\",\"lastFundingRate\":\"0.00025100\",\"nextFundingTime\":1702742400000}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"trading pair, for example: BTC-USD\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status Code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USD\"},{\"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/cswap/api/market/02_get_premiumIndex.json\n// module id = 5uda\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"標記價格K線數據\"},{\"type\":\"normal\",\"text\":\"查詢標記價格的K線數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/market/markPriceKlines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"KNC-USDT\",\"interval\":\"1h\",\"limit\":\"1000\",\"startTime\":\"1702717199998\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"0.7034\",\"close\":\"0.7065\",\"high\":\"0.7081\",\"low\":\"0.7033\",\"volume\":\"635494.00\",\"openTime\":1705820520000,\"closeTime\":1705820520000}]}},\"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\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"openTime\",\"type\":\"int64\",\"description\":\"開盤時間戳,单位毫秒\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"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/api/market/21_get_quote_mark_price_klines.json\n// module id = 5vst\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新標記價格和資金費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"BTC-USDT\",\"markPrice\":\"42216.4\",\"indexPrice\":\"42219.9\",\"lastFundingRate\":\"0.00025100\",\"nextFundingTime\":1702742400000}}},\"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\":\"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-tw/swapV2/api/market/05_get_quote_ premiumIndex.json\n// module id = 5xUh\n// module chunks = 3","module.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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"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\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"}\"},\"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\":\"The amount of change in the asset account in this transaction\"},{\"name\":\"cw\",\"type\":\"\",\"description\":\"The total assets in the account after the change in the asset account\"},{\"name\":\"wb\",\"type\":\"\",\"description\":\"The total assets in the account after the change in the asset account\"},{\"name\":\"lk\",\"type\":\"\",\"description\":\"Locked Asset\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/account/02_ account_update.json\n// module id = 5y10\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place TWAP Order\"},{\"type\":\"normal\",\"text\":\"Create a Time Weighted Order (TWAP) order. This function will help you execute large orders in batches within 24 hours, thereby reducing the impact of large orders on market prices, making the average transaction price closer to the actual market price, and reducing your transaction costs.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BNB-USDT\",\"positionId\":\"1847596444958068736\",\"startTime\":1728722649000,\"endTime\":1729336359406,\"pageIndex\":1,\"pageSize\":2,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"records\":[{\"symbol\":\"BTC-USDT\",\"positionId\":\"1847596444958068736\",\"changeReason\":\"OpenPosition\",\"marginChange\":\"7586.46841066\",\"marginAfterChange\":\"7586.46841066\",\"time\":1729336294000}],\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"LONG or SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Price limit type; constant: price interval / percentage: slippage\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order.\"},{\"name\":\"interval\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"After the strategic order is split, the time interval for order placing is between 5-120s.\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order。\"},{\"name\":\"totalAmount\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"twap order number\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/28_post_twap_order.json\n// module id = 6+7u\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-19\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual contract new: Close position by positionId\"},{\"type\":\"html\",\"text\":\"Perpetual websocket: Added stopGuaranteed field to order information.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The query order api returns the stopGuaranteed field.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The query order api and the query history orders api return the triggerOrderId field.\"},{\"type\":\"html\",\"text\":\"Added tradeMinQuantity, tradeMinUSDT, makerFeeRate, and takerFeeRate to the /openApi/swap/v2/quote/contracts endpoint in the sustainable market interface.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-03-19.json\n// module id = 68aw\n// module chunks = 3","var map = {\n\t\".\": \"LuFD\",\n\t\"./\": \"LuFD\",\n\t\"./00_get_account_balance\": \"hIqz\",\n\t\"./00_get_account_balance.json\": \"hIqz\",\n\t\"./01_get_asset_transfer\": \"zvGN\",\n\t\"./01_get_asset_transfer.json\": \"zvGN\",\n\t\"./02_get_asset_transfer2\": \"ah5Z\",\n\t\"./02_get_asset_transfer2.json\": \"ah5Z\",\n\t\"./07_post_capital_innerTransfer_apply\": \"iYO+\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"iYO+\",\n\t\"./14.get_wallet_queryInnerTransferRecords\": \"Jtu9\",\n\t\"./14.get_wallet_queryInnerTransferRecords.json\": \"Jtu9\",\n\t\"./21_get_account_allAccountBalance\": \"9SLF\",\n\t\"./21_get_account_allAccountBalance.json\": \"9SLF\",\n\t\"./index\": \"LuFD\",\n\t\"./index.js\": \"LuFD\"\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 = \"6DOK\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account ^.*$\n// module id = 6DOK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Sub-Account Asset Transfer Interface (For Master Account Operations Only)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/account/transfer/v1/subAccount/transferAsset'\"},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/transferAsset\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"assetName\":\"USDT\",\"transferAmount\":\"1.1\",\"fromUid\":\"25472377\",\"fromAccountType\":\"2\",\"fromType\":\"2\",\"toUid\":\"25316652\",\"toAccountType\":\"1\",\"toType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"code\":0,\"timestamp\":1719495091669,\"data\":{\"tranId\":\"1051323892566796963873\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"assetName\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Name of the asset, e.g., USDT\"},{\"name\":\"transferAmount\",\"type\":\"DECIMAL\",\"required\":\"Yes\",\"description\":\"Transfer amount\"},{\"name\":\"fromUid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender UID\"},{\"name\":\"fromType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender sub/master account type: 1-Master account; 2-Sub-account\"},{\"name\":\"fromAccountType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender account type: 1-Fund account; 2-Contract account; 3-Perpetual USD-based account\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver UID\"},{\"name\":\"toType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver sub/master account type: 1-Master account; 2-Sub-account\"},{\"name\":\"toAccountType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver account type: 1-Fund account; 2-Contract account; 3-Perpetual USD-based account\"},{\"name\":\"remark\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Transfer remark\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"Execution window time, cannot exceed 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Current timestamp, e.g., 1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tranId\",\"type\":\"STRING\",\"description\":\"Transfer record ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/20.sub_account_transfer.json\n// module id = 6Epj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel All After\"},{\"type\":\"normal\",\"text\":\"After the countdown ends, cancel all current pending orders. This request can be continuously maintained to constantly extend the penalty time.\"},{\"type\":\"normal\",\"text\":\"Rate limit: 1 time/1s\"},{\"type\":\"warning\",\"text\":\"If you have a large amount of pending orders, they will be canceled in batches, which may take several seconds to cancel in batches. In addition, during the process of canceling all pending orders, the system will reject further ACTIVATE and CLOSE requests. After the system has completed the task of canceling all pending orders, it can continue to accept ACTIVATE and CLOSE requests.\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/cancelAllAfter\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"type\":\"ACTIVATE\",\"timeOut\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"triggerTime\":1710389137,\"status\":\"ACTIVATED\",\"note\":\"All your spot pending orders will be closed automatically at 2024-03-14 04:05:37 UTC(+0),before that you can cancel the timer, or extend triggerTime time by this request\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Request type: ACTIVATE-Activate, CLOSE-Close\"},{\"name\":\"timeOut\",\"type\":\"int\",\"required\":\"Yes\",\"description\":\"Activate countdown time (seconds), range: 10s-120s\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"triggerTime\",\"type\":\"int\",\"description\":\"Trigger time for deleting all pending orders\"},{\"name\":\"status\",\"type\":\"Status\",\"description\":\"ACTIVATED (Activation successful)/CLOSED (Closed successfully)/FAILED (Failed)\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"Explanation\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/22_cancel_all_after.json\n// module id = 6Ivy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Leverage\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Request Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718354677397,\"data\":{\"symbol\":\"BTC-USD\",\"longLeverage\":4,\"shortLeverage\":8,\"maxLongLeverage\":150,\"maxShortLeverage\":150,\"availableLongVol\":\"15000000\",\"availableShortVol\":\"15000000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g. BTC-USD, use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation timestamp, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"Long position leverage\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"Short position leverage\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"Maximum long position leverage\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"Maximum short position leverage\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"Available long volume\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"Available short volume\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/01_get_leverage.json\n// module id = 6Wqe\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"模擬交易下單\"},{\"type\":\"desc\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\",\"desc\":[{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRAILING_STOP_MARKET(追跡委託單)和TRAILING_TP_SL(移動止盈止損單):需填寫price欄位或者priceRate欄位
  • \"},{\"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\":\"html\",\"text\":\"

    3. 開倉加倉的同時設置止盈止損:使用takeProfit或者stopLoss字段

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"最小下單數量可從接口 /openApi/swap/v2/quote/contracts 獲取:tradeMinQuantity、tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]}]},{\"type\":\"warning\",\"text\":\"模擬盤下單域名:open-api-vst.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"溫馨提醒:由於市場波動較大,為降低爆倉風險,API訂單暫時關閉。\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"需要滿足最小下單金額2U\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"當前您的賬號被風控,當前無法使用API下單,需要聯繫我們客服確認\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"需要填寫quantity字段\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"止損價格需要低於當前最新價\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"當前無倉位,請先檢查是否有倉位\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"保證金不足,請先檢查是否足夠\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"需要填寫必填參數\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,不同訂單不可使用相同的clientOrderId, clientOrderId 僅支援 LIMIT/MARKET 訂單類型\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC和FOK\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單。\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"orderID\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單Id,系統會將該字段轉為英文小寫\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/01_post_trade_order_vst.json\n// module id = 6dPc\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-09-29\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"USDT-M Perp Futures: Websocket market data push, added an explanation of the push frequency.\"},{\"type\":\"html\",\"text\":\"perpetual future websocket: MAX 240 websocket connections per IP\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-09-23.json\n// module id = 6qxj\n// module chunks = 3","var map = {\n\t\"./01_create_api.json\": \"+Rge\",\n\t\"./02_permission_set.json\": \"UG8z\",\n\t\"./03_request_content.json\": \"hS6o\",\n\t\"./04_sign_discription.json\": \"9KKA\",\n\t\"./05_request.json\": \"uSYo\"\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 = \"6wHN\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication \\.json$\n// module id = 6wHN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query 24-Hour Price Change\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/ticker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"priceChange\":\"-561.1\",\"priceChangePercent\":\"-0.8200%\",\"lastPrice\":\"67713.5\",\"lastQty\":\"38\",\"highPrice\":\"68346.9\",\"lowPrice\":\"67521.3\",\"volume\":\"3825668.00\",\"quoteVolume\":\"5084.51\",\"openPrice\":\"68279.2\",\"closeTime\":\"1717053813892\",\"bidPrice\":\"67712.7\",\"bidQty\":\"2100\",\"askPrice\":\"80000.0\",\"askQty\":\"1600\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USD. Please use uppercase letters.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status code.\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description message.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, e.g., BTC-USD.\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"24-hour price change.\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"Price change percentage.\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"Latest trading price.\"},{\"name\":\"lastQty\",\"type\":\"string\",\"description\":\"Latest trading quantity.\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"24-hour highest price.\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"24-hour lowest price.\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"24-hour trading volume.\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"24-hour trading volume in USD.\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"First price within 24 hours.\"},{\"name\":\"closeTime\",\"type\":\"string\",\"description\":\"Time of the last trade within 24 hours.\"},{\"name\":\"bidPrice\",\"type\":\"string\",\"description\":\"Best bid price.\"},{\"name\":\"bidQty\",\"type\":\"string\",\"description\":\"Best bid quantity, in contracts.\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"Best ask price.\"},{\"name\":\"askQty\",\"type\":\"string\",\"description\":\"Best ask quantity, in contracts.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/06_get_ticker.json\n// module id = 6xac\n// module chunks = 3","var map = {\n\t\".\": \"5ECq\",\n\t\"./\": \"5ECq\",\n\t\"./00_post_trade_order_test\": \"TrnZ\",\n\t\"./00_post_trade_order_test.json\": \"TrnZ\",\n\t\"./01_post_trade_order\": \"YLkf\",\n\t\"./01_post_trade_order.json\": \"YLkf\",\n\t\"./01_post_trade_order_vst\": \"dww0\",\n\t\"./01_post_trade_order_vst.json\": \"dww0\",\n\t\"./02_post_trade_batch_order\": \"/bqr\",\n\t\"./02_post_trade_batch_order.json\": \"/bqr\",\n\t\"./03_post_closeAllPositions\": \"jBL/\",\n\t\"./03_post_closeAllPositions.json\": \"jBL/\",\n\t\"./04_delete_trade_order\": \"nf3C\",\n\t\"./04_delete_trade_order.json\": \"nf3C\",\n\t\"./05_delete_trade_batch_order\": \"siG2\",\n\t\"./05_delete_trade_batch_order.json\": \"siG2\",\n\t\"./06_delete_trade_all_order\": \"/Fs7\",\n\t\"./06_delete_trade_all_order.json\": \"/Fs7\",\n\t\"./07_get_all_openOrders\": \"jxdV\",\n\t\"./07_get_all_openOrders.json\": \"jxdV\",\n\t\"./08_check_pending_order\": \"fLAw\",\n\t\"./08_check_pending_order.json\": \"fLAw\",\n\t\"./08_get_trade_order\": \"1xud\",\n\t\"./08_get_trade_order.json\": \"1xud\",\n\t\"./09_get_trade_marginType\": \"Qa4f\",\n\t\"./09_get_trade_marginType.json\": \"Qa4f\",\n\t\"./10_post_trade_marginType\": \"WCFx\",\n\t\"./10_post_trade_marginType.json\": \"WCFx\",\n\t\"./11_get_trade_leverage\": \"Nux4\",\n\t\"./11_get_trade_leverage.json\": \"Nux4\",\n\t\"./12_post_trade_leverage\": \"j3Xb\",\n\t\"./12_post_trade_leverage.json\": \"j3Xb\",\n\t\"./13_get_trade_forceOrders\": \"fUN5\",\n\t\"./13_get_trade_forceOrders.json\": \"fUN5\",\n\t\"./14_get_trade_allOrders\": \"iu9b\",\n\t\"./14_get_trade_allOrders.json\": \"iu9b\",\n\t\"./15_post_trade_positionMargin\": \"i3k4\",\n\t\"./15_post_trade_positionMargin.json\": \"i3k4\",\n\t\"./17_get_trade_allFillOrders\": \"1A8u\",\n\t\"./17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./18_set_positionSide\": \"wp4b\",\n\t\"./18_set_positionSide.json\": \"wp4b\",\n\t\"./19_get_positionSide\": \"n7WW\",\n\t\"./19_get_positionSide.json\": \"n7WW\",\n\t\"./20_cancel_replace_order\": \"vKvg\",\n\t\"./20_cancel_replace_order.json\": \"vKvg\",\n\t\"./21_batch_cancel_replace_order\": \"nNrq\",\n\t\"./21_batch_cancel_replace_order.json\": \"nNrq\",\n\t\"./22_cancel_all_after\": \"6Ivy\",\n\t\"./22_cancel_all_after.json\": \"6Ivy\",\n\t\"./22_post_closePosition\": \"JRrP\",\n\t\"./22_post_closePosition.json\": \"JRrP\",\n\t\"./23_get_trade_allOrdersV2\": \"wYbs\",\n\t\"./23_get_trade_allOrdersV2.json\": \"wYbs\",\n\t\"./24_get_maint_margin_ratio\": \"OkoV\",\n\t\"./24_get_maint_margin_ratio.json\": \"OkoV\",\n\t\"./25_get_fill_history_detail\": \"l3pU\",\n\t\"./25_get_fill_history_detail.json\": \"l3pU\",\n\t\"./26_get_user_position_history\": \"xptQ\",\n\t\"./26_get_user_position_history.json\": \"xptQ\",\n\t\"./27_get_position_margin_history\": \"bHz9\",\n\t\"./27_get_position_margin_history.json\": \"bHz9\",\n\t\"./27_post_get_vst\": \"cn9g\",\n\t\"./27_post_get_vst.json\": \"cn9g\",\n\t\"./28_post_twap_order\": \"6+7u\",\n\t\"./28_post_twap_order.json\": \"6+7u\",\n\t\"./29_get_twap_open_orders\": \"2vkv\",\n\t\"./29_get_twap_open_orders.json\": \"2vkv\",\n\t\"./30_get_twap_history_orders\": \"BBsp\",\n\t\"./30_get_twap_history_orders.json\": \"BBsp\",\n\t\"./31_get_twap_order_detail\": \"NQ2q\",\n\t\"./31_get_twap_order_detail.json\": \"NQ2q\",\n\t\"./32_cancel_twap_cancel_order\": \"iXtv\",\n\t\"./32_cancel_twap_cancel_order.json\": \"iXtv\",\n\t\"./33_post_asset_mode\": \"xS3w\",\n\t\"./33_post_asset_mode.json\": \"xS3w\",\n\t\"./34_get_asset_mode\": \"ZFUX\",\n\t\"./34_get_asset_mode.json\": \"ZFUX\",\n\t\"./35_get_multi_asset_rule\": \"jifI\",\n\t\"./35_get_multi_asset_rule.json\": \"jifI\",\n\t\"./36_get_margin_asset\": \"+eKI\",\n\t\"./36_get_margin_asset.json\": \"+eKI\",\n\t\"./index\": \"5ECq\",\n\t\"./index.js\": \"5ECq\"\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 = \"733f\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade ^.*$\n// module id = 733f\n// module chunks = 3","module.exports = {\"_from\":\"axios@^0.21.1\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"range\",\"registry\":true,\"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\":false,\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"deprecated\":false,\"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\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/package.json\n// module id = 75l9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query force orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/forceOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, for example: BTC-USD, use uppercase letters\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"No\",\"description\":\"LIQUIDATION:Force order, ADL:Reduce order\"},{\"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\":\"The number of results in the returned result set, default value: 50, maximum value: 100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request time stamp, unit: milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request effective time window value, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description information\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation time point, unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"Force order list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order number\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type, LIMIT:Limit order/MARKET:Market order/STOP_MARKET:Market stop-loss order/TAKE_PROFIT_MARKET:Market take-profit order/STOP:Limit stop-loss order/TAKE_PROFIT:Limit take-profit order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Buy or sell direction, SELL BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, dual-position only CAN be selected as LONG or SHORT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Order price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity, contract quantity\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price, only STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT need this parameter\"},{\"name\":\"workingType\",\"type\":\"string\",\"description\":\"stopPrice trigger price type: MARK_PRICE, CONTRACT_PRICE, default: MARK_PRICE.\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Order time, unit: milliseconds\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average transaction price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Transaction volume, contract quantity\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"Profit or loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Commission\"},{\"name\":\"updateTime\",\"type\":\"string\",\"description\":\"Update time, unit: milliseconds\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/08_get_forceOrders.json\n// module id = 79Xw\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱24小時價格變動\"},{\"type\":\"normal\",\"text\":\"每1000ms推送24小時價格變動的數據\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @ticker,比如BTC_USDT@ticker\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對名稱,如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"價格變動\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"價格變動百分比\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"開盤價\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"最高價\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"最低價\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"最新成交價\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"成交量\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"成交額\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"統計開始時間\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"統計結束時間\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"最優買價\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"最優買量\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"最優賣價\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"最優賣量\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"成交筆數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/04_24hr_ticker.json\n// module id = 7Biw\n// module chunks = 3","var map = {\n\t\"./01_create_sub_accuont.json\": \"+6hF\",\n\t\"./02_get_account_apiPermission.json\": \"vPcu\",\n\t\"./02_post_fetch_uid.json\": \"xx9R\",\n\t\"./03_post_fetch_sub_account_list.json\": \"uuPR\",\n\t\"./04_get_sub_account_spot_balance.json\": \"PVSb\",\n\t\"./05_create_sub_accuont_key.json\": \"eSSt\",\n\t\"./06_get_api_key_info.json\": \"MQqI\",\n\t\"./07_post_edit_apikey.json\": \"Jwag\",\n\t\"./08_delete_sub_account_key.json\": \"J2bY\",\n\t\"./09_update_sub_account_status.json\": \"nHln\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"HQ8m\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"+W0b\",\n\t\"./11_post_capital_innerTransfer_apply.json\": \"4v69\",\n\t\"./12.post_wallet_createSubDepositAddress.json\": \"33ms\",\n\t\"./15.get_wallet_querySubDepositAddress.json\": \"zfQA\",\n\t\"./16.get_wallet_querySubDepositRecords.json\": \"cjvr\",\n\t\"./17.get_wallet_querySubInnerTransferRecords.json\": \"FRId\",\n\t\"./18.query_sub_account_transfer_history.json\": \"Jxen\",\n\t\"./19.sub_account_transfer_support_coin.json\": \"A6qi\",\n\t\"./20.sub_account_transfer.json\": \"6Epj\",\n\t\"./22_sub_account_allAccountBalance.json\": \"aaNH\"\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 = \"7I4l\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount \\.json$\n// module id = 7I4l\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"歷史K線\"},{\"type\":\"normal\",\"text\":\"查詢成交價格的歷史K線數據\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 僅支持2024年以後的歷史數據
  • \"},{\"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/market/his/v1/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"1m\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720626772,\"data\":[[1702720620000,42216.29,42216.94,42216.29,42216.72,0.2,1702720679999,8548.46],[1702720560000,42220.61,42221.1,42215.56,42216.63,2.93,1702720619999,123968.7],[1702720500000,42182.59,42220.38,42182.59,42220.38,1.53,1702720559999,64851.33],[1702720440000,42182.84,42183.16,42182.22,42182.81,2.54,1702720499999,107559.45],[1702720380000,42199.72,42204.53,42180.2,42182.76,1.1,1702720439999,46549.09]]}},\"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 最大值:500\"}]},{\"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-tw/spot/api/market/09_get_market_history_klines.json\n// module id = 7UNC\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"査詢受邀用戶的存款明細\"},{\"type\":\"normal\",\"text\":\"代理KOL可以通過此介面査詢相應UID在一定時間內的存款明細。\"},{\"type\":\"html\",\"text\":\"
  • 1.驗證用戶必須是父用戶並具有代理角色;
  • \"},{\"type\":\"html\",\"text\":\"
  • 2.査詢的UID必須是驗證用戶直接或間接邀請的用戶;
  • \"},{\"type\":\"html\",\"text\":\"
  • 3.現時只支持存款資訊。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\",\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"bizType\":\"1\",\"recWindow\":\"6000\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"list\":[{\"uid\":2489544,\"inviteResult\":true,\"directInvitation\":true,\"bizType\":1,\"bizTime\":1673674073000,\"assetType\":30,\"assetTypeName\":\"Deposit\",\"currencyName\":\"USDT\",\"currencyAmountVolume\":\"1000\"}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"YES\",\"description\":\"邀請用戶UID必須是父用戶UID\"},{\"name\":\"bizType\",\"type\":\"int\",\"required\":\"YES\",\"description\":\"1:押金\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"開始時間戳(天),僅支持査詢最後90天的數據。\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"結束時間戳(天)。 只能査詢最後90天的數據。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁碼必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"頁數必須大於0,最大值為100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求有效的時間視窗值,組織:毫秒。 如果未填充,預設值為5秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"請求時間戳記,組織:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"受邀用戶UID\"},{\"name\":\"inviteResult\",\"type\":\"boolean\",\"description\":\"true:邀請關係,false:非邀請關係\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true:直接邀請,false:間接邀請\"},{\"name\":\"bizType\",\"type\":\"int\",\"description\":\"1:押金\"},{\"name\":\"bizTime\",\"type\":\"long\",\"description\":\"事件時間\"},{\"name\":\"assetType\",\"type\":\"int\",\"description\":\"操作類型細分\"},{\"name\":\"assetTypeName\",\"type\":\"string\",\"description\":\"操作類型細分名稱\"},{\"name\":\"currencyName\",\"type\":\"string\",\"description\":\"貨幣\"},{\"name\":\"currencyAmountVolume\",\"type\":\"string\",\"description\":\"數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/04_get_Query_the_deposit_details.json\n// module id = 7XUQ\n// module chunks = 3","var map = {\n\t\".\": \"a9sA\",\n\t\"./\": \"a9sA\",\n\t\"./01_connect\": \"3tXb\",\n\t\"./01_connect.json\": \"3tXb\",\n\t\"./02_data_compress\": \"CVyP\",\n\t\"./02_data_compress.json\": \"CVyP\",\n\t\"./03_heart_beat\": \"vR2M\",\n\t\"./03_heart_beat.json\": \"vR2M\",\n\t\"./04_subscribe\": \"UYWd\",\n\t\"./04_subscribe.json\": \"UYWd\",\n\t\"./05_cancel_subscribe\": \"2xEp\",\n\t\"./05_cancel_subscribe.json\": \"2xEp\",\n\t\"./index\": \"a9sA\",\n\t\"./index.js\": \"a9sA\"\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 = \"7aF3\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/introduce ^.*$\n// module id = 7aF3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單\"},{\"type\":\"normal\",\"text\":\"查詢用戶歷史訂單(訂單狀態為已成交或已撤銷)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 查詢時間範圍最大不得超過7天
  • \"},{\"type\":\"html\",\"text\":\"
  • 默認查詢最近7天內的數據
  • \"},{\"type\":\"html\",\"text\":\"
  • 返回訂單列表按照updateTime從小到大排序
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USDT\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500,\"isTwap\":true,\"mainOrderId\":\"2131232141234\"}]}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"the query range is more than seven days\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母,如果不填寫symbol,則會查詢所有幣對的歷史訂單。\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or 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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"},{\"name\":\"triggerOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"这一訂單關聯的觸發單訂單號\"},{\"name\":\"isTwap\",\"type\":\"bool\",\"description\":\"是否為TWAP訂單,true:是,flase:不是\"},{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP委託訂單編號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/14_get_trade_allOrders.json\n// module id = 7bgg\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史成交訂單\"},{\"type\":\"normal\",\"text\":\"獲取某交易對的成交歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"返回訂單列表規則說明\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"排序:ORDER BY filledTime ASC,以filledTime字段升序\"},{\"type\":\"normal\",\"text\":\"最多能返回[從當前日期]到過去30天&最多能返回512條歷史成交訂單,startTs = [當前日期] - 30days\"},{\"type\":\"normal\",\"text\":\"如果startTs和endTs都填寫,則返回數據範圍:startTs < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"如果只填寫endTs,則返回數據範圍:([當前日期] - 30days) < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"如果只填寫startTs不返回數據\"},{\"type\":\"normal\",\"text\":\"如果填寫orderId,只返回該orderId的成交訂單\"}]},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allFillOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTs\":\"1702731530000\",\"startTs\":\"1702724330000\",\"symbol\":\"WLD-USDT\",\"tradingUnit\":\"COIN\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"fill_orders\":[{\"filledTm\":\"2023-12-16T20:58:36Z\",\"volume\":\"4.10\",\"price\":\"3.1088\",\"amount\":\"12.7492\",\"commission\":\"-0.0025\",\"currency\":\"USDT\",\"orderId\":\"1736007768311123456\",\"liquidatedPrice\":\"\",\"liquidatedMarginRatio\":\"\",\"filledTime\":\"2023-12-16T20:58:36.000+0800\",\"clientOrderId\":\"\",\"symbol\":\"WLD-USDT\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母。如果未提供特定的交易對,則將返回所有交易對的歷史成交記錄\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"如果填寫orderId,只返回該orderId的成交訂單\"},{\"name\":\"tradingUnit\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易單位,可選值:COIN、CONT;COIN直接表示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\",\"required\":\"否\",\"description\":\"成交時間,格式:2024-10-24T17:13:12Z\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,例如:BTC-USDT\"},{\"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\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"onlyOnePosition\",\"type\":\"bool\",\"required\":\"否\",\"description\":\"是否單向持倉,true:是;false:不是\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/17_get_trade_allFillOrders.json\n// module id = 7iFh\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\\\": \\\"\\\" }\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce/05_cancel_subscribe.json\n// module id = 7k03\n// module chunks = 3","var map = {\n\t\".\": \"D4vT\",\n\t\"./\": \"D4vT\",\n\t\"./00_post_trade_order\": \"YI4R\",\n\t\"./00_post_trade_order.json\": \"YI4R\",\n\t\"./01_get_commissionRate\": \"n+yS\",\n\t\"./01_get_commissionRate.json\": \"n+yS\",\n\t\"./02_get_leverage\": \"bFqw\",\n\t\"./02_get_leverage.json\": \"bFqw\",\n\t\"./03_post_leverage\": \"N7P3\",\n\t\"./03_post_leverage.json\": \"N7P3\",\n\t\"./04_post_allOpenOrders\": \"0Lu1\",\n\t\"./04_post_allOpenOrders.json\": \"0Lu1\",\n\t\"./05_post_closeAllPositions\": \"vDcD\",\n\t\"./05_post_closeAllPositions.json\": \"vDcD\",\n\t\"./06_get_positions\": \"+oba\",\n\t\"./06_get_positions.json\": \"+oba\",\n\t\"./07_get_balance\": \"ptJe\",\n\t\"./07_get_balance.json\": \"ptJe\",\n\t\"./08_get_forceOrders\": \"D/10\",\n\t\"./08_get_forceOrders.json\": \"D/10\",\n\t\"./09_get_allFillOrders\": \"f4x/\",\n\t\"./09_get_allFillOrders.json\": \"f4x/\",\n\t\"./10_delete_trade_order\": \"01Ul\",\n\t\"./10_delete_trade_order.json\": \"01Ul\",\n\t\"./11_get_all_openOrders\": \"TzVG\",\n\t\"./11_get_all_openOrders.json\": \"TzVG\",\n\t\"./12_get_trade_order\": \"c76v\",\n\t\"./12_get_trade_order.json\": \"c76v\",\n\t\"./14_get_trade_allOrders\": \"I2ee\",\n\t\"./14_get_trade_allOrders.json\": \"I2ee\",\n\t\"./15_get_margin_type\": \"qPGu\",\n\t\"./15_get_margin_type.json\": \"qPGu\",\n\t\"./16_post_margin_type\": \"LawJ\",\n\t\"./16_post_margin_type.json\": \"LawJ\",\n\t\"./17_post_trade_positionMargin\": \"eN7O\",\n\t\"./17_post_trade_positionMargin.json\": \"eN7O\",\n\t\"./index\": \"D4vT\",\n\t\"./index.js\": \"D4vT\"\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 = \"7m+0\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade ^.*$\n// module id = 7m+0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢逐全倉模式\"},{\"type\":\"normal\",\"text\":\"查詢用戶在指定symbol合約上的保證金模式:逐倉或全倉。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"WOO-USDT\",\"timestamp\":\"1702733469134\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"marginType\":\"CROSSED\"}}},\"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\":\"全倉\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/09_get_trade_marginType.json\n// module id = 7mzI\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-10-12\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual future/spot: The same order is limited to 1 second and can be revoked at most once\"},{\"type\":\"html\",\"text\":\"Spot: New Order Type: TAKE_ STOP_ Limit: TAKE_ STOP_ MARKET: Market price stop loss order TRIGGER_ LIMITED: TRIGGER commissioned for price limit plan_ Market: Market price plan commission\"},{\"type\":\"html\",\"text\":\"Spot: Historical orders returned with additional fee fields\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-10-12.json\n// module id = 7wfK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"子母賬號資產劃轉接口(僅限母賬戶操作)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/account/transfer/v1/subAccount/transferAsset\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/transferAsset\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"assetName\":\"USDT\",\"transferAmount\":\"1.1\",\"fromUid\":\"25472377\",\"fromAccountType\":\"2\",\"fromType\":\"2\",\"toUid\":\"25316652\",\"toAccountType\":\"1\",\"toType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"code\":0,\"timestamp\":1719495091669,\"data\":{\"tranId\":\"1051323892566796963873\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"assetName\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣的名稱 例如USDT\"},{\"name\":\"transferAmount\",\"type\":\"DECIMAL\",\"required\":\"是\",\"description\":\"劃轉金額\"},{\"name\":\"fromUid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方uid\"},{\"name\":\"fromType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方子母賬戶類型::1-母賬戶;2-子賬戶\"},{\"name\":\"fromAccountType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方賬戶類型:1-資金賬戶;2-標合賬戶;3-永續U本位賬戶\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方uid\"},{\"name\":\"toType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方子母賬戶類型::1-母賬戶;2-子賬戶\"},{\"name\":\"toAccountType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方賬戶類型:1-資金賬戶;2-標合賬戶;3-永續U本位賬戶\"},{\"name\":\"remark\",\"type\":\"string\",\"required\":\"是\",\"description\":\"劃轉備註\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tranId\",\"type\":\"STRING\",\"description\":\"劃轉記錄id\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/20_sub_account_transfer.json\n// module id = 7zc5\n// module chunks = 3","const java = `\npackage org.socket;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.util.Timer;\nimport java.util.TimerTask;\nimport java.util.zip.GZIPInputStream;\n\nimport org.java_websocket.client.WebSocketClient;\nimport org.java_websocket.handshake.ServerHandshake;\nimport org.java_websocket.enums.ReadyState;\n\nimport java.net.URI;\nimport java.nio.ByteBuffer;\n\npublic class WebSocketExample {\n private static final String PATH = \"wss://open-api-swap.bingx.com/swap-market?listenKey=425f783f4a17cd65f4a5d7470cfd45a956dba0c29564aa4b70967bee4e4a8984\";\n private static final String CHANNEL = \"https://open-api.bingx.com/openApi/user/auth/userDataStream\";\n private static WebSocketClient webSocketClient;\n\n public static void main(String[] args) {\n try {\n // Initialize WebSocket client\n URI uri = new URI(PATH);\n webSocketClient = new WebSocketClient(uri) {\n @Override\n public void onOpen(ServerHandshake handshakedata) {\n System.out.println(\"WebSocket connection opened\");\n send(CHANNEL);\n }\n\n @Override\n public void onMessage(String message) {\n System.out.println(\"Received Text Message: \" + message);\n }\n\n @Override\n public void onMessage(ByteBuffer bytes) {\n try {\n String decodedMsg = decodeGzip(bytes.array());\n System.out.println(\"Received Binary Message: \" + decodedMsg);\n\n if (\"Ping\".equals(decodedMsg)) {\n send(\"Pong\");\n System.out.println(\"Sent Pong\");\n }\n\n } catch (IOException e) {\n System.out.println(\"Error decoding message: \" + e.getMessage());\n }\n }\n\n @Override\n public void onClose(int code, String reason, boolean remote) {\n System.out.println(\"WebSocket connection closed: \" + reason);\n }\n\n @Override\n public void onError(Exception ex) {\n System.out.println(\"WebSocket error: \" + ex.getMessage());\n }\n };\n\n webSocketClient.connectBlocking();\n\n // Schedule periodic ping messages\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n if (webSocketClient.getReadyState() == ReadyState.OPEN) {\n webSocketClient.send(\"Ping\");\n System.out.println(\"Sent Ping\");\n }\n }\n }, 0, 5000);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n // GZIP decoding function\n private static String decodeGzip(byte[] compressedData) throws IOException {\n GZIPInputStream gzipInputStream = new GZIPInputStream(new ByteArrayInputStream(compressedData));\n byte[] buffer = new byte[1024];\n StringBuilder decodedMessage = new StringBuilder();\n\n int len;\n while ((len = gzipInputStream.read(buffer)) != -1) {\n decodedMessage.append(new String(buffer, 0, len));\n }\n\n gzipInputStream.close();\n return decodedMessage.toString();\n }\n}\n`\nexport default java\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/java.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-04-25\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續修改接口:查詢合約基礎信息支持按單個合約查詢。\"},{\"type\":\"html\",\"text\":\"永續修改接口:allFillOrders接口,當沒有提供symbol字段時,將返回所有幣對歷史成交信息。\"},{\"type\":\"html\",\"text\":\"永續修改:查詢持倉接口新增返回保證金字段。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-04-25.json\n// module id = 87c6\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/06_cancel_subscribe.json\n// module id = 8PHc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"査詢合作夥伴資訊\"},{\"type\":\"normal\",\"text\":\"此API用於査詢合作夥伴設定檔數據。\"},{\"type\":\"html\",\"text\":\"
  • 1.僅支持査詢過去3個月的數據。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/asset/partnerData\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"pageIndex\":\"1\",\"pageSize\":\"100\",\"recWindow\":\"6000\",\"timestamp\":\"1689426920000\"},\"response\":{\"code\":0,\"timestamp\":1718441614690,\"data\":{\"list\":[{\"uid\":25414560,\"email\":\"jo***@niubi.im\",\"phone\":\"*******7294\",\"referralType\":1,\"remarks\":\"123\",\"referrerUid\":24186664,\"language\":\"en\",\"newReferees\":0,\"firstTrade\":0,\"branchDeposits\":\"24534.446799999998\",\"branchTrading\":4,\"branchTradingVol\":\"98434310.99579316\",\"level\":0,\"commissionRatio\":0.04}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"合作夥伴UID\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"開始時間,組織:天,僅支持査詢最近3個月。 如果未填寫開始時間和結算時間,則默認査詢本月數據\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"結束時間,組織:天,僅支持査詢最近3個月。 如果未填寫開始時間和結算時間,則默認査詢本月數據\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"如果未填寫,預設值為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"如果不填寫,默認頁數為100,最大值為200\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求有效的時間視窗值,組織:毫秒。 如果未填充,預設值為5秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"請求時間戳記,組織:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"合作夥伴UID\"},{\"name\":\"email\",\"type\":\"STRING\",\"description\":\"合作夥伴郵箱,加密狀態\"},{\"name\":\"Phone\",\"type\":\"STRING\",\"description\":\"合作夥伴的手機號碼,合作夥伴的加密手機號碼\"},{\"name\":\"referralType\",\"type\":\"int\",\"description\":\"邀請類型:1:直接邀請,2:間接邀請\"},{\"name\":\"remarks\",\"type\":\"STRING\",\"description\":\"Remarks\"},{\"name\":\"referrerUid\",\"type\":\"long\",\"description\":\"高級Uid\"},{\"name\":\"language\",\"type\":\"STRING\",\"description\":\"語言\"},{\"name\":\"newReferees\",\"type\":\"STRING\",\"description\":\"査詢期間新受邀者的數量\"},{\"name\":\"firstTrade\",\"type\":\"STRING\",\"description\":\"査詢期間首次交易的人數\"},{\"name\":\"branchDeposits\",\"type\":\"STRING\",\"description\":\"査詢期間通道充值量\"},{\"name\":\"branchTrading\",\"type\":\"STRING\",\"description\":\"査詢時間內的通路交易數量\"},{\"name\":\"branchTradingVol\",\"type\":\"STRING\",\"description\":\"査詢期間通路的交易金額\"},{\"name\":\"level\",\"type\":\"STRING\",\"description\":\"level\"},{\"name\":\"commissionRatio\",\"type\":\"STRING\",\"description\":\"返利比率\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/06_get_Query_partner_information.json\n// module id = 8au9\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/permission/index.js","module.exports = [{\"type\":\"normal\",\"text\":\"websocket interface\"},{\"type\":\"code\",\"text\":\"wss://open-api-ws.bingx.com/market\"},{\"type\":\"normal\",\"text\":\"account subscription data stream /market/\"},{\"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 https://open-api.bingx.com/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\":\"https://open-api.bingx.com/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\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/listenKey/01_create_listenKey.json\n// module id = 8kVO\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/cswap/api/basic/index_share_to_v1.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-28\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract: The allFillOrders api has added type, side, and positionSide fields to return.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The 'query contract' api response has been updated to include the 'ensureTrigger' field and the 'triggerFeeRate' field.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The 'query positions' api response has been updated to include the 'updateTime' field.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The 'query account balance' api has been updated to include the 'shortUid' field.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: The 'query leverage' api and 'modify leverage' api added fields availableLongVol, availableShortVol, availableLongVal, availableShortVal, maxPositionLongVal, maxPositionShortVal.\"},{\"type\":\"html\",\"text\":\"Perpetual contract new: Query all order interface\"},{\"type\":\"html\",\"text\":\"Copy Trading New: Trader buys spot order and sells spot assets\"},{\"type\":\"html\",\"text\":\"Perpetual addition: Query all current orders GET /openApi/swap/v2/trade/openOrders added to return tracking orders, planned reverse orders, and added fields for guaranteed take profit and stop loss, maker only, retracement rate/spread\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-03-28.json\n// module id = 96CF\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/market/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-03\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"更改永續合約(最大杠杆倍數遷入新接口)永續合約:最大杠杆倍數,請不要用行情接口交易對資訊裏的最大杠杆數\"},{\"type\":\"html\",\"text\":\"新增 子帳戶相關操作:子帳戶創建、査詢、移除、凍結、授權等\"},{\"type\":\"html\",\"text\":\"新增 子帳戶API KEY相關操作:子帳戶API KEY創建、査詢、移除、許可權設定等\"},{\"type\":\"html\",\"text\":\"新增 子帳號中間內轉接口\"},{\"type\":\"html\",\"text\":\"新 用戶万向劃轉接口\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-08-03.json\n// module id = 9HpD\n// module chunks = 3","var map = {\n\t\".\": \"B7jJ\",\n\t\"./\": \"B7jJ\",\n\t\"./01_dept_info_interval\": \"bP1Q\",\n\t\"./01_dept_info_interval.json\": \"bP1Q\",\n\t\"./02_latest_records\": \"cRtg\",\n\t\"./02_latest_records.json\": \"cRtg\",\n\t\"./03_kline_data\": \"WbRb\",\n\t\"./03_kline_data.json\": \"WbRb\",\n\t\"./04_quote_ticker\": \"AAve\",\n\t\"./04_quote_ticker.json\": \"AAve\",\n\t\"./05_last_trade_price\": \"lqZR\",\n\t\"./05_last_trade_price.json\": \"lqZR\",\n\t\"./06_last_mark_price\": \"zVt3\",\n\t\"./06_last_mark_price.json\": \"zVt3\",\n\t\"./07_book_ticker\": \"5TRZ\",\n\t\"./07_book_ticker.json\": \"5TRZ\",\n\t\"./08_depth_incr_info\": \"PEl6\",\n\t\"./08_depth_incr_info.json\": \"PEl6\",\n\t\"./index\": \"B7jJ\",\n\t\"./index.js\": \"B7jJ\"\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 = \"9JvQ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market ^.*$\n// module id = 9JvQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Signature Description\"},{\"type\":\"html\",\"text\":\"signatureRequest parameter by using HMAC SHA256 encode\"},{\"type\":\"html\",\"text\":\"for example\"},{\"type\":\"html\",\"text\":\"
  • api parameters
  • \"},{\"type\":\"html\",\"text\":\"

    symbol=BTC-USDT
    timestamp=1696751141337
    recvWindow=0

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

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    \"},{\"type\":\"html\",\"text\":\"
  • Example of sending parameters through query string
  • \"},{\"type\":\"html\",\"text\":\"1. Splice all api parameters (without sorting)\"},{\"type\":\"code\",\"text\":\"recvWindow=0&symbol=BTC-USDT×tamp=1696751141337\"},{\"type\":\"html\",\"text\":\"2. Use secretKey to generate a signature for the concatenated parameter string: 1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8
    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"recvWindow=0&symbol=BTC-USDT×tamp=1696751141337\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. Send request\"},{\"type\":\"html\",\"text\":\"Some query string scenarios (such as a='1 '&b={a:'2'}) require URL encoding for each value of the request parameters, only for the value value, without URL encoding for the field key, nor for the entire original parameters string. Here is a special field: the value of timestamp does not require URL encoding. Please refer toURL encoding scenario description\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/user/positions?recvWindow=0&symbol=BTC-USDT×tamp=1696751141337&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'\"},{\"type\":\"html\",\"text\":\"
  • Example of sending parameters through request body
  • \"},{\"type\":\"html\",\"text\":\"1. Sort and concatenate all api parameters according to (a-z) (sorting required)\"},{\"type\":\"code\",\"text\":\"recvWindow=0&subAccountString=abc12345×tamp=1696751141337\"},{\"type\":\"html\",\"text\":\"2. Use secretKey to generate a signature for the concatenated parameter string:1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\"},{\"type\":\"code\",\"text\":\"echo -n \\\"recvWindow=0&subAccountString=abc12345×tamp=1696751141337\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. Combine into JSON, place the request body, and set header: 'Content Type': 'application/JSON'\"},{\"type\":\"code\",\"text\":\"{\\\"recvWindow\\\":0,\\\"subAccountString\\\":\\\"abc12345\\\",\\\"timestamp\\\":1696751141337,\\\"signature\\\":\\\"1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\\\"}\"},{\"type\":\"code\",\"text\":\"curl --location 'https://open-api.bingx.com/openApi/subAccount/v1/create' --header 'Content-Type: application/json' --data '{\\\"recvWindow\\\":0,\\\"subAccountString\\\":\\\"abc12345\\\",\\\"timestamp\\\":1696751141337,\\\"signature\\\":\\\"1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\\\"}'\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication/04_sign_discription.json\n// module id = 9KKA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"資產概覽\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/allAccountBalance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"accountType\":\"sopt\",\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"result\":[{\"accountType\":\"sopt\",\"usdtBalance\":\"100\"}],\"pageId\":1,\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"accountType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"帳戶類型,不填默認查全部帳戶的資產。 sopt:現貨(資金帳戶),stdFutures:標準合約帳戶,coinMPerp:幣本位帳戶,USDTMPerp:U本位帳戶,copyTrading:跟單帳戶,grid:策略帳戶,eran:理財帳戶,c2c:c2c帳戶等。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"accountType\",\"type\":\"string\",\"description\":\"帳戶類型,不填默認查全部帳戶的資產。 sopt:現貨(資金帳戶),stdFutures:標準合約帳戶,coinMPerp:幣本位帳戶,USDTMPerp:U本位帳戶,copyTrading:跟單帳戶,grid:策略帳戶,eran:理財帳戶,c2c:c2c帳戶等。\"},{\"name\":\"usdtBalance\",\"type\":\"string\",\"description\":\"折合USDT金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/21_get_account_allAccountBalance.json\n// module id = 9SLF\n// module chunks = 3","var map = {\n\t\"./01_get_contracts.json\": \"mCcU\",\n\t\"./02_get_premiumIndex.json\": \"nco7\",\n\t\"./03_get_openInterest.json\": \"pnyN\",\n\t\"./04_get_kline.json\": \"Yskp\",\n\t\"./05_get_depth.json\": \"2qcG\",\n\t\"./06_get_ticker.json\": \"PaEN\"\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 = \"9SsD\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market \\.json$\n// module id = 9SsD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的某個訂單進行撤銷操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"撤單接口1s限制最多能撤同一條orderId或者clientOrderId,請勿重複提交\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderId\":\"1736011869418901234\",\"symbol\":\"RNDR-USDT\",\"timestamp\":\"1702732515704\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"RNDR-USDT\",\"orderId\":1736011869418901200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"3\",\"price\":\"4.5081\",\"executedQty\":\"0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702732457867,\"updateTime\":1702732457888,\"clientOrderId\":\"lo******7\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"service has some errors, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109414,\"msg\":\"order not exist\",\"data\":{}}}]},\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"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/04_delete_trade_order.json\n// module id = 9V8o\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶強平單歷史\"},{\"type\":\"normal\",\"text\":\"查詢用戶強平單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"ATOM-USDT\",\"startTime\":\"1696291200\",\"timestamp\":\"1699982303257\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ATOM-USDT\",\"orderId\":172264854643022330000,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"2.36\",\"price\":\"8.096\",\"executedQty\":\"2.36\",\"avgPrice\":\"8.095\",\"cumQuote\":\"19\",\"stopPrice\":\"\",\"profit\":\"-0.9346\",\"commission\":\"-0.009553\",\"status\":\"FILLED\",\"time\":1699546393000,\"updateTime\":1699546393000,\"clientOrderId\":\"\",\"leverage\":\"21X\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or 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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/13_get_trade_forceOrders.json\n// module id = 9bR8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Main account internal transfer records\"},{\"type\":\"normal\",\"text\":\"This endpoint is used for the parent user to query their own inner transfer records. Only available for parent users.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/records\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"30000\",\"timestamp\":\"1702383898131\",\"limit\":\"1000\",\"coin\":\"BTC\",\"startTime\":\"1701519898118\",\"endTime\":\"1702383898118\"},\"response\":{\"code\":0,\"timestamp\":1702383898844,\"data\":{\"data\":[{\"id\":1251111922229444400,\"coin\":\"BTC\",\"receiver\":1128763679,\"amount\":0.0072366,\"status\":6,\"fromUid\":1128763678,\"recordType\":\"out\"}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Transfer coin name\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Client's self-defined internal transfer ID. When both platform ID and transferClientId are provided as input, the query will be based on the platform ID.\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"No\",\"description\":\"Start time\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"No\",\"description\":\"End time\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"Inner transfer records list\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"id\",\"type\":\"long\",\"description\":\"Inner transfer ID\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Coin name\"},{\"name\":\"receiver\",\"type\":\"long\",\"description\":\"Receiver UID\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"Transfer amount\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"Internal transfer time\"},{\"name\":\"status\",\"type\":\"Integer\",\"description\":\"Status 4-Pending review 5-Failed 6-Completed\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Client's self-defined internal transfer ID. When both platform ID and transferClientId are provided as input, the query will be based on the platform ID.\"},{\"name\":\"fromUid\",\"type\":\"long\",\"description\":\"Payer's account\"},{\"name\":\"recordType\",\"type\":\"string\",\"description\":\"Out: transfer out record, in: transfer in record\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/14.get_wallet_queryInnerTransferRecords.json\n// module id = 9tS2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Close all positions in bulk\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718434280880,\"data\":{\"success\":[\"1801870087554072576\"],\"failed\":[{\"positionId\":\"12345678910111234\",\"errCode\":123,\"errorMsg\":\"balabala\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, e.g. BTC-USD, use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation timestamp, unit: millisecond\"},{\"name\":\"data\",\"type\":\"Obj\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"success\",\"type\":\"List\",\"description\":\"Close successful order ids list\"},{\"name\":\"failed\",\"type\":\"List\",\"description\":\"Failed close messages\"}]},{\"type\":\"Failed\",\"key\":\"failed\",\"data\":[{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Failed closing position id\"},{\"name\":\"errCode\",\"type\":\"int32\",\"description\":\"Error code\"},{\"name\":\"errorMsg\",\"type\":\"string\",\"description\":\"Error description message\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/05_post_closeAllPositions.json\n// module id = A11g\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query the transferable amount of funds in the parent-child account (only for parent account operations).\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins'\"},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"fromUid\":\"25472377\",\"fromAccountType\":\"2\",\"toUid\":\"25316652\",\"toAccountType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1719498078761,\"data\":{\"coins\":[{\"id\":4,\"name\":\"USDT\",\"showName\":\"Tether\",\"icon\":{\"id\":4,\"uri\":\"https://static-app.teststar.cc/icon/USDT.png\"},\"type\":0,\"fiatSymbol\":\"$\",\"availableAmount\":\"79.02345678\",\"usdtRate\":\"1\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"fromUid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender UID\"},{\"name\":\"fromAccountType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Sender account type: 1-Fund account; 2-Contract account; 3-Perpetual USD-based account\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver UID\"},{\"name\":\"toAccountType\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Receiver account type: 1-Fund account; 2-Contract account; 3-Perpetual USD-based account\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"Execution window time, cannot exceed 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Current timestamp, e.g., 1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"coins\",\"type\":\"ARRAY\",\"description\":\"List of supported coins\"},{\"name\":\"id\",\"type\":\"LONG\",\"description\":\"Coin ID\"},{\"name\":\"name\",\"type\":\"STRING\",\"description\":\"Coin name, e.g., USDT\"},{\"name\":\"availableAmount\",\"type\":\"DECIMAL\",\"description\":\"Available transfer amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/19.sub_account_transfer_support_coin.json\n// module id = A6qi\n// module chunks = 3","var map = {\n\t\".\": \"1pD3\",\n\t\"./\": \"1pD3\",\n\t\"./03_get_deposit_hisrec\": \"dXH3\",\n\t\"./03_get_deposit_hisrec.json\": \"dXH3\",\n\t\"./04_get_withdraw_history\": \"kh23\",\n\t\"./04_get_withdraw_history.json\": \"kh23\",\n\t\"./05_post_wallets_coins\": \"zgmp\",\n\t\"./05_post_wallets_coins.json\": \"zgmp\",\n\t\"./06_post_wallets_withdraw\": \"YSKw\",\n\t\"./06_post_wallets_withdraw.json\": \"YSKw\",\n\t\"./13.get_wallet_queryDepositAddress\": \"rgh9\",\n\t\"./13.get_wallet_queryDepositAddress.json\": \"rgh9\",\n\t\"./14_get_risk_deposit_records\": \"CxZu\",\n\t\"./14_get_risk_deposit_records.json\": \"CxZu\",\n\t\"./index\": \"1pD3\",\n\t\"./index.js\": \"1pD3\"\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 = \"A7Vy\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet ^.*$\n// module id = A7Vy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱24小時價格變動\"},{\"type\":\"normal\",\"text\":\"每1秒推送一次。\"},{\"type\":\"normal\",\"text\":\"推送24小時價格變動。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @ticker,比如BTC-USDT@ticker。\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},\"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@ticker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"24小時價格變動\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"價格變動百分比\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"24小時內第一個價格\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"24小時最高價\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"24小時最低價\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"最新交易額\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"最新交易價格\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"24小時成交量\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"24小時成交額, 單位是USDT\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"24小時內,第一筆交易的發生時間\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"24小時內,最後一筆交易的發生時間\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"買一價格\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"買一數量\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"賣一價格\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賣一數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/04_quote_ticker.json\n// module id = AAve\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"有限檔深度信息\"},{\"type\":\"normal\",\"text\":\"每500ms推送有限檔深度信息。默認20檔\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @depth,比如BTC-USDT@depth50, BTC-USDT@depth50\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth50\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth50\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱, 合約名稱中需有\\\"-\\\",如BTC-USDT\"}]},{\"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檔\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USDT@depth\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"變動的賣單深度\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"變動的買單深度\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/03_depth_info.json\n// module id = ADmP\n// module chunks = 3","\nconst python = `\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 = parseParam(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 parseParam(paramsMap):\n sortedKeys = sorted(paramsMap)\n paramsStr = \"&\".join([\"%s=%s\" % (x, paramsMap[x]) for x in sortedKeys])\n if paramsStr != \"\": \n return paramsStr+\"×tamp=\"+str(int(time.time() * 1000))\n else:\n return paramsStr+\"timestamp=\"+str(int(time.time() * 1000))\n\n\nif __name__ == '__main__':\n print(\"demo:\", demo())\n`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/python.js","var map = {\n\t\".\": \"4RZf\",\n\t\"./\": \"4RZf\",\n\t\"./01_error_code\": \"XCkz\",\n\t\"./01_error_code.json\": \"XCkz\",\n\t\"./02_timestamp\": \"oPkH\",\n\t\"./02_timestamp.json\": \"oPkH\",\n\t\"./03_digital_rule\": \"WihS\",\n\t\"./03_digital_rule.json\": \"WihS\",\n\t\"./04_rate_limits\": \"p+dP\",\n\t\"./04_rate_limits.json\": \"p+dP\",\n\t\"./05_system_time\": \"lC7j\",\n\t\"./05_system_time.json\": \"lC7j\",\n\t\"./index\": \"4RZf\",\n\t\"./index.js\": \"4RZf\",\n\t\"./index_share_to_v1\": \"8rn0\",\n\t\"./index_share_to_v1.js\": \"8rn0\"\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 = \"AYyd\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic ^.*$\n// module id = AYyd\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-24\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:新增‘模擬盤服務’\"},{\"type\":\"html\",\"text\":\"新增逐倉保證金變動歷史接口:/openApi/swap/v1/positionMargin/history\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-24.json\n// module id = Aw6+\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/swapV2/websocket/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Query TWAP Historical Orders\"},{\"type\":\"normal\",\"text\":\"Used to query TWAP historical delegation records, including partially completed, completed, revoked and failed delegation。 \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDT\",\"pageIndex\":1,\"pageSize\":100,\"startTime\":1702731661854,\"endTime\":1702738661854,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"list\":[{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Paging parameters, the minimum value is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Number of result sets returned; maximum: 1000\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Start time, unit: milliseconds\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"End time, unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request 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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"twap order number\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction; SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG or SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"Price limit type, constant: price interval, percentage: slippage\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order.\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"After the strategic order is split, the time interval for order placing is between 5-120s\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order. \"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions. \"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: New/Running: In operation/Canceling: Cancellation of order/Filled: Fully filled/PartiallyFilled: Partially filled/Pending: Not triggered/PartiallyFilledAndResidueFailed: Partially filled (remaining order failed), algorithm order status/PartiallyFilledAndResidueCancelled: Partially filled ( Remaining cancellation), algorithm order status/Cancelled: Canceled (no partial deal exists)/Failed: Order failed (no partial deal exists)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Volume \"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"Execution time, in seconds. The order will be canceled after the execution time expires. \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"Maximum execution time execution time, unit: seconds.\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"Order creation time, unit: milliseconds\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Order update time, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/30_get_twap_history_orders.json\n// module id = BBsp\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/introduce/index.js","var map = {\n\t\"./csharp.js\": \"G5Hi\",\n\t\"./generate.js\": \"J7jo\",\n\t\"./golang.js\": \"5BSP\",\n\t\"./java.js\": \"Bhqz\",\n\t\"./javascript.js\": \"mDPn\",\n\t\"./php.js\": \"zYya\",\n\t\"./python.js\": \"ATrJ\",\n\t\"./shell.js\": \"kHJ+\"\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 = \"BPx7\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/utils/code ^\\.\\/.*\\.js$\n// module id = BPx7\n// module chunks = 3","var map = {\n\t\"./01_get_account_apiRestrictions.json\": \"Xu0+\"\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 = \"BQvj\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/permission \\.json$\n// module id = BQvj\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\":\"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/cswap/v1/trade/orderHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USD\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USD\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"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-USD.If no symbol is specified, it will query the historical orders for all trading pairs.\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Only return 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.If a specific pair is not provided, a history of transactions for all pairs will be returned\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/14_get_trade_allOrders.json\n// module id = BW7b\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢幣種充提數據\"},{\"type\":\"normal\",\"text\":\"查詢所有的幣種,並且查詢該幣種對應的限額\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/config/getall\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702623270607\"},\"response\":{\"code\":0,\"timestamp\":1702623271477,\"data\":[{\"coin\":\"BTC\",\"name\":\"BTC\",\"networkList\":[{\"name\":\"BTC\",\"network\":\"BTC\",\"isDefault\":true,\"minConfirm\":2,\"withdrawEnable\":true,\"depositEnable\":true,\"withdrawFee\":\"0.0006\",\"withdrawMax\":\"1.17522\",\"withdrawMin\":\"0.0005\",\"depositMin\":\"0.0002\"},{\"name\":\"BTC\",\"network\":\"BEP20\",\"isDefault\":false,\"minConfirm\":15,\"withdrawEnable\":true,\"depositEnable\":true,\"withdrawFee\":\"0.0000066\",\"withdrawMax\":\"1.17522\",\"withdrawMin\":\"0.0000066\",\"depositMin\":\"0.0002\"}]}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣種標誌\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"depositEnable\",\"type\":\"boolean\",\"description\":\"該幣種是否開放提幣\"},{\"name\":\"depositMin\",\"type\":\"decimal\",\"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\":\"提幣描述\"},{\"name\":\"withdrawPrecision\",\"type\":\"int\",\"description\":\"提幣精度\"},{\"name\":\"depositPrecision\",\"type\":\"int\",\"description\":\"充幣精度\"},{\"name\":\"contractAddress\",\"type\":\"int\",\"description\":\"合約地址\"},{\"name\":\"needTagOrMemo\",\"type\":\"String\",\"description\":\"是否需要memo或tag,true:需要,false:不需要\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/05_post_wallets_coins.json\n// module id = BYvq\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/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Query Invited Users\"},{\"type\":\"normal\",\"text\":\"The proxy KOL can use this api to query basic information of invited subordinate users.\"},{\"type\":\"html\",\"text\":\"
  • startTime < endTime, and endTime - startTime <= 30 days. If not filled in, it will query all data.
  • \"},{\"type\":\"html\",\"text\":\"
  • Only proxies with verified UID can use this function. 3. Search for subordinate users registered between startTime and endTime, sorted by registration time from recent to far.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteAccountList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":\"1\",\"pageSize\":\"2\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1690428366803,\"data\":{\"list\":[{\"uid\":24828902,\"ownInviteCode\":\"LYA1453\",\"superiorsUid\":2293934,\"InvitationCode\":\"LYA2023\",\"registerDateTime\":1688992720000,\"directInvitation\":false,\"kycResult\":\"false\",\"deposit\":false,\"trade\":false,\"userLevel\":0,\"commissionRatio\":3,\"currentBenefit\":0,\"benefitRatio\":0,\"benefitExpiration\":0}],\"total\":1,\"currentAgentUid\":1115195195666423800}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start timestamp (millisecond), The maximum query window is 30 days. If you want to retrieve all data, you can leave the startTime and endTime fields blank.\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"end timestamp (millisecond), The maximum query window is 30 days. If querying for all data, startTime and endTime can be left blank\"},{\"name\":\"lastUid\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"User UID, must be transmitted when the queried data exceeds 10,000.The first request does not need to be passed, and the last uid of the current page is passed each time afterwards\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page number for pagination, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"The number of pages must be greater than 0 and the maximum value is 200\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request valid time window, in milliseconds. Default is 5 seconds if not provided.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request timestamp in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"string\",\"description\":\"Invited User UID\"},{\"name\":\"ownInviteCode\",\"type\":\"string\",\"description\":\"Invitation code for Invited User\"},{\"name\":\"inviterSid\",\"type\":\"long\",\"description\":\"superiors Uid\"},{\"name\":\"InvitationCode\",\"type\":\"string\",\"description\":\"Invitation code for superiors\"},{\"name\":\"registerTime\",\"type\":\"long\",\"description\":\"Registration timestamp, unit: milliseconds\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true: Direct invitation, false: Indirect invitation\"},{\"name\":\"kycResult\",\"type\":\"string\",\"description\":\"true : KYC,false:no KYC\"},{\"name\":\"deposit\",\"type\":\"boolean\",\"description\":\"true (Deposited), false (Not deposited)\"},{\"name\":\"balanceVolume\",\"type\":\"string\",\"description\":\"net assets(USDT)\"},{\"name\":\"trade\",\"type\":\"boolean\",\"description\":\"true: Traded, false: Not traded, excluding trades made with trial funds or additional funds\"},{\"name\":\"userLevel\",\"type\":\"int\",\"description\":\"Customer level\"},{\"name\":\"commissionRatio\",\"type\":\"int\",\"description\":\"Commission percentage, unit: %\"},{\"name\":\"currentBenefit \",\"type\":\"int\",\"description\":\"Current welfare method: 0 - No welfare, 1 - Fee cashback, 2 - Perpetual fee discount\"},{\"name\":\"benefitRatio\",\"type\":\"int\",\"description\":\"Transaction fee reduction percentage, unit: %\"},{\"name\":\"benefitExpiration\",\"type\":\"long\",\"description\":\"Welfare expiration timestamp, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/01_get_Query_Invited_Users.json\n// module id = Bd4q\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"按幣對撤銷掛單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelOpenOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"GM-USDT\",\"timestamp\":\"1702721320676\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"GM-USDT\",\"orderId\":1735964997957275600,\"transactTime\":1702721242701,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"8061558\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721242645506402\"},{\"symbol\":\"GM-USDT\",\"orderId\":1735965127519326200,\"transactTime\":1702721249787,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"5806281\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721249647382871\"}]}}},\"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\":\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/023_post_cancelOpenOrders.json\n// module id = BdSn\n// module chunks = 3","const java = `\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`\nexport default java\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/java.js","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to Mark Price\"},{\"type\":\"normal\",\"text\":\"Subscribe to Mark Price\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"Data type is @lastPrice, e.g., BTC-USD@lastPrice, ETH-USD@markPrice\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@markPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@markPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair symbol must contain a hyphen \\\"-\\\", e.g., BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@markPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push price\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"lastPrice\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"Trading pair\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"Latest price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/03_mark_price.json\n// module id = BwZb\n// module chunks = 3","import { codeLangConfig2, CODE_LANG_KEY } from '../lang'\n\nfunction generateCodeWs(api, codeLang, host, defaultCode) {\n const code = codeLangConfig2.find(item => item.value === codeLang)\n if (!code) {\n return defaultCode || 'No Code'\n }\n\n\n let codeStr = require(\"@/utils/codeWs/\" + codeLang + '.js').default\n if( api && api.uri)\n codeStr = codeStr.replace(/AAPPII/g, api.uri)\n\n const url = window.location.href;\n if (url.indexOf('/spot/') > -1 ) {\n codeStr = require(\"@/utils/codeWs/spot/\" + codeLang + '.js').default\n if( api && api.uri)\n codeStr = codeStr.replace(/AAPPII/g, api.uri)\n if (url.indexOf('/account') > -1) {\n codeStr = codeStr.replace(/HHOOSSTT/g, \"wss://open-api-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\")\n } else {\n codeStr = codeStr.replace(/HHOOSSTT/g, \"wss://open-api-ws.bingx.com/market\")\n }\n }else {\n if (url.indexOf('/account') > -1) {\n codeStr = codeStr.replace(/HHOOSSTT/g, \"wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7\")\n }else {\n codeStr = codeStr.replace(/HHOOSSTT/g, \"wss://open-api-swap.bingx.com/swap-market\")\n }\n }\n\n return codeStr\n\n}\n\nexport default generateCodeWs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/generate.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/swapV2/api/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Numbers\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"Decimal numbers are returned as \\\"Strings\\\" in order to preserve full precision. It is recommended that the numbers are converted to \\\"Strings\\\" to avoid truncation and precision loss.\"},{\"type\":\"html\",\"text\":\"Integer numbers (such as trade ID and sequences) are unquoted.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic/03_digital_rule.json\n// module id = C2jk\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/introduce/index.js","module.exports = {\"module\":\"agent\",\"path\":\"/en-us/agent/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/1_introduce.json\n// module id = CM7q\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/standard/api/trade/index.js","var map = {\n\t\".\": \"/jWt\",\n\t\"./\": \"/jWt\",\n\t\"./01_create_api\": \"+Rge\",\n\t\"./01_create_api.json\": \"+Rge\",\n\t\"./02_permission_set\": \"UG8z\",\n\t\"./02_permission_set.json\": \"UG8z\",\n\t\"./03_request_content\": \"hS6o\",\n\t\"./03_request_content.json\": \"hS6o\",\n\t\"./04_sign_discription\": \"9KKA\",\n\t\"./04_sign_discription.json\": \"9KKA\",\n\t\"./05_request\": \"uSYo\",\n\t\"./05_request.json\": \"uSYo\",\n\t\"./index\": \"/jWt\",\n\t\"./index.js\": \"/jWt\"\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 = \"CSHX\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/authentication ^.*$\n// module id = CSHX\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-tw/cswap/websocket/introduce/02_data_compress.json\n// module id = CVyP\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Spot: new 24-hour price changes interface\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-08-23.json\n// module id = CcT1\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-12-21\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨撤單接口增加字段:cancelRestrictions(非必填),撤销指定状态的订单\"},{\"type\":\"html\",\"text\":\"現貨批量撤单接口提供字段:clientOrderIDs(非必填),按clientOrderIDs批量撤單\"},{\"type\":\"html\",\"text\":\"現貨新增按币对撤销挂单接口:/openApi/spot/v1/trade/cancelOpenOrders\"},{\"type\":\"html\",\"text\":\"現貨新增查詢手續費接口/openApi/spot/v1/user/commissionRate\"},{\"type\":\"html\",\"text\":\"現貨查詢歷史訂單:請求參數新增status和type字段,按條件篩選對應訂單\"},{\"type\":\"html\",\"text\":\"現貨幣對查詢接口:新增字段apiStateBuy,apiStateSell,timeOnline\"},{\"type\":\"html\",\"text\":\"永續,持倉查詢response增加字段:持倉價值,標記價格,風險率,最大可減少保證金,未實現盈虧收益率\"},{\"type\":\"html\",\"text\":\"永續下單和查詢訂單:增加單項持倉功能\"},{\"type\":\"html\",\"text\":\"永續,查詢歷史訂單request:如果不填寫symbol,則會查詢所有幣對的的歷史訂單\"},{\"type\":\"html\",\"text\":\"現貨: k線查詢支持7天變成支持15天的歷史數據\"},{\"type\":\"html\",\"text\":\"提幣:新增字段:withdrawOrderId,非必填,客戶自定義提幣ID,數字和字母組合,長度小於100字符\"},{\"type\":\"html\",\"text\":\"提幣記錄:withdrawOrderId字段更新:同時入參平台ID和withdrawOrderId時以平台id查詢為主\"},{\"type\":\"html\",\"text\":\"主賬戶內轉:新增字段:transferClientId:非必填,客戶自定義內轉ID,數字和字母組合,長度小於100字符\"},{\"type\":\"html\",\"text\":\"主賬戶查詢內轉記錄:新增字段:transferClientId:非必填,客戶自定義內轉ID。同時入參平台ID和transferCilentId時以平台id查詢為主\"},{\"type\":\"html\",\"text\":\"子賬戶內轉:新增字段:transferClientId:非必填,客戶自定義內轉ID,數字和字母組合,長度小於100字符\"},{\"type\":\"html\",\"text\":\"子賬戶查詢內轉記錄:新增字段:transferClientId:非必填,客戶自定義內轉ID。同時入參平台ID和transferCilentId時以平台id查詢為主\"},{\"type\":\"html\",\"text\":\"查詢子賬戶充幣記錄:request字段subUid改為非必填,不填時查詢母用戶名下所有子賬戶的充幣記錄\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-12-21.json\n// module id = CpXJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量下單\"},{\"type\":\"desc\",\"text\":\"當前賬戶在指定symbol合約上進行批量下單操作\",\"desc\":[{\"type\":\"html\",\"text\":\"
  • 具體訂單條件規則,與普通下單一致
  • \"},{\"type\":\"html\",\"text\":\"
  • batchOrders是數組
  • \"},{\"type\":\"html\",\"text\":\"
  • 批量下單的簽名可能稍微複雜,但是不用擔心, 可以參照以下四個步驟:
  • \"},{\"type\":\"html\",\"text\":\"
  • 1. 把你的整個request body 變成 request query string如下
  • \"},{\"type\":\"code\",\"text\":\"原始的 parameters: 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=1692956597902\"},{\"type\":\"html\",\"text\":\"
  • 2. 對原始的 parameters 進行簽名
  • \"},{\"type\":\"code\",\"text\":\"得到簽名: bab521321a62a1381a76b485b92dd0f4a8b16b4616cfa4c75ffba899f80dfc86\"},{\"type\":\"html\",\"text\":\"
  • 3.對請求參數的每一個值都進行URL編碼,比如字段batchOrders的值,這裡只對值value進行URL編碼,不對字段key進行URL編碼,也不是對整個原始的parameters字符串進行URL編碼,這裡有個特殊字段:timestamp的value也不用URL編碼,然後逐個替換成如下:
  • \"},{\"type\":\"code\",\"text\":\"經過URL編碼value替換後: batchOrders=%5B%7B%22symbol%22%3A%22ETH-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A1%7D%2C%7B%22symbol%22%3A%22BTC-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A0.001%7D%5D×tamp=1692956597902\"},{\"type\":\"html\",\"text\":\"
  • 4. 最後的請求應該如下
  • \"},{\"type\":\"code\",\"text\":\"POST https://open-api.bingx.com/openApi/swap/v2/trade/batchOrders?batchOrders=%5B%7B%22symbol%22%3A%22ETH-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A1%7D%2C%7B%22symbol%22%3A%22BTC-USDT%22%2C%22type%22%3A%22MARKET%22%2C%22side%22%3A%22BUY%22%2C%22positionSide%22%3A%22LONG%22%2C%22quantity%22%3A0.001%7D%5D×tamp=1692956597902&signature=bab521321a62a1381a76b485b92dd0f4a8b16b4616cfa4c75ffba899f80dfc86\"},{\"type\":\"warning\",\"text\":\"批量下單採取併發處理,不保證訂單撮合順序\"},{\"type\":\"warning\",\"text\":\"最小下單數量可從接口 /openApi/swap/v2/quote/contracts 獲取:tradeMinQuantity、tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]}]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"batchOrders\":\"[{\\\"symbol\\\": \\\"ETH-USDT\\\",\\\"type\\\": \\\"MARKET\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"quantity\\\": 1},{\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"type\\\": \\\"MARKET\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"quantity\\\": 0.001}]\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ID-USDT\",\"orderId\":1736010300483712300,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"\"}]}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"No position to close; parameter quantity is must\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"No position to close; parameter quantity is must\",\"data\":{\"code\":80001,\"msg\":\"Order size error; Order size error; Order size error; Order size error\",\"data\":{\"orders\":[]}}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"No position to close; parameter quantity is must\",\"data\":{\"code\":80014,\"msg\":\"orderIdList & clientOrderIDList are both empty;\",\"data\":{}}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"symbol not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again; Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again; Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"No position to close\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"Insufficient margin\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'ReduceOnly' field can not be filled.; In the Hedge mode, the 'ReduceOnly' field can not be filled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This order exceeds the current position limit of 5000 USDT. Please try to reduce the leverage or adjust the order amount.; This order exceeds the current position limit of 5000 USDT. Please try to reduce the leverage or adjust the order amount.\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"The maximum position value for this leverage is 150000 USDT.\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":100001,\"msg\":\"Signature verification failed due to signature mismatch,please verify our authentication signature and try to run our sample code from the link https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Query%20Assets\",\"timestamp\":1727124087795}},{\"desc\":\"\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\"Null timestamp or timestamp mismatch, try to run our sample code from the link https://bingx-api.github.io/docs/#/en-us/spot/account-api.html#Query%20Assets\",\"timestamp\":1726839221156}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.; This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{\"orders\":[]}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.; In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.; In the One-way mode, the 'PositionSide' field can only be set to BOTH.; In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}}]},\"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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單。\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key3\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"orderID\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/02_post_trade_batch_order.json\n// module id = Crrt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"測試下單\"},{\"type\":\"desc\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\",\"desc\":[{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRAILING_STOP_MARKET(追跡委託單)和TRAILING_TP_SL(移動止盈止損單):需填寫price欄位或者priceRate欄位
  • \"},{\"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\":\"html\",\"text\":\"

    3. 開倉加倉的同時設置止盈止損:使用takeProfit或者stopLoss字段

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"最小下單數量可從接口 /openApi/swap/v2/quote/contracts 獲取:tradeMinQuantity、tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]}]},{\"type\":\"warning\",\"text\":\"入參與返回都與下單接口一致,但是不會真實下單,僅返回測試結果,結果為假的訂單,不會扣除你的資金,也不會出現在真實交易面板中,僅用於幫助你練習使用下單接口\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"溫馨提醒:由於市場波動較大,為降低爆倉風險,API訂單暫時關閉。\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"需要滿足最小下單金額2U\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"當前您的賬號被風控,當前無法使用API下單,需要聯繫我們客服確認\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"需要填寫quantity字段\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"止損價格需要低於當前最新價\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"當前無倉位,請先檢查是否有倉位\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"保證金不足,請先檢查是否足夠\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"需要填寫必填參數\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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:計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;flase:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單。\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追蹤委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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/00_post_trade_order_test.json\n// module id = CwX9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Deposit risk control records\"},{\"type\":\"normal\",\"text\":\"Used to query the recharge records in risk control for users and their sub-accounts\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/riskRecords\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"timestamp\":1706839654997,\"data\":[{\"uid\":\"\",\"coin\":\"\",\"amount\":\"\",\"sourceAddress\":\"\",\"address\":\"\",\"insetTime\":\"\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"string\",\"description\":\"User ID\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Currency name\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"Amount\"},{\"name\":\"sourceAddress\",\"type\":\"string\",\"description\":\"Source address\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"Recharge address\"},{\"name\":\"insetTime\",\"type\":\"datetime\",\"description\":\"Creation time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/14_get_risk_deposit_records.json\n// module id = CxZu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Daily Commission Query(invitation relationship)\"},{\"type\":\"normal\",\"text\":\"The agent KOL can use this api to query the detailed information of daily commissions.Only supports querying the commission details of customers with invitation relationships.\"},{\"type\":\"html\",\"text\":\"
  • 1. Only supports querying data from the last 365 days.
  • \"},{\"type\":\"html\",\"text\":\"
  • 2. startTime < endtime, and endtime - startTime <= 30 days. These are required fields.
  • \"},{\"type\":\"html\",\"text\":\"
  • 3. Only supports querying commission information for users with an invitation relationship.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/reward/commissionDataList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":\"1\",\"pageSize\":\"2\",\"startTime\":\"1688992720000\",\"endTime\":\"1689426920000\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1690428196386,\"data\":{\"list\":[{\"uid\":24391361,\"commissionTime\":1689350400000,\"tradingVolume\":\"6660.05\",\"commissionVolume\":\"2.37932209\",\"swapTradingVolume\":\"6660.05\",\"swapCommissionVolume\":\"2.37932209\",\"stdTradingVolume\":\"6660.05\",\"stdCommissionVolume\":\"2.37932209\",\"spotTradingVolume\":\"6660.05\",\"spotCommissionVolume\":\"2.37932209\",\"extCopyTradingVolume\":\"6660.05\",\"extCopyCommissionVolume\":\"2.37932209\",\"mt5TradingVolume\":\"6660.05\",\"mt5CommissionVolume\":\"2.37932209\"},{\"uid\":24186665,\"commissionTime\":1689350400000,\"tradingVolume\":\"0\",\"commissionVolume\":\"0\",\"swapTradingVolume\":\"6660.05\",\"swapCommissionVolume\":\"2.37932209\",\"stdTradingVolume\":\"6660.05\",\"stdCommissionVolume\":\"2.37932209\",\"spotTradingVolume\":\"6660.05\",\"spotCommissionVolume\":\"2.37932209\",\"extCopyTradingVolume\":\"6660.05\",\"extCopyCommissionVolume\":\"2.37932209\",\"mt5TradingVolume\":\"6660.05\",\"mt5CommissionVolume\":\"2.37932209\"}],\"total\":43,\"currentAgentUid\":1115195195666423800}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Invited User UID\"},{\"name\":\"startTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"Start timestamp, in days, with a maximum query window of 30 days and a sliding range of the last 365 days.\"},{\"name\":\"endTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"End timestamp, in days, with a maximum query window of 30 days and a sliding range of the last 365 days.\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page number for pagination, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page size for pagination, must be greater than 0 with a maximum value of 100.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request valid time window, in milliseconds. Default is 5 seconds if not provided.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request timestamp in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"Invited User UID\"},{\"name\":\"commissionTime\",\"type\":\"long\",\"description\":\"Commission timestamp, date\"},{\"name\":\"tradingVolume\",\"type\":\"string\",\"description\":\"Total trading volume in USDT for Spot, Standard Contract, Perpetual Contract, Copy Trading, and MT5 business lines combined\"},{\"name\":\"commissionVolume\",\"type\":\"string\",\"description\":\"Commission amount in USDT\"},{\"name\":\"spotTradingVolume\",\"type\":\"string\",\"description\":\"Spot transaction amount, discounted to USDT\"},{\"name\":\"swapTradingVolume\",\"type\":\"string\",\"description\":\"Perpetual contract trading volume, converted into USDT\"},{\"name\":\"stdTradingVolume\",\"type\":\"string\",\"description\":\"Standard contract transaction amount, discounted in USDT\"},{\"name\":\"extCopyTradingVolume\",\"type\":\"string\",\"description\":\"Copy transaction amount, discounted in USDT\"},{\"name\":\"mt5TradingVolume\",\"type\":\"string\",\"description\":\"MT5 transaction volume, discount USDT\"},{\"name\":\"spotCommissionVolume\",\"type\":\"string\",\"description\":\"Spot commission rebate amount, discounted in USDT\"},{\"name\":\"swapCommissionVolume\",\"type\":\"string\",\"description\":\"Perpetual contract rebate commission amount, converted into USDT\"},{\"name\":\"stdCommissionVolume\",\"type\":\"string\",\"description\":\"Standard contract rebate amount, discounted in USDT\"},{\"name\":\"extCopyCommissionVolume\",\"type\":\"string\",\"description\":\"The commission amount for following orders is discounted in USDT\"},{\"name\":\"mt5CommissionVolume\",\"type\":\"string\",\"description\":\"MT5 rebate commission amount, discount USDT\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/02_get_Daily_Commission_Query.json\n// module id = Czkf\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢強平訂單歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/forceOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"autoCloseType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"LIQUIDATION:强平单, ADL:减仓单\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"开始时间,单位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"结束时间,单位:毫秒\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"返回的结果集数量 默认值50,最大值100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"回應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"强平单list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"订单号\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"订单類型, LIMIT:限价单/MARKET:市价单/STOP_MARKET:市价止损单/TAKE_PROFIT_MARKET:市价止盈单/STOP:限价止损单/TAKE_PROFIT:限价止盈单\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"买卖方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,双向持仓仅可选择 LONG 或 SHORT\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"委托价格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"下单数量,合约数量\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"触发价, 仅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT 需要此参数\"},{\"name\":\"workingType\",\"type\":\"string\",\"description\":\"stopPrice触发价价格类型:MARK_PRICE、CONTRACT_PRICE、I默认MARK_PRICE。\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"訂單狀態\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"訂單時間,單位:毫秒\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"平均成交價\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量,合约数量\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"盈虧\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"updateTime\",\"type\":\"string\",\"description\":\"更新時間,單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/08_get_forceOrders.json\n// module id = D/10\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/05_subscribe.json\n// module id = D11h\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual order placement: Add trailing stop loss order types Perpetual contract ordering interface\"},{\"type\":\"html\",\"text\":\"Permanent order placement: stopPrice trigger price supports price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE Perpetual contract ordering interface\"},{\"type\":\"html\",\"text\":\"Spot: Cancel a Batch of Orders\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-08-11.json\n// module id = D1C9\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/cswap/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱標記價格\"},{\"type\":\"normal\",\"text\":\"訂閱標記價格\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @lastPrice 例如 BTC-USD@lastPrice ETH-USD@markPrice\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@markPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@markPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@markPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送價格\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"lastPrice\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"最新價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/03_mark_price.json\n// module id = D6bT\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-10-12\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續合約/現貨:相同訂單限制為1秒最多撤銷一次\"},{\"type\":\"html\",\"text\":\"現貨新增訂單類型:TAKE_ STOP_ LIMIT:限價止盈止損單TAKE_ STOP_ MARKET:市價止盈止損單TRIGGER_ LIMIT:限價計畫委託TRIGGER_ MARKET:市價計畫委託\"},{\"type\":\"html\",\"text\":\"現貨:歷史訂單返回新增fee手續費欄位\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-10-12.json\n// module id = DJaF\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"提幣記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/withdraw/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"endTime\":\"1702536564000\",\"recvWindow\":\"60\",\"startTime\":\"1702450164000\",\"timestamp\":\"1702622964230\"},\"response\":[{\"address\":\"TR****zc\",\"amount\":\"3500.00000000000000000000\",\"applyTime\":\"2023-12-14T04:05:02.000+08:00\",\"coin\":\"USDTTRC20\",\"id\":\"125*****98\",\"network\":\"TRC20\",\"transferType\":1,\"transactionFee\":\"1.00000000000000000000\",\"confirmNo\":2,\"info\":\"\",\"txId\":\"b9***********b67\"}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"required\":\"否\",\"description\":\"平台返回提幣記錄唯一id\"},{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣的名稱\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"自定義ID, 如果沒有則不返回該字段,同時入參平台ID和withdrawOrderId時以平台ID查詢為主。\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"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, 如果沒有則不返回該字段,同時入參平台ID和withdrawOrderId時以平台ID查詢為主。\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"提現網絡\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"4-審核中 5-已失敗 6-已完成\"},{\"name\":\"transactionFee\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"confirmNo\",\"type\":\"int\",\"description\":\"提現確認次數\"},{\"name\":\"info\",\"type\":\"string\",\"description\":\"提幣失敗原因\"},{\"name\":\"txId\",\"type\":\"String\",\"description\":\"提現交易id\"},{\"name\":\"sourceAddress\",\"type\":\"String\",\"description\":\"來源地址\"},{\"name\":\"transferType\",\"type\":\"int\",\"description\":\"轉賬類型:1 提幣,2 內部轉賬\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"某些幣種例如XRP/XMR允許填寫次級地址標籤\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/04_get_withdraw_history.json\n// module id = DNed\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"USDT-M Perp Futures symbols\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"contractId\":\"100\",\"symbol\":\"BTC-USDT\",\"size\":\"0\",\"quantityPrecision\":4,\"pricePrecision\":1,\"feeRate\":0.0005,\"makerFeeRate\":0.0002,\"takerFeeRate\":0.0005,\"tradeMinLimit\":0,\"tradeMinQuantity\":0.0001,\"tradeMinUSDT\":2,\"maxLongLeverage\":125,\"maxShortLeverage\":125,\"currency\":\"USDT\",\"asset\":\"BTC\",\"status\":1,\"apiStateOpen\":\"true\",\"apiStateClose\":\"true\",\"brokerState\":\"true\",\"launchTime\":1586275200000,\"maintainTime\":0,\"offTime\":0},{\"contractId\":\"101\",\"symbol\":\"ETH-USDT\",\"size\":\"0\",\"quantityPrecision\":2,\"pricePrecision\":2,\"feeRate\":0.0005,\"makerFeeRate\":0.0002,\"takerFeeRate\":0.0005,\"tradeMinLimit\":0,\"tradeMinQuantity\":0.01,\"tradeMinUSDT\":2,\"maxLongLeverage\":125,\"maxShortLeverage\":125,\"currency\":\"USDT\",\"asset\":\"ETH\",\"status\":1,\"apiStateOpen\":\"true\",\"apiStateClose\":\"true\",\"brokerState\":\"true\",\"launchTime\":1586275200000,\"maintainTime\":0,\"offTime\":0}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"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\":\"contractId\",\"type\":\"string\",\"description\":\"contract ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"quantityPrecision\",\"type\":\"int\",\"description\":\"transaction quantity precision\"},{\"name\":\"pricePrecision\",\"type\":\"int\",\"description\":\"price precision\"},{\"name\":\"takerFeeRate\",\"type\":\"float64\",\"description\":\"take transaction fee\"},{\"name\":\"makerFeeRate\",\"type\":\"float64\",\"description\":\"make transaction fee\"},{\"name\":\"tradeMinQuantity\",\"type\":\"float64\",\"description\":\"The minimum trading unit(COIN)\"},{\"name\":\"tradeMinUSDT\",\"type\":\"float64\",\"description\":\"The minimum trading unit(USDT)\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"settlement and margin currency asset\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"contract trading asset\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"1 online, 25 forbidden to open positions, 5 pre-online, 0 offline\"},{\"name\":\"apiStateOpen\",\"type\":\"string\",\"description\":\"Whether the API can open a position\"},{\"name\":\"apiStateClose\",\"type\":\"string\",\"description\":\"Whether API can close positions\"},{\"name\":\"ensureTrigger\",\"type\":\"bool\",\"description\":\"Whether to support guaranteed stop loss.\"},{\"name\":\"triggerFeeRate\",\"type\":\"string\",\"description\":\"The fee rate for guaranteed stop loss.\"},{\"name\":\"brokerState\",\"type\":\"bool\",\"description\":\"Whether to prohibit broker user transactions, true: prohibited\"},{\"name\":\"launchTime\",\"type\":\"long\",\"description\":\"shelf time; The status of the pair is pre-online before the listing time, and the status of the pair changes to online after the listing time\"},{\"name\":\"maintainTime\",\"type\":\"long\",\"description\":\"The start time of the prohibition of opening a position, after the time is up, the currency pair is in a state of prohibition from opening a position, and can only close the position\"},{\"name\":\"offTime\",\"type\":\"long\",\"description\":\"Down line time, after the time is up, the currency pair is in the offline state and trading is prohibited\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/01_get_quote_contracts.json\n// module id = DcMO\n// module chunks = 3","var map = {\n\t\".\": \"vVGz\",\n\t\"./\": \"vVGz\",\n\t\"./01_get_quote_contracts\": \"DcMO\",\n\t\"./01_get_quote_contracts.json\": \"DcMO\",\n\t\"./03_get_quote_depth\": \"e+0O\",\n\t\"./03_get_quote_depth.json\": \"e+0O\",\n\t\"./04_get_quote_ trades\": \"PqB/\",\n\t\"./04_get_quote_ trades.json\": \"PqB/\",\n\t\"./05_get_quote_ premiumIndex\": \"Tk4L\",\n\t\"./05_get_quote_ premiumIndex.json\": \"Tk4L\",\n\t\"./06_get_quote_ fundingRate\": \"YtyA\",\n\t\"./06_get_quote_ fundingRate.json\": \"YtyA\",\n\t\"./07_get_quote_ klines\": \"xU+M\",\n\t\"./07_get_quote_ klines.json\": \"xU+M\",\n\t\"./08_get_quote_openInterest\": \"j4uq\",\n\t\"./08_get_quote_openInterest.json\": \"j4uq\",\n\t\"./09_get_quote_ ticker\": \"LWb5\",\n\t\"./09_get_quote_ ticker.json\": \"LWb5\",\n\t\"./19_get_historicalTrades\": \"xyiP\",\n\t\"./19_get_historicalTrades.json\": \"xyiP\",\n\t\"./20_get_trade_quote_bookTicker\": \"E4EJ\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"E4EJ\",\n\t\"./21_get_quote_mark_price_klines\": \"VeQG\",\n\t\"./21_get_quote_mark_price_klines.json\": \"VeQG\",\n\t\"./22_get_quote_price_v2\": \"rCcB\",\n\t\"./22_get_quote_price_v2.json\": \"rCcB\",\n\t\"./index\": \"vVGz\",\n\t\"./index.js\": \"vVGz\"\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 = \"Dsow\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market ^.*$\n// module id = Dsow\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Account Assets\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718421301887,\"data\":[{\"asset\":\"BTC\",\"balance\":\"0.14438227\",\"equity\":\"0.14428116\",\"unrealizedProfit\":\"-0.0001011\",\"availableMargin\":\"0.14317271\",\"usedMargin\":\"0.00110845\",\"freezedMargin\":\"0\",\"shortUid\":\"12345678\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, e.g. BTC-USD, use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description message\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation time point, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"Asset list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"User asset\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"Asset balance\"},{\"name\":\"equity\",\"type\":\"string\",\"description\":\"Asset net value\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"Unrealized profit\"},{\"name\":\"availableMargin\",\"type\":\"string\",\"description\":\"Available margin\"},{\"name\":\"usedMargin\",\"type\":\"string\",\"description\":\"Used margin\"},{\"name\":\"freezedMargin\",\"type\":\"string\",\"description\":\"Frozen margin\"},{\"name\":\"shortUid\",\"type\":\"string\",\"description\":\"User uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/07_get_balance.json\n// module id = DyCG\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Symbol Order Book Ticker\"},{\"type\":\"normal\",\"text\":\"Obtain the current optimal order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\",\"timestamp\":\"1702719942130\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"book_ticker\":{\"symbol\":\"BTC-USDT\",\"bid_price\":42211.1,\"bid_qty\":12663,\"ask_price\":42211.8,\"ask_qty\":128854}}}},\"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\":\"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\":\"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\":\"lastUpdateId\",\"type\":\"int64\",\"description\":\"The ID of the latest trade\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"The time of the trade in milliseconds\"},{\"name\":\"ask_qty\",\"type\":\"float64\",\"description\":\"Order quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/20_get_trade_quote_bookTicker.json\n// module id = E4EJ\n// module chunks = 3","var map = {\n\t\".\": \"BbCp\",\n\t\"./\": \"BbCp\",\n\t\"./01_get_common_symbols\": \"qHSP\",\n\t\"./01_get_common_symbols.json\": \"qHSP\",\n\t\"./02_get_ market_traders\": \"u7QQ\",\n\t\"./02_get_ market_traders.json\": \"u7QQ\",\n\t\"./03_get_market_depth\": \"xaTv\",\n\t\"./03_get_market_depth.json\": \"xaTv\",\n\t\"./04_get_market_klines\": \"l6fp\",\n\t\"./04_get_market_klines.json\": \"l6fp\",\n\t\"./05_get_quote_ticker\": \"mWiW\",\n\t\"./05_get_quote_ticker.json\": \"mWiW\",\n\t\"./06_get_market_agg_depth\": \"eCwL\",\n\t\"./06_get_market_agg_depth.json\": \"eCwL\",\n\t\"./07_get_market_price\": \"p4oz\",\n\t\"./07_get_market_price.json\": \"p4oz\",\n\t\"./08_get_market_book_ticker\": \"OdvA\",\n\t\"./08_get_market_book_ticker.json\": \"OdvA\",\n\t\"./09_get_market_history_klines\": \"Turq\",\n\t\"./09_get_market_history_klines.json\": \"Turq\",\n\t\"./10_get_ market_histroy_traders\": \"MGWO\",\n\t\"./10_get_ market_histroy_traders.json\": \"MGWO\",\n\t\"./index\": \"BbCp\",\n\t\"./index.js\": \"BbCp\"\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 = \"EA8X\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market ^.*$\n// module id = EA8X\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-05-27\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual contract new:Subscribe to 24-hour price changes of all trading pairs\"},{\"type\":\"html\",\"text\":\"Perpetual contract new:Subscribe K-Line Data of all trading pairs\"},{\"type\":\"html\",\"text\":\"Perpetual contract new:Subscribe Market Depth Data of all trading pairs\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-05-27.json\n// module id = ED08\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Order details\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/query\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BRG-USDT\",\"orderId\":\"1735965009395131234\",\"timestamp\":\"1702721583560\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"BRG-USDT\",\"orderId\":1735965009395131100,\"price\":\"0.0005027\",\"StopPrice\":\"0\",\"origQty\":\"4038\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"time\":1702721285567,\"updateTime\":1702721285567,\"origQuoteOrderQty\":\"0\",\"fee\":\"0\",\"feeAsset\":\"BRG\",\"avgPrice\":\"0.0005028\"}}},\"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\":\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"trigger price\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average fill price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/03_get_trade_order.json\n// module id = EDR3\n// module chunks = 3","var map = {\n\t\".\": \"KsRT\",\n\t\"./\": \"KsRT\",\n\t\"./01_executionReport\": \"H6dO\",\n\t\"./01_executionReport.json\": \"H6dO\",\n\t\"./02_ account_update\": \"bZVt\",\n\t\"./02_ account_update.json\": \"bZVt\",\n\t\"./index\": \"KsRT\",\n\t\"./index.js\": \"KsRT\"\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 = \"ELvl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/account ^.*$\n// module id = ELvl\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-09-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續幣本位:查詢K線接口,增加說明只允許查詢最近30天的數據。\"},{\"type\":\"html\",\"text\":\"新增:代理API\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-09-11.json\n// module id = EMrv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢聯合保證金規則\"},{\"type\":\"normal\",\"text\":\"查詢平台規定的聯合保證金規則\"},{\"type\":\"warning\",\"text\":\"僅實盤可以調用,實盤域名:https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/multiAssetsRules\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"marginAssets\":\"USDT\",\"ltv\":\"99.99%\",\"collateralValueRatio\":\"99.99%\",\"maxTransfer\":\"\",\"indexPrice\":\"1.0006981800\"},{\"marginAssets\":\"USDC\",\"ltv\":\"99.99%\",\"collateralValueRatio\":\"99.99%\",\"maxTransfer\":\"\",\"indexPrice\":\"0.9998772499\"},{\"marginAssets\":\"TRX\",\"ltv\":\"85.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"300000\",\"indexPrice\":\"0.1778813333\"},{\"marginAssets\":\"DOGE\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"300000\",\"indexPrice\":\"0.3891840533\"},{\"marginAssets\":\"BNB\",\"ltv\":\"90.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"160\",\"indexPrice\":\"622.9584792100\"},{\"marginAssets\":\"DOT\",\"ltv\":\"90.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"12000\",\"indexPrice\":\"5.0431331628\"},{\"marginAssets\":\"BTC\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"10\",\"indexPrice\":\"90230.3058075903\"},{\"marginAssets\":\"ETH\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"100\",\"indexPrice\":\"3214.4279682820\"}]},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"marginAssets\",\"type\":\"string\",\"description\":\"保證金資產,例如BTC、ETH等。\"},{\"name\":\"ltv\",\"type\":\"string\",\"description\":\"質押率,計算可用保證金時的價值折合比例。\"},{\"name\":\"collateralValueRatio\",\"type\":\"string\",\"description\":\"擔保率,計算風險率時的價值折合比例。\"},{\"name\":\"maxTransfer\",\"type\":\"string\",\"description\":\"轉入限額,最大可轉入的數量限制,為空時表示沒有數量限制。\"},{\"name\":\"indexPrice\",\"type\":\"string\",\"description\":\"資產當前最新的美元指數價格。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/35_get_multi_asset_rule.json\n// module id = EWHP\n// module chunks = 3","\nconst csharp = `\nusing System.Net.WebSockets;\nusing System.Text;\nusing System.IO.Compression;\n\nclass Program\n{\n private static readonly string WebSocketUrl = \"wss://open-api-swap.bingx.com/swap-market?listenKey=425f783f4a17cd65f4a5d7470cfd45a956dba0c29564aa4b70967bee4e4a8984\";\n private static readonly string Channel = \"https://open-api.bingx.com/openApi/user/auth/userDataStream\";\n\n static async Task Main(string[] args)\n {\n using (var client = new ClientWebSocket())\n {\n try\n {\n await client.ConnectAsync(new Uri(WebSocketUrl), CancellationToken.None);\n Console.WriteLine(\"WebSocket connected\");\n\n // Send channel subscription message\n var message = Encoding.UTF8.GetBytes(Channel);\n await client.SendAsync(new ArraySegment(message), WebSocketMessageType.Text, true, CancellationToken.None);\n Console.WriteLine(\"Subscription message sent\");\n\n var buffer = new byte[1024 * 4];\n while (client.State == WebSocketState.Open)\n {\n WebSocketReceiveResult result = await client.ReceiveAsync(new ArraySegment(buffer), CancellationToken.None);\n\n // Handle the received data\n if (result.MessageType == WebSocketMessageType.Close)\n {\n Console.WriteLine(\"Connection closed\");\n break;\n }\n\n string receivedMessage = HandleReceivedMessage(buffer, result.Count);\n Console.WriteLine(\"Received message: \" + receivedMessage);\n\n if (receivedMessage == \"Ping\")\n {\n var pongMessage = Encoding.UTF8.GetBytes(\"Pong\");\n await client.SendAsync(new ArraySegment(pongMessage), WebSocketMessageType.Text, true, CancellationToken.None);\n Console.WriteLine(\"Sent Pong\");\n }\n }\n }\n catch (Exception ex)\n {\n Console.WriteLine($\"WebSocket Exception: {ex.Message}\");\n }\n }\n }\n\n private static string HandleReceivedMessage(byte[] buffer, int length)\n {\n // Assuming the message might be compressed\n byte[] data = new byte[length];\n Array.Copy(buffer, data, length);\n \n try\n {\n // Try to decompress if it's a GZIP compressed message\n string decompressedMessage = DecompressGzip(data);\n return decompressedMessage;\n }\n catch (Exception)\n {\n // If decompression fails, assume it's a plain text message\n return Encoding.UTF8.GetString(data);\n }\n }\n\n private static string DecompressGzip(byte[] compressedData)\n {\n using (var input = new MemoryStream(compressedData))\n using (var gzip = new GZipStream(input, CompressionMode.Decompress))\n using (var reader = new StreamReader(gzip, Encoding.UTF8))\n {\n return reader.ReadToEnd();\n }\n }\n}`\nexport default csharp\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/csharp.js","var map = {\n\t\"./01_connect.json\": \"3tXb\",\n\t\"./02_data_compress.json\": \"CVyP\",\n\t\"./03_heart_beat.json\": \"vR2M\",\n\t\"./04_subscribe.json\": \"UYWd\",\n\t\"./05_cancel_subscribe.json\": \"2xEp\"\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 = \"EoQc\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/introduce \\.json$\n// module id = EoQc\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢所有委托中的OCO訂單列表\"},{\"type\":\"normal\",\"text\":\"查詢當前處於掛單狀態的訂單清單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/openOrderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":1,\"pageSize\":100,\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460545\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"NEW\"},{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460544\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"PENDING\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"頁數\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每頁數量\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"委託時間\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit:OCO限價單,ocoTps:OCO止盈止損單\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"觸發價格\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO訂單組ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/103_get_all_pending_oco_order.json\n// module id = EsEh\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢當前全部掛單\"},{\"type\":\"normal\",\"text\":\"查詢用戶當前處於委託狀態的全部訂單。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702733126509\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44459.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702256915574,\"updateTime\":1702256915610,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"workingType\":\"MARK_PRICE\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44454.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702111071719,\"updateTime\":1702111071735,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/ TRIGGER_REVERSE_MARKET:計劃反手\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間,單位:毫秒\"},{\"name\":\"postOnly\",\"type\":\"bool\",\"description\":\"只做Maker\"},{\"name\":\"trailingStopRate\",\"type\":\"float64\",\"description\":\"回撤比例\"},{\"name\":\"trailingStopDistance\",\"type\":\"int64\",\"description\":\"Price difference\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"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-tw/swapV2/api/trade/07_get_all_openOrders.json\n// module id = Ewmn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Asset overview\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/allAccountBalance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"accountType\":\"sopt\",\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"result\":[{\"accountType\":\"sopt\",\"usdtBalance\":\"100\"}],\"pageId\":1,\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"accountType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"Account type, if left blank, all assets of the account will be checked by default. spot: spot (fund account), stdFutures: standard futures account, coinMPerp: coin base account, USDTMPerp: U base account, copyTrading: copy trading account, grid: grid account, eran: wealth account, c2c: c2c account.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"accountType\",\"type\":\"string\",\"description\":\"Account type, if left blank, all assets of the account will be checked by default. spot: spot (fund account), stdFutures: standard futures account, coinMPerp: coin base account, USDTMPerp: U base account, copyTrading: copy trading account, grid: grid account, eran: wealth account, c2c: c2c account.\"},{\"name\":\"usdtBalance\",\"type\":\"string\",\"description\":\"Equivalent to USDT amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/21_get_account_allAccountBalance.json\n// module id = Exaw\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續幣本位:新增WS DataType-ACCOUNT_UPDATE 賬戶更新\"},{\"type\":\"html\",\"text\":\"永續幣本位:新增WS DataType-ORDER_TRADE_UPDATE 訂單更新推送\"},{\"type\":\"html\",\"text\":\"永續幣本位:新增 WS DataType-ACCOUNT-CONFIG_UPDATE 槓桿倍數和保證金模式等配置更新推送\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-08-08.json\n// module id = F1dE\n// module chunks = 3","var map = {\n\t\".\": \"sHXP\",\n\t\"./\": \"sHXP\",\n\t\"./01_server_url\": \"wWlE\",\n\t\"./01_server_url.json\": \"wWlE\",\n\t\"./03_error_code\": \"/sx7\",\n\t\"./03_error_code.json\": \"/sx7\",\n\t\"./04_rate_limits\": \"bIsO\",\n\t\"./04_rate_limits.json\": \"bIsO\",\n\t\"./04_server_url\": \"GK5R\",\n\t\"./04_server_url.json\": \"GK5R\",\n\t\"./index\": \"sHXP\",\n\t\"./index.js\": \"sHXP\"\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 = \"F9Rf\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic ^.*$\n// module id = F9Rf\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query sub-account internal transfer records\"},{\"type\":\"normal\",\"text\":\"This node is used for sub-accounts to query their own internal transfer records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccount/innerTransfer/records\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"startTime\":1694761643000,\"endTime\":1694765243428,\"offset\":0,\"limit\":100,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Transfer currency name\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Client's self-defined internal transfer ID. When both platform ID and transferClientId are provided as input, the query will be based on the platform ID.\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Start time\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"no\",\"description\":\"End time\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"Internal transfer record list\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"id\",\"type\":\"long\",\"description\":\"Internal transfer ID\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Currency name\"},{\"name\":\"receiver\",\"type\":\"long\",\"description\":\"Receiver's UID\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"Transfer amount\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"Internal transfer time\"},{\"name\":\"status\",\"type\":\"Integer\",\"description\":\"Status 4-Pending review 5-Failed 6-Completed\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Client's self-defined internal transfer ID. When both platform ID and transferClientId are provided as input, the query will be based on the platform ID.\"},{\"name\":\"fromUid\",\"type\":\"long\",\"description\":\"Payer's account\"},{\"name\":\"recordType\",\"type\":\"string\",\"description\":\"Out: transfer out record, in: transfer in record\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/17.get_wallet_querySubInnerTransferRecords.json\n// module id = FRId\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"服務地址\"},{\"type\":\"code\",\"text\":\"https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"備用域名:open-api.bingx.io(總限頻:60/min)僅在主域名open-api.bingx.com出現問題時候才放開備用域名限頻\"},{\"type\":\"normal\",\"text\":\"HTTP狀態碼200表示成功響應,併可能包含內容。如果響應含有內容,則将顯示在相應的返回內容裡面。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic/01_server_url.json\n// module id = FVkd\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/market/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-01-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual contract new: Query marked price K-line data\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - 24-hour price change push\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - Latest transaction price push\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - Latest marked price push\"},{\"type\":\"html\",\"text\":\"New: User queries recharge records in risk control interface.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-01-23.json\n// module id = FtO6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get K-line Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • only supports querying K-line data for the last 30 days
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"interval\":\"1m\",\"startTime\":1716912000000,\"endTime\":1716998400000,\"limit\":100,\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"67792.6\",\"close\":\"67792.6\",\"high\":\"67792.6\",\"low\":\"67792.6\",\"volume\":\"3.00\",\"time\":1716998340000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USD. Please use uppercase letters.\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Time interval, optional values are: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M.\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, the returned result includes the K-line of this time.\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, the returned result does not include the K-line of this time.\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The number of returned results. The default is 500 if not filled, and the maximum is 1000.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status code.\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description message.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"open\",\"type\":\"string\",\"description\":\"Opening price.\"},{\"name\":\"close\",\"type\":\"string\",\"description\":\"Closing price.\"},{\"name\":\"high\",\"type\":\"string\",\"description\":\"Highest price.\"},{\"name\":\"low\",\"type\":\"string\",\"description\":\"Lowest price.\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Trading volume in contracts\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"K-line time.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/04_get_kline.json\n// module id = FuQd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Contract Information\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"pricePrecision\":1,\"minTickSize\":\"100\",\"minTradeValue\":\"100\",\"minQty\":\"1.00000000\",\"status\":1,\"timeOnline\":1710738000000},{\"symbol\":\"ETH-USD\",\"pricePrecision\":2,\"minTickSize\":\"10\",\"minTradeValue\":\"10\",\"minQty\":\"1.00000000\",\"status\":1,\"timeOnline\":1710738000000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"trading pair, for example: BTC-USD\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status Code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USD\"},{\"name\":\"pricePrecision\",\"type\":\"int64\",\"description\":\"price precision\"},{\"name\":\"minTickSize\",\"type\":\"string\",\"description\":\"price accuracy\"},{\"name\":\"minTradeValue\",\"type\":\"string\",\"description\":\"Minimum transaction amount\"},{\"name\":\"minQty\",\"type\":\"string\",\"description\":\"The minimum unit of transaction, the unit is: currency\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0 offline, 1 online\"},{\"name\":\"timeOnline\",\"type\":\"int64\",\"description\":\"trading pair online time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/01_get_contracts.json\n// module id = Fui1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易員按帶單訂單號平倉\"},{\"type\":\"normal\",\"text\":\"此節點用於交易員按帶單訂單號平倉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/closeTrackOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"positionId\":\"1252864099381234567\",\"recvWindow\":\"5000\",\"timestamp\":\"1702575099353\"},\"response\":{\"code\":0,\"timestamp\":1702575099575,\"data\":{\"positionId\":1252864099381234700}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"帶單訂單號\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求時間戳記,組織:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求有效時間空窗值,組織:毫秒,不填默認5秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"帶單訂單號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader/02_post_close_currentTrack.json\n// module id = Fxil\n// module chunks = 3","\nconst csharp = `\nusing System;\nusing System.Net.Http;\nusing System.Security.Cryptography.X509Certificates;\nusing System.Threading.Tasks;\nusing System.Security.Cryptography;\nclass Program\n{\n static void Main(string[] args)\n {\n string API_KEY = \"\";\n string API_SECRET = \"\";\n string HOST = \"HHOOSSTT\";\n var api = new\n {\n uri = \"AAPPII\",\n method = \"MMEETTHHOODD\",\n // payload = new //payload example\n // {\n // symbol= \"BTC-USDT\",\n // recvWindow= 0\n // }\n payload = new\n PPAAYYLLOOAADD,\n protocol = \"https\"\n };\n\n DoRequest(api.protocol, HOST, api.uri, api.method, API_KEY, API_SECRET, api.payload).Wait();\n }\n\n static async Task DoRequest(string protocol, string host, string api, string method, string API_KEY, string API_SECRET, object payload)\n {\n long timestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();\n string parameters = $\"timestamp={timestamp}\";\n\n if (payload != null)\n {\n foreach (var property in payload.GetType().GetProperties())\n {\n parameters += $\"&{property.Name}={property.GetValue(payload)}\";\n }\n }\n\n string sign = CalculateHmacSha256(parameters, API_SECRET);\n string url = $\"{protocol}://{host}{api}?{parameters}&signature={sign}\";\n\n Console.WriteLine(\"protocol: \" + protocol);\n Console.WriteLine(\"method: \" + method);\n Console.WriteLine(\"host: \" + host);\n Console.WriteLine(\"api: \" + api);\n Console.WriteLine(\"parameters: \" + parameters);\n Console.WriteLine(\"sign: \" + sign);\n Console.WriteLine(method + \" \" + url);\n\n using (HttpClientHandler handler = new HttpClientHandler())\n {\n handler.ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => true;\n\n using (HttpClient client = new HttpClient(handler))\n {\n client.DefaultRequestHeaders.Add(\"X-BX-APIKEY\", API_KEY);\n HttpResponseMessage response;\n if (method.ToUpper() == \"GET\")\n {\n response = await client.GetAsync(url);\n }\n else if (method.ToUpper() == \"POST\")\n {\n response = await client.PostAsync(url, null);\n }\n else if (method.ToUpper() == \"DELETE\")\n {\n response = await client.DeleteAsync(url);\n }\n else if (method.ToUpper() == \"PUT\")\n {\n response = await client.PutAsync(url, null);\n }\n else\n {\n throw new NotSupportedException(\"Unsupported HTTP method: \" + method);\n }\n response.EnsureSuccessStatusCode();\n string responseBody = await response.Content.ReadAsStringAsync();\n Console.WriteLine(\"Response status code: \" + response.StatusCode);\n Console.WriteLine(\"Response body: \" + responseBody);\n }\n }\n }\n\n static string CalculateHmacSha256(string input, string key)\n {\n byte[] keyBytes = System.Text.Encoding.UTF8.GetBytes(key);\n byte[] inputBytes = System.Text.Encoding.UTF8.GetBytes(input);\n using (HMACSHA256 hmac = new HMACSHA256(keyBytes))\n {\n byte[] hashBytes = hmac.ComputeHash(inputBytes);\n return BitConverter.ToString(hashBytes).Replace(\"-\", \"\").ToLower();\n }\n }\n}`\nexport default csharp\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/csharp.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-01-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:查詢標記價格K線數據\"},{\"type\":\"html\",\"text\":\"永续:新增WS DataType-24小時價格變動推送\"},{\"type\":\"html\",\"text\":\"永续:新增WS DataType-最新成交價格推送\"},{\"type\":\"html\",\"text\":\"永续:新增WS DataType-最新標記價格推送\"},{\"type\":\"html\",\"text\":\"新增:用戶查詢風控中的充值記錄 接口\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-01-23.json\n// module id = G8cI\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"m2cs\",\n\t\"./02_last_price.json\": \"ntfQ\",\n\t\"./03_mark_price.json\": \"D6bT\",\n\t\"./04_depth.json\": \"pvqc\",\n\t\"./05_bookTicker.json\": \"exCQ\",\n\t\"./06_kline.json\": \"p1RX\",\n\t\"./07_24hr_ticker.json\": \"5LXd\"\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 = \"G8gl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market \\.json$\n// module id = G8gl\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/wallet/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Server time\"},{\"type\":\"warning\",\"text\":\"https://open-api.bingx.com/openApi/spot/v1/server/time\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic/04_server_url.json\n// module id = GK5R\n// module chunks = 3","var map = {\n\t\".\": \"2KwY\",\n\t\"./\": \"2KwY\",\n\t\"./01_error_code\": \"+lFy\",\n\t\"./01_error_code.json\": \"+lFy\",\n\t\"./02_timestamp\": \"VQr5\",\n\t\"./02_timestamp.json\": \"VQr5\",\n\t\"./03_digital_rule\": \"C2jk\",\n\t\"./03_digital_rule.json\": \"C2jk\",\n\t\"./04_rate_limits\": \"nG30\",\n\t\"./04_rate_limits.json\": \"nG30\",\n\t\"./05_system_time\": \"zNUa\",\n\t\"./05_system_time.json\": \"zNUa\",\n\t\"./index\": \"2KwY\",\n\t\"./index.js\": \"2KwY\",\n\t\"./index_share_to_v1\": \"Vl00\",\n\t\"./index_share_to_v1.js\": \"Vl00\"\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 = \"GNIi\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/basic ^.*$\n// module id = GNIi\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Depth Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"limit\":100,\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"T\":1717052420270,\"bids\":[[\"67753.0\",\"1360.0\"],[\"67752.9\",\"10.0\"],[\"67752.8\",\"11.0\"],[\"67752.7\",\"1.0\"],[\"67752.6\",\"1.0\"]],\"asks\":[[\"67754.9\",\"4.0\"],[\"67754.8\",\"4.0\"],[\"67754.7\",\"22.0\"],[\"67754.6\",\"19.0\"],[\"67754.5\",\"703.0\"]]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USD. Please use uppercase letters.\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The number of returned results. The default is 20 if not filled, optional values: 5, 10, 20, 50, 100, 500, 1000.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status code.\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description message.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"System time, milliseconds.\"},{\"name\":\"asks\",\"type\":\"List\",\"description\":\"Ask depth, the first is the price, the second is the quantity in contracts.\"},{\"name\":\"bids\",\"type\":\"List\",\"description\":\"Bid depth, the first is the price, the second is the quantity in contracts.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/05_get_depth.json\n// module id = GbOE\n// module chunks = 3","var map = {\n\t\".\": \"C8jp\",\n\t\"./\": \"C8jp\",\n\t\"./00_limit\": \"/ur1\",\n\t\"./00_limit.json\": \"/ur1\",\n\t\"./01_connect\": \"wa9k\",\n\t\"./01_connect.json\": \"wa9k\",\n\t\"./02_data_compress\": \"vuQY\",\n\t\"./02_data_compress.json\": \"vuQY\",\n\t\"./03_heart_beat\": \"il07\",\n\t\"./03_heart_beat.json\": \"il07\",\n\t\"./04_subscribe\": \"n8XW\",\n\t\"./04_subscribe.json\": \"n8XW\",\n\t\"./05_cancel_subscribe\": \"7k03\",\n\t\"./05_cancel_subscribe.json\": \"7k03\",\n\t\"./index\": \"C8jp\",\n\t\"./index.js\": \"C8jp\"\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 = \"GdCH\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/introduce ^.*$\n// module id = GdCH\n// module chunks = 3","var map = {\n\t\"./01_create_listenKey.json\": \"KCrj\",\n\t\"./02_put_listenKey.json\": \"lKnG\",\n\t\"./03_delete_listenKey.json\": \"+Xv4\"\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 = \"GeOZ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/listenKey \\.json$\n// module id = GeOZ\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-24\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Added TWAP order API:/openApi/swap/v1/twap/order\"},{\"type\":\"html\",\"text\":\"Added new API for querying TWAP orders:/openApi/swap/v1/twap/openOrders\"},{\"type\":\"html\",\"text\":\"Added new API for querying TWAP history:/openApi/swap/v1/twap/historyOrders\"},{\"type\":\"html\",\"text\":\"Added new API for querying TWAP order details:/openApi/swap/v1/twap/orderDetail\"},{\"type\":\"html\",\"text\":\"Added API to cancel TWAP order:/openApi/swap/v1/twap/cancelOrder\"},{\"type\":\"html\",\"text\":\"Query history order API:/openApi/swap/v2/trade/allOrders, Added isTwap, mainOrderId fields to the output parameters\"},{\"type\":\"html\",\"text\":\"Query all order API:/openApi/swap/v1/trade/fullOrder, Added isTwap, mainOrderId fields to the output parameters\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-30.json\n// module id = Gmgm\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to the Latest Transaction Price\"},{\"type\":\"normal\",\"text\":\"Subscribe to the latest transaction price\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"Data type is @lastPrice, e.g., BTC-USD@lastPrice, ETH-USDT@lastPrice\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@lastPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@lastPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair symbol must contain a hyphen \\\"-\\\", e.g., BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@lastPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push price\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"lastPrice\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"Trading pair\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"Latest price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/02_last_price.json\n// module id = GtO6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"每日傭金查詢(邀請關係)\"},{\"type\":\"normal\",\"text\":\"代理人KOL可以使用此介面査詢每日傭金的詳細資訊。 僅支持査詢具有邀請關係的客戶的傭金明細。\"},{\"type\":\"html\",\"text\":\"
  • 1.僅支持査詢過去365天的數據。
  • \"},{\"type\":\"html\",\"text\":\"
  • 2.開始時間<結束時間,結束時間-開始時間<=30天。 這些是必填欄位。
  • \"},{\"type\":\"html\",\"text\":\"
  • 3.僅支持査詢有邀請關係的用戶的傭金資訊。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/reward/commissionDataList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":\"1\",\"pageSize\":\"2\",\"startTime\":\"1688992720000\",\"endTime\":\"1689426920000\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1690428196386,\"data\":{\"list\":[{\"uid\":24391361,\"commissionTime\":1689350400000,\"tradingVolume\":\"6660.05\",\"commissionVolume\":\"2.37932209\",\"swapTradingVolume\":\"6660.05\",\"swapCommissionVolume\":\"2.37932209\",\"stdTradingVolume\":\"6660.05\",\"stdCommissionVolume\":\"2.37932209\",\"spotTradingVolume\":\"6660.05\",\"spotCommissionVolume\":\"2.37932209\",\"extCopyTradingVolume\":\"6660.05\",\"extCopyCommissionVolume\":\"2.37932209\",\"mt5TradingVolume\":\"6660.05\",\"mt5CommissionVolume\":\"2.37932209\"},{\"uid\":24186665,\"commissionTime\":1689350400000,\"tradingVolume\":\"0\",\"commissionVolume\":\"0\",\"swapTradingVolume\":\"6660.05\",\"swapCommissionVolume\":\"2.37932209\",\"stdTradingVolume\":\"6660.05\",\"stdCommissionVolume\":\"2.37932209\",\"spotTradingVolume\":\"6660.05\",\"spotCommissionVolume\":\"2.37932209\",\"extCopyTradingVolume\":\"6660.05\",\"extCopyCommissionVolume\":\"2.37932209\",\"mt5TradingVolume\":\"6660.05\",\"mt5CommissionVolume\":\"2.37932209\"}],\"total\":43,\"currentAgentUid\":1115195195666423800}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"受邀用戶UID\"},{\"name\":\"startTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"開始時間戳(以天為組織),最大査詢視窗為30天,滑動範圍為過去365天。\"},{\"name\":\"endTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"結束時間戳,以天為組織,最大査詢視窗為30天,滑動範圍為過去365天。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁碼必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁面大小必須大於0,最大值為100。\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"請求有效時間視窗,以毫秒為組織。 如果未提供,預設值為5秒。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求時間戳記(毫秒)\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"受邀用戶UID\"},{\"name\":\"commissionTime\",\"type\":\"long\",\"description\":\"傭金時間戳記、日期\"},{\"name\":\"tradingVolume\",\"type\":\"string\",\"description\":\"現貨、標準合約、永續合約、跟單交易和MT5業務線合計的USDT總交易量\"},{\"name\":\"commissionVolume\",\"type\":\"string\",\"description\":\"傭金金額(美元)\"},{\"name\":\"spotTradingVolume\",\"type\":\"string\",\"description\":\"現貨交易金額,折扣為USDT\"},{\"name\":\"swapTradingVolume\",\"type\":\"string\",\"description\":\"永久合約交易量,轉換為USDT\"},{\"name\":\"stdTradingVolume\",\"type\":\"string\",\"description\":\"標準合約交易金額,以USDT貼現\"},{\"name\":\"extCopyTradingVolume\",\"type\":\"string\",\"description\":\"複製交易金額,以USDT貼現\"},{\"name\":\"mt5TradingVolume\",\"type\":\"string\",\"description\":\"MT5交易量,折扣USDT\"},{\"name\":\"spotCommissionVolume\",\"type\":\"string\",\"description\":\"現貨傭金回扣金額,以USDT折扣\"},{\"name\":\"swapCommissionVolume\",\"type\":\"string\",\"description\":\"永續合約返傭金額,折算為USDT\"},{\"name\":\"stdCommissionVolume\",\"type\":\"string\",\"description\":\"標準合約回扣金額,以USDT折扣\"},{\"name\":\"extCopyCommissionVolume\",\"type\":\"string\",\"description\":\"以下訂單的傭金金額以USDT折扣\"},{\"name\":\"mt5CommissionVolume\",\"type\":\"string\",\"description\":\"MT5返傭傭金金額,折扣USDT\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/02_get_Daily_Commission_Query.json\n// module id = Gwkw\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-03\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract (maximum leverage moved into new interface)Perpetual contract: maximum leverage,Please do not use the market interface: Maximum number of levers in Transaction pair information\"},{\"type\":\"html\",\"text\":\"newly added Sub account related operations: sub account creation, query, removal, freezing, authorization, etc\"},{\"type\":\"html\",\"text\":\"newly added Sub account API KEY related operations: sub account API KEY creation, query, removal, permission settings, etc\"},{\"type\":\"html\",\"text\":\"newly added Internal transfer api between sub accounts\"},{\"type\":\"html\",\"text\":\"new User Universal Transfer\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-08-03.json\n// module id = H0k7\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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},\"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-tw/spot/websocket/account/01_executionReport.json\n// module id = H6dO\n// module chunks = 3","module.exports = {\"module\":\"standard\",\"path\":\"/en-us/standard/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 Standard contract. The market data API is publicly accessible and provides market data, statistics, order book depth of a Trading Pair.\"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/1_introduce.json\n// module id = HGsQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Authorize sub-account internal transfers\"},{\"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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUids\":16789999,\"transferable\":\"true\"},\"response\":{\"code\":0,\"timestamp\":1702520269455,\"data\":true}},\"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\"},{\"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\":\"data\"},{\"name\":\"data\",\"type\":\"boolean\",\"description\":\"Is authorization successful\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\n// module id = HQ8m\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-tw/authentication/03_request_content.json\n// module id = HVe5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Modify Leverage\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\",\"side\":\"LONG\",\"leverage\":\"4\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718354677397,\"data\":{\"symbol\":\"BTC-USD\",\"longLeverage\":4,\"shortLeverage\":8,\"maxLongLeverage\":150,\"maxShortLeverage\":150,\"availableLongVol\":\"15000000\",\"availableShortVol\":\"15000000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, for example: BTC-USD, use capital letters\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"For dual-position mode, the leverage rate of long or short positions. LONG represents long position, SHORT represents short position\"},{\"name\":\"leverage\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Leverage rate\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation timestamp, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"Long position leverage\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"Short position leverage\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"Maximum long position leverage\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"Maximum short position leverage\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"Available long volume\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"Available short volume\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/03_post_leverage.json\n// module id = HWdZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Assets\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"60000\",\"timestamp\":\"1702624167523\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"balances\":[{\"asset\":\"USDT\",\"free\":\"566773.193402631\",\"locked\":\"244.18616265388994\"},{\"asset\":\"CHEEMS\",\"free\":\"294854132046232\",\"locked\":\"18350553840\"},{\"asset\":\"VST\",\"free\":\"0\",\"locked\":\"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/account/00_get_account_balance.json\n// module id = HY4c\n// module chunks = 3","var map = {\n\t\".\": \"8e1X\",\n\t\"./\": \"8e1X\",\n\t\"./01_get_account_apiRestrictions\": \"l5cf\",\n\t\"./01_get_account_apiRestrictions.json\": \"l5cf\",\n\t\"./index\": \"8e1X\",\n\t\"./index.js\": \"8e1X\"\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 = \"I/UF\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/permission ^.*$\n// module id = I/UF\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單\"},{\"type\":\"normal\",\"text\":\"查詢用戶歷史訂單(訂單狀態為已成交或已撤銷)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 查詢時間範圍最大不得超過7天
  • \"},{\"type\":\"html\",\"text\":\"
  • 默認查詢最近7天內的數據
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/orderHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USD\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母,如果不填寫symbol,則會查詢所有幣對的歷史訂單。\"},{\"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-USD\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/14_get_trade_allOrders.json\n// module id = I2ee\n// module chunks = 3","var map = {\n\t\"./2023-09-12.json\": \"Sd/4\"\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 = \"IE+d\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/q&a \\.json$\n// module id = IE+d\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢交易手續費率\"},{\"type\":\"normal\",\"text\":\"獲取當前用戶的手續費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"commission\":{\"takerCommissionRate\":0.0005,\"makerCommissionRate\":0.0002}}}},\"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/account/19_get_trade_user_commissionRate.json\n// module id = IIQZ\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/cswap/websocket/introduce/03_heart_beat.json\n// module id = IMXD\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\":\"

    常見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\":\"
  • 80012 - 服務不可用
  • \"},{\"type\":\"html\",\"text\":\"
  • 80014 - 參數無效
  • \"},{\"type\":\"html\",\"text\":\"
  • 80016 - 訂單不存在
  • \"},{\"type\":\"html\",\"text\":\"
  • 80017 - 倉位不存在
  • \"},{\"type\":\"html\",\"text\":\"
  • 80020 - risk forbidden
  • \"},{\"type\":\"html\",\"text\":\"
  • 100004 - Permission denied as the API key was created without the permission
  • \"},{\"type\":\"html\",\"text\":\"
  • 100419 - IP does not match IP whitelist
  • \"},{\"type\":\"html\",\"text\":\"
  • 101204 - Insufficient margin
  • \"},{\"type\":\"html\",\"text\":\"
  • 80013 - The number of your entrusted orders has reached the system limit. If you need to place an order, please cancel other orders first
  • \"},{\"type\":\"html\",\"text\":\"
  • 80018 - order is already filled
  • \"},{\"type\":\"html\",\"text\":\"
  • 80019 - The order is being processed. Please use the allOrders api to retrieve the order details later
  • \"},{\"type\":\"normal\",\"text\":\"100400\",\"children\":[{\"type\":\"html\",\"text\":\"arguments invalid\"},{\"type\":\"html\",\"text\":\"miss arguments\"}]},{\"type\":\"html\",\"text\":\"
  • 100412 - Null signature
  • \"},{\"type\":\"html\",\"text\":\"
  • 100413 - Incorrect apiKey
  • \"},{\"type\":\"html\",\"text\":\"
  • 100421 - Null timestamp or timestamp mismatch
  • \"},{\"type\":\"html\",\"text\":\"
  • 100410 - rate limitation
  • \"},{\"type\":\"html\",\"text\":\"
  • 101209 - The maximum position value for this leverage is ** USDT
  • \"},{\"type\":\"html\",\"text\":\"
  • 101212 - Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again
  • \"},{\"type\":\"html\",\"text\":\"
  • 101215 - The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.
  • \"},{\"type\":\"html\",\"text\":\"
  • 101414 - The maximum leverage for the trading pair is *, please reduce the leverage
  • \"},{\"type\":\"html\",\"text\":\"
  • 101415 - This trading pair is suspended from opening new position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101460 - The order price should be higher than the estimated liquidation price of the long position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101500 - rpc timeout
  • \"},{\"type\":\"html\",\"text\":\"
  • 101514 - You're temporarily suspended from opening positions. Please try again later
  • \"},{\"type\":\"html\",\"text\":\"
  • 109201 - The same order number is only allowed to be submitted once within 1 second.
  • \"},{\"type\":\"normal\",\"text\":\"101211\",\"children\":[{\"type\":\"html\",\"text\":\"Order price should be lower than*\"},{\"type\":\"html\",\"text\":\"Order price should be higher than*\"}]},{\"type\":\"normal\",\"text\":\"80012\",\"children\":[{\"type\":\"html\",\"text\":\"GetMarketTrades getContractInfo failled\"},{\"type\":\"html\",\"text\":\"symbol not exist\"},{\"type\":\"html\",\"text\":\"invalid parameter\"},{\"type\":\"html\",\"text\":\"Service Unavailable\"},{\"type\":\"html\",\"text\":\"leverage illegal\"},{\"type\":\"html\",\"text\":\"connect: connection refused\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"startTime is later than endTime\"},{\"type\":\"html\",\"text\":\"OpenInterestNotExist\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"},{\"type\":\"html\",\"text\":\"invalid connection\"},{\"type\":\"html\",\"text\":\"stop order cnt hit limit 50\"},{\"type\":\"html\",\"text\":\"network failed\"},{\"type\":\"html\",\"text\":\"trading has been locked\"},{\"type\":\"html\",\"text\":\"position limit\"}]},{\"type\":\"normal\",\"text\":\"101400\",\"children\":[{\"type\":\"html\",\"text\":\"No position to close\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"Insufficient margin\"},{\"type\":\"html\",\"text\":\"Must be lower than the maximum callback rate of 90%\"},{\"type\":\"html\",\"text\":\"Must be greater than the minimum callback rate of 0.1%\"},{\"type\":\"html\",\"text\":\"Invalid Parameter\"}]},{\"type\":\"normal\",\"text\":\"80001\",\"children\":[{\"type\":\"html\",\"text\":\"tickers is nil\"},{\"type\":\"html\",\"text\":\"Request failed\"},{\"type\":\"html\",\"text\":\"service has some errors, order not exist\"},{\"type\":\"html\",\"text\":\"orderId and clientOrderId are both empty, orderId and clientOrderId are both empty\"},{\"type\":\"html\",\"text\":\"order state illegal, order not exist\"},{\"type\":\"html\",\"text\":\"the account has positions or pending orders\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"You're temporarily suspended from opening positions. Please try again later\"},{\"type\":\"html\",\"text\":\"order state illegalorder not exist\"},{\"type\":\"html\",\"text\":\"Mismatch type\"},{\"type\":\"html\",\"text\":\"At present, the actual position is occupied by a Limit Order. If you need to close the position, please cancel other orders first\"},{\"type\":\"html\",\"text\":\"trading strategy available is false\"},{\"type\":\"html\",\"text\":\"order not exist\"},{\"type\":\"html\",\"text\":\"The maximum leverage for the trading pair is 5, please reduce the leverage\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"The current system is busy\"}]},{\"type\":\"html\",\"text\":\"

    註意:

    \"},{\"type\":\"html\",\"text\":\"
  • 如果失敗,response body 帶有錯誤描述信息
  • \"},{\"type\":\"html\",\"text\":\"
  • 每個接口都有可能抛出異常
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/basic/01_error_code.json\n// module id = INR5\n// module chunks = 3","\nconst csharp = `\nusing System.Net.WebSockets;\nusing System.Text;\nusing System.IO.Compression;\n\nclass Program\n{\n private static readonly string WebSocketUrl = \"wss://open-api-swap.bingx.com/swap-market?listenKey=425f783f4a17cd65f4a5d7470cfd45a956dba0c29564aa4b70967bee4e4a8984\";\n private static readonly string Channel = \"https://open-api.bingx.com/openApi/user/auth/userDataStream\";\n\n static async Task Main(string[] args)\n {\n using (var client = new ClientWebSocket())\n {\n try\n {\n await client.ConnectAsync(new Uri(WebSocketUrl), CancellationToken.None);\n Console.WriteLine(\"WebSocket connected\");\n\n // Send channel subscription message\n var message = Encoding.UTF8.GetBytes(Channel);\n await client.SendAsync(new ArraySegment(message), WebSocketMessageType.Text, true, CancellationToken.None);\n Console.WriteLine(\"Subscription message sent\");\n\n var buffer = new byte[1024 * 4];\n while (client.State == WebSocketState.Open)\n {\n WebSocketReceiveResult result = await client.ReceiveAsync(new ArraySegment(buffer), CancellationToken.None);\n\n // Handle the received data\n if (result.MessageType == WebSocketMessageType.Close)\n {\n Console.WriteLine(\"Connection closed\");\n break;\n }\n\n string receivedMessage = HandleReceivedMessage(buffer, result.Count);\n Console.WriteLine(\"Received message: \" + receivedMessage);\n\n if (receivedMessage.Contains(\"ping\")) \n {\n var pongMessage = Encoding.UTF8.GetBytes(\"pong\");\n await client.SendAsync(new ArraySegment(pongMessage), WebSocketMessageType.Text, true, CancellationToken.None);\n Console.WriteLine(\"Sent pong\");\n }\n }\n }\n catch (Exception ex)\n {\n Console.WriteLine($\"WebSocket Exception: {ex.Message}\");\n }\n }\n }\n\n private static string HandleReceivedMessage(byte[] buffer, int length)\n {\n // Assuming the message might be compressed\n byte[] data = new byte[length];\n Array.Copy(buffer, data, length);\n \n try\n {\n // Try to decompress if it's a GZIP compressed message\n string decompressedMessage = DecompressGzip(data);\n return decompressedMessage;\n }\n catch (Exception)\n {\n // If decompression fails, assume it's a plain text message\n return Encoding.UTF8.GetString(data);\n }\n }\n\n private static string DecompressGzip(byte[] compressedData)\n {\n using (var input = new MemoryStream(compressedData))\n using (var gzip = new GZipStream(input, CompressionMode.Decompress))\n using (var reader = new StreamReader(gzip, Encoding.UTF8))\n {\n return reader.ReadToEnd();\n }\n }\n}`\nexport default csharp\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/spot/csharp.js","module.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 USDT-M Perp Futures\"},{\"type\":\"normal\",\"text\":\"support customized field: clientOrderId in both USDT-M Perp Futures and Spot\"},{\"type\":\"normal\",\"text\":\"support batch placing orders in Spot\"},{\"type\":\"normal\",\"text\":\"support kline api in Spot\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-07-29.json\n// module id = IOcs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"持倉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"開倉時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/api/trade/01_get_contract_allPosition.json\n// module id = IW/r\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"倒計時全部撤單\"},{\"type\":\"normal\",\"text\":\"在倒計時結束後,取消當前所有掛單,可一直保持此請求,不斷延期處罰時間\"},{\"type\":\"normal\",\"text\":\"限速:1次/1s\"},{\"type\":\"warning\",\"text\":\"如果當前您的掛單量比較多,會分批次取消掛單,這個過程可能會花費幾秒進行分批次取消,另外,在系統幫您取消所有掛單期間,會拒絕繼續ACTIVATE、CLOSE請求。當系統執行完當次取消所有掛單任務之後,可繼續接受ACTIVATE、CLOSE請求\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelAllAfter\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"type\":\"ACTIVATE\",\"timeOut\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"triggerTime\":1710389137,\"status\":\"ACTIVATED\",\"note\":\"All your spot pending orders will be closed automatically at 2024-03-14 04:05:37 UTC(+0),before that you can cancel the timer, or extend triggerTime time by this request\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"請求類型: ACTIVATE-激活,CLOSE-關閉\"},{\"name\":\"timeOut\",\"type\":\"int\",\"required\":\"是\",\"description\":\"激活倒計時時間(秒),範圍:10s-120s\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"triggerTime\",\"type\":\"int\",\"description\":\"觸發刪除全部掛單時間\"},{\"name\":\"status\",\"type\":\"狀態\",\"description\":\"ACTIVATED(激活成功)/CLOSED(關閉成功)/FAILED(失敗)\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"說明\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/09_cancel_all_after.json\n// module id = IW4y\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"jcbY\",\n\t\"./02_kline_data.json\": \"3EGE\",\n\t\"./03_depth_info.json\": \"fsqo\",\n\t\"./04_24hr_ticker.json\": \"P0Vd\",\n\t\"./05_last_price.json\": \"fqiK\",\n\t\"./06_book_ticker.json\": \"o9Mz\",\n\t\"./07_depth_incr_info.json\": \"soQQ\"\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 = \"Ia6C\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market \\.json$\n// module id = Ia6C\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-tw/swapV2/websocket/introduce/05_cancel_subscribe.json\n// module id = IhWV\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"査詢API交易傭金(非邀請關係)\"},{\"type\":\"normal\",\"text\":\"査詢API交易傭金,非邀請關係用戶的API交易傭金。 特定於經紀商平臺。\"},{\"type\":\"html\",\"text\":\"
  • 1.僅支持査詢2023年12月1日之後的數據;
  • \"},{\"type\":\"html\",\"text\":\"
  • 2.startTime'結束時間,結束時間-startTime'=7。
  • \"},{\"type\":\"html\",\"text\":\"
  • 3、只支持査詢沒有邀請關係但通過相應通路API下單的用戶的傭金。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/reward/third/commissionDataList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\",\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"commissionBizType\":\"81\",\"recWindow\":\"6000\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"list\":[{\"uid\":25053735,\"commissionTime\":1700759104737,\"tradeVolume\":\"10.234\",\"commissionVolume\":\"0.02663866\",\"commissionBizType\":81}],\"total\":3}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"交易用戶(非邀請關係用戶)的UID\"},{\"name\":\"commissionBizType\",\"type\":\"int\",\"required\":\"YES\",\"description\":\"81:永續合約交易API傭金82:現貨交易API傭金\"},{\"name\":\"startTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"開始時間戳(天),僅支持査詢2023年12月1日之後的數據。\"},{\"name\":\"endTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"結束時間戳(天)。 僅支持査詢2023年12月1日之後的數據。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁碼必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"頁數必須大於0,最大值為100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求有效的時間視窗值,組織:毫秒。 如果未填充,預設值為5秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"請求時間戳記,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"交易用戶(非邀請關係用戶)的UID\"},{\"name\":\"commissionTime\",\"type\":\"long\",\"description\":\"傭金時間戳記、日期\"},{\"name\":\"tradeVolume\",\"type\":\"string\",\"description\":\"API訂單金額以美元為組織進行折扣\"},{\"name\":\"commissionVolume\",\"type\":\"string\",\"description\":\"傭金金額(美元)\"},{\"name\":\"commissionBizType\",\"type\":\"int\",\"description\":\"81:永續合約交易API傭金82:現貨交易API傭金\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/05_get_Query_API_transaction_commission.json\n// module id = IoyB\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬號充值記錄\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶查詢子用戶的充值歷史記錄,限母用戶可用\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/subHisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":\"16789999\",\"recvWindow\":\"10000\"},\"response\":{\"code\":0,\"timestamp\":1702436064748,\"data\":{\"total\":0,\"data\":[]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"轉賬幣種名\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"否\",\"description\":\"子賬戶uid,不填時查詢母使用者名下所有子帳戶的充幣記錄。\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"状态(0-進行中 6-已上鏈 1-已完成)\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"開始時間\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"結束時間\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"內轉記錄列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子賬戶uid\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"轉賬金額\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"網絡名稱\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"状态(0-進行中 6-已上鏈 1-已完成)\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"充值地址tag\"},{\"name\":\"txId\",\"type\":\"string\",\"description\":\"事務id\"},{\"name\":\"insertTime\",\"type\":\"long\",\"description\":\"事務掃描時間\"},{\"name\":\"transferType\",\"type\":\"int\",\"description\":\"0充值\"},{\"name\":\"unlockConfirmTimes\",\"type\":\"int\",\"description\":\"充值解鎖需要確認數\"},{\"name\":\"confirmTimes\",\"type\":\"int\",\"description\":\"確認數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/16.get_wallet_querySubDepositRecords.json\n// module id = Iuwz\n// module chunks = 3","var map = {\n\t\"./01_get_contracts.json\": \"Fui1\",\n\t\"./02_get_premiumIndex.json\": \"5uda\",\n\t\"./03_get_openInterest.json\": \"ewcP\",\n\t\"./04_get_kline.json\": \"FuQd\",\n\t\"./05_get_depth.json\": \"GbOE\",\n\t\"./06_get_ticker.json\": \"6xac\"\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 = \"J1Pj\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market \\.json$\n// module id = J1Pj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Delete the API Key of sub-accounts\"},{\"type\":\"normal\",\"text\":\"Delete sub account apikey\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/del\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":14189999,\"apiKey\":\"2W****mA\"},\"response\":{\"code\":0,\"timestamp\":1702021810315}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"\"},{\"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\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/08_delete_sub_account_key.json\n// module id = J2bY\n// module chunks = 3","var map = {\n\t\".\": \"KJg6\",\n\t\"./\": \"KJg6\",\n\t\"./01_get_user_balance\": \"zKw2\",\n\t\"./01_get_user_balance.json\": \"zKw2\",\n\t\"./02_get_user_positions\": \"uAAZ\",\n\t\"./02_get_user_positions.json\": \"uAAZ\",\n\t\"./03_get_user_income\": \"clol\",\n\t\"./03_get_user_income.json\": \"clol\",\n\t\"./18_get_trade_income_export\": \"tvLy\",\n\t\"./18_get_trade_income_export.json\": \"tvLy\",\n\t\"./19_get_trade_user_commissionRate\": \"IIQZ\",\n\t\"./19_get_trade_user_commissionRate.json\": \"IIQZ\",\n\t\"./index\": \"KJg6\",\n\t\"./index.js\": \"KJg6\"\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 = \"J7Xj\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/account ^.*$\n// module id = J7Xj\n// module chunks = 3","import { codeLangConfig, CODE_LANG_KEY } from '../lang'\n\nfunction generateCode(api, codeLang, host, defaultCode) {\n\n const code = codeLangConfig.find(item => item.value === codeLang)\n\n if (!code) {\n return defaultCode || 'No Code'\n }\n const api2 = {}\n let codeStr = require(\"@/utils/code/\" + codeLang + '.js').default\n\n let payload = api.payload\n if (Array.isArray(api.payload)) {\n payload = api.payload[0].payload\n }\n\n if (code.value === CODE_LANG_KEY.js) {\n api2.uri = api.uri\n api2.method = api.method\n api2.payload = payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/AAPPII/g, JSON.stringify(api2, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n return codeStr\n } else if (codeLang == CODE_LANG_KEY.shell) {\n let parameters = \"\"\n for (const key in payload) {\n parameters += key + \"=\" + payload[key] + \"&\"\n }\n if (parameters) {\n parameters = parameters.substring(0, parameters.length - 1)\n }\n codeStr = codeStr.replace(/AAPPII/g, api.uri)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api.method)\n codeStr = codeStr.replace(/PPAARRAAMMEETTEERRSS/g, parameters)\n codeStr = codeStr.replace(/\\^/g, '`')\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.go) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, JSON.stringify(api2, null, 4))\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, JSON.stringify(payload, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.java) {\n // codeStr = require(\"@/utils/code/\" + codeLang + '.js').default\n api2.uri = api.uri\n api2.method = api.method\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n let str = ``\n for (const prop in payload) {\n str += `\n parameters.put(\"${prop}\", \"\");`\n }\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, str)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.python) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, JSON.stringify(payload, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.csharp) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = payload\n api2.protocol = api.protocol\n let payloadStr = JSON.stringify(payload, null, 4)\n payloadStr = payloadStr.replace(/:/g, \"=\")\n payloadStr = payloadStr.replace(/\\\"/g, \"\")\n\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, payloadStr)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.php) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = payload\n api2.protocol = api.protocol\n let payloadStr = JSON.stringify(payload, null, 4)\n payloadStr = payloadStr.replace(/:/g, \"=\")\n payloadStr = payloadStr.replace(/\\\"/g, \"\")\n\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, payloadStr)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else {\n return defaultCode || 'No Code'\n }\n}\n\nexport default generateCode\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/generate.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-24\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"新增TWAP下单接口:/openApi/swap/v1/twap/order\"},{\"type\":\"html\",\"text\":\"新增查询TWAP委托中订单接口:/openApi/swap/v1/twap/openOrders\"},{\"type\":\"html\",\"text\":\"新增查询TWAP历史委托接口:/openApi/swap/v1/twap/historyOrders\"},{\"type\":\"html\",\"text\":\"新增查询TWAP委托详情接口:/openApi/swap/v1/twap/orderDetail\"},{\"type\":\"html\",\"text\":\"新增撤销TWAP委托接口:/openApi/swap/v1/twap/cancelOrder\"},{\"type\":\"html\",\"text\":\"U本位查询历史订单接口:/openApi/swap/v2/trade/allOrders, 出参新增isTwap,mainOrderId字段\"},{\"type\":\"html\",\"text\":\"U本位查询所有订单接口:/openApi/swap/v1/trade/fullOrder, 出参新增isTwap,mainOrderId字段\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-30.json\n// module id = J9sz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"授權子賬戶內部轉轉\"},{\"type\":\"normal\",\"text\":\"主賬戶授權子賬戶內轉權限(僅限主賬戶使用)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUids\":16789999,\"transferable\":\"true\"},\"response\":{\"code\":0,\"timestamp\":1702520269455,\"data\":true}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUids\",\"type\":\"string\",\"required\":\"是\",\"description\":\"用戶uid列表,逗號分隔\"},{\"name\":\"transferable\",\"type\":\"boolean\",\"required\":\"是\",\"description\":\"是否允許, true允許 false禁止\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":\"data\"},{\"name\":\"data\",\"type\":\"boolean\",\"description\":\"授權是否成功\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/10.post_wallet_authorize_innerTransfer.json\n// module id = JAIK\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 orders, market orders, planned entrusted market orders, planned entrusted limit orders, position stop-profit and stop-loss orders, and position closing.)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"

    1. Opening/closing a position: How to use the same api to open a position (long/short) and close a position (long/short)? 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-USD\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\", \\\"type\\\": \\\"MARKET\\\", \\\"quantity\\\": 5}

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

    2. Set take-profit and stop-loss separately: This api can also be used to set take-profit and stop-loss separately, but you need to open a position first;

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

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

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

    3. Set take profit and stop loss when opening and adding positions: use takeProfit or stopLoss field

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

    {\\\"symbol\\\": \\\"BTC-USD\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

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

    STOP/STOP_MARKET Stop loss order:

    \"},{\"type\":\"html\",\"text\":\"
  • The cumulative quantity of placed stop-loss orders cannot be greater than the position quantity
  • \"},{\"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 cumulative quantity of pending stop-profit orders 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/cswap/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"ETH-USD\",\"positionSide\":\"SHORT\",\"price\":\"3777\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"quantity\":\"20\",\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT\\\", \\\"stopPrice\\\": 3666.0,\\\"price\\\": 3776.0,\\\"workingType\\\":\\\"CONTRACT_PRICE\\\"}\",\"stopLoss\":\"{\\\"type\\\": \\\"STOP\\\", \\\"stopPrice\\\": 3999.0,\\\"price\\\": 2888.0,\\\"workingType\\\":\\\"CONTRACT_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orderId\":1802706634360750000,\"symbol\":\"ETH-USD\",\"positionSide\":\"SHORT\",\"side\":\"SELL\",\"type\":\"LIMIT\",\"price\":3777,\"quantity\":20,\"stopPrice\":0,\"workingType\":\"\",\"timeInForce\":\"\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, for example: BTC-USD, please use capital letters\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"LIMIT: Limit order/MARKET: Market order/STOP_MARKET: Market stop loss order/TAKE_PROFIT_MARKET: Market take profit order/STOP: Limit stop loss order/TAKE_PROFIT: Limit stop profit order\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, single position must fill in BOTH, two-way position can only choose LONG or SHORT, if it is empty, the default is LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Commission price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"The order quantity and the number of contracts. It is not supported to place orders with U quantity at the moment.\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT require this parameter\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"stopPrice trigger price price type: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Requested timestamp, unit: milliseconds\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support placing orders and setting stop loss at the same time. But only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support placing orders and setting take profit at the same time. But only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: milliseconds\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT. When type is STOP or STOP_MARKET\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Commission price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"stopPrice trigger price price type: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, for example: BTC-USD, please use capital letters\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Buying and selling direction SELL, BUY\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit order/MARKET: Market order/STOP_MARKET: Market stop loss order/TAKE_PROFIT_MARKET: Market take profit order/STOP: Limit stop loss order/TAKE_PROFIT: Limit stop profit order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, single position must fill in BOTH, two-way position can only choose LONG or SHORT, if it is empty, the default is LONG\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"order id\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Commission price\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT. When type is STOP or STOP_MARKET\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"stopPrice trigger price price type: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/00_post_trade_order.json\n// module id = JG85\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query OCO Historical Order List\"},{\"type\":\"normal\",\"text\":\"Query OCO historical order list\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/historyOrderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"startTime\":1724256000000,\"endTime\":1724342400000,\"pageIndex\":1,\"pageSize\":100,\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724297880000,\"orderId\":\"1826458150027395073\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":64000,\"price\":65000,\"quantity\":0.001,\"orderListId\":\"1826458148019142656\",\"status\":\"FAILED\"},{\"transactionTime\":1724297880000,\"orderId\":\"1826458150027395072\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1826458148019142656\",\"status\":\"CANCELED\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Page number\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Number of items per page\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Start time, timestamp, in milliseconds\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"End time, timestamp, in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request validity window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"Order time\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"User-defined order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit: OCO Limit Order, ocoTps: OCO Stop-Limit Order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Trade type, BUY for buy, SELL for sell\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Order price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO order group ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/104_get_all_history_oco_order.json\n// module id = JLQZ\n// module chunks = 3","var map = {\n\t\".\": \"BJ4d\",\n\t\"./\": \"BJ4d\",\n\t\"./01_limit\": \"+dFG\",\n\t\"./01_limit.json\": \"+dFG\",\n\t\"./02_connect\": \"hDC3\",\n\t\"./02_connect.json\": \"hDC3\",\n\t\"./03_data_compress\": \"YUWz\",\n\t\"./03_data_compress.json\": \"YUWz\",\n\t\"./04_heart_beat\": \"Ze9p\",\n\t\"./04_heart_beat.json\": \"Ze9p\",\n\t\"./05_cancel_subscribe\": \"hlb8\",\n\t\"./05_cancel_subscribe.json\": \"hlb8\",\n\t\"./06_subscribe\": \"g2tG\",\n\t\"./06_subscribe.json\": \"g2tG\",\n\t\"./index\": \"BJ4d\",\n\t\"./index.js\": \"BJ4d\"\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 = \"JLT+\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce ^.*$\n// module id = JLT+\n// module chunks = 3","var map = {\n\t\".\": \"Ow07\",\n\t\"./\": \"Ow07\",\n\t\"./00_post_trade_order\": \"JG85\",\n\t\"./00_post_trade_order.json\": \"JG85\",\n\t\"./01_get_commissionRate\": \"3Csz\",\n\t\"./01_get_commissionRate.json\": \"3Csz\",\n\t\"./01_get_leverage\": \"6Wqe\",\n\t\"./01_get_leverage.json\": \"6Wqe\",\n\t\"./03_post_leverage\": \"HWdZ\",\n\t\"./03_post_leverage.json\": \"HWdZ\",\n\t\"./04_post_allOpenOrders\": \"xM9z\",\n\t\"./04_post_allOpenOrders.json\": \"xM9z\",\n\t\"./05_post_closeAllPositions\": \"A11g\",\n\t\"./05_post_closeAllPositions.json\": \"A11g\",\n\t\"./06_get_positions\": \"Uqg4\",\n\t\"./06_get_positions.json\": \"Uqg4\",\n\t\"./07_get_balance\": \"DyCG\",\n\t\"./07_get_balance.json\": \"DyCG\",\n\t\"./08_get_forceOrders\": \"79Xw\",\n\t\"./08_get_forceOrders.json\": \"79Xw\",\n\t\"./09_get_allFillOrders\": \"KXGF\",\n\t\"./09_get_allFillOrders.json\": \"KXGF\",\n\t\"./10_delete_trade_order\": \"Mwlf\",\n\t\"./10_delete_trade_order.json\": \"Mwlf\",\n\t\"./11_get_all_openOrders\": \"Ui0Y\",\n\t\"./11_get_all_openOrders.json\": \"Ui0Y\",\n\t\"./12_get_trade_order\": \"nj2w\",\n\t\"./12_get_trade_order.json\": \"nj2w\",\n\t\"./14_get_trade_allOrders\": \"BW7b\",\n\t\"./14_get_trade_allOrders.json\": \"BW7b\",\n\t\"./15_get_margin_type\": \"Qb5x\",\n\t\"./15_get_margin_type.json\": \"Qb5x\",\n\t\"./16_post_margin_type\": \"dI3A\",\n\t\"./16_post_margin_type.json\": \"dI3A\",\n\t\"./17_post_trade_positionMargin\": \"2WEb\",\n\t\"./17_post_trade_positionMargin.json\": \"2WEb\",\n\t\"./index\": \"Ow07\",\n\t\"./index.js\": \"Ow07\"\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 = \"JOF7\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade ^.*$\n// module id = JOF7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Close position by position ID\"},{\"type\":\"normal\",\"text\":\"\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/closePosition\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":\"1702731721672\",\"positionId\":\"1769649551460794368\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":0,\"data\":{\"orderId\":1769649628749234200,\"positionId\":\"1769649551460794368\",\"symbol\":\"BTC-USDT\",\"side\":\"Ask\",\"type\":\"Market\",\"positionSide\":\"BOTH\",\"origQty\":\"1.0000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Position ID, will close the position with market price\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Error code, 0 indicates success, non-zero indicates abnormal failure\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Error message prompt\"},{\"name\":\"data\",\"type\":\"Data\",\"required\":\"yes\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Buy/Sell direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"MARKET: Market order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, MUST be BOTH for single position, LONG or SHORT for hedged position, default LONG when empty\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Order quantity, quantity of coins\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/22_post_closePosition.json\n// module id = JRrP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"充值風控記錄\"},{\"type\":\"normal\",\"text\":\"用於查詢用戶以及其子賬戶當前處於風控中的充值記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/riskRecords\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"timestamp\":1706839654997,\"data\":[{\"uid\":\"\",\"coin\":\"\",\"amount\":\"\",\"sourceAddress\":\"\",\"address\":\"\",\"insetTime\":\"\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"string\",\"description\":\"用戶標誌\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"金額\"},{\"name\":\"sourceAddress\",\"type\":\"string\",\"description\":\"來源地址\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"insetTime\",\"type\":\"datetime\",\"description\":\"創建時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/14_get_risk_deposit_records.json\n// module id = JbVL\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/02_connect.json\n// module id = Jf00\n// module chunks = 3","var map = {\n\t\".\": \"FZvV\",\n\t\"./\": \"FZvV\",\n\t\"./01_trade_info\": \"tk7z\",\n\t\"./01_trade_info.json\": \"tk7z\",\n\t\"./02_kline_data\": \"klxE\",\n\t\"./02_kline_data.json\": \"klxE\",\n\t\"./03_depth_info\": \"ADmP\",\n\t\"./03_depth_info.json\": \"ADmP\",\n\t\"./04_24hr_ticker\": \"7Biw\",\n\t\"./04_24hr_ticker.json\": \"7Biw\",\n\t\"./05_last_price\": \"q1yk\",\n\t\"./05_last_price.json\": \"q1yk\",\n\t\"./06_book_ticker\": \"vVRe\",\n\t\"./06_book_ticker.json\": \"vVRe\",\n\t\"./07_depth_incr_info\": \"MY8u\",\n\t\"./07_depth_incr_info.json\": \"MY8u\",\n\t\"./index\": \"FZvV\",\n\t\"./index.js\": \"FZvV\"\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 = \"JfGl\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market ^.*$\n// module id = JfGl\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-06-13\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Coin-M Perpetuals new series Trading API\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-06-13.json\n// module id = Jim+\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-14\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續調整接口:下單接口支持保證止盈止損功能。\"},{\"type\":\"html\",\"text\":\"現貨新增:倒計時全部撤單 功能\"},{\"type\":\"html\",\"text\":\"永續新增:倒計時全部撤單 功能\"},{\"type\":\"html\",\"text\":\"現貨新增:服務器時間接口\"},{\"type\":\"html\",\"text\":\"現貨新增:有效方式,目前支持PostOnly、GTC、IOC,不填寫則默認GTC\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-03-14.json\n// module id = Jip9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"主賬戶內轉記錄\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶查詢自己的內轉記錄,限母用戶可用。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/records\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"30000\",\"timestamp\":\"1702383898131\",\"limit\":\"1000\",\"coin\":\"BTC\",\"startTime\":\"1701519898118\",\"endTime\":\"1702383898118\"},\"response\":{\"code\":0,\"timestamp\":1702383898844,\"data\":{\"data\":[{\"id\":1251111922229444400,\"coin\":\"BTC\",\"receiver\":1128763679,\"amount\":0.0072366,\"status\":6,\"fromUid\":1128763678,\"recordType\":\"out\"}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID。同時入參平臺ID和transferClientId時以平臺id查詢為主\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"開始時間\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"結束時間\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"內轉記錄列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"id\",\"type\":\"long\",\"description\":\"內轉id\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"receiver\",\"type\":\"long\",\"description\":\"收款人uid\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"轉賬金額\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"內轉時間\"},{\"name\":\"status\",\"type\":\"Integer\",\"description\":\"狀態 4-審核中 5-已失敗 6-已完成\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID。同時入參平臺ID和transferClientId時以平臺id查詢為主\"},{\"name\":\"fromUid\",\"type\":\"long\",\"description\":\"付款人帳戶\"},{\"name\":\"recordType\",\"type\":\"string\",\"description\":\"out:轉出記錄,in:轉入記錄\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/account/14.get_wallet_queryInnerTransferRecords.json\n// module id = Jtu9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Reset the API Key of a sub-account\"},{\"type\":\"normal\",\"text\":\"Edit sub account apikey\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":\"16259999\",\"apiKey\":\"CK***g\",\"ipAddresses\":[\"51.**.**.172\",\"51.**.**.135\"],\"note\":\"note\",\"permissions\":[1,2,3,4,6,7]},\"response\":{\"code\":0,\"timestamp\":1699785925994,\"data\":{\"note\":\"note\",\"permissions\":[1,2,3,4,6,7],\"ipAddresses\":[\"51.**.**.172\",\"51.**.**.135\"]}}},\"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\"},{\"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\":\"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/07_post_edit_apikey.json\n// module id = Jwag\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Sub-Account Transfer History (For Master Account Operations Only)\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/asset/transferHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"213342\",\"tranId\":\"1051323896482406240336\",\"type\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"startTime\":\"1719496046943\",\"endTime\":\"1719596046943\",\"pageId\":1,\"pagingSize\":10},\"response\":{\"total\":1,\"rows\":[{\"asset\":\"VST\",\"amount\":\"100000.00000000000000000000\",\"type\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"status\":\"CONFIRMED\",\"tranId\":\"1051323896482406240336\",\"timestamp\":1702252271000,\"fromUid\":2332424,\"toUid\":123244}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"UID to query\"},{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"No\",\"description\":\"Transfer type\"},{\"name\":\"tranId\",\"type\":\"STRING\",\"required\":\"No\",\"description\":\"Transfer ID\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"Start time 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"End time 1658748648396\"},{\"name\":\"pageId\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Current page, default is 1\"},{\"name\":\"pagingSize\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Page size, default is 10, cannot exceed 100\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"No\",\"description\":\"Execution window time, cannot exceed 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"Yes\",\"description\":\"Current timestamp, e.g., 1658748648396\"}]},{\"type\":\"type\",\"key\":\"key1\",\"data\":[{\"name\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"Master account capital to sub-account capital\"},{\"name\":\"MAIN_CAPITAL_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"Master account capital to sub-account contract\"},{\"name\":\"MAIN_CAPITAL_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"Master account capital to sub-account perpetual swap\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"Master account contract to sub-account capital\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"Master account contract to sub-account contract\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"Master account contract to sub-account perpetual swap\"},{\"name\":\"MAIN_SWAP_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"Master account perpetual swap to sub-account capital\"},{\"name\":\"MAIN_SWAP_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"Master account perpetual swap to sub-account contract\"},{\"name\":\"MAIN_SWAP_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"Master account perpetual swap to sub-account perpetual swap\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"Sub-account capital to master account capital\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"Sub-account capital to master account contract\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"Sub-account capital to master account perpetual swap\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"Sub-account contract to master account capital\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"Sub-account contract to master account contract\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"Sub-account contract to master account perpetual swap\"},{\"name\":\"SUB_SWAP_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"Sub-account perpetual swap to master account capital\"},{\"name\":\"SUB_SWAP_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"Sub-account perpetual swap to master account contract\"},{\"name\":\"SUB_SWAP_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"Sub-account perpetual swap to master account perpetual swap\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"total\",\"type\":\"LONG\",\"description\":\"Total count\"},{\"name\":\"rows\",\"type\":\"Array\",\"description\":\"Data array\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"Name of the asset\"},{\"name\":\"amount\",\"type\":\"DECIMAL\",\"description\":\"Amount of the asset\"},{\"name\":\"type\",\"type\":\"ENUM\",\"description\":\"Transfer type\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"CONFIRMED\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"description\":\"Transfer ID\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"description\":\"Transfer timestamp\"},{\"name\":\"fromUid\",\"type\":\"LONG\",\"description\":\"UID of the sender\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"description\":\"UID of the receiver\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/18.query_sub_account_transfer_history.json\n// module id = Jxen\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"凍結 解凍子賬戶\"},{\"type\":\"normal\",\"text\":\"凍結 解凍子賬戶\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"是否凍結賬號\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"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-tw/common/api/subAccount/09_update_sub_account_status.json\n// module id = K/yH\n// module chunks = 3","module.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\":\"warning\",\"text\":\"Account data no longer need to subscribe to channel type,after connect wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"sp\",\"type\":\"\",\"description\":\"trigger 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 or BOTH\"},{\"name\":\"rp\",\"type\":\"\",\"description\":\"The transaction achieves profit and loss: 0.00000000\"},{\"name\":\"z\",\"type\":\"\",\"description\":\"Order Filled Accumulated Quantity: 0.00000000\"},{\"name\":\"sg\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. \"},{\"name\":\"ti\",\"type\":\"\",\"description\":\"Conditional Order ID associated with this order:1771124709866754048\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/account/02_order.json\n// module id = K1eD\n// module chunks = 3","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 https://open-api.bingx.com/openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"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-tw/listenKey/01_create_listenKey.json\n// module id = KCrj\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/swapV2/api/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Main Accoun internal transfer\"},{\"type\":\"html\",\"text\":\"Users can transfer money to each other within the bingx platform. Transfers are only allowed between main accounts and from main accounts to sub-accounts.
    For internal transfers within sub-accounts, please use the dedicated interface: User internal transfer\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"amount\":\"10.0\",\"coin\":\"USDT\",\"userAccount\":\"16779999\",\"userAccountType\":\"1\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702558152381,\"data\":{\"id\":\"12******1\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Name of the transferred currency\"},{\"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 number, email\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"Transfer amount\"},{\"name\":\"callingCode\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Area code for telephone, required when userAccountType=2.\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"Yes\",\"description\":\"Account type, 1 Fund Account; 2 Standard Futures Account; 3 Perpetual Futures Account\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom ID for internal transfer by the client, combination of numbers and letters, length less than 100 characters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request validity time window, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"The platform returns the unique ID of the internal transfer record.\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom ID for internal transfer by the client, combination of numbers and letters, length less than 100 characters\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/account/07_post_capital_innerTransfer_apply.json\n// module id = KPNz\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-05-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:查詢持倉和維持保證金率。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-05-23.json\n// module id = KSJz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel All After\"},{\"type\":\"normal\",\"text\":\"After the countdown ends, cancel all current pending orders. This request can be continuously maintained to constantly extend the penalty time.\"},{\"type\":\"normal\",\"text\":\"Rate limit: 1 time/1s\"},{\"type\":\"warning\",\"text\":\"If you have a large amount of pending orders, they will be canceled in batches, which may take several seconds to cancel in batches. In addition, during the process of canceling all pending orders, the system will reject further ACTIVATE and CLOSE requests. After the system has completed the task of canceling all pending orders, it can continue to accept ACTIVATE and CLOSE requests.\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelAllAfter\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"type\":\"ACTIVATE\",\"timeOut\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"triggerTime\":1710389137,\"status\":\"ACTIVATED\",\"note\":\"All your spot pending orders will be closed automatically at 2024-03-14 04:05:37 UTC(+0),before that you can cancel the timer, or extend triggerTime time by this request\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Request type: ACTIVATE-Activate, CLOSE-Close\"},{\"name\":\"timeOut\",\"type\":\"int\",\"required\":\"Yes\",\"description\":\"Activate countdown time (seconds), range: 10s-120s\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"triggerTime\",\"type\":\"int\",\"description\":\"Trigger time for deleting all pending orders\"},{\"name\":\"status\",\"type\":\"Status\",\"description\":\"ACTIVATED (Activation successful)/CLOSED (Closed successfully)/FAILED (Failed)\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"Explanation\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/09_cancel_all_after.json\n// module id = KWsz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Order Trade Detail\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/allFillOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1796163365782945792\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718423719019,\"data\":[{\"orderId\":\"1796163365782945792\",\"symbol\":\"ETH-USD\",\"type\":\"MARKET\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"tradeId\":\"20789331\",\"volume\":\"376\",\"baseQty\":0,\"tradePrice\":\"3761.12\",\"amount\":\"3760.00000000\",\"realizedPnl\":\"0.00000000\",\"commission\":\"-0.00039988\",\"currency\":\"ETH\",\"buyer\":true,\"maker\":false,\"tradeTime\":1717073692000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Order ID\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Page number, default 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Number per page, default 100, max 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generated timestamp point, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"Trade detail list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type, LIMIT: limit order/MARKET: market order/STOP_MARKET: market stop loss order/TAKE_PROFIT_MARKET: market take profit order/STOP: limit stop loss order/TAKE_PROFIT: limit take profit order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Transaction direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, dual position only can choose LONG or SHORT\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"Trade ID\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Trade quantity, contract count\"},{\"name\":\"tradePrice\",\"type\":\"string\",\"description\":\"Trade price\"},{\"name\":\"amount\",\"type\":\"string\",\"description\":\"Trade amount, to usd\"},{\"name\":\"realizedPnl\",\"type\":\"string\",\"description\":\"Realized PnL\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Commission\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"Asset unit\"},{\"name\":\"buyer\",\"type\":\"bool\",\"description\":\"Is buyer?\"},{\"name\":\"maker\",\"type\":\"bool\",\"description\":\"Is maker?\"},{\"name\":\"tradeTime\",\"type\":\"int64\",\"description\":\"Trade time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/09_get_allFillOrders.json\n// module id = KXGF\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"近期成交記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":10},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"time\":1702719269849,\"isBuyerMaker\":true,\"price\":\"42214.0\",\"qty\":\"0.0248\",\"quoteQty\":\"1046.91\"},{\"time\":1702719269559,\"isBuyerMaker\":false,\"price\":\"42214.1\",\"qty\":\"0.4985\",\"quoteQty\":\"21043.73\"},{\"time\":1702719269274,\"isBuyerMaker\":true,\"price\":\"42213.9\",\"qty\":\"0.0394\",\"quoteQty\":\"1663.23\"},{\"time\":1702719268954,\"isBuyerMaker\":false,\"price\":\"42214.4\",\"qty\":\"0.1116\",\"quoteQty\":\"4711.13\"},{\"time\":1702719268253,\"isBuyerMaker\":true,\"price\":\"42214.5\",\"qty\":\"0.4476\",\"quoteQty\":\"18895.21\"},{\"time\":1702719267963,\"isBuyerMaker\":false,\"price\":\"42215.2\",\"qty\":\"0.0708\",\"quoteQty\":\"2988.84\"},{\"time\":1702719267148,\"isBuyerMaker\":false,\"price\":\"42215.8\",\"qty\":\"0.6055\",\"quoteQty\":\"25561.67\"},{\"time\":1702719265743,\"isBuyerMaker\":false,\"price\":\"42216.1\",\"qty\":\"0.2031\",\"quoteQty\":\"8574.09\"},{\"time\":1702719265463,\"isBuyerMaker\":false,\"price\":\"42216.1\",\"qty\":\"0.0160\",\"quoteQty\":\"675.46\"},{\"time\":1702719265198,\"isBuyerMaker\":true,\"price\":\"42217.2\",\"qty\":\"0.0112\",\"quoteQty\":\"472.83\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"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\":\"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-tw/swapV2/api/market/04_get_quote_ trades.json\n// module id = KY9U\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-01-10\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history response新增字段:sourceAddress/transferType/addressTag\"},{\"type\":\"html\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec response新增字段:sourceAddress\"},{\"type\":\"html\",\"text\":\"永續新增接口:查詢委託訂單狀態接口\"},{\"type\":\"html\",\"text\":\"現貨新增:查詢成交明細接口GET /openApi/spot/v1/trade/myTrades\"},{\"type\":\"html\",\"text\":\"永续新增:查詢歷史交易訂單 GET /openApi/swap/v1/market/historicalTrades\"},{\"type\":\"html\",\"text\":\"永续:查詢資金費率歷史支持symbol非必填,response新增標記價格\"},{\"type\":\"html\",\"text\":\"永续:新增WS DataType-深度信息可選推送間隔\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-01-10.json\n// module id = KYMz\n// module chunks = 3","var map = {\n\t\".\": \"CSFx\",\n\t\"./\": \"CSFx\",\n\t\"./01_get_contract_allPosition\": \"ttu5\",\n\t\"./01_get_contract_allPosition.json\": \"ttu5\",\n\t\"./02_get_contract_allOrders\": \"RhU9\",\n\t\"./02_get_contract_allOrders.json\": \"RhU9\",\n\t\"./03_get_contract_balance\": \"n0S/\",\n\t\"./03_get_contract_balance.json\": \"n0S/\",\n\t\"./index\": \"CSFx\",\n\t\"./index.js\": \"CSFx\"\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 = \"Ke1b\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/standard/api/trade ^.*$\n// module id = Ke1b\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/agent/api/agent/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"創建子賬戶\"},{\"type\":\"normal\",\"text\":\"創建子賬戶\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":10000,\"subAccountString\":\"abc123456\"},\"response\":{\"code\":0,\"timestamp\":1702288510557,\"data\":{\"subUid\":\"16777654\",\"subAccountString\":\"abc123456\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subAccountString\",\"type\":\"string\",\"required\":\"是\",\"description\":\"子帳戶用戶名(以字母開頭,帶有數字,長度超過6位)\"},{\"name\":\"note\",\"type\":\"string\",\"required\":\"否\",\"description\":\"備註\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子賬戶uid\"},{\"name\":\"subAccountString\",\"type\":\"string\",\"description\":\"子賬戶用戶名\"},{\"name\":\"note\",\"type\":\"string\",\"description\":\"子賬戶備註信息\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/01_create_sub_accuont.json\n// module id = Kq29\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to Best Bid and Ask\"},{\"type\":\"normal\",\"text\":\"Subscribe to Best Bid and Ask\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"Data type is @bookTicker, e.g., BTC-USD@bookTicker\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@bookTicker\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair symbol must contain a hyphen \\\"-\\\", e.g., BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@bookTicker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Best bid and ask information\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"Trading pair name\"},{\"name\":\"e\",\"type\":\"bookTicker\",\"description\":\"Event type\"},{\"name\":\"T\",\"type\":1717665274199,\"description\":\"Latest transaction timestamp\"},{\"name\":\"p\",\"type\":\"71093.6\",\"description\":\"Latest transaction price\"},{\"name\":\"u\",\"type\":\"20345288\",\"description\":\"Transaction ID\"},{\"name\":\"E\",\"type\":\"1717665274907\",\"description\":\"Depth (best bid and ask) update time\"},{\"name\":\"b\",\"type\":\"71093.1\",\"description\":\"Best bid price\"},{\"name\":\"B\",\"type\":\"2872\",\"description\":\"Number of contracts at best bid price\"},{\"name\":\"a\",\"type\":\"71096.1\",\"description\":\"Best ask price\"},{\"name\":\"A\",\"type\":\"336\",\"description\":\"Number of contracts at best ask price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/05_bookTicker.json\n// module id = KrjX\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/account/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-22\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續websocket:倉位新增已實現盈虧cr字段\"},{\"type\":\"html\",\"text\":\"現貨行情接口:/openApi/spot/v1/common/symbols新增:offTime、maintainTime字段。\"},{\"type\":\"html\",\"text\":\"永續行情接口:/openApi/swap/v2/quote/contracts新增:brokerState字段\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-08-22.json\n// module id = L5DY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"24hr Ticker Price Change Statistics\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"SFP-USDT\",\"timestamp\":\"1702719836770\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"SFP-USDT\",\"priceChange\":\"0.0295\",\"priceChangePercent\":\"4.15\",\"lastPrice\":\"0.7409\",\"lastQty\":\"10\",\"highPrice\":\"0.7506\",\"lowPrice\":\"0.6903\",\"volume\":\"4308212\",\"quoteVolume\":\"3085449.53\",\"openPrice\":\"0.7114\",\"openTime\":1702719833853,\"closeTime\":1702719798603,\"askPrice\":\"0.7414\",\"askQty\":\"99\",\"bidPrice\":\"0.7413\",\"bidQty\":\"84\"}}},\"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\":\"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\":\"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\"},{\"name\":\"bidPrice\",\"type\":\"float64\",\"description\":\"bid price\"},{\"name\":\"bidQty\",\"type\":\"float64\",\"description\":\"bid quantity\"},{\"name\":\"askPrice\",\"type\":\"float64\",\"description\":\"ask price\"},{\"name\":\"askQty\",\"type\":\"float64\",\"description\":\"ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/09_get_quote_ ticker.json\n// module id = LWb5\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"設置倉位模式\"},{\"type\":\"normal\",\"text\":\"設置倉位模式\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\",\"marginType\":\"ISOLATED\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"是\",\"description\":\"保證金模式, 例如: ISOLATED,CROSSED\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/16_post_margin_type.json\n// module id = LawJ\n// module chunks = 3","var map = {\n\t\"./01_get_user_balance.json\": \"W4Cx\",\n\t\"./02_get_user_positions.json\": \"mp7j\",\n\t\"./03_get_user_income.json\": \"h0vl\",\n\t\"./18_get_trade_income_export.json\": \"/Pe4\",\n\t\"./19_get_trade_user_commissionRate.json\": \"v5LS\"\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 = \"LbRj\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account \\.json$\n// module id = LbRj\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/zh-tw/spot/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/1_introduce.json\n// module id = Le/y\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-09-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Coin-M: Get K-line Data interface, add a note stating that only data from the last 30 days can be queried.\"},{\"type\":\"html\",\"text\":\"new: agent api\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-09-11.json\n// module id = Lezn\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/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"delete Listen Key\"},{\"type\":\"normal\",\"text\":\"delete User data flow.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"DELETE https://open-api.bingx.com/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\":\"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\":\"https://open-api.bingx.com/openApi/user/auth/userDataStream\",\"protocol\":\"https\",\"method\":\"DELETE\",\"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/03_delete_listenKey.json\n// module id = LvyQ\n// module chunks = 3","\nconst python = `\nimport time\nimport requests\nimport hmac\nimport json\nfrom hashlib import sha256\n\nAPIURL = \"PPRROOTTOOCCOOLL://HHOOSSTT\"\nAPIKEY = \"\"\nSECRETKEY = \"\"\nTIMESTAMP=str(int(time.time() * 1000))\ndef demo():\n path = 'AAPPII'\n method = \"MMEETTHHOODD\"\n paramsMap = PPAAYYLLOOAADD\n paramsMap[\"timestamp\"]=TIMESTAMP\n paramsStr = praseParam(paramsMap)\n return send_request(method, path, paramsStr, paramsMap)\n\ndef get_sign(api_secret, payload):\n signature = hmac.new(api_secret.encode(\"utf-8\"), payload.encode(\"utf-8\"), digestmod=sha256).hexdigest()\n return signature\ndef send_request(method, path, urlPa, payload):\n sign=get_sign(SECRETKEY, urlPa)\n print(\"urlPa:\",urlPa)\n print(\"sign:\",sign)\n payload['signature']=sign\n url = \"%s%s\" % (APIURL, path)\n print(url)\n headers = {\n 'X-BX-APIKEY': APIKEY,\n 'Content-Type': \"application/json\",\n }\n print(payload)\n response = requests.request(method, url, headers=headers, data=json.dumps(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 paramsStr = paramsStr.replace(\" \", \"\")\n paramsStr = paramsStr.replace(\"'\", '\"')\n return paramsStr\n\n\nif __name__ == '__main__':\n print( demo())`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeJson/python.js","var map = {\n\t\"./03_get_deposit_hisrec.json\": \"dXH3\",\n\t\"./04_get_withdraw_history.json\": \"kh23\",\n\t\"./05_post_wallets_coins.json\": \"zgmp\",\n\t\"./06_post_wallets_withdraw.json\": \"YSKw\",\n\t\"./13.get_wallet_queryDepositAddress.json\": \"rgh9\",\n\t\"./14_get_risk_deposit_records.json\": \"CxZu\"\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 = \"M2/h\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet \\.json$\n// module id = M2/h\n// module chunks = 3","var map = {\n\t\".\": \"oZzG\",\n\t\"./\": \"oZzG\",\n\t\"./01_get_Query_Invited_Users\": \"zsZ4\",\n\t\"./01_get_Query_Invited_Users.json\": \"zsZ4\",\n\t\"./02_get_Daily_Commission_Query\": \"Gwkw\",\n\t\"./02_get_Daily_Commission_Query.json\": \"Gwkw\",\n\t\"./03_get_Query_agent_user_nformation\": \"P9RC\",\n\t\"./03_get_Query_agent_user_nformation.json\": \"P9RC\",\n\t\"./04_get_Query_the_deposit_details\": \"7XUQ\",\n\t\"./04_get_Query_the_deposit_details.json\": \"7XUQ\",\n\t\"./05_get_Query_API_transaction_commission\": \"IoyB\",\n\t\"./05_get_Query_API_transaction_commission.json\": \"IoyB\",\n\t\"./06_get_Query_partner_information\": \"8au9\",\n\t\"./06_get_Query_partner_information.json\": \"8au9\",\n\t\"./index\": \"oZzG\",\n\t\"./index.js\": \"oZzG\"\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 = \"M3Xy\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent ^.*$\n// module id = M3Xy\n// module chunks = 3","var map = {\n\t\".\": \"qM4I\",\n\t\"./\": \"qM4I\",\n\t\"./01_server_url\": \"FVkd\",\n\t\"./01_server_url.json\": \"FVkd\",\n\t\"./03_error_code\": \"uv3h\",\n\t\"./03_error_code.json\": \"uv3h\",\n\t\"./04_rate_limits\": \"XvOK\",\n\t\"./04_rate_limits.json\": \"XvOK\",\n\t\"./04_server_url\": \"w7yn\",\n\t\"./04_server_url.json\": \"w7yn\",\n\t\"./index\": \"qM4I\",\n\t\"./index.js\": \"qM4I\"\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 = \"M4z4\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic ^.*$\n// module id = M4z4\n// module chunks = 3","module.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\":\"warning\",\"text\":\"Each time a connection is successfully established, a full data push will occur once, followed by another full push every 5 seconds.\"},{\"type\":\"warning\",\"text\":\"Account data no longer need to subscribe to channel type,after connect wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/account/04_setting.json\n// module id = M7Po\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Old Trade Lookup\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/market/his/v1/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720325973,\"data\":[{\"tid\":\"170891918044290305561\",\"t\":1708919180442,\"ms\":2,\"s\":\"BTC-USDT\",\"p\":51496.35,\"v\":0.00063},{\"tid\":\"170891917959890305560\",\"t\":1708919179598,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51495.89,\"v\":0.00188},{\"tid\":\"170891917942490305559\",\"t\":1708919179424,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51496.159,\"v\":0.00075},{\"tid\":\"170891917907790305558\",\"t\":1708919179077,\"ms\":2,\"s\":\"BTC-USDT\",\"p\":51496.13,\"v\":0.01044},{\"tid\":\"170891917896690305557\",\"t\":1708919178966,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51496,\"v\":0.00129}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Default 100, maximum 500\"},{\"name\":\"fromId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"The last recorded tid\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"long\",\"description\":\"Trade id\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Price\"},{\"name\":\"qty\",\"type\":\"float64\",\"description\":\"Quantity\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"Time\"},{\"name\":\"buyerMaker\",\"type\":\"boolean\",\"description\":\"Buyer maker\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/10_get_ market_histroy_traders.json\n// module id = MGWO\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query an OCO Order List\"},{\"type\":\"normal\",\"text\":\"Query the OCO order list\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/orderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"clientOrderId\":\"12345610027\",\"orderListId\":\"1827968196914479104\",\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460545\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\"},{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460544\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderListId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"OCO order group ID. Either `orderListId` or `clientOrderId` must be filled in.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"User-defined OCO order group ID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"Order time\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"User-defined order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit: OCO limit order, ocoTps: OCO stop-limit order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Order type, BUY for buy, SELL for sell\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Order price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO order group ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/102_get_one_oco_order.json\n// module id = MN46\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query the API Key of a sub-account\"},{\"type\":\"normal\",\"text\":\"Query apikey information\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/apiKey/query\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":16789999},\"response\":{\"code\":0,\"timestamp\":1702351994615,\"data\":{\"apiInfos\":[{\"apiKey\":\"zF*******zQ\",\"note\":\"note****\",\"permissions\":[1,2,3,4,7],\"ipAddresses\":[\"\"],\"status\":0,\"createTime\":1702289687211,\"updateTime\":1702289687000}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"User uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"no\",\"description\":\"\"},{\"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\":\"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\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/06_get_api_key_info.json\n// module id = MQqI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"增量全量深度信息\"},{\"type\":\"normal\",\"text\":\"每500ms推送變動的1000檔的增量深度信息。\"},{\"type\":\"normal\",\"text\":\"客戶端如何在本地維護一個增量深度\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"1、訂閱成功後會返回action字段值為all的全量深度,同時會返回一個lastUpdateId用於處理後續增量深度的連續性,Websocket接收到全量深度後需要在記憶體中進行快取以上全量深度;\"},{\"type\":\"normal\",\"text\":\"2、後續深度的變動會返回增量深度,其中action字段為update,且第N個增量深度的lastUpdateId的取值是N-1個深度的lastUpdateId+1。\"},{\"type\":\"normal\",\"text\":\"3、同時極少情況下如果lastUpdateId不連續,可以選擇重連或者建議快取最近3個增量深度,然後嘗試從快取中讀取連續的lastUpdateId進行拼接,(因為可能由於多線程或者網路路由的問題,數據未保證強順序性。)\"},{\"type\":\"normal\",\"text\":\"4、然後遍歷收到的增量深度並逐一和當前深度進行比較,建議盡可能考慮線程安全的設計和編碼方式(後續可能加快推送頻率),數據結構可以考慮類似有序的Map結構例如TreeMap:\"},{\"type\":\"normal\",\"text\":\"(1)如果價格檔位在當前深度中不存在,則說明應該新增該檔位;(增)\"},{\"type\":\"normal\",\"text\":\"(2)如果價格對應的數量為0,說明應該從現有的深度中刪除該價格檔位;(刪)\"},{\"type\":\"normal\",\"text\":\"(3)如果價格對應的數量和當前不相等,則替換為增量返回的數量;(改)\"},{\"type\":\"normal\",\"text\":\"(4)遍歷完後獲得最新深度,更新深度快取,記得同時更新lastUpdateId。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @incrDepth,比如BTC-USDT@incrDepth\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},\"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@incrDepth\"},{\"name\":\"action\",\"type\":\"\",\"description\":\"深度類型:all-全量, update-增量\"},{\"name\":\"lastUpdateId\",\"type\":\"\",\"description\":\"變動id,該值會連續地遞增的long型整數,用於描述返回的增量深度之間的前後連續關係\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"變動的賣單深度(價格:數量)\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"變動的買單深度(價格:數量)\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/07_depth_incr_info.json\n// module id = MY8u\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"下單\"},{\"type\":\"desc\",\"text\":\"可用於在現貨下單\",\"desc\":[{\"type\":\"normal\",\"text\":\"註意\",\"children\":[{\"type\":\"normal\",\"text\":\"限價單必須傳price參數。\"},{\"type\":\"normal\",\"text\":\"限價單必須傳quantity或quoteOrderQty其中一個,當两個參數同時傳遞時,服務端優先使用參數quantity。\"},{\"type\":\"normal\",\"text\":\"市價買單必須傳quoteOrderQty參數。\"},{\"type\":\"normal\",\"text\":\"市價賣單必須傳quantity參數。\"}]},{\"type\":\"warning\",\"text\":\"如果需要計算最大最小下單幣對數量可使用公式:U (最小/最大下單金額) / (限價單輸入Limit price or 市價單Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"查詢價格可參考:GET /openApi/spot/v1/ticker/24hr\"},{\"type\":\"html\",\"text\":\"最小最大下單金額可參考:GET /openApi/spot/v1/common/symbols\"}]},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/spot/trading-rules/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/spot/v1/common/symbols\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]},{\"type\":\"html\",\"text\":\"

    訂單類型

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

    MARKET:市價
    LIMIT:限價
    TAKE_ STOP_ LIMIT:限價止盈止損單
    TAKE_ STOP_ MARKET:市價止盈止損單
    TRIGGER_ LIMIT:限價計畫委託
    TRIGGER_ MARKET:市價計畫委託

    \"},{\"type\":\"normal\",\"text\":\"如果現貨帶單交易員並且打開了帶單功能\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"下單頻率只能1/s,超過會被限頻\"},{\"type\":\"html\",\"text\":\"買入可以通過本接口買入:POST /openApi/spot/v1/trade/order\"},{\"type\":\"html\",\"text\":\"賣出需要另外一個特殊的接口賣出:最小最大下單金額可參考:POST /openApi/copyTrading/v1/spot/trader/sellOrder\"}]}]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"title\":\"MARKET\",\"desc\":\"以市場價格下訂單\",\"payload\":{\"type\":\"MARKET\",\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_STOP_MARKET\",\"desc\":\"市價止盈止損單\",\"payload\":{\"type\":\"TAKE_STOP_MARKET\",\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_STOP_LIMIT\",\"desc\":\"限價止盈止損單\",\"payload\":{\"type\":\"TAKE_STOP_LIMIT\",\"price\":60000,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUYE\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_LIMIT\",\"desc\":\"計劃委託單限價單\",\"payload\":{\"type\":\"TRIGGER_LIMIT\",\"price\":60000,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_MARKET\",\"desc\":\"計劃委託市價單\",\"payload\":{\"type\":\"TRIGGER_MARKET\",\"stopPrice\":60000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quoteOrderQty\":0.002,\"positionSide\":\"LONG\",\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}}],\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"NEMS-USDT\",\"orderId\":1735963671248581000,\"transactTime\":1702720966528,\"price\":\"0.1557\",\"origQty\":\"115\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"SELL\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":100202,\"msg\":\"Insufficient assets, please verify the assets status\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" traders prohibit openApi from placing orders\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100414,\"msg\":\"Your account is under risk control or without KYC, it's not allowed to place spot order via api,currently,please contact customer service\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\" check limit entrust value fail, entrust volume too low, userID: ***, minVolume:69.93, entrustVolume: 54.02\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\" check param fail:entrust volume and value is 0.0\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100414,\"msg\":\" risk control check fail, code(1), reason()\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100490,\"msg\":\" spot symbol is offline\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100500,\"msg\":\"order open error:The current system is busy, please try again later, and the previous cancel order request result:false, order not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100440,\"msg\":\" check price diverge fail, entrustPrice to high, userID: ***,entrustPrice:0.4950, indexPrice:0.0910,tradePrice: 0.0910, maxEntrustPriceDiverge:0.4550, minEntrustPriceDiverge:0.0182,minDivergeRatio:0.2000000000,maxDivergeRatio:5.0000000000\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\"price can't be lte 0 in limit order\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\"The symbol you request is not available to place order currently, please verify symbol's status by api:/openApi/spot/v1/common/symbols\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" CheckUserAndSymbol: contract not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" cancel fail, order not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\"the order you want to cancel is FILLED or CANCELLED already, or is not a valid order id ,please verify\",\"debugMsg\":\"\"}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"觸發價格,用於TAKE_ STOP_ LIMIT, TAKE_ STOP_ MARKET,TRIGGER_ LIMIT,TRIGGER_ MARKET類型的訂單。\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量, 例如: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單金額, 例如: 100USDT,如果quantity 和 quoteOrderQty 同時輸入,優先使用quantity,quoteOrderQty會被丟棄\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格, 例如: 10000USDT\"},{\"name\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"只能字母、數字和_,用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的newClientOrderId\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC,不填寫則默認GTC\"},{\"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\":\"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/01_post_trade_aorder.json\n// module id = MZay\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢賬戶uid\"},{\"type\":\"normal\",\"text\":\"查詢賬戶uid\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/uid\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"timestamp\":1702558965648,\"data\":{\"uid\":16844999}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"用戶uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/02_post_fetch_uid.json\n// module id = MZqr\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USDT Websocket Service: 'Order update push' add 'ro' field('reduceOnly' field).\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-11.json\n// module id = McI3\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-07-29\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"USDT本位永續合約V2下單接口支持限價止盈TAKE_PROFIT/限價止損STOP訂單類型\"},{\"type\":\"normal\",\"text\":\"USDT本位永續合約V2/現貨下單與查詢相關接口支持自定義clientOrderId\"},{\"type\":\"normal\",\"text\":\"現貨支持批量下單\"},{\"type\":\"normal\",\"text\":\"提供現貨Kline接口\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-07-29.json\n// module id = MfXY\n// module chunks = 3","var map = {\n\t\".\": \"S9BK\",\n\t\"./\": \"S9BK\",\n\t\"./01_create_sub_accuont\": \"+6hF\",\n\t\"./01_create_sub_accuont.json\": \"+6hF\",\n\t\"./02_get_account_apiPermission\": \"vPcu\",\n\t\"./02_get_account_apiPermission.json\": \"vPcu\",\n\t\"./02_post_fetch_uid\": \"xx9R\",\n\t\"./02_post_fetch_uid.json\": \"xx9R\",\n\t\"./03_post_fetch_sub_account_list\": \"uuPR\",\n\t\"./03_post_fetch_sub_account_list.json\": \"uuPR\",\n\t\"./04_get_sub_account_spot_balance\": \"PVSb\",\n\t\"./04_get_sub_account_spot_balance.json\": \"PVSb\",\n\t\"./05_create_sub_accuont_key\": \"eSSt\",\n\t\"./05_create_sub_accuont_key.json\": \"eSSt\",\n\t\"./06_get_api_key_info\": \"MQqI\",\n\t\"./06_get_api_key_info.json\": \"MQqI\",\n\t\"./07_post_edit_apikey\": \"Jwag\",\n\t\"./07_post_edit_apikey.json\": \"Jwag\",\n\t\"./08_delete_sub_account_key\": \"J2bY\",\n\t\"./08_delete_sub_account_key.json\": \"J2bY\",\n\t\"./09_update_sub_account_status\": \"nHln\",\n\t\"./09_update_sub_account_status.json\": \"nHln\",\n\t\"./10.post_wallet_authorize_innerTransfer\": \"HQ8m\",\n\t\"./10.post_wallet_authorize_innerTransfer.json\": \"HQ8m\",\n\t\"./11.post_wallet_subInnerTransfer\": \"+W0b\",\n\t\"./11.post_wallet_subInnerTransfer.json\": \"+W0b\",\n\t\"./11_post_capital_innerTransfer_apply\": \"4v69\",\n\t\"./11_post_capital_innerTransfer_apply.json\": \"4v69\",\n\t\"./12.post_wallet_createSubDepositAddress\": \"33ms\",\n\t\"./12.post_wallet_createSubDepositAddress.json\": \"33ms\",\n\t\"./15.get_wallet_querySubDepositAddress\": \"zfQA\",\n\t\"./15.get_wallet_querySubDepositAddress.json\": \"zfQA\",\n\t\"./16.get_wallet_querySubDepositRecords\": \"cjvr\",\n\t\"./16.get_wallet_querySubDepositRecords.json\": \"cjvr\",\n\t\"./17.get_wallet_querySubInnerTransferRecords\": \"FRId\",\n\t\"./17.get_wallet_querySubInnerTransferRecords.json\": \"FRId\",\n\t\"./18.query_sub_account_transfer_history\": \"Jxen\",\n\t\"./18.query_sub_account_transfer_history.json\": \"Jxen\",\n\t\"./19.sub_account_transfer_support_coin\": \"A6qi\",\n\t\"./19.sub_account_transfer_support_coin.json\": \"A6qi\",\n\t\"./20.sub_account_transfer\": \"6Epj\",\n\t\"./20.sub_account_transfer.json\": \"6Epj\",\n\t\"./22_sub_account_allAccountBalance\": \"aaNH\",\n\t\"./22_sub_account_allAccountBalance.json\": \"aaNH\",\n\t\"./index\": \"S9BK\",\n\t\"./index.js\": \"S9BK\"\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 = \"MvUe\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount ^.*$\n// module id = MvUe\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\":\"warning\",\"text\":\"The cancellation api is limited to one second and can only cancel the same orderId or clientOrderID. Please do not resubmit\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/cancelOrder\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderId\":\"1736011869418901234\",\"symbol\":\"BTC-USD\",\"timestamp\":\"1702732515704\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1736011869418901200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"3\",\"price\":\"4.5081\",\"executedQty\":\"0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702732457867,\"updateTime\":1702732457888,\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}}}},\"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-USD\"},{\"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-USD\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"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/cswap/api/trade/10_delete_trade_order.json\n// module id = Mwlf\n// module chunks = 3","var map = {\n\t\".\": \"V/PH\",\n\t\"./\": \"V/PH\",\n\t\"./01_error_code\": \"Py8D\",\n\t\"./01_error_code.json\": \"Py8D\",\n\t\"./02_timestamp\": \"Ui1f\",\n\t\"./02_timestamp.json\": \"Ui1f\",\n\t\"./03_digital_rule\": \"OGaA\",\n\t\"./03_digital_rule.json\": \"OGaA\",\n\t\"./04_rate_limits\": \"dz5L\",\n\t\"./04_rate_limits.json\": \"dz5L\",\n\t\"./05_system_time\": \"TbUJ\",\n\t\"./05_system_time.json\": \"TbUJ\",\n\t\"./index\": \"V/PH\",\n\t\"./index.js\": \"V/PH\",\n\t\"./index_share_to_v1\": \"qxfP\",\n\t\"./index_share_to_v1.js\": \"qxfP\"\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 = \"Mz5m\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic ^.*$\n// module id = Mz5m\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整開倉槓桿\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\",\"side\":\"LONG\",\"leverage\":\"4\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718354677397,\"data\":{\"symbol\":\"BTC-USD\",\"longLeverage\":4,\"shortLeverage\":8,\"maxLongLeverage\":150,\"maxShortLeverage\":150,\"availableLongVol\":\"15000000\",\"availableShortVol\":\"15000000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"雙向持倉模式下,多倉或者空倉的槓桿,LONG表示多倉,SHORT表示空倉\"},{\"name\":\"leverage\",\"type\":\"string\",\"required\":\"是\",\"description\":\"槓桿倍數\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"多倉槓桿倍數\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"空倉槓桿倍數\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"最大多倉槓桿倍數\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"最大空倉槓桿倍數\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"可開多數量\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"可開空數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/03_post_leverage.json\n// module id = N7P3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query agent user information\"},{\"type\":\"normal\",\"text\":\"The agent KOL can use this api to query whether the corresponding UID is an invited user under his or her name.\"},{\"type\":\"html\",\"text\":\"
  • The signature verification user must be a parent user and have an agent role; 2. It supports querying whether the UID is a user directly or indirectly invited by the signature verification user.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"uid\":2489544,\"existInviter\":\"true\",\"inviteResult\":true,\"registerDateTime\":1656208955000,\"directInvitation\":false,\"superiorsUid\":2293934,\"deposit\":true,\"kycResult\":\"false\",\"trade\":true,\"userLevel\":2,\"commissionRatio\":20,\"currentBenefit\":0,\"benefitRatio\":0,\"benefitExpiration\":0}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"YES\",\"description\":\"Invited User UID\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"Invited User UID\"},{\"name\":\"existInviter\",\"type\":\"string\",\"description\":\"true :There is an inviter ,false:There is no inviter\"},{\"name\":\"inviteResult\",\"type\":\"boolean\",\"description\":\"true: invitation relationship,false: non-invitation relationship\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true: Direct invitation, false: Indirect invitation\"},{\"name\":\"inviterSid\",\"type\":\"long\",\"description\":\"superiors Uid\"},{\"name\":\"registerTime\",\"type\":\"long\",\"description\":\"Registration timestamp, unit: milliseconds\"},{\"name\":\"deposit\",\"type\":\"boolean\",\"description\":\"true :Deposited, false :Not deposited\"},{\"name\":\"kycResult\",\"type\":\"string\",\"description\":\"true : KYC,false:no KYC\"},{\"name\":\"balanceVolume\",\"type\":\"string\",\"description\":\"net assets(USDT)\"},{\"name\":\"trade\",\"type\":\"boolean\",\"description\":\"true: Traded, false: Not traded, excluding trades made with trial funds or additional funds\"},{\"name\":\"userLevel\",\"type\":\"int\",\"description\":\"Customer level\"},{\"name\":\"commissionRatio\",\"type\":\"int\",\"description\":\"Commission percentage, unit: %\"},{\"name\":\"currentBenefit \",\"type\":\"int\",\"description\":\"Current welfare method: 0 - No welfare, 1 - Fee cashback, 2 - Perpetual fee discount\"},{\"name\":\"benefitRatio\",\"type\":\"int\",\"description\":\"Transaction fee reduction percentage, unit: %\"},{\"name\":\"benefitExpiration\",\"type\":\"long\",\"description\":\"Welfare expiration timestamp, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/03_get_Query_agent_user_nformation.json\n// module id = N9hH\n// module chunks = 3","var map = {\n\t\"./01_trade_info.json\": \"dF/+\",\n\t\"./02_last_price.json\": \"GtO6\",\n\t\"./03_mark_price.json\": \"BwZb\",\n\t\"./04_depth.json\": \"fcau\",\n\t\"./05_bookTicker.json\": \"KrjX\",\n\t\"./06_kline.json\": \"sLxw\",\n\t\"./07_24hr_ticker.json\": \"ywsQ\"\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 = \"NCXQ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market \\.json$\n// module id = NCXQ\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-02-04\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:查詢最新價格\"},{\"type\":\"html\",\"text\":\"永續新增接口:撤銷掛單後再下單\"},{\"type\":\"html\",\"text\":\"永續新增接口:批量撤销订单再下单\"},{\"type\":\"html\",\"text\":\"永續:新增WS DataType-最優掛單\"},{\"type\":\"html\",\"text\":\"現貨:新增接口,撤銷掛單後再下單\"},{\"type\":\"html\",\"text\":\"现货:新增HTTP接口,查詢聚合深度\"},{\"type\":\"html\",\"text\":\"现货:新增HTTP接口,最新成交價\"},{\"type\":\"html\",\"text\":\"现货:新增HTTP接口,最優掛單\"},{\"type\":\"html\",\"text\":\"现货:新增WS ticker-訂閱24小時價格變動\"},{\"type\":\"html\",\"text\":\"现货:新增WS lastPrice-訂閱最新成交價\"},{\"type\":\"html\",\"text\":\"现货:新增WS bookTicker-訂閱最優掛單\"},{\"type\":\"html\",\"text\":\"現貨:新增HTTP 歷史成交查詢\"},{\"type\":\"html\",\"text\":\"現貨:新增HTTP 歷史K線查詢\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-02-04.json\n// module id = NFKy\n// module chunks = 3","import Vue from 'vue'\nimport Vuex from 'vuex'\n\nimport { getLang, setLang } from '../utils/lang'\n\nVue.use(Vuex)\n\nconst store = new Vuex.Store({\n state: {\n lang: getLang(),\n },\n mutations: {\n changeLang (state, lang) {\n state.lang = lang\n setLang(lang)\n }\n },\n getters: {\n currentLang: state => state.lang\n }\n})\n\nexport default store\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/index.js","import { getRootConfigByLang } from '@/config/index'\nimport { getModules, updateAppConfigByLang } from '@/utils'\nimport store from '../store'\n\nconst Layout = () => import('@/components/Layout')\nconst Content = () => import('@/components/Content')\nconst NotFound = () => import('@/components/NotFound')\n\nconst lang = store.getters.currentLang\nconst modules = getModules('en-US')\nconst rootConfig = getRootConfigByLang(lang)\n\nupdateAppConfigByLang(lang)\n\nconst routes = [{\n path: '/',\n redirect: '/en-us/swapV2/changelog',\n}]\n\nmodules.forEach(module => {\n const config = rootConfig[module.name]\n const route = {\n path: module.path,\n component: Layout,\n redirect: `${module.path}/changelog`,\n meta: {\n module: module.name,\n }\n }\n \n const children = []\n if(Array.isArray(config)) {\n config.forEach(item => {\n const root = item.path\n if(Array.isArray(item.children)) {\n item.children.forEach(child => {\n children.push({\n path: `${root}/${child.path}`,\n component: Content,\n meta: {\n module: module.name,\n title: child.name,\n }\n })\n })\n } else {\n children.push({\n path: root,\n component: Content,\n meta: {\n module: module.name,\n title: item.name,\n }\n })\n }\n })\n route.children = children\n routes.push(route)\n }\n})\n\nroutes.push({\n path: '*',\n component: NotFound,\n})\n\nexport default routes\n\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","\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\":\"\",\"font-size\":\"0.9px\",\"text-color\":\"#999999\",\"active-text-color\":\"#292929\",\"default-active\":_vm.defaultActive}},[_vm._l((_vm.menus),function(item){return (_vm.langLabel == 'English')?_c('el-menu-item',{key:item.name,staticStyle:{\"font-size\":\"xx-small\"},attrs:{\"index\":item.path}},[_vm._v(\"\\n \"+_vm._s(item.label)+\"\\n \")]):_c('el-menu-item',{key:item.name + 1,attrs:{\"index\":item.path}},[_vm._v(\"\\n \"+_vm._s(item.label)+\"\\n \")])}),_vm._v(\" \"),(_vm.langLabel == '简体中文')?_c('el-menu-item',{key:\"LINK\",attrs:{\"index\":\"LINK\"}},[_c('a',{staticStyle:{\"color\":\"rgb(153, 153, 153)\",\"border-bottom-color\":\"transparent\",\"margin-right\":\"3%\"},attrs:{\"target\":\"_blank\",\"href\":\"https://bingx.com/zh-tw/act/template/5302/?randomId=1871286856\"}},[_vm._v(\"经纪商招募\")])]):(_vm.langLabel == '繁体中文')?_c('el-menu-item',{key:\"LINK3\",attrs:{\"index\":\"LINK\"}},[_c('a',{staticStyle:{\"color\":\"rgb(153, 153, 153)\",\"border-bottom-color\":\"transparent\",\"margin-right\":\"3%\"},attrs:{\"target\":\"_blank\",\"href\":\"https://bingx.com/zh-tw/act/template/5302/?randomId=1871286856\"}},[_vm._v(\"經紀商招募\")])]):_c('el-menu-item',{key:\"LINK2\",staticStyle:{\"font-size\":\"xx-small\"},attrs:{\"index\":\"LINK\"}},[_c('a',{staticStyle:{\"color\":\"rgb(153, 153, 153)\",\"border-bottom-color\":\"transparent\",\"margin-right\":\"3%\"},attrs:{\"target\":\"_blank\",\"href\":\"https://bingx.com/en-us/act/template/5302?randomId=1871286856\"}},[_vm._v(\"Broker\")])])],2),_vm._v(\" \"),_c('el-select',{staticClass:\"nav-header-search\",staticStyle:{\"width\":\"190px\"},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-4b94bbb6\",\"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-4b94bbb6\\\",\\\"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-4b94bbb6\\\",\\\"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-4b94bbb6\"\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-c857ed70\",\"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-c857ed70\\\",\\\"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\":\"TWAP Order Details\"},{\"type\":\"normal\",\"text\":\"Used to query the details of TWAP entrusted orders \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/orderDetail\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"mainOrderId\":\"12312435134\",\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"mainOrderId\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"TWAP commission order number\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request 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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP order number\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction; SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG or SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"Price limit type, constant: price interval, percentage: slippage\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order.\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"After the strategic order is split, the time interval for order placing is between 5-120s\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order. \"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions. \"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: New/Running: In operation/Canceling: Cancellation of order/Filled: Fully filled/PartiallyFilled: Partially filled/Pending: Not triggered/PartiallyFilledAndResidueFailed: Partially filled (remaining order failed), algorithm order status/PartiallyFilledAndResidueCancelled: Partially filled ( Remaining cancellation), algorithm order status/Cancelled: Canceled (no partial deal exists)/Failed: Order failed (no partial deal exists)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Volume\"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"Execution time, in seconds. The order will be canceled after the execution time expires. \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"Maximum execution time execution time, unit: seconds.\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"Order creation time, unit: milliseconds\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Order update time, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/31_get_twap_order_detail.json\n// module id = NQ2q\n// module chunks = 3","var map = {\n\t\".\": \"eRNY\",\n\t\"./\": \"eRNY\",\n\t\"./01_connect\": \"lyY+\",\n\t\"./01_connect.json\": \"lyY+\",\n\t\"./02_data_compress\": \"Q5Jp\",\n\t\"./02_data_compress.json\": \"Q5Jp\",\n\t\"./03_heart_beat\": \"IMXD\",\n\t\"./03_heart_beat.json\": \"IMXD\",\n\t\"./04_subscribe\": \"rEmz\",\n\t\"./04_subscribe.json\": \"rEmz\",\n\t\"./05_cancel_subscribe\": \"SBKE\",\n\t\"./05_cancel_subscribe.json\": \"SBKE\",\n\t\"./index\": \"eRNY\",\n\t\"./index.js\": \"eRNY\"\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 = \"NXdJ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/introduce ^.*$\n// module id = NXdJ\n// module chunks = 3","var map = {\n\t\".\": \"/iLc\",\n\t\"./\": \"/iLc\",\n\t\"./01_trade_info\": \"dF/+\",\n\t\"./01_trade_info.json\": \"dF/+\",\n\t\"./02_last_price\": \"GtO6\",\n\t\"./02_last_price.json\": \"GtO6\",\n\t\"./03_mark_price\": \"BwZb\",\n\t\"./03_mark_price.json\": \"BwZb\",\n\t\"./04_depth\": \"fcau\",\n\t\"./04_depth.json\": \"fcau\",\n\t\"./05_bookTicker\": \"KrjX\",\n\t\"./05_bookTicker.json\": \"KrjX\",\n\t\"./06_kline\": \"sLxw\",\n\t\"./06_kline.json\": \"sLxw\",\n\t\"./07_24hr_ticker\": \"ywsQ\",\n\t\"./07_24hr_ticker.json\": \"ywsQ\",\n\t\"./index\": \"/iLc\",\n\t\"./index.js\": \"/iLc\"\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 = \"NZzt\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market ^.*$\n// module id = NZzt\n// module chunks = 3","module.exports = {\"module\":\"agent\",\"path\":\"/zh-tw/agent/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/1_introduce.json\n// module id = Nfjq\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-02-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續調整接口:調整槓桿接口的side字段支持BOTH值。\"},{\"type\":\"html\",\"text\":\"永續調整接口:下單&批量下單接口中的stopLoss和takeProfit字段不支持傳入quantity字段。\"},{\"type\":\"html\",\"text\":\"永續調整接口:下單&批量下單接口新增closePosition字段。\"},{\"type\":\"html\",\"text\":\"永續調整接口:下單&批量下單接口新增activationPrice字段。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-02-23.json\n// module id = NuRj\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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BCH-USDT\",\"timestamp\":\"1702733572940\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"longLeverage\":50,\"shortLeverage\":50,\"maxLongLeverage\":75,\"maxShortLeverage\":75}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"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 position Leverage\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"Max Long position leverage\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"Max Short position Leverage\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"Available Long Volume\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"Available Short Volume\"},{\"name\":\"availableLongVal\",\"type\":\"string\",\"description\":\"Available Long Value\"},{\"name\":\"availableShortVal\",\"type\":\"string\",\"description\":\"Available Short Value\"},{\"name\":\"maxPositionLongVal\",\"type\":\"string\",\"description\":\"Maximum Position Long Value\"},{\"name\":\"maxPositionShortVal\",\"type\":\"string\",\"description\":\"Maximum Position Short Value\"}]}]}]\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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOpenOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"ATOM-USDT\",\"timestamp\":\"1702732849363\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[{\"symbol\":\"ATOM-USDT\",\"orderId\":1736013373487123500,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"3.00\",\"price\":\"13.044\",\"executedQty\":\"0.00\",\"avgPrice\":\"0.000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0\",\"commission\":\"0\",\"status\":\"CANCELLED\",\"time\":1702732816465,\"updateTime\":1702732816488,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"},{\"symbol\":\"ATOM-USDT\",\"orderId\":1736013373487123500,\"side\":\"BUY\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"3.00\",\"price\":\"11.292\",\"executedQty\":\"0.00\",\"avgPrice\":\"0.000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0\",\"commission\":\"0\",\"status\":\"CANCELLED\",\"time\":1702732816820,\"updateTime\":1702732816839,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}],\"failed\":[{\"orderId\":111111,\"clientOrderId\":\"111111\",\"errorCode\":80012,\"errorMessage\":\"cancel order failed\"},{\"orderId\":222222,\"clientOrderId\":\"222222\",\"errorCode\":80012,\"errorMessage\":\"cancel order failed\"}]}}},\"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\":\"LIST\",\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"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\":\"FailOrder\",\"key\":\"failedOrder\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單號\"},{\"name\":\"errorCode\",\"type\":\"int64\",\"description\":\"錯誤碼,0表示成功,不為0表示異常失敗\"},{\"name\":\"errorMessage\",\"type\":\"string\",\"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\".\": \"+hJF\",\n\t\"./\": \"+hJF\",\n\t\"./00_limit\": \"u2Il\",\n\t\"./00_limit.json\": \"u2Il\",\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","var map = {\n\t\"./01_error_code.json\": \"Py8D\",\n\t\"./02_timestamp.json\": \"Ui1f\",\n\t\"./03_digital_rule.json\": \"OGaA\",\n\t\"./04_rate_limits.json\": \"dz5L\",\n\t\"./05_system_time.json\": \"TbUJ\"\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 = \"OGFu\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic \\.json$\n// module id = OGFu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Numbers\"},{\"type\":\"normal\",\"text\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"Decimal numbers are returned as \\\"Strings\\\" in order to preserve full precision. It is recommended that the numbers are converted to \\\"Strings\\\" to avoid truncation and precision loss.\"},{\"type\":\"html\",\"text\":\"Integer numbers (such as trade ID and sequences) are unquoted.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic/03_digital_rule.json\n// module id = OGaA\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-07-22\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"USDT-M Perp Futures: The ClientOrderId field in the request will be automatically converted to lowercase by the system.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-07-22.json\n// module id = OOYK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新成交價\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/ticker/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702718923479\",\"symbol\":\"TIA-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"TIA-USDT\",\"price\":\"14.0658\",\"time\":1702718922941}}},\"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\":\"price\",\"type\":\"string\",\"description\":\"價格\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"撮合引擎時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/22_get_quote_price_v2.json\n// module id = OSRE\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-07-30\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"USDT-M Perp Futures: All market data APIs and websocket DataTypes support USDC contracts.\"},{\"type\":\"html\",\"text\":\"NEW : /openApi/swap/v3/user/balance return both USDT and USDC\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-07-30.json\n// module id = OTiI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Symbol Order Book Ticker\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Used to query the best order book
  • \"},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\"},\"response\":{\"code\":0,\"timestamp\":1707147866795,\"data\":[{\"eventType\":\"bookTicker\",\"time\":1707147866623,\"symbol\":\"BTC-USDT\",\"bidPrice\":\"42738.64\",\"bidVolume\":\"5.19530\",\"askPrice\":\"42739.50\",\"askVolume\":\"5.72867\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, such as: BTC_USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"eventType\",\"type\":\"string\",\"description\":\"Data type\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, such as: BTC_USDT\"},{\"name\":\"bidPrice\",\"type\":\"string\",\"description\":\"Best bid price\"},{\"name\":\"bidVolume\",\"type\":\"string\",\"description\":\"Best bid volume\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"Best ask price\"},{\"name\":\"askVolume\",\"type\":\"string\",\"description\":\"Best ask volume\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/08_get_market_book_ticker.json\n// module id = OdvA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢交易手续费率\"},{\"type\":\"normal\",\"text\":\"用於查詢使用者目前現貨交易的手續費率。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702720966321\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"takerCommissionRate\":0.000325,\"makerCommissionRate\":0.0001}}},\"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\":\"takerCommissionRate\",\"type\":\"float64\",\"description\":\"吃單手續費\"},{\"name\":\"makerCommissionRate\",\"type\":\"float64\",\"description\":\"掛單手續費\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/08_get_commissionRate.json\n// module id = OkZ/\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Position and Maintenance Margin Ratio\"},{\"type\":\"normal\",\"text\":\"Get information on Position and Maintenance Margin Ratio\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/maintMarginRatio\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[{\"tier\":\"Tier 1\",\"symbol\":\"BTC-USDT\",\"minPositionVal\":\"0\",\"maxPositionVal\":\"150000\",\"maintMarginRatio\":\"0.003800\",\"maintAmount\":\"0.000000\"},{\"tier\":\"Tier 2\",\"symbol\":\"BTC-USDT\",\"minPositionVal\":\"150000\",\"maxPositionVal\":\"900000\",\"maintMarginRatio\":\"0.004000\",\"maintAmount\":\"30.000000\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"tier\",\"type\":\"string\",\"description\":\"Layer\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"minPositionVal\",\"type\":\"string\",\"description\":\"Minimum position value\"},{\"name\":\"maxPositionVal\",\"type\":\"string\",\"description\":\"Maximum position value\"},{\"name\":\"maintMarginRatio\",\"type\":\"string\",\"description\":\"Maintenance margin ratio\"},{\"name\":\"maintAmount\",\"type\":\"string\",\"description\":\"Maintenance margin quick calculation amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/24_get_maint_margin_ratio.json\n// module id = OkoV\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-16\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USD-M WebSocket Service: Added 'Incremental Depth Push' feature\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-16.json\n// module id = OleB\n// module chunks = 3","var map = {\n\t\"./01_create_sub_accuont.json\": \"Kq29\",\n\t\"./02_get_account_apiPermission.json\": \"m+RL\",\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\t\"./11_post_capital_innerTransfer_apply.json\": \"S1Mk\",\n\t\"./12.post_wallet_createSubDepositAddress.json\": \"mmsx\",\n\t\"./15.get_wallet_querySubDepositAddress.json\": \"mcEH\",\n\t\"./16.get_wallet_querySubDepositRecords.json\": \"Iuwz\",\n\t\"./17.get_wallet_querySubInnerTransferRecords.json\": \"yVRY\",\n\t\"./18_query_sub_account_transfer_history.json\": \"yGUm\",\n\t\"./19_sub_account_transfer_support_coin.json\": \"lU9A\",\n\t\"./20_sub_account_transfer.json\": \"7zc5\",\n\t\"./22_sub_account_allAccountBalance.json\": \"mYOy\"\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","\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/cswap/api/trade/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"持倉與維持保證金率\"},{\"type\":\"normal\",\"text\":\"獲取持倉與維持保證金率信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/maintMarginRatio\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[{\"tier\":\"Tier 1\",\"symbol\":\"BTC-USDT\",\"minPositionVal\":\"0\",\"maxPositionVal\":\"150000\",\"maintMarginRatio\":\"0.003800\",\"maintAmount\":\"0.000000\"},{\"tier\":\"Tier 2\",\"symbol\":\"BTC-USDT\",\"minPositionVal\":\"150000\",\"maxPositionVal\":\"900000\",\"maintMarginRatio\":\"0.004000\",\"maintAmount\":\"30.000000\"}]}},\"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\":\"tier\",\"type\":\"string\",\"description\":\"層級\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"minPositionVal\",\"type\":\"string\",\"description\":\"最小持倉價值\"},{\"name\":\"maxPositionVal\",\"type\":\"string\",\"description\":\"最大持倉價值\"},{\"name\":\"maintMarginRatio\",\"type\":\"string\",\"description\":\"維持保證金率\"},{\"name\":\"maintAmount\",\"type\":\"string\",\"description\":\"維持保證金率速算額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/24_get_maint_margin_ratio.json\n// module id = OyBm\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to 24-hour Price Change\"},{\"type\":\"normal\",\"text\":\"Pushes data of 24-hour price change every 1000ms\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @ticker, for example, BTC_USDT@ticker\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"Price change\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"Price change percentage\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"Open price\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"High price\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Low price\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"Latest traded price\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"Volume\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"Quote volume\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"Statistics open time\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"Statistics close time\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Best bid price\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Best bid quantity\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Best ask price\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Best ask quantity\"},{\"name\":\"n\",\"type\":\"\",\"description\":\"Number of trades\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/04_24hr_ticker.json\n// module id = P0Vd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"査詢代理用戶資訊\"},{\"type\":\"normal\",\"text\":\"代理KOL可以使用此介面査詢相應的UID是否是他或她名下的受邀用戶。\"},{\"type\":\"html\",\"text\":\"
  • 簽名驗證用戶必須是父用戶並具有代理角色; 2.支持査詢UID是簽名驗證用戶直接邀請的用戶還是間接邀請的用戶。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"uid\":2489544,\"existInviter\":\"true\",\"inviteResult\":true,\"registerDateTime\":1656208955000,\"directInvitation\":false,\"superiorsUid\":2293934,\"deposit\":true,\"kycResult\":\"false\",\"trade\":true,\"userLevel\":2,\"commissionRatio\":20,\"currentBenefit\":0,\"benefitRatio\":0,\"benefitExpiration\":0}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"YES\",\"description\":\"受邀用戶UID\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"受邀用戶UID\"},{\"name\":\"existInviter\",\"type\":\"string\",\"description\":\"true:有邀請者,false:沒有邀請者\"},{\"name\":\"inviteResult\",\"type\":\"boolean\",\"description\":\"true:邀請關係,false:非邀請關係\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true:直接邀請,false:間接邀請\"},{\"name\":\"inviterSid\",\"type\":\"long\",\"description\":\"上級Uid\"},{\"name\":\"registerTime\",\"type\":\"long\",\"description\":\"註冊時間戳,組織:毫秒\"},{\"name\":\"deposit\",\"type\":\"boolean\",\"description\":\"true:已存入,false:未存入\"},{\"name\":\"kycResult\",\"type\":\"string\",\"description\":\"true:KYC,false:無KYC\"},{\"name\":\"balanceVolume\",\"type\":\"string\",\"description\":\"淨資產(美元)\"},{\"name\":\"trade\",\"type\":\"boolean\",\"description\":\"true:已交易,false:未交易,不包括使用試用基金或額外基金進行的交易\"},{\"name\":\"userLevel\",\"type\":\"int\",\"description\":\"客戶級別\"},{\"name\":\"commissionRatio\",\"type\":\"int\",\"description\":\"傭金百分比,單位:%\"},{\"name\":\"currentBenefit \",\"type\":\"int\",\"description\":\"當前福利管道:0-無福利,1-費用返現,2-永久費用折扣\"},{\"name\":\"benefitRatio\",\"type\":\"int\",\"description\":\"交易手續費减免百分比,單位:%\"},{\"name\":\"benefitExpiration\",\"type\":\"long\",\"description\":\"福利到期時間戳記,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/03_get_Query_agent_user_nformation.json\n// module id = P9RC\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\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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-USD\"},{\"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/cswap/websocket/account/03_setting.json\n// module id = PEUY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"增量深度信息\"},{\"type\":\"normal\",\"text\":\"推送頻率說明\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"BTC-USDT和ETH-USDT的推送頻率是200ms,其他幣對的是800ms。\"},{\"type\":\"normal\",\"text\":\"客戶端如何在本地維護一個增量深度\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"1、訂閱成功後會返回action字段值為all的全量深度,同時會返回一個lastUpdateId用於處理後續增量深度的連續性,Websocket接收到全量深度後需要在記憶體中進行快取以上全量深度。\"},{\"type\":\"normal\",\"text\":\"2、後續深度的變動會返回增量深度,其中action字段為update,且第N個增量深度的lastUpdateId的取值是N-1個深度的lastUpdateId+1。\"},{\"type\":\"normal\",\"text\":\"3、同時極少情況下如果lastUpdateId不連續,可以選擇重連或者建議獲取最近3個增量深度快照,然後嘗試從快照中讀取連續的lastUpdateId進行拼接,(因為可能由於多線程或者網路路由的問題,數據未保證強順序性。)\"},{\"type\":\"normal\",\"text\":\"4、然後遍歷收到的增量深度並逐一和當前深度進行比較,建議盡可能考慮線程安全的設計和編碼方式(後續可能加快推送頻率)。\"},{\"type\":\"normal\",\"text\":\"(1)如果價格檔位在當前深度中不存在,則說明應該新增該檔位;(增)\"},{\"type\":\"normal\",\"text\":\"(2)如果價格對應的數量為0,說明應該從現有的深度中刪除該價格檔位;(刪)\"},{\"type\":\"normal\",\"text\":\"(3)如果價格對應的數量和當前不相等,則替換為增量返回的數量;(改)\"},{\"type\":\"normal\",\"text\":\"(4)遍歷完後獲得最新深度,更新深度快照,記得同時更新lastUpdateId。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @incrDepth,比如BTC-USDT@incrDepth\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},\"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@incrDepth\"},{\"name\":\"action\",\"type\":\"\",\"description\":\"深度類型:all-全量, update-增量\"},{\"name\":\"lastUpdateId\",\"type\":\"\",\"description\":\"變動id,該值會連續地遞增的long型整數,用於描述返回的增量深度之間的前後連續關係\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"變動的賣單深度(價格:數量)\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"變動的買單深度(價格:數量)\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/08_depth_incr_info.json\n// module id = PEl6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史成交明細\"},{\"type\":\"normal\",\"text\":\"獲取某交易對的成交歷史明細\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"回訂單列表規則說明\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"排序:ORDER BY filledTime ASC,以filledTime字段升序\"},{\"type\":\"normal\",\"text\":\"最多能返回[從當前日期]到過去7天&最多能返回1000條歷史成交訂單,startTs = [當前日期] - 7days\"},{\"type\":\"normal\",\"text\":\"如果startTs和endTs都填寫,則返回數據範圍:startTs < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"如果只填寫endTs,則返回數據範圍:([當前日期] -7days) < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"如果只填寫startTs不返回數據\"},{\"type\":\"normal\",\"text\":\"如果填寫orderId,只返回該orderId的成交訂單明細\"}]},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/fillHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTs\":\"1702731530000\",\"startTs\":\"1702724330000\",\"symbol\":\"WLD-USDT\",\"lastFillId\":130753,\"pageSize\":50,\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"fill_history_orders\":[{\"filledTm\":\"2023-12-16T20:58:36Z\",\"volume\":\"4.10\",\"price\":\"3.1088\",\"qty\":\"12.74\",\"quoteQty\":\"211.40\",\"commission\":\"-0.0025\",\"commissionAsset\":\"USDT\",\"orderId\":\"1736007768311123456\",\"tradeId\":\"241512\",\"filledTime\":\"2023-12-16T20:58:36.000+0800\",\"symbol\":\"WLD-USDT\",\"role\":\"maker\",\"side\":\"buy\",\"positionSide\":\"short\"}],\"total\":290}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母。如果未提供特定的交易對,則將返回所有交易對的歷史成交記錄\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"如果填寫orderId,只返回該orderId的成交訂單\"},{\"name\":\"lastFillId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"上次查詢最後一條tradeId,不填預設為0\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"頁码必須大於0,如果不填寫則默認為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"每頁大小,必須大於0,最大值為1000,如果不填寫則默認為50\"},{\"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\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,例如:BTC-USDT\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"成交數量\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"成交額\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成交價格\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"commissionAsset\",\"type\":\"string\",\"description\":\"資產單位,一般為USDT\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"成交Id\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"filledTime\",\"type\":\"string\",\"description\":\"匹配成交的時間,格式為2006-01-02T15:04:05.999+0800\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"role\",\"type\":\"string\",\"description\":\"主動賣買,taker:主動買,maker:主動賣\"},{\"name\":\"total\",\"type\":\"int64\",\"description\":\"總數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/25_get_fill_history_detail.json\n// module id = PJcf\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-22\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual WebSocket: Added 'cr' field for realized profit and loss in position data.\"},{\"type\":\"html\",\"text\":\"Spot Market API: Added 'offTime' and 'maintainTime' fields to the /openApi/spot/v1/common/symbols endpoint.\"},{\"type\":\"html\",\"text\":\"Perpetual Market API: Added 'brokerState' field to the /openApi/swap/v2/quote/contracts endpoint.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-08-22.json\n// module id = POz2\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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":\"16477999\"},\"response\":{\"code\":0,\"timestamp\":1701077668349,\"data\":{\"balances\":[{\"asset\":\"ETH\",\"free\":0.0068,\"locked\":0}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Sub account uid\"},{\"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\":\"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\"./2023-08-03\": \"9HpD\",\n\t\"./2023-08-03.json\": \"9HpD\",\n\t\"./2023-08-11\": \"pV/D\",\n\t\"./2023-08-11.json\": \"pV/D\",\n\t\"./2023-08-23\": \"bKtD\",\n\t\"./2023-08-23.json\": \"bKtD\",\n\t\"./2023-09-18\": \"a/u1\",\n\t\"./2023-09-18.json\": \"a/u1\",\n\t\"./2023-10-12\": \"DJaF\",\n\t\"./2023-10-12.json\": \"DJaF\",\n\t\"./2023-11-10\": \"bGx6\",\n\t\"./2023-11-10.json\": \"bGx6\",\n\t\"./2023-11-22\": \"axDH\",\n\t\"./2023-11-22.json\": \"axDH\",\n\t\"./2023-12-08\": \"+29D\",\n\t\"./2023-12-08.json\": \"+29D\",\n\t\"./2023-12-21\": \"CpXJ\",\n\t\"./2023-12-21.json\": \"CpXJ\",\n\t\"./2024-01-10\": \"KYMz\",\n\t\"./2024-01-10.json\": \"KYMz\",\n\t\"./2024-01-23\": \"G8cI\",\n\t\"./2024-01-23.json\": \"G8cI\",\n\t\"./2024-02-04\": \"NFKy\",\n\t\"./2024-02-04.json\": \"NFKy\",\n\t\"./2024-02-23\": \"NuRj\",\n\t\"./2024-02-23.json\": \"NuRj\",\n\t\"./2024-03-04\": \"3c71\",\n\t\"./2024-03-04.json\": \"3c71\",\n\t\"./2024-03-14\": \"Jip9\",\n\t\"./2024-03-14.json\": \"Jip9\",\n\t\"./2024-03-19\": \"j7dp\",\n\t\"./2024-03-19.json\": \"j7dp\",\n\t\"./2024-03-28\": \"ZNZv\",\n\t\"./2024-03-28.json\": \"ZNZv\",\n\t\"./2024-04-15\": \"i/xj\",\n\t\"./2024-04-15.json\": \"i/xj\",\n\t\"./2024-04-25\": \"87c6\",\n\t\"./2024-04-25.json\": \"87c6\",\n\t\"./2024-05-23\": \"KSJz\",\n\t\"./2024-05-23.json\": \"KSJz\",\n\t\"./2024-05-27\": \"5LYy\",\n\t\"./2024-05-27.json\": \"5LYy\",\n\t\"./2024-06-13\": \"vBmL\",\n\t\"./2024-06-13.json\": \"vBmL\",\n\t\"./2024-06-28\": \"khDw\",\n\t\"./2024-06-28.json\": \"khDw\",\n\t\"./2024-07-11\": \"vGFC\",\n\t\"./2024-07-11.json\": \"vGFC\",\n\t\"./2024-07-22\": \"/chU\",\n\t\"./2024-07-22.json\": \"/chU\",\n\t\"./2024-07-30\": \"l7kI\",\n\t\"./2024-07-30.json\": \"l7kI\",\n\t\"./2024-08-08\": \"F1dE\",\n\t\"./2024-08-08.json\": \"F1dE\",\n\t\"./2024-08-17\": \"aG00\",\n\t\"./2024-08-17.json\": \"aG00\",\n\t\"./2024-08-22\": \"L5DY\",\n\t\"./2024-08-22.json\": \"L5DY\",\n\t\"./2024-08-27\": \"TvGs\",\n\t\"./2024-08-27.json\": \"TvGs\",\n\t\"./2024-09-11\": \"EMrv\",\n\t\"./2024-09-11.json\": \"EMrv\",\n\t\"./2024-09-23\": \"nNlN\",\n\t\"./2024-09-23.json\": \"nNlN\",\n\t\"./2024-10-09\": \"zB9+\",\n\t\"./2024-10-09.json\": \"zB9+\",\n\t\"./2024-10-11\": \"ss+C\",\n\t\"./2024-10-11.json\": \"ss+C\",\n\t\"./2024-10-16\": \"UDLl\",\n\t\"./2024-10-16.json\": \"UDLl\",\n\t\"./2024-10-23\": \"nC6P\",\n\t\"./2024-10-23.json\": \"nC6P\",\n\t\"./2024-10-24\": \"Aw6+\",\n\t\"./2024-10-24.json\": \"Aw6+\",\n\t\"./2024-10-30\": \"J9sz\",\n\t\"./2024-10-30.json\": \"J9sz\",\n\t\"./2024-11-07\": \"R99K\",\n\t\"./2024-11-07.json\": \"R99K\",\n\t\"./2024-11-15\": \"aAh/\",\n\t\"./2024-11-15.json\": \"aAh/\",\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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢24小時價格變動\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/ticker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"priceChange\":\"-561.1\",\"priceChangePercent\":\"-0.8200%\",\"lastPrice\":\"67713.5\",\"lastQty\":\"38\",\"highPrice\":\"68346.9\",\"lowPrice\":\"67521.3\",\"volume\":\"3825668.00\",\"quoteVolume\":\"5084.51\",\"openPrice\":\"68279.2\",\"closeTime\":\"1717053813892\",\"bidPrice\":\"67712.7\",\"bidQty\":\"2100\",\"askPrice\":\"80000.0\",\"askQty\":\"1600\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應時間,毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,例如:BTC-USD\"},{\"name\":\"priceChange\",\"type\":\"string\",\"description\":\"24小時價格變動\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"價格變動百分比\"},{\"name\":\"lastPrice\",\"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小時成交額,單位是USD\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"24小時內第一個價格\"},{\"name\":\"closeTime\",\"type\":\"string\",\"description\":\"24小時內,最後一筆交易的發生時間\"},{\"name\":\"bidPrice\",\"type\":\"string\",\"description\":\"買一價格\"},{\"name\":\"bidQty\",\"type\":\"string\",\"description\":\"買一數量,合約張數\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"賣一價格\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"賣一數量,合約張數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market/06_get_ticker.json\n// module id = PaEN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Recent Trades List\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":10},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"time\":1702719269849,\"isBuyerMaker\":true,\"price\":\"42214.0\",\"qty\":\"0.0248\",\"quoteQty\":\"1046.91\"},{\"time\":1702719269559,\"isBuyerMaker\":false,\"price\":\"42214.1\",\"qty\":\"0.4985\",\"quoteQty\":\"21043.73\"},{\"time\":1702719269274,\"isBuyerMaker\":true,\"price\":\"42213.9\",\"qty\":\"0.0394\",\"quoteQty\":\"1663.23\"},{\"time\":1702719268954,\"isBuyerMaker\":false,\"price\":\"42214.4\",\"qty\":\"0.1116\",\"quoteQty\":\"4711.13\"},{\"time\":1702719268253,\"isBuyerMaker\":true,\"price\":\"42214.5\",\"qty\":\"0.4476\",\"quoteQty\":\"18895.21\"},{\"time\":1702719267963,\"isBuyerMaker\":false,\"price\":\"42215.2\",\"qty\":\"0.0708\",\"quoteQty\":\"2988.84\"},{\"time\":1702719267148,\"isBuyerMaker\":false,\"price\":\"42215.8\",\"qty\":\"0.6055\",\"quoteQty\":\"25561.67\"},{\"time\":1702719265743,\"isBuyerMaker\":false,\"price\":\"42216.1\",\"qty\":\"0.2031\",\"quoteQty\":\"8574.09\"},{\"time\":1702719265463,\"isBuyerMaker\":false,\"price\":\"42216.1\",\"qty\":\"0.0160\",\"quoteQty\":\"675.46\"},{\"time\":1702719265198,\"isBuyerMaker\":true,\"price\":\"42217.2\",\"qty\":\"0.0112\",\"quoteQty\":\"472.83\"}]}},\"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\"},{\"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\":\"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\":\"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\":\"

    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\":\"
  • 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\":\"
  • 80020 - risk forbidden
  • \"},{\"type\":\"html\",\"text\":\"
  • 100004 - Permission denied as the API key was created without the permission
  • \"},{\"type\":\"html\",\"text\":\"
  • 100419 - IP does not match IP whitelist
  • \"},{\"type\":\"html\",\"text\":\"
  • 101204 - Insufficient margin
  • \"},{\"type\":\"html\",\"text\":\"
  • 80013 - The number of your entrusted orders has reached the system limit. If you need to place an order, please cancel other orders first
  • \"},{\"type\":\"html\",\"text\":\"
  • 80018 - order is already filled
  • \"},{\"type\":\"html\",\"text\":\"
  • 80019 - The order is being processed. Please use the allOrders api to retrieve the order details later
  • \"},{\"type\":\"normal\",\"text\":\"100400\",\"children\":[{\"type\":\"html\",\"text\":\"arguments invalid\"},{\"type\":\"html\",\"text\":\"miss arguments\"}]},{\"type\":\"html\",\"text\":\"
  • 100412 - Null signature
  • \"},{\"type\":\"html\",\"text\":\"
  • 100413 - Incorrect apiKey
  • \"},{\"type\":\"html\",\"text\":\"
  • 100421 - Null timestamp or timestamp mismatch
  • \"},{\"type\":\"html\",\"text\":\"
  • 101209 - The maximum position value for this leverage is ** USDT
  • \"},{\"type\":\"html\",\"text\":\"
  • 101212 - Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again
  • \"},{\"type\":\"html\",\"text\":\"
  • 101215 - The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.
  • \"},{\"type\":\"html\",\"text\":\"
  • 101414 - The maximum leverage for the trading pair is *, please reduce the leverage
  • \"},{\"type\":\"html\",\"text\":\"
  • 101415 - This trading pair is suspended from opening new position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101460 - The order price should be higher than the estimated liquidation price of the long position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101500 - rpc timeout
  • \"},{\"type\":\"html\",\"text\":\"
  • 101514 - You're temporarily suspended from opening positions. Please try again later
  • \"},{\"type\":\"html\",\"text\":\"
  • 109201 - The same order number is only allowed to be submitted once within 1 second.
  • \"},{\"type\":\"normal\",\"text\":\"101211\",\"children\":[{\"type\":\"html\",\"text\":\"Order price should be lower than*\"},{\"type\":\"html\",\"text\":\"Order price should be higher than*\"}]},{\"type\":\"normal\",\"text\":\"80012\",\"children\":[{\"type\":\"html\",\"text\":\"GetMarketTrades getContractInfo failled\"},{\"type\":\"html\",\"text\":\"symbol not exist\"},{\"type\":\"html\",\"text\":\"invalid parameter\"},{\"type\":\"html\",\"text\":\"Service Unavailable\"},{\"type\":\"html\",\"text\":\"leverage illegal\"},{\"type\":\"html\",\"text\":\"connect: connection refused\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"startTime is later than endTime\"},{\"type\":\"html\",\"text\":\"OpenInterestNotExist\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"},{\"type\":\"html\",\"text\":\"invalid connection\"},{\"type\":\"html\",\"text\":\"stop order cnt hit limit 50\"},{\"type\":\"html\",\"text\":\"network failed\"},{\"type\":\"html\",\"text\":\"trading has been locked\"},{\"type\":\"html\",\"text\":\"position limit\"}]},{\"type\":\"normal\",\"text\":\"101400\",\"children\":[{\"type\":\"html\",\"text\":\"No position to close\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"Insufficient margin\"},{\"type\":\"html\",\"text\":\"Must be lower than the maximum callback rate of 90%\"},{\"type\":\"html\",\"text\":\"Must be greater than the minimum callback rate of 0.1%\"},{\"type\":\"html\",\"text\":\"Invalid Parameter\"}]},{\"type\":\"normal\",\"text\":\"80001\",\"children\":[{\"type\":\"html\",\"text\":\"tickers is nil\"},{\"type\":\"html\",\"text\":\"Request failed\"},{\"type\":\"html\",\"text\":\"service has some errors, order not exist\"},{\"type\":\"html\",\"text\":\"orderId and clientOrderID are both empty, orderId and clientOrderID are both empty\"},{\"type\":\"html\",\"text\":\"order state illegal, order not exist\"},{\"type\":\"html\",\"text\":\"the account has positions or pending orders\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"You're temporarily suspended from opening positions. Please try again later\"},{\"type\":\"html\",\"text\":\"order state illegalorder not exist\"},{\"type\":\"html\",\"text\":\"Mismatch type\"},{\"type\":\"html\",\"text\":\"At present, the actual position is occupied by a Limit Order. If you need to close the position, please cancel other orders first\"},{\"type\":\"html\",\"text\":\"trading strategy available is false\"},{\"type\":\"html\",\"text\":\"order not exist\"},{\"type\":\"html\",\"text\":\"The maximum leverage for the trading pair is 5, please reduce the leverage\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"The current system is 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.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic/01_error_code.json\n// module id = Py8D\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","\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","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/cswap/websocket/introduce/02_data_compress.json\n// module id = Q5Jp\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/cswap/api/market/index.js","var map = {\n\t\"./01_server_url.json\": \"FVkd\",\n\t\"./03_error_code.json\": \"uv3h\",\n\t\"./04_rate_limits.json\": \"XvOK\",\n\t\"./04_server_url.json\": \"w7yn\"\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","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\":\"warning\",\"text\":\"*持倉模式設定對所有合約生效。若存在持倉或掛單,則不支援調整倉位模式。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionSide/dual\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"dualSidePosition\":\"true\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"dualSidePosition\":\"true\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"margin not enough\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"position is not isolated\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"true\",\"required\":\"是\",\"description\":\"\\\"true\\\": 雙向持倉模式;\\\"false\\\": 單向持倉模式\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"string\",\"description\":\"\\\"true\\\": 雙向持倉模式;\\\"false\\\": 單向持倉模式\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/18_set_positionSide.json\n// module id = QEfH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整逐倉保證金\"},{\"type\":\"normal\",\"text\":\"針對逐倉模式下的倉位,調整其逐倉保證金資金\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"10000\",\"symbol\":\"BTC-USDT\",\"type\":\"1\",\"amount\":\"3\",\"positionSide\":\"LONG\",\"timestamp\":\"1702718148654\"},\"response\":{\"code\":0,\"msg\":\"\",\"amount\":3,\"type\":1}},\"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\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"倉位ID,如果這個字段有值,先使用這個字段\"},{\"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: 減少逐倉保證金\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"倉位ID\"}]}]}]\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\":\"Query Margin Type\"},{\"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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"WOO-USDT\",\"timestamp\":\"1702733469134\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"marginType\":\"CROSSED\"}}},\"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","module.exports = [{\"type\":\"hash\",\"text\":\"Query Margin Type\"},{\"type\":\"normal\",\"text\":\"Get Margin Type\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[{\"symbol\":\"BTC-USD\",\"marginType\":\"ISOLATED\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USD, please use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request validity window in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"Margin type, e.g., CROSSED, ISOLATED\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/15_get_margin_type.json\n// module id = Qb5x\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Create an OCO Order\"},{\"type\":\"normal\",\"text\":\"Send a new one-cancels-the-other (OCO) order, and initiating one of them immediately cancels the other order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.001,\"listClientOrderId\":\"12345610030\",\"aboveClientOrderId\":\"12345610031\",\"belowClientOrderId\":\"12345610031\",\"orderPrice\":88000,\"limitPrice\":48000,\"triggerPrice\":87000,\"timestamp\":1724655430675},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":0,\"orderId\":\"1827963624962916352\",\"clientOrderId\":\"12345610034\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"12345610033\",\"status\":\"\"},{\"transactionTime\":0,\"orderId\":\"1827963624962916353\",\"clientOrderId\":\"12345610035\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"12345610033\",\"status\":\"\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Order type, BUY for buy, SELL for sell\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"Order quantity, e.g., 0.1 BTC\"},{\"name\":\"limitPrice\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"Limit order price. e.g., 10000 USDT\"},{\"name\":\"orderPrice\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"The limit order price set after a stop-limit order is triggered. e.g., 10000 USDT\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"required\":\"Yes\",\"description\":\"The trigger price of the stop-limit order. e.g., 10000 USDT\"},{\"name\":\"listClientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Custom unique ID for the entire Order List, only supports numeric strings, e.g., \\\"123456\\\"\"},{\"name\":\"aboveClientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Custom unique ID for the limit order, only supports numeric strings, e.g., \\\"123456\\\"\"},{\"name\":\"belowClientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Custom unique ID for the stop-limit order, only supports numeric strings, e.g., \\\"123456\\\"\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Request validity time window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Custom order ID\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit: OCO Limit Order, ocoTps: OCO Stop-Limit Order\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Order price\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"Trigger price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status, NEW for new order, PENDING for pending, PARTIALLY_FILLED for partially filled, FILLED for fully filled, CANCELED for canceled, FAILED for failed\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Order type, BUY for buy, SELL for sell\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/100_post_one_oco_order.json\n// module id = R/1P\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","module.exports = [{\"type\":\"title\",\"text\":\"2023-12-21\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"The spot cancel order api has added the field 'cancelRestrictions' (optional), which cancels orders of specified status.\"},{\"type\":\"html\",\"text\":\"The spot batch cancel order api provides the field 'clientOrderIDs' (optional), which cancels orders in batches according to clientOrderIDs.\"},{\"type\":\"html\",\"text\":\"The spot add cancel open orders interface: /openApi/spot/v1/trade/cancelOpenOrders\"},{\"type\":\"html\",\"text\":\"The spot add commission rate query interface: /openApi/spot/v1/user/commissionRate\"},{\"type\":\"html\",\"text\":\"The spot query historical orders: The request parameters have added the fields 'status' and 'type', which filter corresponding orders based on conditions.\"},{\"type\":\"html\",\"text\":\"The spot currency pair query interface: Added fields 'apiStateBuy', 'apiStateSell', and 'timeOnline'.\"},{\"type\":\"html\",\"text\":\"Perpetual, add fields to position query response: position value, mark price, risk rate, maximum reducible margin, unrealized PNL ratio\"},{\"type\":\"html\",\"text\":\"Perpetual order placement and order query: Add single position holding function\"},{\"type\":\"html\",\"text\":\"Perpetual, modify historical order query request: if symbol is not filled, it will query historical orders of all trading pairs\"},{\"type\":\"html\",\"text\":\"Spot: increase the history data query period from 7 days to 15 days for K-line data\"},{\"type\":\"html\",\"text\":\"Withdraw: add field withdrawOrderId, optional, customer-defined withdrawal ID, composed of numbers and letters, with a length less than 100 characters\"},{\"type\":\"html\",\"text\":\"Withdrawal history: update the field withdrawOrderId: when both platform ID and withdrawOrderId are provided as input parameters, the query will be based on platform ID\"},{\"type\":\"html\",\"text\":\"Internal transfer in master account: add field transferClientId, optional, customer-defined internal transfer ID, composed of numbers and letters, with a length less than 100 characters\"},{\"type\":\"html\",\"text\":\"Query internal transfer records in master account: add field transferClientId, optional, customer-defined internal transfer ID. When both platform ID and transferClientId are provided as input parameters, the query will be based on platform ID\"},{\"type\":\"html\",\"text\":\"Internal transfer in sub-account: add field transferClientId, optional, customer-defined internal transfer ID, composed of numbers and letters, with a length less than 100 characters\"},{\"type\":\"html\",\"text\":\"Query internal transfer records in sub-account: add field transferClientId, optional, customer-defined internal transfer ID. When both platform ID and transferClientId are provided as input parameters, the query will be based on platform ID\"},{\"type\":\"html\",\"text\":\"Query deposit records in sub-account: change the field subUid to optional, when not filled, it will query deposit records of all sub-accounts under the master account\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-12-21.json\n// module id = R2wc\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-11-07\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續幣本位:下單接口TimeInForce字段新增PostOnly類型。\"},{\"type\":\"html\",\"text\":\"永續幣本位:查詢單個接口新增TimeInForce字段。\"},{\"type\":\"html\",\"text\":\"永續幣本位:查詢委託中所有訂單接口新增TimeInForce字段。\"},{\"type\":\"html\",\"text\":\"永續幣本位:查詢強平訂單接口新增TimeInForce字段。\"},{\"type\":\"html\",\"text\":\"永續幣本位:查詢所有歷史訂單接口新增TimeInForce字段。\"},{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:‘訂單推送’增加td和tv字段。\"},{\"type\":\"html\",\"text\":\"永續U本位:‘調整逐倉保證金’接口支持按positionId調整。\"},{\"type\":\"html\",\"text\":\"永續U本位:新增‘領取VST’接口。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-11-07.json\n// module id = R99K\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/listenKey/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Historical order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\"},{\"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\":\"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\"./00_post_trade_order_test.json\": \"CwX9\",\n\t\"./01_post_trade_order.json\": \"vDBD\",\n\t\"./01_post_trade_order_vst.json\": \"6dPc\",\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_check_pending_order.json\": \"26Si\",\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\"./17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./18_set_positionSide.json\": \"QEfH\",\n\t\"./19_get_positionSide.json\": \"jzOs\",\n\t\"./20_cancel_replace_order.json\": \"4bTX\",\n\t\"./21_batch_cancel_replace_order.json\": \"/nLp\",\n\t\"./22_cancel_all_after.json\": \"1pQ9\",\n\t\"./22_post_closePosition.json\": \"/qZT\",\n\t\"./23_get_trade_allOrdersV2.json\": \"iRbd\",\n\t\"./24_get_maint_margin_ratio.json\": \"OyBm\",\n\t\"./25_get_fill_history_detail.json\": \"PJcf\",\n\t\"./26_get_user_position_history.json\": \"sWA2\",\n\t\"./27_get_position_margin_history.json\": \"5iQm\",\n\t\"./27_post_get_vst.json\": \"dtEQ\",\n\t\"./28_post_twap_order.json\": \"50Mv\",\n\t\"./29_get_twap_open_orders.json\": \"0L6n\",\n\t\"./30_get_twap_history_orders.json\": \"srGS\",\n\t\"./31_get_twap_order_detail.json\": \"+xXY\",\n\t\"./32_cancel_twap_order.json\": \"5pjb\",\n\t\"./33_post_asset_mode.json\": \"thBV\",\n\t\"./34_get_asset_mode.json\": \"cRAY\",\n\t\"./35_get_multi_asset_rule.json\": \"EWHP\",\n\t\"./36_get_margin_asset.json\": \"/HCz\"\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 https://open-api.bingx.com/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\":\"https://open-api.bingx.com/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\":\"html\",\"text\":\"用戶在bingx平台內互相轉賬,僅限主賬戶轉主賬戶和主賬戶轉子賬戶,如需子賬號內轉請使用專用接口: 子賬戶內部轉賬\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"amount\":\"10.0\",\"coin\":\"USDT\",\"userAccount\":\"16779999\",\"userAccountType\":\"1\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702558152381,\"data\":{\"id\":\"12******1\"}}},\"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\":\"電話區號,當userAccountType=2時必填。\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"賬戶類型,1 資金賬戶;2 標合賬戶;3 永續賬戶\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID,數字和字母組合,長度小於100字符\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"平台返回內轉記錄唯一id\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID,數字和字母組合,長度小於100字符\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/11_post_capital_innerTransfer_apply.json\n// module id = S1Mk\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\":\"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\\\": \\\"\\\" }\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/introduce/05_cancel_subscribe.json\n// module id = SBKE\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"近期成交記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720325973,\"data\":[{\"id\":76909154,\"price\":42195.21,\"qty\":0.00195,\"time\":1702720325553,\"buyerMaker\":true},{\"id\":76909153,\"price\":42195.31,\"qty\":0.00139,\"time\":1702720325552,\"buyerMaker\":true},{\"id\":76909152,\"price\":42195.48,\"qty\":0.00177,\"time\":1702720325552,\"buyerMaker\":false},{\"id\":76909151,\"price\":42195.15,\"qty\":0.00247,\"time\":1702720324643,\"buyerMaker\":true},{\"id\":76909150,\"price\":42195.25,\"qty\":0.02968,\"time\":1702720324643,\"buyerMaker\":true}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默認100,最多500\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"buyerMaker\",\"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\":\"title\",\"text\":\"2024-10-24\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USD-M WebSocket Service: Added 'VST' service.\"},{\"type\":\"html\",\"text\":\"Added new isolated margin change history interface:/openApi/swap/v1/positionMargin/history\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-24.json\n// module id = SHTI\n// module chunks = 3","var map = {\n\t\"./01_get_currentTrack.json\": \"U2sZ\",\n\t\"./02_post_close_currentTrack.json\": \"TXP6\",\n\t\"./03_post_tpsl_currentTrack.json\": \"qkYN\",\n\t\"./04_spot_trader_sell_order.json\": \"mCp6\"\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 = \"SXU1\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader \\.json$\n// module id = SXU1\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"Q:什麼是UID?\"},{\"type\":\"normal\",\"text\":\"A: UID是用戶ID,是標示每個用戶的唯一ID(包括母用戶和子用戶),UID可以在Web或App界面的個人信息裡查看到,也可以通過接口GET /openApi/account/v1/uid獲得\"},{\"type\":\"title\",\"text\":\"Q:一個用戶可以申請多少個API Key?\"},{\"type\":\"normal\",\"text\":\"A: 每個母用戶可創建20組API Key,每個母用戶還可創建20個子用戶,每個子用戶可創建20組API Key,每個API Key可設置不同權限。\"},{\"type\":\"title\",\"text\":\"Q: 為什麼經常出現斷線、超時的情況?\"},{\"type\":\"normal\",\"text\":\"A: 有可能網絡抖動問題,建議重連\"},{\"type\":\"title\",\"text\":\"Q: 為什麼WebSocket總是斷開連接?\"},{\"type\":\"normal\",\"text\":\"A: 可檢查一下你的代碼是否在收到Ping後返回Pong,如果是賬戶相關websocket訂閱,請再檢查一下是否定期更新listenkey,建議先使用我們的示例代碼\"},{\"type\":\"title\",\"text\":\"Q: 為什麼簽名認證總返回失敗?\"},{\"type\":\"normal\",\"text\":\"A: 請先仔細閱讀我們的簽名說明,或先使用我們的示例代碼進行測試\"},{\"type\":\"title\",\"text\":\"Q: U本位合約API Key和現貨是否同一個?\"},{\"type\":\"normal\",\"text\":\"A: U本位合約API Key和現貨API Key是同一個,兩個是一樣的。由於現貨交易和合約交易權限是分開的,需要配置好對應的權限\"},{\"type\":\"title\",\"text\":\"Q: BingX對API有多少種風控限制?\"},{\"type\":\"normal\",\"text\":\"A: BingX有接口限頻、交易限制、網絡防火牆限制三種風控策略,這些限制可能會隨時變更。\"},{\"type\":\"normal\",\"text\":\"接口限頻\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"每個接口限頻不一樣,請參考具體的接口文檔說明\"}]},{\"type\":\"normal\",\"text\":\"交易限制: 交易行為是根據普通用戶的交易行為進行評估,如果您的交易行為與普通用戶的行為偏離較遠,可能會被禁止交易,禁止時長不定。假設出現以下狀況時您的禁止交易時長會增加:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"1. 總是頻繁占據買一賣一價\"},{\"type\":\"normal\",\"text\":\"2. 頻繁掛單/撤單,且沒有任何成交;\"},{\"type\":\"normal\",\"text\":\"3. 成交率非常低,成交率=交易筆數/(掛單筆數+撤銷筆數);\"},{\"type\":\"normal\",\"text\":\"4. 成交權重非常低,成交權重=交易總額/(掛單總額+撤銷總額);\"},{\"type\":\"normal\",\"text\":\"5. 接口報429後依然頻繁請求\"}]},{\"type\":\"normal\",\"text\":\"網絡防火牆限制\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"目前我們沒有提供關於網絡防火牆限制的明確信息,如果您收到了HTTP403錯誤提示,這說明您違反了一條網絡防火牆的規則,大多數情況下出現這個錯誤提示是因為過多的請求並且會持續禁止五分鐘,但是如果您發送的請求被判定為惡意請求,那麼它也可能導致持續禁止更長的時間甚至永久禁號。\"}]},{\"type\":\"title\",\"text\":\"Q: 遇到API接口錯誤該如何反饋?\"},{\"type\":\"normal\",\"text\":\"請聯繫官方客服並按照如下模板向我們反饋問題,會有技術支持技術解答\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"1. 問題描述\"},{\"type\":\"normal\",\"text\":\"2. 問題發生的用戶Id(UID)和訂單Id(如果和賬戶、訂單有關係)、API KEY \"},{\"type\":\"normal\",\"text\":\"3. 完整的請求參數(如果有)\"},{\"type\":\"normal\",\"text\":\"4. 完整的JSON格式的返回結果\"},{\"type\":\"normal\",\"text\":\"5. 問題出現時間和頻率(如何時開始出現,是否可以重現)\"},{\"type\":\"normal\",\"text\":\"6. 簽名信息\"}]},{\"type\":\"title\",\"text\":\"Q: API支持標準合約交易嗎?\"},{\"type\":\"normal\",\"text\":\"A: 當前不支持\"},{\"type\":\"title\",\"text\":\"Q: API支持股票外匯交易嗎?\"},{\"type\":\"normal\",\"text\":\"A: 當前不支持。\"},{\"type\":\"title\",\"text\":\"Q: 手機端支持API的管理嗎?\"},{\"type\":\"normal\",\"text\":\"A: 功能正在開發中。\"},{\"type\":\"title\",\"text\":\"Q: BingX單IP可以訂閱的頻道數量?\"},{\"type\":\"normal\",\"text\":\"A: 當前沒有限制,但是有訂閱頻率限制,請不要超過10/s\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/q&a/2023-09-12.json\n// module id = Sd/4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易員按帶單訂單號設置止盈止損\"},{\"type\":\"normal\",\"text\":\"此節點用於交易員按帶單訂單號設定市價止盈止損,重複設定將覆蓋之前的設定\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/setTPSL\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"positionId\":\"1253517936071234567\",\"recvWindow\":\"0\",\"stopLossMarkPrice\":\"105.38\",\"timestamp\":\"1702731522946\"},\"response\":{\"code\":0,\"timestamp\":1702731523011,\"data\":{\"positionId\":1253517936071234600,\"stopLossMarkPrice\":105.38}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"帶單訂單號\"},{\"name\":\"takeProfitMarkPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"設定止盈標記價格,止盈止損標記價格必須二選一\"},{\"name\":\"stopLossMarkPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"設定止損標記價格,止盈止損標記價格必須二選一\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求時間戳記,單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求有效時間空窗值,單位:毫秒,不填默認5秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"帶單訂單號\"},{\"name\":\"takeProfitMarkPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"設定止盈標記價格,止盈止損標記價格必須二選一\"},{\"name\":\"stopLossMarkPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"設定止損標記價格,止盈止損標記價格必須二選一\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader/03_post_tpsl_currentTrack.json\n// module id = Sfdp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an Existing Order and Send a New Orde\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order/cancelReplace\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"cancelOrderId\":\"17543893539094511234\",\"cancelReplaceMode\":\"ALLOW_FAILURE\",\"side\":\"BUY\",\"type\":\"LIMIT\",\"price\":40000,\"quantity\":1},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"cancelResult\":{\"code\":100400,\"msg\":\" order not exist\",\"result\":false},\"openResult\":{\"code\":0,\"msg\":\"\",\"result\":true},\"orderOpenResponse\":{\"symbol\":\"BTC-USDT\",\"orderId\":1754389353909452800,\"transactTime\":1707113991607,\"price\":\"40000\",\"stopPrice\":\"0\",\"origQty\":\"1\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"clientOrderID\":\"\"},\"orderCancelResponse\":{\"symbol\":\"\",\"orderId\":0,\"price\":\"0\",\"stopPrice\":\"0\",\"origQty\":\"0\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"\",\"type\":\"\",\"side\":\"\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair, for example: BTC-USDT, please use uppercase letters\"},{\"name\":\"cancelOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The ID of the order to be canceled\"},{\"name\":\"cancelClientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"The user-defined ID of the order to be canceled, character length limit: 1-40, different orders cannot use the same clientOrderID, only supports a query range of 2 hours\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Cancel orders with specified status: NEW: New order, PENDING: Pending order, PARTIALLY_FILLED: Partially filled\"},{\"name\":\"CancelReplaceMode\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"STOP_ON_FAILURE: If the cancel order fails, it will not continue to place a new order. ALLOW_FAILURE: Regardless of whether the cancel order succeeds or fails, it will continue to place a new order.\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The type of transaction, BUY: Buy, SELL: Sell\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trigger price used for TAKE_STOP_LIMIT, TAKE_STOP_MARKET, TRIGGER_LIMIT, TRIGGER_MARKET order types.\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order quantity, e.g. 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order amount, e.g. 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price, e.g. 10000USDT\"},{\"name\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom order ID consisting of letters, numbers, and _. Character length should be between 1-40. Different orders cannot use the same newClientOrderId.\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Request valid time window in milliseconds.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading symbol\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Order price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Order quantity\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Executed quantity\"},{\"name\":\"cummulativeQuoteQty\",\"type\":\"string\",\"description\":\"Cumulative quote quantity\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status: NEW (new order), PENDING (pending), PARTIALLY_FILLED (partially filled), FILLED (filled), CANCELED (cancelled), FAILED (failed)\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type: MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Transaction type: BUY (buy), SELL (sell)\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"User-defined order ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Cancel orders in specific states: NEW (new order), PENDING (pending), PARTIALLY_FILLED (partially filled)\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"Transaction timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/023_post_trade_order_cancel_replace.json\n// module id = TA5G\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\t\"./04_24hr_ticker.json\": \"7Biw\",\n\t\"./05_last_price.json\": \"q1yk\",\n\t\"./06_book_ticker.json\": \"vVRe\",\n\t\"./07_depth_incr_info.json\": \"MY8u\"\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\":\"Traders close positions according to the order number\"},{\"type\":\"normal\",\"text\":\"This node is used by traders to close positions according to the order number with orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/closeTrackOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"positionId\":\"1252864099381234567\",\"recvWindow\":\"5000\",\"timestamp\":\"1702575099353\"},\"response\":{\"code\":0,\"timestamp\":1702575099575,\"data\":{\"positionId\":1252864099381234700}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Order number with order\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request valid time empty window value, unit: milliseconds, default to 5 seconds if left blank\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"Order number with order\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader/02_post_close_currentTrack.json\n// module id = TXP6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Server Time\"},{\"type\":\"html\",\"text\":\"

    HTTP Request

    \"},{\"type\":\"warning\",\"text\":\"GET https://open-api.bingx.com/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/cswap/api/basic/05_system_time.json\n// module id = TbUJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最優掛單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 用於查詢最優掛單
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/bookTicker\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\"},\"response\":{\"code\":0,\"timestamp\":1707147866795,\"data\":[{\"eventType\":\"bookTicker\",\"time\":1707147866623,\"symbol\":\"BTC-USDT\",\"bidPrice\":\"42738.64\",\"bidVolume\":\"5.19530\",\"askPrice\":\"42739.50\",\"askVolume\":\"5.72867\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對,如:BTC_USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"eventType\",\"type\":\"string\",\"description\":\"數據類型\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,如:BTC_USDT\"},{\"name\":\"bidPrice\",\"type\":\"string\",\"description\":\"買一價格\"},{\"name\":\"bidVolume\",\"type\":\"string\",\"description\":\"買一數量\"},{\"name\":\"askPrice\",\"type\":\"string\",\"description\":\"賣一價格\"},{\"name\":\"askVolume\",\"type\":\"string\",\"description\":\"賣一數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/08_get_market_book_ticker.json\n// module id = Tbeq\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Mark Price and Funding Rate\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"BTC-USDT\",\"markPrice\":\"42216.4\",\"indexPrice\":\"42219.9\",\"lastFundingRate\":\"0.00025100\",\"nextFundingTime\":1702742400000}}},\"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\":\"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\":\"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","\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/cswap/websocket/account/index.js","var map = {\n\t\".\": \"KeEM\",\n\t\"./\": \"KeEM\",\n\t\"./01_get_Query_Invited_Users\": \"Bd4q\",\n\t\"./01_get_Query_Invited_Users.json\": \"Bd4q\",\n\t\"./02_get_Daily_Commission_Query\": \"Czkf\",\n\t\"./02_get_Daily_Commission_Query.json\": \"Czkf\",\n\t\"./03_get_Query_agent_user_nformation\": \"N9hH\",\n\t\"./03_get_Query_agent_user_nformation.json\": \"N9hH\",\n\t\"./04_get_Query_the_deposit_details\": \"ZKxt\",\n\t\"./04_get_Query_the_deposit_details.json\": \"ZKxt\",\n\t\"./05_get_Query_API_transaction_commission\": \"mYC+\",\n\t\"./05_get_Query_API_transaction_commission.json\": \"mYC+\",\n\t\"./06_get_Query_partner_information\": \"sHlI\",\n\t\"./06_get_Query_partner_information.json\": \"sHlI\",\n\t\"./index\": \"KeEM\",\n\t\"./index.js\": \"KeEM\"\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 = \"Tr8Q\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent ^.*$\n// module id = Tr8Q\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Test Order\"},{\"type\":\"desc\",\"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)\",\"desc\":[{\"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\":\"
  • TRAILING_STOP_MARKET (Tracking Stop Loss Order) or TRAILING_TP_SL (Trailing TakeProfit/StopLoss Order): The price field or priceRate field needs to be filled in
  • \"},{\"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\":\"warning\",\"text\":\"The minimum order quantity can be obtained from the api /openApi/swap/v2/quote/contracts: tradeMinQuantity, tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]}]},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"request timestamp, unit: millisecond\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/00_post_trade_order_test.json\n// module id = TrnZ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Historical K-line\"},{\"type\":\"normal\",\"text\":\"Query historical K-line data for transaction prices\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Historical data after 2024 is supported only
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are not sent, the latest K-line data is returned by default
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime and endTime are sent, the latest K-line data up to endTime is returned by default
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime is sent but endTime is not sent, the latest K-line data starting from startTime is returned by default
  • \"},{\"type\":\"html\",\"text\":\"
  • If startTime is not sent but endTime is sent, the latest K-line data up to endTime is returned by default
  • \"},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/market/his/v1/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"1m\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720626772,\"data\":[[1702720620000,42216.29,42216.94,42216.29,42216.72,0.2,1702720679999,8548.46],[1702720560000,42220.61,42221.1,42215.56,42216.63,2.93,1702720619999,123968.7],[1702720500000,42182.59,42220.38,42182.59,42220.38,1.53,1702720559999,64851.33],[1702720440000,42182.84,42183.16,42182.22,42182.81,2.54,1702720499999,107559.45],[1702720380000,42199.72,42204.53,42180.2,42182.76,1.1,1702720439999,46549.09]]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Time interval, reference 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: 500\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"klines\",\"type\":\"array\",\"description\":\"K-line array\"}]},{\"type\":\"element order in K-line array [index]\",\"key\":\"key5\",\"data\":[{\"name\":\"0\",\"type\":\"\",\"description\":\"K-line opening time\"},{\"name\":\"1\",\"type\":\"\",\"description\":\"Opening price\"},{\"name\":\"2\",\"type\":\"\",\"description\":\"Highest price\"},{\"name\":\"3\",\"type\":\"\",\"description\":\"Lowest price\"},{\"name\":\"4\",\"type\":\"\",\"description\":\"Closing price\"},{\"name\":\"5\",\"type\":\"\",\"description\":\"Transaction price\"},{\"name\":\"6\",\"type\":\"\",\"description\":\"K-line closing time\"},{\"name\":\"7\",\"type\":\"\",\"description\":\"Transaction amount\"}]},{\"type\":\"interval\",\"key\":\"key12\",\"data\":[{\"name\":\"1m\",\"description\":\"1-minute K-line\"},{\"name\":\"3m\",\"description\":\"3-minute K-line\"},{\"name\":\"5m\",\"description\":\"5-minute K-line\"},{\"name\":\"15m\",\"description\":\"15-minute K-line\"},{\"name\":\"30m\",\"description\":\"30-minute K-line\"},{\"name\":\"1h\",\"description\":\"1-hour K-line\"},{\"name\":\"2h\",\"description\":\"2-hour K-line\"},{\"name\":\"4h\",\"description\":\"4-hour K-line\"},{\"name\":\"6h\",\"description\":\"6-hour K-line\"},{\"name\":\"8h\",\"description\":\"8-hour K-line\"},{\"name\":\"12h\",\"description\":\"12-hour K-line\"},{\"name\":\"1d\",\"description\":\"1-day K-line\"},{\"name\":\"3d\",\"description\":\"3-day K-line\"},{\"name\":\"1w\",\"description\":\"Weekly K-line\"},{\"name\":\"1M\",\"description\":\"Monthly K-line\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/09_get_market_history_klines.json\n// module id = Turq\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-27\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨:支持OCO訂單特性,提供了OCO下單,OCO撤單,查詢單個OCO訂單,查詢委托中的OCO訂單,查詢OCO訂單訂單接口;\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-08-27.json\n// module id = TvGs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢當前全部掛單\"},{\"type\":\"normal\",\"text\":\"查詢用戶當前處於委託狀態的全部訂單。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":\"1702733126509\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BTC-USD\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44459.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702256915574,\"updateTime\":1702256915610,\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"workingType\":\"MARK_PRICE\"},{\"symbol\":\"BTC-USD\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44454.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702111071719,\"updateTime\":1702111071735,\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"trailingStopDistance\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母,不填時查詢所有掛單,填入時查詢對應幣對的掛單\"},{\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/ TRIGGER_REVERSE_MARKET:計劃反手\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間,單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]},{\"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-tw/cswap/api/trade/11_get_all_openOrders.json\n// module id = TzVG\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Trader’s current order\"},{\"type\":\"normal\",\"text\":\"This endpoint is used for traders to query the current track order list for perpetual business.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/currentTrack\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1702731524284,\"data\":{\"result\":[{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0041\",\"openAvgPrice\":\"42113.4000000000000\",\"unrealizedProfit\":\"+1.2169\",\"openTime\":1702651291745,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.70%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"8.633247\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0041\",\"openAvgPrice\":\"42113.4000000000000\",\"unrealizedProfit\":\"+1.2169\",\"openTime\":1702651291398,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.70%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"8.633247\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0014\",\"openAvgPrice\":\"42108.2000000000000\",\"unrealizedProfit\":\"+0.4228\",\"openTime\":1702651291040,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.71%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"2.947574\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0014\",\"openAvgPrice\":\"42107.7000000000000\",\"unrealizedProfit\":\"+0.4235\",\"openTime\":1702651290638,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.71%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"2.947539\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"}],\"searchResult\":true,\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g. BTC-USDT, please use uppercase letters.\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Offset, default is 0.\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Number of records to query, default is 20, maximum is 50.\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request valid time window, in milliseconds. Default is 5 seconds if not provided.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Perpetual business order number\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"With order number\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"symbol\"},{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"Margin mode, isolated position: ISOLATED, cross position: CROSSED\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position side\"},{\"name\":\"openLeverage\",\"type\":\"string\",\"description\":\"open leverage\"},{\"name\":\"openAvgPrice\",\"type\":\"string\",\"description\":\"average opening price\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"mark price\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"Opening time\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Position quantity\"},{\"name\":\"margain\",\"type\":\"string\",\"description\":\"Margin amount\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"unrealized profit or loss\"},{\"name\":\"profitRatio\",\"type\":\"string\",\"description\":\"profit, in%\"},{\"name\":\"stopProfitPrice\",\"type\":\"string\",\"description\":\"Take profit price, empty if not set\"},{\"name\":\"stopLossPrice\",\"type\":\"string\",\"description\":\"Stop loss price, empty if not set\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader/01_get_currentTrack.json\n// module id = U2sZ\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\":\"title\",\"text\":\"2023-11-10\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual future API: Support for simulated trading order placement interface\"},{\"type\":\"html\",\"text\":\"Perpetual future WebSocket: Support for returning trigger price field: sp\"},{\"type\":\"html\",\"text\":\"Perpetual future WebSocket: Subscription to depth supports returning time field\"},{\"type\":\"html\",\"text\":\"Perpetual future/Spot: 24-hour price change information supports returning best bid and ask prices\"},{\"type\":\"html\",\"text\":\"Spot WebSocket: K-line subscription supports more internal types: 1min/5min/30min/.../1day...etc.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-11-10.json\n// module id = U8SU\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-16\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:新增‘增量深度推送’功能\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-16.json\n// module id = UDLl\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","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-14\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract: The place order api supports guaranteed stop-loss and take-profit functionality.\"},{\"type\":\"html\",\"text\":\"Spot added: Countdown cancel all orders function\"},{\"type\":\"html\",\"text\":\"Perpetual added: Countdown cancel all orders function\"},{\"type\":\"html\",\"text\":\"Spot added: Server time interface\"},{\"type\":\"html\",\"text\":\"Spot added: Valid methods, currently supports PostOnly, GTC, IOC, default to GTC if not filled in\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-03-14.json\n// module id = UMYu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"K線數據\"},{\"type\":\"normal\",\"text\":\"查詢成交價格的K線數據。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v3/quote/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"KNC-USDT\",\"interval\":\"1h\",\"limit\":\"1000\",\"startTime\":\"1702717199998\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"0.7034\",\"close\":\"0.7065\",\"high\":\"0.7081\",\"low\":\"0.7033\",\"volume\":\"635494.00\",\"time\":1702717200000}]}},\"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\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"成功建立與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/cswap/websocket/introduce/04_subscribe.json\n// module id = UYWd\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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":\"1702733126509\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BTC-USD\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44459.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702256915574,\"updateTime\":1702256915610,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"postOnly\":false,\"workingType\":\"MARK_PRICE\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44454.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702111071719,\"updateTime\":1702111071735,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"postOnly\":false,\"workingType\":\"MARK_PRICE\"}]}}},\"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-USD,When not filled, query all pending orders. When filled, query the pending orders for the corresponding currency pair\"},{\"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-USD\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order/ TRIGGER_REVERSE_MARKET:trigger reverse Market order \"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"postOnly\",\"type\":\"bool\",\"description\":\"Maker only\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]},{\"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/cswap/api/trade/11_get_all_openOrders.json\n// module id = Ui0Y\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/cswap/api/basic/02_timestamp.json\n// module id = Ui1f\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query warehouse\"},{\"type\":\"normal\",\"text\":\"HTTP request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"positionId\":1801165371278884900,\"positionSide\":\"LONG\",\"isolated\":false,\"positionAmt\":\"3\",\"availableAmt\":\"3\",\"unrealizedProfit\":\"-0.00010485\",\"initialMargin\":\"0.00110845\",\"liquidationPrice\":2024.7812708419876,\"avgPrice\":\"67662\",\"leverage\":4,\"markPrice\":\"66098.9\",\"riskRate\":\"0.00013841\",\"maxMarginReduction\":\"0\",\"updateTime\":1718409600901},{\"symbol\":\"ETH-USD\",\"positionId\":1796163366063964200,\"positionSide\":\"LONG\",\"isolated\":false,\"positionAmt\":\"376\",\"availableAmt\":\"376\",\"unrealizedProfit\":\"-0.08051938\",\"initialMargin\":\"0.19994044\",\"liquidationPrice\":630.4805786791729,\"avgPrice\":\"3761.12\",\"leverage\":5,\"markPrice\":\"3480.77\",\"riskRate\":\"0.00096807\",\"maxMarginReduction\":\"0\",\"updateTime\":1718409600705}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, example: BTC-USD, use uppercase letters\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request time stamp, unit: millisecond\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description information\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation time point, unit: millisecond\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"Warehouse list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position number\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Holding direction, bi-directional position only can choose LONG or SHORT\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Is it per position mode, true: per position mode false: full position\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"Holding quantity\"},{\"name\":\"availableAmt\",\"type\":\"string\",\"description\":\"Quantity that can be closed\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"Unrealized profit\"},{\"name\":\"initialMargin\",\"type\":\"string\",\"description\":\"Initial margin\"},{\"name\":\"liquidationPrice\",\"type\":\"float64\",\"description\":\"Force liquidation price\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Opening average price\"},{\"name\":\"leverage\",\"type\":\"int32\",\"description\":\"Leverage\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"Mark price\"},{\"name\":\"riskRate\",\"type\":\"string\",\"description\":\"Risk rate\"},{\"name\":\"maxMarginReduction\",\"type\":\"string\",\"description\":\"Maximum reduction of margin\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Position update time, millisecond timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/06_get_positions.json\n// module id = Uqg4\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/cswap/api/basic/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/en-US/cswap/websocket/account/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Current Open Orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDC\",\"timestamp\":\"1702721719312\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BNB-USDC\",\"orderId\":1735930294290081300,\"price\":\"255.27\",\"StopPrice\":\"0\",\"origQty\":\"0.16261\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"time\":1702713008841,\"updateTime\":1702713008841,\"origQuoteOrderQty\":\"0\",\"fee\":0}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT,Query all pending orders when left blank.\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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\":\"stopPrice\",\"type\":\"string\",\"description\":\"trigger price\"}]}]}]\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\":\"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\"./05_get_quote_ticker\": \"wj44\",\n\t\"./05_get_quote_ticker.json\": \"wj44\",\n\t\"./06_get_market_agg_depth\": \"cYhj\",\n\t\"./06_get_market_agg_depth.json\": \"cYhj\",\n\t\"./07_get_market_price\": \"ymfm\",\n\t\"./07_get_market_price.json\": \"ymfm\",\n\t\"./08_get_market_book_ticker\": \"Tbeq\",\n\t\"./08_get_market_book_ticker.json\": \"Tbeq\",\n\t\"./09_get_market_history_klines\": \"7UNC\",\n\t\"./09_get_market_history_klines.json\": \"7UNC\",\n\t\"./10_get_ market_histroy_traders\": \"cRRp\",\n\t\"./10_get_ market_histroy_traders.json\": \"cRRp\",\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\":\"title\",\"text\":\"2024-03-04\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract: Place Order api supports TRAILING_TP_SL order type\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-03-04.json\n// module id = VZgP\n// module chunks = 3","var map = {\n\t\"./01_get_quote_contracts.json\": \"DcMO\",\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\t\"./19_get_historicalTrades.json\": \"xyiP\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"E4EJ\",\n\t\"./21_get_quote_mark_price_klines.json\": \"VeQG\",\n\t\"./22_get_quote_price_v2.json\": \"rCcB\"\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","module.exports = [{\"type\":\"hash\",\"text\":\"Mark Price Kline/Candlestick Data\"},{\"type\":\"normal\",\"text\":\"Get the latest mark price Kline Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/market/markPriceKlines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"KNC-USDT\",\"interval\":\"1h\",\"limit\":\"1000\",\"startTime\":\"1702717199998\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"0.7034\",\"close\":\"0.7065\",\"high\":\"0.7081\",\"low\":\"0.7033\",\"volume\":\"635494.00\",\"openTime\":1705820520000,\"closeTime\":1705820520000}]}},\"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\"},{\"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\":\"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/21_get_quote_mark_price_klines.json\n// module id = VeQG\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 = [{\"id\":\"1\",\"resource\":\"/health\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"2\",\"resource\":\"/openApi/account/v1/innerTransfer/authorizeSubAccount\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"3\",\"resource\":\"/openApi/account/v1/uid\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"4\",\"resource\":\"/openApi/agent/v1/account/inviteAccountList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"4\",\"resource\":\"/openApi/agent/v1/asset/partnerData\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"5\",\"resource\":\"/openApi/agent/v1/reward/commissionDataList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"6\",\"resource\":\"/openApi/api/v3/asset/transfer\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"7\",\"resource\":\"/openApi/api/v3/capital/deposit/hisrec\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"8\",\"resource\":\"/openApi/api/v3/capital/withdraw/history\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"9\",\"resource\":\"/openApi/api/v3/get/asset/transfer\",\"resource_type\":\"1\",\"business_id\":\"4\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"10\",\"resource\":\"/openApi/api/v3/post/asset/transfer\",\"resource_type\":\"1\",\"business_id\":\"4\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"11\",\"resource\":\"/openApi/contract/v1/allOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"12\",\"resource\":\"/openApi/contract/v1/allPosition\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"13\",\"resource\":\"/openApi/contract/v1/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"14\",\"resource\":\"/openApi/copy-trade/v1/trader/ranks\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"15\",\"resource\":\"/openApi/copy-trade/v1/trader/ranks/search\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"16\",\"resource\":\"/openApi/spot/v1/account/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"17\",\"resource\":\"/openApi/spot/v1/common/prices\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"18\",\"resource\":\"/openApi/spot/v1/common/symbols\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"19\",\"resource\":\"/openApi/spot/v1/market/depth\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"20\",\"resource\":\"/openApi/spot/v1/market/kline\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"21\",\"resource\":\"/openApi/spot/v1/market/trades\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"22\",\"resource\":\"/openApi/spot/v1/ticker/24hr\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"23\",\"resource\":\"/openApi/spot/v1/trade/batchOrders\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"24\",\"resource\":\"/openApi/spot/v1/trade/cancel\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"25\",\"resource\":\"/openApi/spot/v1/trade/cancelOrders\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"26\",\"resource\":\"/openApi/spot/v1/trade/historyOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"27\",\"resource\":\"/openApi/spot/v1/trade/myTrades\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"28\",\"resource\":\"/openApi/spot/v1/trade/openOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"29\",\"resource\":\"/openApi/spot/v1/trade/order\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"30\",\"resource\":\"/openApi/spot/v1/trade/query\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"31\",\"resource\":\"/openApi/sub-account/v1/apiKey/query\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"32\",\"resource\":\"/openApi/subAccount/v1/apiKey/create\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"33\",\"resource\":\"/openApi/subAccount/v1/apiKey/del\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"34\",\"resource\":\"/openApi/subAccount/v1/apiKey/edit\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"35\",\"resource\":\"/openApi/subAccount/v1/assets\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"36\",\"resource\":\"/openApi/subAccount/v1/create\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"37\",\"resource\":\"/openApi/subAccount/v1/list\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"38\",\"resource\":\"/openApi/subAccount/v1/updateStatus\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"39\",\"resource\":\"/openApi/swap/v2/quote/bookTicker\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"40\",\"resource\":\"/openApi/swap/v2/quote/contracts\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"41\",\"resource\":\"/openApi/swap/v2/quote/depth\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"42\",\"resource\":\"/openApi/swap/v2/quote/fundingRate\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"43\",\"resource\":\"/openApi/swap/v2/quote/klines\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"44\",\"resource\":\"/openApi/swap/v2/quote/openInterest\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"45\",\"resource\":\"/openApi/swap/v2/quote/premiumIndex\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"46\",\"resource\":\"/openApi/swap/v2/quote/price\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"47\",\"resource\":\"/openApi/swap/v2/quote/ticker\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"48\",\"resource\":\"/openApi/swap/v2/quote/trades\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"49\",\"resource\":\"/openApi/swap/v2/server/time\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"null\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"50\",\"resource\":\"/openApi/swap/v2/trade/allFillOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"51\",\"resource\":\"/openApi/swap/v2/trade/allOpenOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"52\",\"resource\":\"/openApi/swap/v2/trade/allOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"53\",\"resource\":\"/openApi/swap/v2/trade/batchOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"54\",\"resource\":\"/openApi/swap/v2/trade/closeAllPositions\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"55\",\"resource\":\"/openApi/swap/v2/trade/forceOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"56\",\"resource\":\"/openApi/swap/v2/trade/leverage\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"57\",\"resource\":\"/openApi/swap/v2/trade/marginType\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"58\",\"resource\":\"/openApi/swap/v2/trade/openOrder\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"null\"},{\"id\":\"59\",\"resource\":\"/openApi/swap/v2/trade/openOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"60\",\"resource\":\"/openApi/swap/v2/trade/order\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"61\",\"resource\":\"/openApi/swap/v2/trade/order/test\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"62\",\"resource\":\"/openApi/swap/v2/trade/positionMargin\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"63\",\"resource\":\"/openApi/swap/v3/user/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"64\",\"resource\":\"/openApi/swap/v2/user/commissionRate\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"65\",\"resource\":\"/openApi/swap/v2/user/income\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"66\",\"resource\":\"/openApi/swap/v2/user/income/export\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"67\",\"resource\":\"/openApi/swap/v2/user/positions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"68\",\"resource\":\"/openApi/swap/v3/quote/klines\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"69\",\"resource\":\"https://open-api.bingx.com/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"70\",\"resource\":\"/openApi/v1/account/apiRestrictions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"71\",\"resource\":\"/openApi/wallets/v1/capital/config/getall\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"72\",\"resource\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"resource_type\":\"1\",\"business_id\":\"5\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"73\",\"resource\":\"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply\",\"resource_type\":\"1\",\"business_id\":\"7\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"74\",\"resource\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"resource_type\":\"1\",\"business_id\":\"5\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"75\",\"resource\":\"ACCOUNT_UPDATE\",\"resource_type\":\"2\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"null\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"76\",\"resource\":\"spot.executionReport\",\"resource_type\":\"2\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"null\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"77\",\"resource\":\"/openApi/swap/v2/trade/order\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"77\",\"resource\":\"/openApi/swap/v2/trade/openOrder\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"78\",\"resource\":\"/openApi/swap/v2/trade/order\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"79\",\"resource\":\"/openApi/spot/v1/account/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"80\",\"resource\":\"https://open-api.bingx.com/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"PUT\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"81\",\"resource\":\"https://open-api.bingx.com/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"DELETE\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"82\",\"resource\":\"/openApi/spot/v1/trade/openOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"10\"},{\"id\":\"83\",\"resource\":\"/openApi/spot/v1/trade/order\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"84\",\"resource\":\"/openApi/spot/v1/trade/query\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"85\",\"resource\":\"/openApi/spot/v1/trade/cancel\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"86\",\"resource\":\"/openApi/swap/v2/trade/batchOrders\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"3\",\"uid_rate_limit\":\"5\"},{\"id\":\"87\",\"resource\":\"/openApi/swap/v2/trade/leverage\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"88\",\"resource\":\"/openApi/swap/v2/trade/marginType\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"89\",\"resource\":\"/openApi/wallets/v1/capital/deposit/address\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"90\",\"resource\":\"/openApi/wallets/v1/capital/subAccount/deposit/address\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"91\",\"resource\":\"/openApi/wallets/v1/capital/innerTransfer/records\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"92\",\"resource\":\"/openApi/wallets/v1/capital/deposit/subHisrec\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"93\",\"resource\":\"/openApi/wallets/v1/capital/subAccount/innerTransfer/records\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"10\"},{\"id\":\"94\",\"resource\":\"/openApi/wallets/v1/capital/deposit/createSubAddress\",\"resource_type\":\"1\",\"business_id\":\"6\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"95\",\"resource\":\"/openApi/spot/v2/market/kline\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"96\",\"resource\":\"/openApi/copyTrading/v1/swap/trace/currentTrack\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"97\",\"resource\":\"/openApi/copyTrading/v1/swap/trace/closeTrackOrder\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"98\",\"resource\":\"/openApi/copyTrading/v1/swap/trace/setTPSL\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"99\",\"resource\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"100\",\"resource\":\"/openApi/agent/v1/asset/depositDetailList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"101\",\"resource\":\"/openApi/agent/v1/reward/third/commissionDataList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"102\",\"resource\":\"/openApi/account/v1/apiKey/query\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"103\",\"resource\":\"/openApi/swap/v1/positionSide/dual\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"104\",\"resource\":\"/openApi/swap/v1/positionSide/dual\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"105\",\"resource\":\"/openApi/spot/v1/user/commissionRate\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"106\",\"resource\":\"/openApi/spot/v1/trade/cancelOpenOrders\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"107\",\"resource\":\"/openApi/swap/v1/market/historicalTrades\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"108\",\"resource\":\"/openApi/swap/v1/market/markPriceKlines\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"109\",\"resource\":\"/openApi/content/v1/announcement\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"110\",\"resource\":\"/openApi/market/his/v1/trade\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"111\",\"resource\":\"/openApi/market/his/v1/kline\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"112\",\"resource\":\"/openApi/spot/v2/market/depth\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"113\",\"resource\":\"/openApi/swap/v1/ticker/price\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"114\",\"resource\":\"/openApi/swap/v1/trade/cancelReplace\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"115\",\"resource\":\"/openApi/swap/v1/trade/batchCancelReplace\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"116\",\"resource\":\"/openApi/spot/v1/ticker/bookTicker\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"117\",\"resource\":\"/openApi/spot/v1/ticker/price\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"118\",\"resource\":\"/openApi/wallets/v1/capital/deposit/riskRecords\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"119\",\"resource\":\"/openApi/spot/v1/trade/order/cancelReplace\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"3\",\"uid_rate_limit\":\"2\"},{\"id\":\"120\",\"resource\":\"/openApi/spot/v1/trade/cancelAllAfter\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"121\",\"resource\":\"/openApi/swap/v2/trade/cancelAllAfter\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"122\",\"resource\":\"/openApi/copyTrading/v1/spot/trader/sellOrder\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/closePosition\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/fullOrder\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/openInterest\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/premiumIndex\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/contracts\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/maintMarginRatio\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/user/commissionRate\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/leverage\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/leverage\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/allOpenOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/closeAllPositions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/user/positions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/user/balance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/forceOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/allFillOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/order\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/klines\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/depth\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/market/ticker\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/account/transfer/v1/subAccount/asset/transferHistory\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/account/transfer/v1/subAccount/transferAsset\",\"resource_type\":\"1\",\"business_id\":\"4\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"1\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v2/trade/fillHistory\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/orderDetail\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/orderDetail\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/orderHistory\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/marginType\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/marginType\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/positionMargin\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/cancelOrder\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/cswap/v1/trade/openOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/positionHistory\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/order\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/openOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/historyOrders\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/orderDetail\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/twap/cancelOrder\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/positionMargin/history\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/account/v1/allAccountBalance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/subAccount/v1/allAccountBalance\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/order\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/cancel\",\"resource_type\":\"1\",\"business_id\":\"1\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/orderList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/openOrderList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/spot/v1/oco/historyOrderList\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"5\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/getVst\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"1\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/assetMode\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/assetMode\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/multiAssetsRules\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"0\",\"method\":\"GET\",\"group\":\"1\",\"uid_rate_limit\":\"1\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/trade/assetMode\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/swap/v1/user/marginAssets\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/v1/account/apiPermissions\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"GET\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"POST\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"PUT\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"123\",\"resource\":\"/openApi/user/auth/userDataStream\",\"resource_type\":\"1\",\"business_id\":\"2\",\"auth_type\":\"1\",\"method\":\"DELETE\",\"group\":\"2\",\"uid_rate_limit\":\"2\"},{\"id\":\"99999\",\"resource\":\"保留这个和忽略这个JSON 在结尾,只用于备注\",\"resource_type\":\"1\",\"business_id\":\"3\",\"auth_type\":\"1\",\"method\":\"NOTE\",\"text\":\"apikey 权限代码 0-行情接口无需鉴权API KEY, 1-现货交易 2-读取 3-专业合约交易 4-万向划转 5-提币 6-允许管理子账户 7-允许子账户内转\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/utils/apikey.json\n// module id = W+8S\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\":\"Query account data\"},{\"type\":\"normal\",\"text\":\"Get asset information of user‘s Perpetual Account of USDC and USDT\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v3/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702731518913\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"userId\":\"116***295\",\"asset\":\"USDT\",\"balance\":\"194.8212\",\"equity\":\"196.7431\",\"unrealizedProfit\":\"1.9219\",\"realisedProfit\":\"-109.2504\",\"availableMargin\":\"193.7609\",\"usedMargin\":\"1.0602\",\"freezedMargin\":\"0.0000\"}]}},\"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\"},{\"name\":\"shortUid\",\"type\":\"string\",\"description\":\"short uid\"}]}]}]\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\":\"SNAPSHOT\"}]},{\"type\":\"warning\",\"text\":\"每次建立連接成功都會全量推送1次,之後每隔5秒全量推送1次。\"},{\"type\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\"},{\"name\":\"cr\",\"type\":\"\",\"description\":\"持倉已實現盈虧:1.231123\"}]}]}]\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\":\"Change Margin Type\"},{\"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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"MINA-USDT\",\"marginType\":\"CROSSED\",\"recvWindow\":\"60000\",\"timestamp\":\"1702733445917\"},\"response\":{\"code\":0,\"msg\":\"\"},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"the account has positions or pending orders\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"SetTradingStrategy network failed\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"query Service Unavailable, err:contract not exist\",\"data\":{}}}]},\"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\":\"一個websocket限制最多200個topic,超過將返回100416錯誤碼。\"},{\"type\":\"normal\",\"text\":\"一個IP限制最多60個websocket,超過將返回100419錯誤碼。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/introduce/01_limit.json\n// module id = WMCK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"變換逐全倉模式\"},{\"type\":\"normal\",\"text\":\"變換用戶在指定symbol合約上的保證金模式:逐倉或全倉。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"MINA-USDT\",\"marginType\":\"CROSSED\",\"recvWindow\":\"60000\",\"timestamp\":\"1702733445917\"},\"response\":{\"code\":0,\"msg\":\"\"},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"the account has positions or pending orders\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"SetTradingStrategy network failed\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"query Service Unavailable, err:contract not exist\",\"data\":{}}}]},\"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 = {\"module\":\"cswap\",\"path\":\"/en-us/cswap/description\",\"name\":\"interface\",\"content\":[{\"type\":\"html\",\"text\":\"
  • The api 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.
  • \"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/2_description.json\n// module id = WXeB\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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},{\"type\":\"html\",\"text\":\"
  • 更多返回錯誤代碼請看首頁的錯誤代碼描述
  • \"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},\"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\"./00_limit.json\": \"u2Il\",\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\":\"\",\"children\":[{\"type\":\"html\",\"text\":\"為了保持跨平台時精度的完整性,十進制數字作為字符串返回。建議您在發起請求時也将數字轉換為字符串以避免截斷和精度錯誤\"},{\"type\":\"html\",\"text\":\"整數(如交易編號和順序)不加引號\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic/03_digital_rule.json\n// module id = WihS\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"Q: What is UID?\"},{\"type\":\"normal\",\"text\":\"A: UID stands for User ID, which is a unique identifier for each user (including parent users and sub-users). UID can be viewed in the personal information section of the web or app interface, and it can also be obtained through the GET /openApi/account/v1/uid interface.\"},{\"type\":\"title\",\"text\":\"Q: How many API Keys can a user apply for?\"},{\"type\":\"normal\",\"text\":\"A: Each parent user can create up to 20 sets of API Keys. Each parent user can also create up to 20 sub-users, and each sub-user can create up to 20 sets of API Keys. Each API Key can be set with different permissions.\"},{\"type\":\"title\",\"text\":\"Q: Why do I often experience disconnections and timeouts?\"},{\"type\":\"normal\",\"text\":\"A: It could be due to network fluctuations. We recommend reconnecting in such cases.\"},{\"type\":\"title\",\"text\":\"Q: Why does WebSocket connection always get disconnected?\"},{\"type\":\"normal\",\"text\":\"A: You can check if your code returns a Pong after receiving a Ping. If you are subscribing to account-related websockets, please also check if you are regularly updating the listenkey. We recommend using our sample code first.\"},{\"type\":\"title\",\"text\":\"Q: Why does signature authentication always fail?\"},{\"type\":\"normal\",\"text\":\"A: Please carefully read our signature authentication instructions, or test using our sample code first.\"},{\"type\":\"title\",\"text\":\"Q: Is the API Key for U-based contracts the same as Spot trading?\"},{\"type\":\"normal\",\"text\":\"A: The API Key for U-based contracts is the same as the API Key for Spot trading. However, the permissions for spot trading and contract trading are separate and need to be configured accordingly.\"},{\"type\":\"title\",\"text\":\"Q: How many types of risk control restrictions does BingX have for APIs?\"},{\"type\":\"normal\",\"text\":\"A: BingX has three types of risk control strategies for APIs: api rate limiting, trading restrictions, and network firewall restrictions. These restrictions may change at any time.\"},{\"type\":\"normal\",\"text\":\"Interface rate limiting:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"The rate limiting for each api may vary. Please refer to the specific api documentation for details.\"}]},{\"type\":\"normal\",\"text\":\"Trading restrictions: Trading behavior is evaluated based on the behavior of regular users. If your trading behavior deviates significantly from that of regular users, you may be prohibited from trading, and the duration of the prohibition is uncertain. The duration of the trading prohibition may increase under the following circumstances:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"1. Frequently occupying the best bid and ask prices.\"},{\"type\":\"normal\",\"text\":\"2. Frequently placing/canceling orders without any trades.\"},{\"type\":\"normal\",\"text\":\"3. Very low trade completion rate, where the completion rate = number of trades / (number of placed orders + number of canceled orders).\"},{\"type\":\"normal\",\"text\":\"4. Very low trade weight, where the trade weight = total trade amount / (total placed order amount + total canceled order amount).\"},{\"type\":\"normal\",\"text\":\"5. Continuously sending frequent requests after receiving a 429 error response.\"}]},{\"type\":\"normal\",\"text\":\"Network Firewall Restrictions\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"Currently, we do not provide explicit information about network firewall restrictions. If you receive an HTTP 403 error message, it means you have violated a network firewall rule. In most cases, this error occurs due to excessive requests and will result in a five-minute temporary ban. However, if your requests are considered malicious, it may lead to a longer ban or even permanent suspension.\"}]},{\"type\":\"title\",\"text\":\"Q: How to report API api errors?\"},{\"type\":\"normal\",\"text\":\"Please contact our official customer service and provide the following template to report the issue. Our technical support will assist you:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"1. Problem description\"},{\"type\":\"normal\",\"text\":\"2. User ID (UID) and order ID (if related to account or order), API KEY\"},{\"type\":\"normal\",\"text\":\"3. Complete request parameters (if applicable)\"},{\"type\":\"normal\",\"text\":\"4. Complete JSON formatted response\"},{\"type\":\"normal\",\"text\":\"5. Time and frequency of the issue (when it started, if it can be reproduced)\"},{\"type\":\"normal\",\"text\":\"6. Signature information\"}]},{\"type\":\"title\",\"text\":\"Q: Does the API support standard contract trading?\"},{\"type\":\"normal\",\"text\":\"A: Currently not supported.\"},{\"type\":\"title\",\"text\":\"Q: Does the API support stock and forex trading?\"},{\"type\":\"normal\",\"text\":\"A: Currently not supported.\"},{\"type\":\"title\",\"text\":\"Q: Does the mobile app support API management?\"},{\"type\":\"normal\",\"text\":\"A: This feature is under development.\"},{\"type\":\"title\",\"text\":\"Q: How many channels can be subscribed per IP address on BingX?\"},{\"type\":\"normal\",\"text\":\"A: Currently, there is no limit, but there is a subscription rate limit. Please do not exceed 10/s.\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/q&a/2023-09-12.json\n// module id = WisP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"主賬戶充值地址\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶查詢自己特定幣種在其所在區塊鏈中的充幣地址,限母用戶可用。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/address\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"limit\":\"1000\",\"offset\":\"0\",\"recvWindow\":\"0\",\"timestamp\":\"1702623917652\"},\"response\":{\"code\":0,\"timestamp\":1702623918163,\"data\":{\"data\":[{\"coinId\":760,\"coin\":\"USDT\",\"network\":\"ERC20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":780,\"coin\":\"USDT\",\"network\":\"TRC20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":799,\"coin\":\"USDT\",\"network\":\"BEP20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":857,\"coin\":\"USDT\",\"network\":\"SOL\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1192,\"coin\":\"USDT\",\"network\":\"POLYGON\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1367,\"coin\":\"USDT\",\"network\":\"ARBITRUM\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1371,\"coin\":\"USDT\",\"network\":\"OPTIMISM\",\"address\":\"40e*****95\",\"tag\":\"\"}],\"total\":7}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"充值地址列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"網絡名稱\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"帶有前綴的儲值地址\"},{\"name\":\"tag\",\"type\":\"string\",\"description\":\"地址tag\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0已激活 1已申請 2未申請\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/13.get_wallet_queryDepositAddress.json\n// module id = WnFl\n// module chunks = 3","var map = {\n\t\"./01_get_quote_contracts.json\": \"lrAs\",\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\t\"./19_get_historicalTrades.json\": \"iQjo\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"1iLz\",\n\t\"./21_get_quote_mark_price_klines.json\": \"5vst\",\n\t\"./22_get_quote_price_v2.json\": \"OSRE\"\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","\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\":\"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\":\"
  • 80012 - 服務不可用
  • \"},{\"type\":\"html\",\"text\":\"
  • 80014 - 參數無效
  • \"},{\"type\":\"html\",\"text\":\"
  • 80016 - 訂單不存在
  • \"},{\"type\":\"html\",\"text\":\"
  • 80017 - 倉位不存在
  • \"},{\"type\":\"html\",\"text\":\"
  • 80020 - risk forbidden
  • \"},{\"type\":\"html\",\"text\":\"
  • 100004 - Permission denied as the API key was created without the permission
  • \"},{\"type\":\"html\",\"text\":\"
  • 100419 - IP does not match IP whitelist
  • \"},{\"type\":\"html\",\"text\":\"
  • 101204 - Insufficient margin
  • \"},{\"type\":\"html\",\"text\":\"
  • 80013 - The number of your entrusted orders has reached the system limit. If you need to place an order, please cancel other orders first
  • \"},{\"type\":\"html\",\"text\":\"
  • 80018 - order is already filled
  • \"},{\"type\":\"html\",\"text\":\"
  • 80019 - The order is being processed. Please use the allOrders api to retrieve the order details later
  • \"},{\"type\":\"normal\",\"text\":\"100400\",\"children\":[{\"type\":\"html\",\"text\":\"arguments invalid\"},{\"type\":\"html\",\"text\":\"miss arguments\"}]},{\"type\":\"html\",\"text\":\"
  • 100412 - Null signature
  • \"},{\"type\":\"html\",\"text\":\"
  • 100413 - Incorrect apiKey
  • \"},{\"type\":\"html\",\"text\":\"
  • 100421 - Null timestamp or timestamp mismatch
  • \"},{\"type\":\"html\",\"text\":\"
  • 101209 - The maximum position value for this leverage is ** USDT
  • \"},{\"type\":\"html\",\"text\":\"
  • 101212 - Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again
  • \"},{\"type\":\"html\",\"text\":\"
  • 101215 - The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.
  • \"},{\"type\":\"html\",\"text\":\"
  • 101414 - The maximum leverage for the trading pair is *, please reduce the leverage
  • \"},{\"type\":\"html\",\"text\":\"
  • 101415 - This trading pair is suspended from opening new position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101460 - The order price should be higher than the estimated liquidation price of the long position
  • \"},{\"type\":\"html\",\"text\":\"
  • 101500 - rpc timeout
  • \"},{\"type\":\"html\",\"text\":\"
  • 101514 - You're temporarily suspended from opening positions. Please try again later
  • \"},{\"type\":\"html\",\"text\":\"
  • 109201 - The same order number is only allowed to be submitted once within 1 second.
  • \"},{\"type\":\"normal\",\"text\":\"101211\",\"children\":[{\"type\":\"html\",\"text\":\"Order price should be lower than*\"},{\"type\":\"html\",\"text\":\"Order price should be higher than*\"}]},{\"type\":\"normal\",\"text\":\"80012\",\"children\":[{\"type\":\"html\",\"text\":\"GetMarketTrades getContractInfo failled\"},{\"type\":\"html\",\"text\":\"symbol not exist\"},{\"type\":\"html\",\"text\":\"invalid parameter\"},{\"type\":\"html\",\"text\":\"Service Unavailable\"},{\"type\":\"html\",\"text\":\"leverage illegal\"},{\"type\":\"html\",\"text\":\"connect: connection refused\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"startTime is later than endTime\"},{\"type\":\"html\",\"text\":\"OpenInterestNotExist\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"},{\"type\":\"html\",\"text\":\"invalid connection\"},{\"type\":\"html\",\"text\":\"stop order cnt hit limit 50\"},{\"type\":\"html\",\"text\":\"network failed\"},{\"type\":\"html\",\"text\":\"trading has been locked\"},{\"type\":\"html\",\"text\":\"position limit\"}]},{\"type\":\"normal\",\"text\":\"101400\",\"children\":[{\"type\":\"html\",\"text\":\"No position to close\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"Insufficient margin\"},{\"type\":\"html\",\"text\":\"Must be lower than the maximum callback rate of 90%\"},{\"type\":\"html\",\"text\":\"Must be greater than the minimum callback rate of 0.1%\"},{\"type\":\"html\",\"text\":\"Invalid Parameter\"}]},{\"type\":\"normal\",\"text\":\"80001\",\"children\":[{\"type\":\"html\",\"text\":\"tickers is nil\"},{\"type\":\"html\",\"text\":\"Request failed\"},{\"type\":\"html\",\"text\":\"service has some errors, order not exist\"},{\"type\":\"html\",\"text\":\"orderId and clientOrderID are both empty, orderId and clientOrderID are both empty\"},{\"type\":\"html\",\"text\":\"order state illegal, order not exist\"},{\"type\":\"html\",\"text\":\"the account has positions or pending orders\"},{\"type\":\"html\",\"text\":\"margin is not enough\"},{\"type\":\"html\",\"text\":\"You're temporarily suspended from opening positions. Please try again later\"},{\"type\":\"html\",\"text\":\"order state illegalorder not exist\"},{\"type\":\"html\",\"text\":\"Mismatch type\"},{\"type\":\"html\",\"text\":\"At present, the actual position is occupied by a Limit Order. If you need to close the position, please cancel other orders first\"},{\"type\":\"html\",\"text\":\"trading strategy available is false\"},{\"type\":\"html\",\"text\":\"order not exist\"},{\"type\":\"html\",\"text\":\"The maximum leverage for the trading pair is 5, please reduce the leverage\"},{\"type\":\"html\",\"text\":\"Order size error\"},{\"type\":\"html\",\"text\":\"The current system is busy\"}]},{\"type\":\"html\",\"text\":\"

    註意:

    \"},{\"type\":\"html\",\"text\":\"
  • 如果失敗,response body 帶有錯誤描述信息
  • \"},{\"type\":\"html\",\"text\":\"
  • 每個接口都有可能抛出異常
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic/01_error_code.json\n// module id = XCkz\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/copyTrade/api/trader/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/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\":\"Query user API Key permissions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiRestrictions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702624501386\"},\"response\":{\"ipRestrict\":false,\"createTime\":1684763997626,\"permitsUniversalTransfer\":false,\"enableReading\":true,\"enableFutures\":false,\"enableSpotAndMarginTrading\":false}},\"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\":\"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","module.exports = [{\"type\":\"hash\",\"text\":\"頻率限制\"},{\"type\":\"html\",\"text\":\"如果請求過於頻繁系統將自動限制請求,5分鐘後,會自動恢復;\"},{\"type\":\"html\",\"text\":\"基於賬號UID的限頻,每個接口的都有自己獨立的限頻,相互不影響\"},{\"type\":\"html\",\"text\":\"使用者可依據Http Header中的\\\"X-RateLimit-Requests-Remain\\\"(限頻剩餘次數)及\\\"X-RateLimit-Requests-Expire\\\"(視窗過期時間)查看目前限頻使用情況,以及所在時間視窗的過期時間,根據該數值動態調整您的請求頻率。\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"同時會受到根據UID和IP的不同限頻,基於UID限頻詳見各接口文檔,其中基於IP限頻會基於以下分組規則進行\"},{\"type\":\"html\",\"text\":\"
  • 行情接口分組[1]: 分組內所有接口基於IP限頻總和:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[2]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[3]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:200/10s
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic/04_rate_limits.json\n// module id = XvOK\n// module chunks = 3","var map = {\n\t\"./01_balance.json\": \"qHKX\",\n\t\"./02_order.json\": \"tdP1\",\n\t\"./03_setting.json\": \"PEUY\"\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 = \"Y7Gx\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/account \\.json$\n// module id = Y7Gx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"24小時價格變動情况\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"SFP-USDT\",\"timestamp\":\"1702719836770\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"SFP-USDT\",\"priceChange\":\"0.0295\",\"priceChangePercent\":\"4.15\",\"lastPrice\":\"0.7409\",\"lastQty\":\"10\",\"highPrice\":\"0.7506\",\"lowPrice\":\"0.6903\",\"volume\":\"4308212\",\"quoteVolume\":\"3085449.53\",\"openPrice\":\"0.7114\",\"openTime\":1702719833853,\"closeTime\":1702719798603,\"askPrice\":\"0.7414\",\"askQty\":\"99\",\"bidPrice\":\"0.7413\",\"bidQty\":\"84\"}}},\"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\":\"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小時內,最後一筆交易的發生時間\"},{\"name\":\"bidPrice\",\"type\":\"float64\",\"description\":\"買一價格\"},{\"name\":\"bidQty\",\"type\":\"float64\",\"description\":\"買一數量\"},{\"name\":\"askPrice\",\"type\":\"float64\",\"description\":\"賣一價格\"},{\"name\":\"askQty\",\"type\":\"float64\",\"description\":\"賣一數量\"}]}]}]\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\":\"Query All Open OCO Orders\"},{\"type\":\"normal\",\"text\":\"Query the list of orders that are currently in the pending order state\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/openOrderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":1,\"pageSize\":100,\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460545\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"NEW\"},{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460544\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"PENDING\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Page number\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Number of items per page\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request validity window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"Order time\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"User-defined order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit: OCO Limit Order, ocoTps: OCO Stop-Limit Order\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Trade type, BUY for buy, SELL for sell\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"Trigger price\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"Order price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"Order quantity\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO order group ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/103_get_all_pending_oco_order.json\n// module id = YC1x\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"交易下單\"},{\"type\":\"normal\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"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\":\"html\",\"text\":\"

    3. 開倉加倉的同時設置止盈止損:使用takeProfit或者stopLoss字段

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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/cswap/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"ETH-USD\",\"positionSide\":\"SHORT\",\"price\":\"3777\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"quantity\":\"20\",\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT\\\", \\\"stopPrice\\\": 3666.0,\\\"price\\\": 3776.0,\\\"workingType\\\":\\\"CONTRACT_PRICE\\\"}\",\"stopLoss\":\"{\\\"type\\\": \\\"STOP\\\", \\\"stopPrice\\\": 3999.0,\\\"price\\\": 2888.0,\\\"workingType\\\":\\\"CONTRACT_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orderId\":1802706634360750000,\"symbol\":\"ETH-USD\",\"positionSide\":\"SHORT\",\"side\":\"SELL\",\"type\":\"LIMIT\",\"price\":3777,\"quantity\":20,\"stopPrice\":0,\"workingType\":\"\",\"timeInForce\":\"\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約張數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT需要此參數\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT。當type為STOP或STOP_MARKET\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單號\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT需要此參數\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/00_post_trade_order.json\n// module id = YI4R\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place order\"},{\"type\":\"desc\",\"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)\",\"desc\":[{\"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\":\"
  • TRAILING_STOP_MARKET (Tracking Stop Loss Order) or TRAILING_TP_SL (Trailing TakeProfit/StopLoss Order): The price field or priceRate field needs to be filled in
  • \"},{\"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;

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

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

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

    3. set stopLoss and takeProfit when open position:using takeProfit and stopLoss fields

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"The minimum order quantity can be obtained from the api /openApi/swap/v2/quote/contracts: tradeMinQuantity, tradeMinUSDT\"}]},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"title\":\"MARKET\",\"desc\":\"Place an order at market price and set a take profit\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"}},{\"title\":\"STOP_MARKET\",\"desc\":\"Market stop loss order\",\"payload\":{\"type\":\"STOP_MARKET\",\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_PROFIT_MARKET\",\"desc\":\"Market price take profit order\",\"payload\":{\"type\":\"TAKE_PROFIT_MARKET\",\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"STOP\",\"desc\":\"Stop limit order\",\"payload\":{\"type\":\"STOP\",\"price\":50000,\"stopPrice\":50000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_PROFIT\",\"desc\":\"Limit price and take profit order\",\"payload\":{\"type\":\"TAKE_PROFIT\",\"price\":70000,\"stopPrice\":70000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_LIMIT\",\"desc\":\"Limit order with trigger\",\"payload\":{\"type\":\"TRIGGER_LIMIT\",\"price\":70000,\"stopPrice\":70000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"takeProfit\":\"\",\"recvWindow\":1000,\"stopLoss\":\"\",\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_MARKET\",\"desc\":\"Market order with trigger\",\"payload\":{\"type\":\"TRIGGER_MARKET\",\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"takeProfit\":\"\",\"recvWindow\":1000,\"stopLoss\":\"\",\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRAILING_STOP_MARKET\",\"desc\":\"Trailing Stop Market Order\",\"payload\":{\"type\":\"TRAILING_STOP_MARKET\",\"price\":0,\"stopPrice\":0,\"priceRate\":0.1,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRAILING_TP_SL\",\"desc\":\"Trailing TakeProfit or StopLoss\",\"payload\":{\"type\":\"TRAILING_TP_SL\",\"price\":0,\"stopPrice\":0,\"priceRate\":0.1,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726231037325}},{\"title\":\"POSITION_STOP_MARKET\",\"desc\":\"Market price position stop loss order\",\"payload\":{\"type\":\"STOP_MARKET\",\"closePosition\":true,\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"POSITION_TAKE_PROFIT_MARKET\",\"desc\":\"Market price position take profit order\",\"payload\":{\"type\":\"TAKE_PROFIT_MARKET\",\"closePosition\":true,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}}],\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"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. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId, clientOrderId only supports LIMIT/MARKET order type\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature; cutfee: Enable the guaranteed stop loss function and enable the VIP guaranteed stop loss fee reduction function. When stopGuaranteed is true or cutfee, the quantity field does not take effect. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature; cutfee: Enable the guaranteed stop loss function and enable the VIP guaranteed stop loss fee reduction function. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"orderID\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature; cutfee: Enable the guaranteed stop loss function and enable the VIP guaranteed stop loss fee reduction function. The VIP fee reduction only takes effect when placing a stop loss order.. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\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","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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"address\":\"0x8****11\",\"addressTag\":\"None\",\"amount\":\"4998.0\",\"coin\":\"USDT\",\"network\":\"BEP20\",\"timestamp\":\"1702619167144\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702619168218,\"data\":{\"id\":\"125*****4\"}}},\"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\":\"addressTag\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Tag or memo, some currencies support tag or memo\"},{\"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\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customer-defined withdrawal ID, a combination of numbers and letters, with a length of less than 100 characters\"},{\"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\":\"id\",\"type\":\"string\",\"description\":\"The platform returns the unique ID of the internal transfer record.\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customer-defined withdrawal ID, a combination of numbers and letters, with a length of less than 100 characters\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/06_post_wallets_withdraw.json\n// module id = YSKw\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/spot/websocket/introduce/03_data_compress.json\n// module id = YUWz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢幣對K線數據\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 僅支持查詢最近30天的K線數據
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"interval\":\"1m\",\"startTime\":1716912000000,\"endTime\":1716998400000,\"limit\":100,\"timestamp\":1717050357477},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"67792.6\",\"close\":\"67792.6\",\"high\":\"67792.6\",\"low\":\"67792.6\",\"volume\":\"3.00\",\"time\":1716998340000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"時間間隔,可選值有:1m,3m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,3d,1w,1M\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間,返回結果包含該時間的K線\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,返回結果不包含該時間的K線\"},{\"name\":\"limit\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"返回結果的數量,不填默認為500,最大為1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應時間,毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"open\",\"type\":\"string\",\"description\":\"開盤價\"},{\"name\":\"close\",\"type\":\"string\",\"description\":\"收盤價\"},{\"name\":\"high\",\"type\":\"string\",\"description\":\"最高價\"},{\"name\":\"low\",\"type\":\"string\",\"description\":\"最低價\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"交易數量,張數\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"k線時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market/04_get_kline.json\n// module id = Yskp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Funding Rate History\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • If both startTime and endTime are not sent, return the latest limit data.
  • \"},{\"type\":\"html\",\"text\":\"
  • The returned list is sorted by time from smallest to largest
  • \"},{\"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\":\"QNT-USDT\",\"limit\":2},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"QNT-USDT\",\"fundingRate\":\"0.00027100\",\"fundingTime\":1702713600000},{\"symbol\":\"QNT-USDT\",\"fundingRate\":\"0.00012800\",\"fundingTime\":1702684800000}]}},\"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\":\"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\"},{\"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\":\"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","var map = {\n\t\".\": \"2xjp\",\n\t\"./\": \"2xjp\",\n\t\"./00_post_trade_order_test\": \"CwX9\",\n\t\"./00_post_trade_order_test.json\": \"CwX9\",\n\t\"./01_post_trade_order\": \"vDBD\",\n\t\"./01_post_trade_order.json\": \"vDBD\",\n\t\"./01_post_trade_order_vst\": \"6dPc\",\n\t\"./01_post_trade_order_vst.json\": \"6dPc\",\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_check_pending_order\": \"26Si\",\n\t\"./08_check_pending_order.json\": \"26Si\",\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\"./17_get_trade_allFillOrders\": \"7iFh\",\n\t\"./17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./18_set_positionSide\": \"QEfH\",\n\t\"./18_set_positionSide.json\": \"QEfH\",\n\t\"./19_get_positionSide\": \"jzOs\",\n\t\"./19_get_positionSide.json\": \"jzOs\",\n\t\"./20_cancel_replace_order\": \"4bTX\",\n\t\"./20_cancel_replace_order.json\": \"4bTX\",\n\t\"./21_batch_cancel_replace_order\": \"/nLp\",\n\t\"./21_batch_cancel_replace_order.json\": \"/nLp\",\n\t\"./22_cancel_all_after\": \"1pQ9\",\n\t\"./22_cancel_all_after.json\": \"1pQ9\",\n\t\"./22_post_closePosition\": \"/qZT\",\n\t\"./22_post_closePosition.json\": \"/qZT\",\n\t\"./23_get_trade_allOrdersV2\": \"iRbd\",\n\t\"./23_get_trade_allOrdersV2.json\": \"iRbd\",\n\t\"./24_get_maint_margin_ratio\": \"OyBm\",\n\t\"./24_get_maint_margin_ratio.json\": \"OyBm\",\n\t\"./25_get_fill_history_detail\": \"PJcf\",\n\t\"./25_get_fill_history_detail.json\": \"PJcf\",\n\t\"./26_get_user_position_history\": \"sWA2\",\n\t\"./26_get_user_position_history.json\": \"sWA2\",\n\t\"./27_get_position_margin_history\": \"5iQm\",\n\t\"./27_get_position_margin_history.json\": \"5iQm\",\n\t\"./27_post_get_vst\": \"dtEQ\",\n\t\"./27_post_get_vst.json\": \"dtEQ\",\n\t\"./28_post_twap_order\": \"50Mv\",\n\t\"./28_post_twap_order.json\": \"50Mv\",\n\t\"./29_get_twap_open_orders\": \"0L6n\",\n\t\"./29_get_twap_open_orders.json\": \"0L6n\",\n\t\"./30_get_twap_history_orders\": \"srGS\",\n\t\"./30_get_twap_history_orders.json\": \"srGS\",\n\t\"./31_get_twap_order_detail\": \"+xXY\",\n\t\"./31_get_twap_order_detail.json\": \"+xXY\",\n\t\"./32_cancel_twap_order\": \"5pjb\",\n\t\"./32_cancel_twap_order.json\": \"5pjb\",\n\t\"./33_post_asset_mode\": \"thBV\",\n\t\"./33_post_asset_mode.json\": \"thBV\",\n\t\"./34_get_asset_mode\": \"cRAY\",\n\t\"./34_get_asset_mode.json\": \"cRAY\",\n\t\"./35_get_multi_asset_rule\": \"EWHP\",\n\t\"./35_get_multi_asset_rule.json\": \"EWHP\",\n\t\"./36_get_margin_asset\": \"/HCz\",\n\t\"./36_get_margin_asset.json\": \"/HCz\",\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\":\"Query Multi-Assets Mode\"},{\"type\":\"normal\",\"text\":\"Query account multi-assets mode\"},{\"type\":\"warning\",\"text\":\"Only available for live trading, live trading domain: https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/assetMode\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"assetMode\":\"multiAssetsMode\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"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\":\"assetMode\",\"type\":\"string\",\"description\":\"multi-assets mode, singleAssetMode or multiAssetsMode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/34_get_asset_mode.json\n// module id = ZFUX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query the deposit details of invited users\"},{\"type\":\"normal\",\"text\":\"Agent KOL can query the deposit details of the corresponding UID within a certain period of time through this interface.\"},{\"type\":\"html\",\"text\":\"
  • 1. The verification user must be a parent user and have an agent role;
  • \"},{\"type\":\"html\",\"text\":\"
  • 2. The UID queried must be a user directly or indirectly invited by the verification user;
  • \"},{\"type\":\"html\",\"text\":\"
  • 3. Currently, only deposit information is supported.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteRelationCheck\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\",\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"bizType\":\"1\",\"recWindow\":\"6000\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"list\":[{\"uid\":2489544,\"inviteResult\":true,\"directInvitation\":true,\"bizType\":1,\"bizTime\":1673674073000,\"assetType\":30,\"assetTypeName\":\"Deposit\",\"currencyName\":\"USDT\",\"currencyAmountVolume\":\"1000\"}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"YES\",\"description\":\"Inviting user UID, must be the parent user UID\"},{\"name\":\"bizType\",\"type\":\"int\",\"required\":\"YES\",\"description\":\"1:Deposit\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Start timestamp (days), only supports querying the last 90 days of data.\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"End timestamp (days). Only the last 90 days of data can be queried.\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page number for pagination, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"The number of pages must be greater than 0 and the maximum value is 100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: milliseconds. If not filled, the default is 5 seconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"request timestamp, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"Invited User UID\"},{\"name\":\"inviteResult\",\"type\":\"boolean\",\"description\":\"true: invitation relationship,false: non-invitation relationship\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true: Direct invitation, false: Indirect invitation\"},{\"name\":\"bizType\",\"type\":\"int\",\"description\":\"1:Deposi\"},{\"name\":\"bizTime\",\"type\":\"long\",\"description\":\"event time\"},{\"name\":\"assetType\",\"type\":\"int\",\"description\":\"Operation type breakdown\"},{\"name\":\"assetTypeName\",\"type\":\"string\",\"description\":\"Operation type subdivision name\"},{\"name\":\"currencyName\",\"type\":\"string\",\"description\":\"Currency\"},{\"name\":\"currencyAmountVolume\",\"type\":\"string\",\"description\":\"amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/04_get_Query_the_deposit_details.json\n// module id = ZKxt\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/q&a/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-03-28\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續修改接口:allFillOrders接口新增type、side和positionSide字段返回。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢contract接口Response新增ensureTrigger字段和triggerFeeRate字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢倉位接口Response新增updateTime字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢賬戶餘額接口新增shortUid字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢槓桿接口和修改槓桿接口新增availableLongVol、availableShortVol、availableLongVal、availableShortVal、maxPositionLongVal、maxPositionShortVal字段\"},{\"type\":\"html\",\"text\":\"永續新增接口:查詢所有訂單接口。\"},{\"type\":\"html\",\"text\":\"跟單新增:交易員按現貨買入訂單號賣出现货資產\"},{\"type\":\"html\",\"text\":\"永續新增:查詢當前全部掛單GET /openApi/swap/v2/trade/openOrders新增返回跟蹤委托、計劃反手訂單及新增返回是否保證止盈止損、只做Maker、回撤比例/價差字段\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-03-28.json\n// module id = ZNZv\n// module chunks = 3","var map = {\n\t\"./01_error_code.json\": \"XCkz\",\n\t\"./02_timestamp.json\": \"oPkH\",\n\t\"./03_digital_rule.json\": \"WihS\",\n\t\"./04_rate_limits.json\": \"p+dP\",\n\t\"./05_system_time.json\": \"lC7j\"\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 = \"ZP2+\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic \\.json$\n// module id = ZP2+\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\":\"code\",\"text\":\"{\\\"ping\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"},{\"type\":\"normal\",\"text\":\"When the Websocket Client receives this heartbeat message, it should return pong message.\"},{\"type\":\"code\",\"text\":\"{\\\"pong\\\":\\\"2177c68e4d0e45679965f482929b59c2\\\",\\\"time\\\":\\\"2022-06-07T16:27:36.323+0800\\\"}\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/introduce/04_heart_beat.json\n// module id = Ze9p\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\":\"SNAPSHOT\"}]},{\"type\":\"warning\",\"text\":\"Each time a connection is successfully established, a full data push will occur once, followed by another full push every 5 seconds.\"},{\"type\":\"warning\",\"text\":\"Account data no longer need to subscribe to channel type,after connect wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"push timestamp: 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\"},{\"name\":\"cr\",\"type\":\"\",\"description\":\"realized profit and loss of positions:1.32130000\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"充值記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702622588000\",\"recvWindow\":\"5000\",\"startTime\":\"1700894588000\",\"timestamp\":\"1702622588533\"},\"response\":[{\"amount\":\"49999.00000000000000000000\",\"coin\":\"USDTTRC20\",\"network\":\"TRC20\",\"status\":1,\"address\":\"TP******B4v\",\"addressTag\":\"\",\"txId\":\"60*****1d\",\"insertTime\":1701557778000,\"unlockConfirm\":\"2/2\",\"confirmTimes\":\"2/2\"}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"否\",\"description\":\"幣的名稱\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"否\",\"description\":\"状态(0-進行中 6-已上鏈 1-已完成)\"},{\"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-進行中 6-已上鏈 1-已完成)\"},{\"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\":\"網絡確認次數\"},{\"name\":\"sourceAddress\",\"type\":\"String\",\"description\":\"來源地址\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/03_get_deposit_hisrec.json\n// module id = ZlbJ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place order\"},{\"type\":\"desc\",\"text\":\"Can be used to place 1 order on spot\",\"desc\":[{\"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\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/spot/trading-rules/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/spot/v1/common/symbols\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"For price reference, please check: GET /openApi/spot/v1/ticker/24hr\"},{\"type\":\"html\",\"text\":\"For Minimum/Maximum transaction amount reference, please check: GET /openApi/spot/v1/common/symbols\"}]},{\"type\":\"normal\",\"text\":\"If the spot trader of copy trading has enabled the function\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"The order frequency can only be 1/s, exceeding it will be limited frequency.\"},{\"type\":\"html\",\"text\":\"BUY can use this endpoint:POST /openApi/spot/v1/trade/order\"},{\"type\":\"html\",\"text\":\"SELL need to use another specific endpoint:POST /openApi/copyTrading/v1/spot/trader/sellOrder\"}]},{\"type\":\"html\",\"text\":\"

    Order Type

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

    MARKET: Market Price
    LIMITED: Limit Price
    TAKE_ STOP_ Limit: Limit Price Stop Profit Stop Loss Order
    TAKE_ STOP_ MARKET: Market price stop loss order
    TRIGGER_ Limit: Price limit plan commission
    TRIGGER_ Market: Market price plan commission

    \"}]},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"title\":\"MARKET\",\"desc\":\"Place an order at the market price\",\"payload\":{\"type\":\"MARKET\",\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_STOP_MARKET\",\"desc\":\"Market price stop profit and stop loss order\",\"payload\":{\"type\":\"TAKE_STOP_MARKET\",\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_STOP_LIMIT\",\"desc\":\"Limit price, take profit and stop loss order\",\"payload\":{\"type\":\"TAKE_STOP_LIMIT\",\"price\":60000,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUYE\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_LIMIT\",\"desc\":\"TRIGGER LIMIT\",\"payload\":{\"type\":\"TRIGGER_LIMIT\",\"price\":60000,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_MARKET\",\"desc\":\"TRIGGER MARKET\",\"payload\":{\"type\":\"TRIGGER_MARKET\",\"stopPrice\":60000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"newClientOrderId\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"timestamp\":1726223068783}}],\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"NEMS-USDT\",\"orderId\":1735963671248581000,\"transactTime\":1702720966528,\"price\":\"0.1557\",\"origQty\":\"115\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"SELL\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":100202,\"msg\":\"Insufficient assets, please verify the assets status\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" traders prohibit openApi from placing orders\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100414,\"msg\":\"Your account is under risk control or without KYC, it's not allowed to place spot order via api,currently,please contact customer service\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\" check limit entrust value fail, entrust volume too low, userID: ***, minVolume:69.93, entrustVolume: 54.02\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\" check param fail:entrust volume and value is 0.0\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100414,\"msg\":\" risk control check fail, code(1), reason()\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100490,\"msg\":\" spot symbol is offline\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100500,\"msg\":\"order open error:The current system is busy, please try again later, and the previous cancel order request result:false, order not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100440,\"msg\":\" check price diverge fail, entrustPrice to high, userID: ***,entrustPrice:0.4950, indexPrice:0.0910,tradePrice: 0.0910, maxEntrustPriceDiverge:0.4550, minEntrustPriceDiverge:0.0182,minDivergeRatio:0.2000000000,maxDivergeRatio:5.0000000000\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\"price can't be lte 0 in limit order\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\"The symbol you request is not available to place order currently, please verify symbol's status by api:/openApi/spot/v1/common/symbols\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" CheckUserAndSymbol: contract not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100421,\"msg\":\" cancel fail, order not exist\",\"debugMsg\":\"\"}},{\"desc\":\"\",\"sample\":{\"code\":100400,\"msg\":\"the order you want to cancel is FILLED or CANCELLED already, or is not a valid order id ,please verify\",\"debugMsg\":\"\"}}]},\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"order trigger price, used for TAKE_ STOP_ LIMITED,TAKE_ STOP_ MARKET, TRIGGER_ LIMITED, TRIGGER_ Market type orders.\"},{\"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,if quantity and quoteOrderQty are input at the same time, quantity will be used first, and quoteOrderQty will be discarded\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, e.g., 10000USDT\"},{\"name\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Only letters, numbers and _,Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same newClientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in force, currently supports PostOnly, GTC, IOC. Default is GTC if not specified.\"},{\"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_a_order.json\n// module id = ZnNv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"調整槓桿倍數\"},{\"type\":\"normal\",\"text\":\"調整用戶在指定symbol合約的開倉槓桿。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"leverage\":\"8\",\"side\":\"SHORT\",\"symbol\":\"ETH-USDT\",\"timestamp\":\"1702733704941\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"leverage\":8,\"symbol\":\"ETH-USDT\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"margin is not enough\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'Side' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'Side' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"雙向持倉模式下,多倉或者空倉的槓桿,LONG表示多倉,SHORT表示空倉;單向持倉模式下,只能傳BOTH。\"},{\"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\":\"交易對\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"可開多數量\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"可開空數量\"},{\"name\":\"availableLongVal\",\"type\":\"string\",\"description\":\"可開多價值\"},{\"name\":\"availableShortVal\",\"type\":\"string\",\"description\":\"可開空價值\"},{\"name\":\"maxPositionLongVal\",\"type\":\"string\",\"description\":\"持倉最大可開多價值\"},{\"name\":\"maxPositionShortVal\",\"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_limit.json\": \"WMCK\",\n\t\"./02_connect.json\": \"Jf00\",\n\t\"./03_data_compress.json\": \"eQk0\",\n\t\"./04_heart_beat.json\": \"nCmZ\",\n\t\"./05_subscribe.json\": \"D11h\",\n\t\"./06_cancel_subscribe.json\": \"8PHc\"\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\":\"title\",\"text\":\"2023-09-18\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續合約:新增下單同時支持設置止盈止損\"},{\"type\":\"html\",\"text\":\"永續合約:新增歷史成交訂單返回交易對信息\"},{\"type\":\"html\",\"text\":\"永續合約:新增異步查詢接口增加以幣為單位的返回\"},{\"type\":\"html\",\"text\":\"永續合約::/openApi/swap/v2/user/positions返回強平價\"},{\"type\":\"html\",\"text\":\"永續合約:新增合約下單,查單,支持返回workingType\"},{\"type\":\"html\",\"text\":\"測序序列\"},{\"type\":\"html\",\"text\":\"錢包:新增子賬戶充值地址相關創建、查詢接口 接口\"},{\"type\":\"html\",\"text\":\"跟單系統: 新增首次開放跟單API\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-09-18.json\n// module id = a/u1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶現貨資產\"},{\"type\":\"normal\",\"text\":\"查詢子賬戶現貨資產\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/assets\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":\"16477999\"},\"response\":{\"code\":0,\"timestamp\":1701077668349,\"data\":{\"balances\":[{\"asset\":\"ETH\",\"free\":0.0068,\"locked\":0}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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-tw/cswap/websocket/introduce/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-11-15\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位:新增‘切換保證金模式’接口。\"},{\"type\":\"html\",\"text\":\"永續U本位:新增‘查詢保證金模式’接口。\"},{\"type\":\"html\",\"text\":\"永續U本位:新增‘查詢聯合保證金規則’接口。\"},{\"type\":\"html\",\"text\":\"永續U本位:新增‘查詢聯合保證金抵押資產情況’接口。\"},{\"type\":\"html\",\"text\":\"永續U本位:一個websocket限制最多200個topic,超過將返回80403錯誤碼。\"},{\"type\":\"html\",\"text\":\"永續U本位:一個IP限制最多60個websocket,超過將建立連結失敗。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-11-15.json\n// module id = aAh/\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨:新增一個websocket只能成功訂閱200個dataType的限制。\"},{\"type\":\"html\",\"text\":\"現貨:新增一個ip只能最多60個websocket的限制。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-08-17.json\n// module id = aG00\n// module chunks = 3","var map = {\n\t\".\": \"GHqA\",\n\t\"./\": \"GHqA\",\n\t\"./03_get_deposit_hisrec\": \"ZlbJ\",\n\t\"./03_get_deposit_hisrec.json\": \"ZlbJ\",\n\t\"./04_get_withdraw_history\": \"DNed\",\n\t\"./04_get_withdraw_history.json\": \"DNed\",\n\t\"./05_post_wallets_coins\": \"BYvq\",\n\t\"./05_post_wallets_coins.json\": \"BYvq\",\n\t\"./06_post_wallets_withdraw\": \"yxdj\",\n\t\"./06_post_wallets_withdraw.json\": \"yxdj\",\n\t\"./13.get_wallet_queryDepositAddress\": \"WnFl\",\n\t\"./13.get_wallet_queryDepositAddress.json\": \"WnFl\",\n\t\"./14_get_risk_deposit_records\": \"JbVL\",\n\t\"./14_get_risk_deposit_records.json\": \"JbVL\",\n\t\"./index\": \"GHqA\",\n\t\"./index.js\": \"GHqA\"\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 = \"aLYx\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet ^.*$\n// module id = aLYx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel multiple orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderIds\":\"1735964997957275648,1735965127519326208\",\"symbol\":\"GM-USDT\",\"timestamp\":\"1702721320676\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"GM-USDT\",\"orderId\":1735964997957275600,\"transactTime\":1702721242701,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"8061558\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721242645506402\"},{\"symbol\":\"GM-USDT\",\"orderId\":1735965127519326200,\"transactTime\":1702721249787,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"5806281\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721249647382871\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"orderIds\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Order Ids: for example:orderIds=id1,id2,id3\"},{\"name\":\"clientOrderIDs\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Custom order IDs, for example: clientOrderIDs=id1,id2,id3\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"description\":\"trigger price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/022_post_trade_orders_cancel.json\n// module id = aTY/\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-12-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Spot: Added field for percentage change in price in the last 24 hours\"},{\"type\":\"html\",\"text\":\"Spot: Added support for querying the list of open orders with an optional symbol parameter. If the symbol parameter is not provided, it will return all open orders for the user across all trading pairs\"},{\"type\":\"html\",\"text\":\"Perpetual one-click liquidation API: Add the non-mandatory string field 'symbol'. If not filled, it will liquidate all positions at market price. If filled, it will liquidate the corresponding symbol position at market price.\"},{\"type\":\"html\",\"text\":\"Perpetual cancel all orders API: 1. Change the input parameter 'symbol' to non-mandatory. If not filled, it will cancel all orders. If filled, it will cancel the orders for the corresponding symbol. 2. Add a non-mandatory input parameter 'type'. If filled, it will cancel orders of the specified type. If not filled, it will cancel orders of all types.\"},{\"type\":\"html\",\"text\":\"Sub-account: Query sub-account list: Adjust the input field 'limit' to a maximum of 1000.\"},{\"type\":\"html\",\"text\":\"Sub-account: Create sub-account API Key: Add a new parameter value '5' for the input field 'permissions' - Withdrawal.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-12-08.json\n// module id = aUA7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Batch inquiry of sub account asset overview\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/allAccountBalance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":25316652,\"accountType\":\"sopt\",\"pageIndex\":1,\"pageSize\":10,\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"result\":[{\"subUid\":\"16477999\",\"accountBalances\":[{\"accountType\":\"sopt\",\"usdtBalance\":\"100\"}]}],\"pageId\":1,\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"否\",\"description\":\"Sub account uid\"},{\"name\":\"accountType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"Account type, if left blank, all assets of the account will be checked by default. spot: spot (fund account), stdFutures: standard futures account, coinMPerp: coin base account, USDTMPerp: U base account, copyTrading: copy trading account, grid: grid account, eran: wealth account, c2c: c2c account.\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"Page number, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"Paging size, must be greater than 0, maximum 10\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"Request valid time window value, Unit: milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"Timestamp of initiating the request, Unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"Sub account uid\"},{\"name\":\"accountType\",\"type\":\"string\",\"description\":\"Account type, if left blank, all assets of the account will be checked by default. spot: spot (fund account), stdFutures: standard futures account, coinMPerp: coin base account, USDTMPerp: U base account, copyTrading: copy trading account, grid: grid account, eran: wealth account, c2c: c2c account.\"},{\"name\":\"usdtBalance\",\"type\":\"string\",\"description\":\"Equivalent to USDT amount\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/22_sub_account_allAccountBalance.json\n// module id = aaNH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"資產劃轉記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_PFUTURES\",\"timestamp\":\"1702624474847\"},\"response\":{\"total\":2,\"rows\":[{\"asset\":\"VST\",\"amount\":\"100000.00000000000000000000\",\"type\":\"FUND_PFUTURES\",\"status\":\"CONFIRMED\",\"tranId\":37600111,\"timestamp\":1702252271000},{\"asset\":\"USDT\",\"amount\":\"2218.72352626000000000000\",\"type\":\"FUND_PFUTURES\",\"status\":\"CONFIRMED\",\"tranId\":37600222,\"timestamp\":1702351131000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"是\",\"description\":\"劃轉類型(查詢條件type或者tranId,二選一)\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"交易ID(查詢條件type或者tranId,二選一)\"},{\"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","var map = {\n\t\"./01_balance.json\": \"bzx+\",\n\t\"./02_order.json\": \"K1eD\",\n\t\"./03_setting.json\": \"2Cei\"\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 = \"amGg\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/account \\.json$\n// module id = amGg\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-11-22\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨深度websocket:現已支持5/10/20/50/100檔位\"},{\"type\":\"html\",\"text\":\"現貨深度rest api:現已支持最高1000檔位\"},{\"type\":\"html\",\"text\":\"查詢用戶萬向劃轉歷史:request新增 參數名:tranId\"},{\"type\":\"html\",\"text\":\"獲取充值歷史(支持多網絡):request/response status字段,描述改為: 狀態 0-進行中 6-已上鏈 1-已完成\"},{\"type\":\"html\",\"text\":\"獲取提幣歷史(支持多網絡):request/response status字段, 描述改為: 狀態 4-審核中 5-已失敗 6-已完成,reqeust新增 參數名: id,response刪除transferType字段\"},{\"type\":\"html\",\"text\":\"主賬號查詢內轉記錄:response新增參數名:status-狀態, 4-審核中 5-已失敗 6-已完成\"},{\"type\":\"html\",\"text\":\"子賬戶內部轉賬:callingCode字段,當userAccountType=2時必填\"},{\"type\":\"html\",\"text\":\"子賬號查詢子賬戶內轉記錄:response新增 參數名status: 4-審核中 5-已失敗 6-已完成 \"},{\"type\":\"html\",\"text\":\"主賬號查詢子賬號充值記錄:request/response status字段,描述改為: 狀態 0-進行中 6-已上鏈 1-已完成\"},{\"type\":\"html\",\"text\":\"查詢所有的幣種:reqeust新增 參數名: coin,response Network對象新增字段 depositEnable/depositMin\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-11-22.json\n// module id = axDH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢apikey信息\"},{\"type\":\"normal\",\"text\":\"查詢apikey信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/apiKey/query\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":16789999},\"response\":{\"code\":0,\"timestamp\":1702351994615,\"data\":{\"apiInfos\":[{\"apiKey\":\"zF*******zQ\",\"note\":\"note****\",\"permissions\":[1,2,3,4,7],\"ipAddresses\":[\"\"],\"status\":0,\"createTime\":1702289687211,\"updateTime\":1702289687000}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"用戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"否\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"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\":\"查詢開倉槓桿\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/leverage\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718354677397,\"data\":{\"symbol\":\"BTC-USD\",\"longLeverage\":4,\"shortLeverage\":8,\"maxLongLeverage\":150,\"maxShortLeverage\":150,\"availableLongVol\":\"15000000\",\"availableShortVol\":\"15000000\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"longLeverage\",\"type\":\"int64\",\"description\":\"多倉槓桿倍數\"},{\"name\":\"shortLeverage\",\"type\":\"int64\",\"description\":\"空倉槓桿倍數\"},{\"name\":\"maxLongLeverage\",\"type\":\"int64\",\"description\":\"最大多倉槓桿倍數\"},{\"name\":\"maxShortLeverage\",\"type\":\"int64\",\"description\":\"最大空倉槓桿倍數\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"可開多數量\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"可開空數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/02_get_leverage.json\n// module id = bFqw\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-11-10\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續合約API:支援模擬盤交易下單接口\"},{\"type\":\"html\",\"text\":\"永續合約WebSocket:支援返回觸發價格欄位:sp\"},{\"type\":\"html\",\"text\":\"永續合約WebSocket:訂閱深度支援返回時間欄位\"},{\"type\":\"html\",\"text\":\"永續合約/現貨:24小時價格變動情況支援返回買一賣一價格\"},{\"type\":\"html\",\"text\":\"現貨WebSocket:K線訂閱支援更多內部類型:1分鐘/5分鐘/30分鐘/.../1天...等\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-11-10.json\n// module id = bGx6\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Isolated Margin Change History\"},{\"type\":\"normal\",\"text\":\"Used to query the history of margin adjustments for U-margin contracts in the last 30 days.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionMargin/history\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDT\",\"positionId\":\"1847596444958068736\",\"startTime\":1728722649000,\"endTime\":1729336359406,\"pageIndex\":1,\"pageSize\":2,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"records\":[{\"symbol\":\"BTC-USDT\",\"positionId\":\"1847596444958068736\",\"changeReason\":\"OpenPosition\",\"marginChange\":\"7586.46841066\",\"marginAfterChange\":\"7586.46841066\",\"time\":1729336294000}],\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g.: BTC-USDT, please use uppercase letters\"},{\"name\":\"positionId\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Position ID\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Start timestamp, in milliseconds\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"End timestamp, in milliseconds\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Page number, must be greater than 0, if not provided, the default is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Page size, must be greater than 0, maximum value is 100\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid window value, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, e.g.: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"changeReason\",\"type\":\"string\",\"description\":\"ManualMarginAddition: Manually add margin / ManualMarginReduction: Reduce margin manually / IncreaseLeverage: Increase leverage / ReduceLeverage: Reduce leverage / OpenPosition: Open position / ClosePosition: Close position / Liquidation: Liquidation / ADL:Automatically reduce positions / CloseOpenPosition : Close first and then open a position /FundingFeeSettlement: Funding rate settlement/ AutoMarginAddition: Automatic margin addition\"},{\"name\":\"marginChange\",\"type\":\"string\",\"description\":\"change amount\"},{\"name\":\"marginAfterChange\",\"type\":\"string\",\"description\":\"Total amount after change\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Change time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/27_get_position_margin_history.json\n// module id = bHz9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Rate limit\"},{\"type\":\"html\",\"text\":\"If the request is too frequent, the system will automatically restrict the request and recover after 5 minutes;\"},{\"type\":\"html\",\"text\":\"Based on account UID rate limit, each api has its own independent rate limit, which does not affect each other\"},{\"type\":\"html\",\"text\":\"Users can check the current frequency limit usage and the expiration of the time window according to \\\"X-RateLimit-Requests-Remain\\\" (remaining number of frequency limits) and \\\"X-RateLimit-Requests-Expire\\\" (window expiration time) in the Http Header. time, and dynamically adjust your request frequency based on this value.\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"The API requests are subject to different rate limits based on UID and IP. Please refer to the respective API documentation for UID rate limits. IP rate limits are based on the following grouping rules:\"},{\"type\":\"html\",\"text\":\"
  • Market API Group [1]: The total IP rate limit for all interfaces within the group is 100 requests per 10 seconds.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [2]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 100 requests per 10 seconds for each interface.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [3]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 200 requests per 10 seconds for each interface.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/basic/04_rate_limits.json\n// module id = bIsO\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨:新增 24小時價格變動情況 接口\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-08-23.json\n// module id = bKtD\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢單個OCO訂單列表\"},{\"type\":\"normal\",\"text\":\"查詢OCO訂單清單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/orderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"clientOrderId\":\"12345610027\",\"orderListId\":\"1827968196914479104\",\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460545\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":87000,\"price\":88000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"\"},{\"transactionTime\":1724656554890,\"orderId\":\"1827968197060460544\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1827968196914479104\",\"status\":\"\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderListId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"OCO訂單組的ID,orderListId和clientOrderId必須填寫其中一個。\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義的OCO訂單組的ID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"委託時間\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit:OCO限價單,ocoTps:OCO止盈止損單\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"觸發價格\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO訂單組ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/102_get_one_oco_order.json\n// module id = bM6w\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@100ms, BTC-USDT@depth20@200ms, BTC-USDT@depth100@500ms.\"},{\"type\":\"code\",\"text\":\"如果不傳,默認為500ms.\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth5@500ms\\\"}\"},\"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\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"間隔, 如 100ms,200ms,500ms,1000ms\"}]},{\"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\":\"key2\",\"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檔\"}]},{\"type\":\"interval\",\"key\":\"key3\",\"data\":[{\"name\":\"100ms\",\"type\":\"\",\"description\":\"100毫秒\"},{\"name\":\"200ms\",\"type\":\"\",\"description\":\"200毫秒\"},{\"name\":\"500ms\",\"type\":\"\",\"description\":\"500毫秒\"},{\"name\":\"1000ms\",\"type\":\"\",\"description\":\"1000毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/01_dept_info_interval.json\n// module id = bP1Q\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Asset Transfer\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/api/v3/post/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/post/asset/transfer\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"asset\":\"USDT\",\"amount\":\"1095\",\"type\":\"FUND_PFUTURES\"},\"response\":{\"tranId\":\"17********28\"}},\"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 python = `\nimport json\nimport websocket\nimport gzip\nimport io\nURL=\"HHOOSSTT\" \nCHANNEL= AAPPII\nclass Test(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 \"ping\" in utf8_data: # 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 test = Test()\n test.start()`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/spot/python.js","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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"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\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"ACCOUNT_UPDATE\\\"}\"},\"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\":\"資產帳戶變動後的帳戶總資產\"},{\"name\":\"lk\",\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDC\",\"timestamp\":\"1702721719312\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BNB-USDC\",\"orderId\":1735930294290081300,\"price\":\"255.27\",\"StopPrice\":\"0\",\"origQty\":\"0.16261\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"time\":1702713008841,\"updateTime\":1702713008841,\"origQuoteOrderQty\":\"0\",\"fee\":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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"下單時間戳\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"更新時間戳\"},{\"name\":\"origQuoteOrderQty\",\"type\":\"string\",\"description\":\"下單金額\"},{\"name\":\"stopPrice\",\"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","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/codeWs/spot/shell.js","module.exports = [{\"type\":\"hash\",\"text\":\"查詢OCO历史訂單列表\"},{\"type\":\"normal\",\"text\":\"查詢OCO历史訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/historyOrderList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"startTime\":1724256000000,\"endTime\":1724342400000,\"pageIndex\":1,\"pageSize\":100,\"timestamp\":1702721583560},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":[{\"transactionTime\":1724297880000,\"orderId\":\"1826458150027395073\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoTps\",\"side\":\"BUY\",\"triggerPrice\":64000,\"price\":65000,\"quantity\":0.001,\"orderListId\":\"1826458148019142656\",\"status\":\"FAILED\"},{\"transactionTime\":1724297880000,\"orderId\":\"1826458150027395072\",\"clientOrderId\":\"\",\"symbol\":\"BTC-USDT\",\"orderType\":\"ocoLimit\",\"side\":\"BUY\",\"triggerPrice\":0,\"price\":48000,\"quantity\":0.001,\"orderListId\":\"1826458148019142656\",\"status\":\"CANCELED\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"頁數\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"每頁數量\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間,时间戳,毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間,时间戳,毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"transactionTime\",\"type\":\"int64\",\"description\":\"委託時間\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"orderType\",\"type\":\"string\",\"description\":\"ocoLimit:OCO限價單,ocoTps:OCO止盈止損單\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"triggerPrice\",\"type\":\"float64\",\"description\":\"觸發價格\"},{\"name\":\"price\",\"type\":\"float64\",\"description\":\"委託價格\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"委託數量\"},{\"name\":\"orderListId\",\"type\":\"string\",\"description\":\"OCO訂單組ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/104_get_all_history_oco_order.json\n// module id = bjJG\n// module chunks = 3","var map = {\n\t\"./00_post_trade_order_test.json\": \"TrnZ\",\n\t\"./01_post_trade_order.json\": \"YLkf\",\n\t\"./01_post_trade_order_vst.json\": \"dww0\",\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_check_pending_order.json\": \"fLAw\",\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\"./17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./18_set_positionSide.json\": \"wp4b\",\n\t\"./19_get_positionSide.json\": \"n7WW\",\n\t\"./20_cancel_replace_order.json\": \"vKvg\",\n\t\"./21_batch_cancel_replace_order.json\": \"nNrq\",\n\t\"./22_cancel_all_after.json\": \"6Ivy\",\n\t\"./22_post_closePosition.json\": \"JRrP\",\n\t\"./23_get_trade_allOrdersV2.json\": \"wYbs\",\n\t\"./24_get_maint_margin_ratio.json\": \"OkoV\",\n\t\"./25_get_fill_history_detail.json\": \"l3pU\",\n\t\"./26_get_user_position_history.json\": \"xptQ\",\n\t\"./27_get_position_margin_history.json\": \"bHz9\",\n\t\"./27_post_get_vst.json\": \"cn9g\",\n\t\"./28_post_twap_order.json\": \"6+7u\",\n\t\"./29_get_twap_open_orders.json\": \"2vkv\",\n\t\"./30_get_twap_history_orders.json\": \"BBsp\",\n\t\"./31_get_twap_order_detail.json\": \"NQ2q\",\n\t\"./32_cancel_twap_cancel_order.json\": \"iXtv\",\n\t\"./33_post_asset_mode.json\": \"xS3w\",\n\t\"./34_get_asset_mode.json\": \"ZFUX\",\n\t\"./35_get_multi_asset_rule.json\": \"jifI\",\n\t\"./36_get_margin_asset.json\": \"+eKI\"\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","var map = {\n\t\"./01_get_Query_Invited_Users.json\": \"Bd4q\",\n\t\"./02_get_Daily_Commission_Query.json\": \"Czkf\",\n\t\"./03_get_Query_agent_user_nformation.json\": \"N9hH\",\n\t\"./04_get_Query_the_deposit_details.json\": \"ZKxt\",\n\t\"./05_get_Query_API_transaction_commission.json\": \"mYC+\",\n\t\"./06_get_Query_partner_information.json\": \"sHlI\"\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 = \"bz8+\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent \\.json$\n// module id = bz8+\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\":\"warning\",\"text\":\"Account data no longer need to subscribe to channel type,after connect wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 ,All event types will be pushed\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"push timestamp: 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/cswap/websocket/account/01_balance.json\n// module id = bzx+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢訂單\"},{\"type\":\"normal\",\"text\":\"查詢訂單詳情\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/orderDetail\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1736012449498123456\",\"symbol\":\"OP-USDT\",\"timestamp\":\"1702733255486\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"OP-USD\",\"orderId\":1736012449498123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"1.0\",\"price\":\"2.1710\",\"executedQty\":\"0.0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1702732596168,\"updateTime\":1702732596188,\"clientOrderId\":\"l*****e\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"訂單號\"},{\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"有效方式,目前支持GTC、IOC、FOK和PostOnly\"}]},{\"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-tw/cswap/api/trade/12_get_trade_order.json\n// module id = c76v\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\":\"查詢賬戶保證金模式保證金模式\"},{\"type\":\"warning\",\"text\":\"僅實盤可以調用,實盤域名:https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/assetMode\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"assetMode\":\"multiAssetsMode\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"assetMode\",\"type\":\"string\",\"description\":\"保證金模式,singleAssetMode 或 multiAssetsMode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/34_get_asset_mode.json\n// module id = cRAY\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"歷史成交記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/market/his/v1/trade\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720325973,\"data\":[{\"tid\":\"170891918044290305561\",\"t\":1708919180442,\"ms\":2,\"s\":\"BTC-USDT\",\"p\":51496.35,\"v\":0.00063},{\"tid\":\"170891917959890305560\",\"t\":1708919179598,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51495.89,\"v\":0.00188},{\"tid\":\"170891917942490305559\",\"t\":1708919179424,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51496.159,\"v\":0.00075},{\"tid\":\"170891917907790305558\",\"t\":1708919179077,\"ms\":2,\"s\":\"BTC-USDT\",\"p\":51496.13,\"v\":0.01044},{\"tid\":\"170891917896690305557\",\"t\":1708919178966,\"ms\":1,\"s\":\"BTC-USDT\",\"p\":51496,\"v\":0.00129}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"默認100,最多500\"},{\"name\":\"fromId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"最後一個記錄的tid\"}]},{\"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\":\"buyerMaker\",\"type\":\"boolean\",\"description\":\"是否買方\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/10_get_ market_histroy_traders.json\n// module id = cRRp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂單最新成交記录\"},{\"type\":\"normal\",\"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\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},\"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\":\"q\",\"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\":\"html\",\"text\":\"
  • 用於查詢聚合深度
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v2/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\",\"depth\":20,\"type\":\"step0\"},\"response\":{\"code\":0,\"timestamp\":1707143021361,\"data\":{\"bids\":[[\"43340.92\",\"1.91154\"],[\"43340.88\",\"3.85804\"],[\"43340.85\",\"4.26840\"],[\"43340.83\",\"2.08925\"],[\"43340.81\",\"2.04579\"],[\"43340.79\",\"1.58294\"],[\"43340.77\",\"1.54605\"],[\"43340.76\",\"2.11097\"],[\"43340.74\",\"1.82713\"],[\"43340.72\",\"1.97847\"],[\"43340.69\",\"3.12035\"],[\"43340.65\",\"3.49761\"],[\"43340.61\",\"3.61076\"],[\"43340.56\",\"4.56538\"],[\"43340.47\",\"4.3701\"],[\"43340.46\",\"3.47356\"],[\"43340.44\",\"10.99309\"],[\"43340.23\",\"9.78746\"],[\"43339.90\",\"9.77564\"],[\"43339.86\",\"11.06385\"]],\"asks\":[[\"43341.79\",\"5.76033\"],[\"43341.86\",\"3.9063\"],[\"43341.88\",\"5.76033\"],[\"43341.90\",\"4.98845\"],[\"43341.92\",\"4.98845\"],[\"43341.94\",\"5.25236\"],[\"43341.95\",\"22.48145\"],[\"43341.98\",\"9.40042\"],[\"43342.00\",\"13.58550\"],[\"43342.02\",\"9.44509\"],[\"43342.05\",\"5.25236\"],[\"43342.07\",\"4.83999\"],[\"43342.08\",\"4.74583\"],[\"43342.10\",\"4.58787\"],[\"43342.11\",\"5.61344\"],[\"43342.13\",\"4.57564\"],[\"43342.15\",\"5.14039\"],[\"43342.17\",\"4.65339\"],[\"43342.19\",\"5.32833\"],[\"43342.22\",\"9.74216\"]],\"ts\":1707143021361}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對,如:BTC_USDT\"},{\"name\":\"depth\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"查詢深度\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"step0默認精度,step1到step5,分别是10到100000倍精度\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"bids\",\"type\":\"array\",\"description\":\"買盤深度,陣列元素第一個為價格,第二個為數量\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"賣盤深度,陣列元素第一個為價格,第二個為數量\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/06_get_market_agg_depth.json\n// module id = cYhj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷OCO訂單列表\"},{\"type\":\"normal\",\"text\":\"用於取消整個OCOC訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1735964079647111280\",\"clientOrderId\":\"123456789\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702721073626\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orderId\":\"1827980248763858944\",\"clientOrderId\":\"\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"限價單或者止盈止損單的訂單id,orderId和clientOrderId必須填一個,\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"限價單或者止盈止損單的用戶自定義訂單ID\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/101_cancel_one_oco_order.json\n// module id = cfpy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get sub-account deposit records\"},{\"type\":\"normal\",\"text\":\"This node is used for the main user to query the deposit history of the sub-user. Only accessible to the main user.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/subHisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":\"16789999\",\"recvWindow\":\"10000\"},\"response\":{\"code\":0,\"timestamp\":1702436064748,\"data\":{\"total\":0,\"data\":[]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Transfer currency name\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Sub-user UID, when not filled, query the deposit records of all sub-accounts under the parent username\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Status (0-In progress 6-Chain uploaded 1-Completed)\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Start time\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"no\",\"description\":\"End time\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"Internal transfer record list\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"Sub-account UID\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"Transfer amount\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Currency name\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Network name\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"Status (0-In progress 6-Chain uploaded 1-Completed)\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"Deposit address\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"Deposit address tag\"},{\"name\":\"txId\",\"type\":\"string\",\"description\":\"Transaction ID\"},{\"name\":\"insertTime\",\"type\":\"long\",\"description\":\"Transaction scan time\"},{\"name\":\"transferType\",\"type\":\"int\",\"description\":\"0-deposit\"},{\"name\":\"unlockConfirmTimes\",\"type\":\"int\",\"description\":\"Number of confirmations required to unlock the deposit\"},{\"name\":\"confirmTimes\",\"type\":\"int\",\"description\":\"Number of confirmations\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/16.get_wallet_querySubDepositRecords.json\n// module id = cjvr\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"獲取賬戶損益資金流水\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約的資金流水。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":{\"startTime\":\"1702713615001\",\"endTime\":\"1702731787011\",\"limit\":\"1000\",\"timestamp\":\"1702731787011\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"LDO-USDT\",\"incomeType\":\"FUNDING_FEE\",\"income\":\"-0.0292\",\"asset\":\"USDT\",\"info\":\"Funding Fee\",\"time\":1702713615000,\"tranId\":\"170***6*2_3*9_20***97\",\"tradeId\":\"170***6*2_3*9_20***97\"}]}},\"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\":\"系統扣除\"},{\"name\":\"GTD_PRICE\",\"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\":\"Apply VST\"},{\"type\":\"normal\",\"text\":\"Apply VST assets for demo trading\"},{\"type\":\"warning\",\"text\":\"Only available for demo trading, demo domain: https://open-api-vst.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/getVst\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1730863321895,\"data\":{\"amount\":20000}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"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 in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"flot64\",\"description\":\"Amount of VST applied in this request\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/27_post_get_vst.json\n// module id = cn9g\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢資金費率歷史\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 如果 startTime 和 endTime 都未發送, 返回最近 limit 條數據.
  • \"},{\"type\":\"html\",\"text\":\"
  • 返回的列表按時間正向排序
  • \"},{\"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\":\"QNT-USDT\",\"limit\":2},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"QNT-USDT\",\"fundingRate\":\"0.00027100\",\"fundingTime\":1702713600000},{\"symbol\":\"QNT-USDT\",\"fundingRate\":\"0.00012800\",\"fundingTime\":1702684800000}]}},\"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\"},{\"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\":\"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","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-USD@trade ETH-USD@trade\"},{\"type\":\"normal\",\"text\":\"Subscription example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@trade\\\"}\"},\"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-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The data type of the subscription, for example: BTC-USD@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-USD\",\"description\":\"trading pair\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"transaction ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"transaction price\"},{\"name\":\"q\",\"type\":\"1\",\"description\":\"executed quantity(pieces of contract)\"},{\"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/cswap/websocket/market/01_trade_info.json\n// module id = dF/+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Set Margin Type\"},{\"type\":\"normal\",\"text\":\"Set Margin Type\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/marginType\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\",\"marginType\":\"ISOLATED\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USD, please use uppercase letters\"},{\"name\":\"marginType\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Margin type, e.g., ISOLATED, CROSSED\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request validity window in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/16_post_margin_type.json\n// module id = dI3A\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Deposit records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/capital/deposit/hisrec\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702622588000\",\"recvWindow\":\"5000\",\"startTime\":\"1700894588000\",\"timestamp\":\"1702622588533\"},\"response\":[{\"amount\":\"49999.00000000000000000000\",\"coin\":\"USDTTRC20\",\"network\":\"TRC20\",\"status\":1,\"address\":\"TP******B4v\",\"addressTag\":\"\",\"txId\":\"60*****1d\",\"insertTime\":1701557778000,\"unlockConfirm\":\"2/2\",\"confirmTimes\":\"2/2\"}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"coin name\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"Status (0-In progress 6-Chain uploaded 1-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 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 (0-In progress 6-Chain uploaded 1-Completed)\"},{\"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\"},{\"name\":\"sourceAddress\",\"type\":\"String\",\"description\":\"Source address\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/03_get_deposit_hisrec.json\n// module id = dXH3\n// module chunks = 3","var map = {\n\t\".\": \"igyE\",\n\t\"./\": \"igyE\",\n\t\"./01_get_currentTrack\": \"gp62\",\n\t\"./01_get_currentTrack.json\": \"gp62\",\n\t\"./02_post_close_currentTrack\": \"Fxil\",\n\t\"./02_post_close_currentTrack.json\": \"Fxil\",\n\t\"./03_post_tpsl_currentTrack\": \"Sfdp\",\n\t\"./03_post_tpsl_currentTrack.json\": \"Sfdp\",\n\t\"./04_spot_trader_sell_order\": \"kpfu\",\n\t\"./04_spot_trader_sell_order.json\": \"kpfu\",\n\t\"./index\": \"igyE\",\n\t\"./index.js\": \"igyE\"\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 = \"dXXX\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader ^.*$\n// module id = dXXX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢歷史訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":{\"endTime\":\"1702721825418\",\"pageIndex\":\"1\",\"pageSize\":\"100\",\"startTime\":\"1702720925417\",\"symbol\":\"SWCH-USDT\",\"timestamp\":\"1702721825418\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"SWCH-USDT\",\"orderId\":1735966927102231300,\"price\":\"0.8548\",\"StopPrice\":\"0\",\"origQty\":\"5.9\",\"executedQty\":\"1.1\",\"cummulativeQuoteQty\":\"0.9402800000000001\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"time\":1702721743000,\"updateTime\":1702721743000,\"origQuoteOrderQty\":\"0\",\"fee\":0,\"avgPrice\":\"0.0005027\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"如設置 orderId , 訂單将 >= orderId。否則将返回最新訂單。\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"開始時間戳, 單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"結束時間戳, 單位:毫秒\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"分頁頁碼,必須大於0,如果不填寫則默認為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"分頁數量,必須大於0,最大值為100,如果不填寫則默認為100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"status\",\"type\":\"string\",\"required\":\"否\",\"description\":\"status: FILLED (完全成交) CANCELED: (已撤銷) FAILED: (失敗)\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"否\",\"description\":\"訂單類型:MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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\":\"float64\",\"description\":\"手續費\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"},{\"name\":\"avgPrice\",\"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","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an OCO Order List\"},{\"type\":\"normal\",\"text\":\"Used to cancel the entire OCOC order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/oco/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1735964079647111280\",\"clientOrderId\":\"123456789\",\"symbol\":\"BTC-USDT\",\"timestamp\":1702721073626},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orderId\":\"1827980248763858944\",\"clientOrderId\":\"123456789\"}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"The order ID of the limit order or the stop-limit order. Either orderId or clientOrderId must be provided.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"No\",\"description\":\"The User-defined order ID of the limit order or the stop-limit order\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request validity window, in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order ID\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"User-defined order ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/101_cancel_one_oco_order.json\n// module id = dd2V\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 = \"HHOOSSTT\" // \n\tchannel = \"AAPPII\" // \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\":\"領取VST\"},{\"type\":\"normal\",\"text\":\"領取用於模擬盤交易的VST資產\"},{\"type\":\"warning\",\"text\":\"僅模擬盤可以調用,模擬盤域名:https://open-api-vst.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/getVst\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1730863321895,\"data\":{\"amount\":20000}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"amount\",\"type\":\"flot64\",\"description\":\"本次領取的VST數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/27_post_get_vst.json\n// module id = dtEQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place order in demo trading\"},{\"type\":\"desc\",\"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)\",\"desc\":[{\"type\":\"warning\",\"text\":\"demo trading domain: open-api-vst.bingx.com\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: Mandatory Parameters: quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: Mandatory Parameters: quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRAILING_STOP_MARKET (Tracking Stop Loss Order) or TRAILING_TP_SL (Trailing TakeProfit/StopLoss Order): The price field or priceRate field needs to be filled in
  • \"},{\"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;

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

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

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

    3. set stopLoss and takeProfit when open position:using takeProfit and stopLoss fields

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"The minimum order quantity can be obtained from the api /openApi/swap/v2/quote/contracts: tradeMinQuantity, tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]}]},{\"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\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}]},\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"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. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId, clientOrderId only supports LIMIT/MARKET order type\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/01_post_trade_order_vst.json\n// module id = dww0\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Rate limit\"},{\"type\":\"html\",\"text\":\"If the request is too frequent, the system will automatically restrict the request and recover after 5 minutes;\"},{\"type\":\"html\",\"text\":\"Based on account UID rate limit, each api has its own independent rate limit, which does not affect each other\"},{\"type\":\"html\",\"text\":\"Users can check the current frequency limit usage and the expiration of the time window according to \\\"X-RateLimit-Requests-Remain\\\" (remaining number of frequency limits) and \\\"X-RateLimit-Requests-Expire\\\" (window expiration time) in the Http Header. time, and dynamically adjust your request frequency based on this value.\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"The API requests are subject to different rate limits based on UID and IP. Please refer to the respective API documentation for UID rate limits. IP rate limits are based on the following grouping rules:\"},{\"type\":\"html\",\"text\":\"
  • Market API Group [1]: The total IP rate limit for all interfaces within the group is 100 requests per 10 seconds.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [2]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 100 requests per 10 seconds for each interface.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [3]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 200 requests per 10 seconds for each interface.
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/basic/04_rate_limits.json\n// module id = dz5L\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Coin-M Perpetuals: new WS DataType-ACCOUNT_UPDATE Account balance and position update push\"},{\"type\":\"html\",\"text\":\"Coin-M Perpetuals:new WS DataType-ORDER_TRADE_UPDATE Order update push\"},{\"type\":\"html\",\"text\":\"Coin-M Perpetuals:nwe WS ACCOUNT-CONFIG_UPDATE Configuration updates such as leverage and margin mode\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-08-08.json\n// module id = dzxx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Order Book\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"SHIB-USDT\",\"limit\":\"5\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"T\":1702719083983,\"bids\":[[\"0.000009854\",\"483909\"],[\"0.000009853\",\"824851\"],[\"0.000009852\",\"539085\"],[\"0.000009851\",\"697410\"],[\"0.000009850\",\"488828\"]],\"asks\":[[\"0.000009860\",\"578208\"],[\"0.000009859\",\"279010\"],[\"0.000009858\",\"501588\"],[\"0.000009857\",\"976049\"],[\"0.000009856\",\"687669\"]],\"bidsCoin\":[[\"0.000009854\",\"483909000\"],[\"0.000009853\",\"824851000\"],[\"0.000009852\",\"539085000\"],[\"0.000009851\",\"697410000\"],[\"0.000009850\",\"488828000\"]],\"asksCoin\":[[\"0.000009860\",\"578208000\"],[\"0.000009859\",\"279010000\"],[\"0.000009858\",\"501588000\"],[\"0.000009857\",\"976049000\"],[\"0.000009856\",\"687669000\"]]}}},\"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]\"},{\"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\":\"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\"},{\"name\":\"asksCoin\",\"type\":\"array\",\"description\":\"depth of asks. first element price, second element quantity(coin)\"},{\"name\":\"bidsCoin\",\"type\":\"array\",\"description\":\"Buyer depth. first element price, second element quantity(coin)\"}]}]}]\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","// 模块名称\n// export const SWAP = 'swap' // USDT本位永续合约\nexport const SWAPV2 = 'swapV2' // USDT本位永续合约V2\nexport const CSWAP = 'cswap' // USDT本位永续合约V2\nexport const SPOT = 'spot' // 现货\nexport const STANDARD = 'standard' // 标准现货\nexport const COMMON = 'common' // 账户与钱包\nexport const COPYTRADE = 'copyTrade' // 账户与钱包\nexport const AGENT = 'agent' // 账户与钱包\n\nexport const moduleKeys = [SWAPV2,CSWAP, SPOT, STANDARD, COMMON,COPYTRADE,AGENT]\n\n\n// WEBPACK FOOTER //\n// ./src/config/modules.js","module.exports = [{\"type\":\"hash\",\"text\":\"Order Book aggregation\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Used to query aggregated depth
  • \"},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v2/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\",\"depth\":20,\"type\":\"step0\"},\"response\":{\"code\":0,\"timestamp\":1707143021361,\"data\":{\"bids\":[[\"43340.92\",\"1.91154\"],[\"43340.88\",\"3.85804\"],[\"43340.85\",\"4.26840\"],[\"43340.83\",\"2.08925\"],[\"43340.81\",\"2.04579\"],[\"43340.79\",\"1.58294\"],[\"43340.77\",\"1.54605\"],[\"43340.76\",\"2.11097\"],[\"43340.74\",\"1.82713\"],[\"43340.72\",\"1.97847\"],[\"43340.69\",\"3.12035\"],[\"43340.65\",\"3.49761\"],[\"43340.61\",\"3.61076\"],[\"43340.56\",\"4.56538\"],[\"43340.47\",\"4.3701\"],[\"43340.46\",\"3.47356\"],[\"43340.44\",\"10.99309\"],[\"43340.23\",\"9.78746\"],[\"43339.90\",\"9.77564\"],[\"43339.86\",\"11.06385\"]],\"asks\":[[\"43341.79\",\"5.76033\"],[\"43341.86\",\"3.9063\"],[\"43341.88\",\"5.76033\"],[\"43341.90\",\"4.98845\"],[\"43341.92\",\"4.98845\"],[\"43341.94\",\"5.25236\"],[\"43341.95\",\"22.48145\"],[\"43341.98\",\"9.40042\"],[\"43342.00\",\"13.58550\"],[\"43342.02\",\"9.44509\"],[\"43342.05\",\"5.25236\"],[\"43342.07\",\"4.83999\"],[\"43342.08\",\"4.74583\"],[\"43342.10\",\"4.58787\"],[\"43342.11\",\"5.61344\"],[\"43342.13\",\"4.57564\"],[\"43342.15\",\"5.14039\"],[\"43342.17\",\"4.65339\"],[\"43342.19\",\"5.32833\"],[\"43342.22\",\"9.74216\"]],\"ts\":1707143021361}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, such as: BTC_USDT\"},{\"name\":\"depth\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Query depth\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"step0 default precision, step1 to step5 are 10 to 100000 times precision respectively\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"bids\",\"type\":\"array\",\"description\":\"Buy depth, where the first element of the array is the price and the second element is the quantity\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"Sell depth, where the first element of the array is the price and the second element is the quantity\"},{\"name\":\"ts\",\"type\":\"int64\",\"description\":\"Timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/06_get_market_agg_depth.json\n// module id = eCwL\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/cswap/websocket/market/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"調整逐倉保證金\"},{\"type\":\"normal\",\"text\":\"針對逐倉模式下的倉位,調整其逐倉保證金資金\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"10000\",\"symbol\":\"BTC-USD\",\"type\":\"Increase\",\"amount\":\"0.01\",\"positionSide\":\"LONG\",\"timestamp\":\"1702718148654\"},\"response\":{\"code\":0,\"msg\":\"\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"保證金資金\"},{\"name\":\"type\",\"type\":\"int\",\"required\":\"是\",\"description\":\"調整方向 1: 增加逐倉保證金Increase,2: 減少逐倉保證金Decrease\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"是\",\"description\":\"持倉方向,且僅可選擇 LONG 或 SHORT\"},{\"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\":\"錯誤信息提示\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/17_post_trade_positionMargin.json\n// module id = eN7O\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-04-15\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Changes to api rate limits, please refer to:Rate limit\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-04-15.json\n// module id = eP5L\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-tw/spot/websocket/introduce/03_data_compress.json\n// module id = eQk0\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/cswap/websocket/introduce/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"Create an API Key for a sub-account\"},{\"type\":\"normal\",\"text\":\"Create sub account apikey\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":14189999,\"note\":\"abc6798\",\"permissions\":[3]},\"response\":{\"code\":0,\"timestamp\":1701526872165,\"data\":{\"note\":\"abc6798\",\"apiKey\":\"kRaent****jg\",\"apiSecret\":\"2b****Og\",\"permissions\":[],\"ipAddresses\":[]}}},\"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,5-Widthdraw,7-Allow internal transfer of sub accounts\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"no\",\"description\":\"IP whitelist\"},{\"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\":\"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","\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 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},]\nexport const codeLangConfig3 = [{\n label: 'Python',\n value: CODE_LANG_KEY.python,\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.tw,\n}]\n\nexport const getLang = () => {\n return window.localStorage.getItem(CACHE_KEY) || LANG_KEY[defaultLangKey]\n}\n\nexport const setLang = (lang) => {\n let url = window.location.href\n if (lang == \"zh-tw\") {\n url = url.replaceAll(\"/#/zh-cn\", \"/#/zh-tw\")\n url = url.replaceAll(\"/#/en-us\", \"/#/zh-tw\")\n }\n if (lang == \"zh-hans\") {\n url = url.replaceAll(\"/#/zh-tw\", \"/#/zh-cn\")\n url = url.replaceAll(\"/#/en-us\", \"/#/zh-cn\")\n }\n if (lang == \"en-US\") {\n url = url.replaceAll(\"/#/zh-tw\", \"/#/en-us\")\n url = url.replaceAll(\"/#/zh-cn\", \"/#/en-us\")\n }\n if (url.indexOf(\"/#/zh-cn/\") < 0 && url.indexOf(\"/#/zh-tw/\") < 0 && url.indexOf(\"/#/en-us/\") < 0) {\n const arr = url.split(\"#\")\n if (lang == \"zh-tw\") {\n url = arr[0] + \"#/zh-tw/swapV2/changelog\"\n }\n if (lang == \"en-hans\") {\n url = arr[0] + \"#/zh-cn/swapV2/changelog\"\n }\n if (lang == \"en-US\") {\n url = arr[0] + \"#/en-us/swapV2/changelog\"\n }\n }\n window.location.href = url\n window.location.reload()\n window.localStorage.setItem(CACHE_KEY, lang)\n}\n\nexport const getLangKeyByLang = (lang) => {\n // alert(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","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-09\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USDT Websocket Service: Each time a new connection is established, it will push the full data of 'Account balance and position update', then push updates every 5 seconds.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT Websocket Service: Each time a new connection is established, it will push the full data of 'Configuration updates such as leverage and margin mode', then push updates every 5 seconds.\"},{\"type\":\"html\",\"text\":\"Perpetual USD-Margined Restful Service: The 'Position and Maintenance Margin Ratio' endpoint has added a new 'tier' field.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-09.json\n// module id = esMP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel Order\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1735964079647111280\",\"symbol\":\"NEMS-USDT\",\"timestamp\":\"1702721073626\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"NEMS-USDT\",\"orderId\":1735964079647111200,\"price\":\"0.1532\",\"stopPrice\":\"0.1532\",\"origQty\":\"126\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\"}}},\"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\":\"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\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Cancel orders with specified status: NEW: new order, PENDING: order in progress, PARTIALLY_FILLED: partially filled\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"trigger price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/021_post_trade_order_cancel.json\n// module id = ev9X\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Get Swap Open Positions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/openInterest\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"openInterest\":\"35876.52\",\"symbol\":\"BTC-USD\",\"time\":1702719692859}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"trading pair, for example: BTC-USD\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request timestamp, in milliseconds.\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The window of time for which the request is valid, in milliseconds.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"Status Code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response time, Unit: milliseconds\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"openInterest\",\"type\":\"string\",\"description\":\"Position Quantity\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading Pair\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"time, Unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market/03_get_openInterest.json\n// module id = ewcP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱最優掛單\"},{\"type\":\"normal\",\"text\":\"訂閱最優掛單\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @bookTicker 例如 BTC-USD@bookTicker\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@bookTicker\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@bookTicker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"最優掛單信息\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"幣對名稱\"},{\"name\":\"e\",\"type\":\"bookTicker\",\"description\":\"事件類型\"},{\"name\":\"T\",\"type\":1717665274199,\"description\":\"最新成交時間戳\"},{\"name\":\"p\",\"type\":\"71093.6\",\"description\":\"最新成交價格\"},{\"name\":\"u\",\"type\":\"20345288\",\"description\":\"成交id\"},{\"name\":\"E\",\"type\":\"1717665274907\",\"description\":\"深度(最優掛單)更新時間\"},{\"name\":\"b\",\"type\":\"71093.1\",\"description\":\"最優買價\"},{\"name\":\"B\",\"type\":\"2872\",\"description\":\"最優買價合約掛單張數\"},{\"name\":\"a\",\"type\":\"71096.1\",\"description\":\"最優賣價\"},{\"name\":\"A\",\"type\":\"336\",\"description\":\"最優賣價合約掛單張數\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/05_bookTicker.json\n// module id = exCQ\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\":\"warning\",\"text\":\"Websocket訂閱,每個IP最多可以連接240個websocket\"},{\"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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢訂單成交明細\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/allFillOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1796163365782945792\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718423719019,\"data\":[{\"orderId\":\"1796163365782945792\",\"symbol\":\"ETH-USD\",\"type\":\"MARKET\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"tradeId\":\"20789331\",\"volume\":\"376\",\"baseQty\":0,\"tradePrice\":\"3761.12\",\"amount\":\"3760.00000000\",\"realizedPnl\":\"0.00000000\",\"commission\":\"-0.00039988\",\"currency\":\"ETH\",\"buyer\":true,\"maker\":false,\"tradeTime\":1717073692000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"required\":\"是\",\"description\":\"訂單號\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"頁數,不傳默認1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"每頁數量,不傳默認100,最大1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"回應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"成交明細 list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"訂單類型, LIMIT:限价單/MARKET:市价單/STOP_MARKET:市价止损單/TAKE_PROFIT_MARKET:市价止盈單/STOP:限价止损單/TAKE_PROFIT:限价止盈單\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,雙向持仓僅可選擇 LONG 或 SHORT\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"成交id\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"成交數量,合約張數\"},{\"name\":\"tradePrice\",\"type\":\"string\",\"description\":\"成交價格\"},{\"name\":\"amount\",\"type\":\"string\",\"description\":\"成交金額,折usd\"},{\"name\":\"realizedPnl\",\"type\":\"string\",\"description\":\"已實現盈亏\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"資產單位\"},{\"name\":\"buyer\",\"type\":\"bool\",\"description\":\"是買方?\"},{\"name\":\"maker\",\"type\":\"bool\",\"description\":\"是掛單方?\"},{\"name\":\"tradeTime\",\"type\":\"int64\",\"description\":\"成交時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/09_get_allFillOrders.json\n// module id = f4x/\n// module chunks = 3","var map = {\n\t\"./01_dept_info_interval.json\": \"0EuA\",\n\t\"./02_latest_records.json\": \"4L7x\",\n\t\"./03_kline_data.json\": \"zKQU\",\n\t\"./04_quote_ticker.json\": \"xVTF\",\n\t\"./05_last_trade_price.json\": \"gvF4\",\n\t\"./06_last_mark_price.json\": \"pgER\",\n\t\"./07_book_ticker.json\": \"wF+v\",\n\t\"./08_depth_incr_info.json\": \"hH3F\"\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","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\"./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\"./19_get_historicalTrades\": \"iQjo\",\n\t\"./19_get_historicalTrades.json\": \"iQjo\",\n\t\"./20_get_trade_quote_bookTicker\": \"1iLz\",\n\t\"./20_get_trade_quote_bookTicker.json\": \"1iLz\",\n\t\"./21_get_quote_mark_price_klines\": \"5vst\",\n\t\"./21_get_quote_mark_price_klines.json\": \"5vst\",\n\t\"./22_get_quote_price_v2\": \"OSRE\",\n\t\"./22_get_quote_price_v2.json\": \"OSRE\",\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\":\"Query pending order status\"},{\"type\":\"normal\",\"text\":\"Query order details\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/openOrder\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1736012449498123456\",\"symbol\":\"OP-USDT\",\"timestamp\":\"1702733255486\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"OP-USDT\",\"orderId\":1736012449498123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"1.0\",\"price\":\"2.1710\",\"executedQty\":\"0.0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1702732596168,\"updateTime\":1702732596188,\"clientOrderId\":\"l*****e\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80016,\"msg\":\"order does not exist\",\"data\":{}}}]},\"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\":\"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\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"}]},{\"type\":\"status\",\"key\":\"key1\",\"data\":[{\"name\":\"NEW\",\"type\":\"\",\"required\":\"\",\"description\":\"New Order\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/08_check_pending_order.json\n// module id = fLAw\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\":\"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\":\"ATOM-USDT\",\"startTime\":\"1696291200\",\"timestamp\":\"1699982303257\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ATOM-USDT\",\"orderId\":172264854643022330000,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"2.36\",\"price\":\"8.096\",\"executedQty\":\"2.36\",\"avgPrice\":\"8.095\",\"cumQuote\":\"19\",\"stopPrice\":\"\",\"profit\":\"-0.9346\",\"commission\":\"-0.009553\",\"status\":\"FILLED\",\"time\":1699546393000,\"updateTime\":1699546393000,\"clientOrderId\":\"\",\"leverage\":\"21X\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}]}}},\"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\":\"currency\",\"type\":\"string\",\"required\":\"no\",\"description\":\"USDC or 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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\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\":\"Subscribe to Limited Depth\"},{\"type\":\"normal\",\"text\":\"Subscribe to Limited Depth\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"Data type is @depth, e.g., BTC-USD@depth5, ETH-USDT@depth5\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@depth5\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@depth5\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"The trading pair symbol must contain a hyphen \\\"-\\\", e.g., BTC-USD\"},{\"name\":\"count\",\"type\":\"integer\",\"required\":\"yes\",\"description\":\"Depth levels: 100, 50, 20, 10, 5\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@depth5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push depth\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"dataType\",\"type\":\"BTC-USD@depth5\",\"description\":\"Event type\"},{\"name\":\"symbol\",\"type\":\"BTC-USD\",\"description\":\"Trading pair\"},{\"name\":\"bids\",\"type\":\"[\\\"p\\\": \\\"70977.5\\\",\\\"a\\\": \\\"3.029129\\\",\\\"v\\\": \\\"2150.0\\\"]\",\"description\":\"Bid levels\"},{\"name\":\"asks\",\"type\":\"[\\\"p\\\": \\\"70978.5\\\",\\\"a\\\": \\\"3.029129\\\",\\\"v\\\": \\\"2150.0\\\"]\",\"description\":\"Ask levels\"},{\"name\":\"aggPrecision\",\"type\":\"0.1\",\"description\":\"Aggregation precision\"},{\"name\":\"timestamp\",\"type\":\"1717662601938\",\"description\":\"Timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/04_depth.json\n// module id = fcau\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Spot Latest Trade Price\"},{\"type\":\"normal\",\"text\":\"Real-time Push\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @lastPrice, for example, BTC_USDT@lastPrice\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"c\",\"type\":\"\",\"description\":\"Price\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Symbol, e.g., BTC\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/05_last_price.json\n// module id = fqiK\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe Market Depth Data\"},{\"type\":\"normal\",\"text\":\"Push limited file depth information every 500ms .default level 20 \"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"The dataType is @depth E.g.BTC-USDT@depth50\"},{\"type\":\"normal\",\"text\":\"Subscription example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth50\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@depth50\\\"}\"},\"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\":\"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\":\"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","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\":\"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/06_subscribe.json\n// module id = g2tG\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 api 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\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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","var map = {\n\t\"./csharp.js\": \"EiXA\",\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\"./php.js\": \"4jl5\",\n\t\"./python.js\": \"yMq5\",\n\t\"./shell.js\": \"45yt\",\n\t\"./spot/csharp.js\": \"INcn\",\n\t\"./spot/golang.js\": \"y0aS\",\n\t\"./spot/html.js\": \"5KyA\",\n\t\"./spot/java.js\": \"zJn2\",\n\t\"./spot/nodejs.js\": \"qxtL\",\n\t\"./spot/php.js\": \"252X\",\n\t\"./spot/python.js\": \"bTzu\",\n\t\"./spot/shell.js\": \"bfXa\"\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","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-27\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Spot: Supports OCO order features, providing OCO order placement, OCO order cancellation, querying individual OCO orders, querying open OCO orders, and querying OCO order interfaces.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-08-27.json\n// module id = gYbm\n// module chunks = 3","module.exports = {\"module\":\"swapV2\",\"path\":\"/en-us/swapV2/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingX API, welcome to sign up for the BingX BrokerProject BingX Broker Program Application\"},{\"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\"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\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\":\"Asset transfer records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/api/v3/asset/transfer\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"type\":\"FUND_PFUTURES\",\"timestamp\":\"1702624474847\"},\"response\":{\"total\":2,\"rows\":[{\"asset\":\"VST\",\"amount\":\"100000.00000000000000000000\",\"type\":\"FUND_PFUTURES\",\"status\":\"CONFIRMED\",\"tranId\":37600111,\"timestamp\":1702252271000},{\"asset\":\"USDT\",\"amount\":\"2218.72352626000000000000\",\"type\":\"FUND_PFUTURES\",\"status\":\"CONFIRMED\",\"tranId\":37600222,\"timestamp\":1702351131000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"yes\",\"description\":\"transfer type, (query by type or tranId)\"},{\"name\":\"tranId\",\"type\":\"LONG\",\"required\":\"no\",\"description\":\"transaction ID, (query by type or tranId)\"},{\"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","module.exports = [{\"type\":\"hash\",\"text\":\"交易員當前帶單\"},{\"type\":\"normal\",\"text\":\"此節點用於交易員查詢永續業務的當前帶單訂單列表\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/currentTrack\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1702731524284,\"data\":{\"result\":[{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0041\",\"openAvgPrice\":\"42113.4000000000000\",\"unrealizedProfit\":\"+1.2169\",\"openTime\":1702651291745,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.70%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"8.633247\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0041\",\"openAvgPrice\":\"42113.4000000000000\",\"unrealizedProfit\":\"+1.2169\",\"openTime\":1702651291398,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.70%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"8.633247\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0014\",\"openAvgPrice\":\"42108.2000000000000\",\"unrealizedProfit\":\"+0.4228\",\"openTime\":1702651291040,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.71%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"2.947574\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"},{\"orderId\":1735671429301234700,\"positionId\":1253243912971234600,\"volume\":\"0.0014\",\"openAvgPrice\":\"42107.7000000000000\",\"unrealizedProfit\":\"+0.4235\",\"openTime\":1702651290638,\"stopLossPrice\":\"\",\"symbol\":\"BTC-USDT\",\"profitRatio\":\"+0.71%\",\"openLeverage\":\"20\",\"marginType\":\"CROSSED\",\"margain\":\"2.947539\",\"positionSide\":\"Long\",\"stopProfitPrice\":\"\",\"markPrice\":\"42410.22424947234685532749\"}],\"searchResult\":true,\"total\":4}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"偏移 默認0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"查詢數量,默認20,最大50\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求時間戳, 單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求有效時間空窗值, 單位:毫秒,不填默認5秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"永續業務訂單號\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"帶單訂單號\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"保證金模式,逐倉:ISOLATED,全倉:CROSSED\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持倉方向\"},{\"name\":\"openLeverage\",\"type\":\"string\",\"description\":\"開倉杠桿\"},{\"name\":\"openAvgPrice\",\"type\":\"string\",\"description\":\"開倉均價\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"標記價格\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"開倉時間\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"持倉數量\"},{\"name\":\"margain\",\"type\":\"string\",\"description\":\"保證金數量\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"未實現盈虧\"},{\"name\":\"profitRatio\",\"type\":\"string\",\"description\":\"收益率,單位%\"},{\"name\":\"stopProfitPrice\",\"type\":\"string\",\"description\":\"止盈價格,不設置時為空\"},{\"name\":\"stopLossPrice\",\"type\":\"string\",\"description\":\"止損價格,不設置時為空\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader/01_get_currentTrack.json\n// module id = gp62\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to latest price changes\"},{\"type\":\"normal\",\"text\":\"Real time push.\"},{\"type\":\"normal\",\"text\":\"Push latest price changes.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @lastPrice, such as BTC-USDT@lastPrice.\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},\"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\":\"Subscribed data type, e.g., BTC-USDT@lastPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"Latest transaction price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/05_last_trade_price.json\n// module id = gvF4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel all Open Orders on a Symbol\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelOpenOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"GM-USDT\",\"timestamp\":\"1702721320676\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"GM-USDT\",\"orderId\":1735964997957275600,\"transactTime\":1702721242701,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"8061558\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721242645506402\"},{\"symbol\":\"GM-USDT\",\"orderId\":1735965127519326200,\"transactTime\":1702721249787,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"5806281\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721249647382871\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT,If not filled out, cancel all orders.\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"BUY/SELL\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"trigger price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/023_post_cancelOpenOrders.json\n// module id = gz1R\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\":\"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\":{\"startTime\":\"1702713615001\",\"endTime\":\"1702731787011\",\"limit\":\"1000\",\"timestamp\":\"1702731787011\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"LDO-USDT\",\"incomeType\":\"FUNDING_FEE\",\"income\":\"-0.0292\",\"asset\":\"USDT\",\"info\":\"Funding Fee\",\"time\":1702713615000,\"tranId\":\"170***6*2_3*9_20***97\",\"tradeId\":\"170***6*2_3*9_20***97\"}]}},\"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\"},{\"name\":\"GTD_PRICE\",\"type\":\"\",\"description\":\"Guaranteed price\"}]}]}]\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\":\"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/02_connect.json\n// module id = hDC3\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Incremental Depth Information\"},{\"type\":\"normal\",\"text\":\"Push Frequency Description\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"The push frequency for BTC-USDT and ETH-USDT is 200ms, while for other trading pairs it is 800ms.\"},{\"type\":\"normal\",\"text\":\"How the client should maintain incremental depth locally\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"1. After successfully subscribing, a full depth with an action field value of 'all' will be returned, along with a lastUpdateId used to handle the continuity of subsequent incremental depth. After receiving the full depth, the WebSocket should cache the full depth data in memory.\"},{\"type\":\"normal\",\"text\":\"2. Subsequent depth changes will return incremental depth, with the action field set to 'update'. The value of the Nth incremental depth's lastUpdateId should be the N-1th depth's lastUpdateId + 1.\"},{\"type\":\"normal\",\"text\":\"3. In rare cases where lastUpdateId is not continuous, you can choose to reconnect, or cache the last three incremental depths and try to merge the data by finding continuous lastUpdateId from the cache (because due to multithreading or network routing issues, data order may not be strongly guaranteed).\"},{\"type\":\"normal\",\"text\":\"4. Then, iterate over the received incremental depth and compare it with the current depth one by one. It's recommended to consider thread-safe design and coding practices (as the push frequency may increase later). The data structure could be a sorted map, such as TreeMap:\"},{\"type\":\"normal\",\"text\":\"(1) If the price level does not exist in the current depth, it means a new price level should be added. (Add)\"},{\"type\":\"normal\",\"text\":\"(2) If the quantity corresponding to the price is 0, the price level should be removed from the current depth. (Delete)\"},{\"type\":\"normal\",\"text\":\"(3) If the quantity corresponding to the price is different from the current value, replace it with the quantity returned by the incremental depth. (Update)\"},{\"type\":\"normal\",\"text\":\"(4) After traversing, you will obtain the latest depth, update the depth cache, and remember to update the lastUpdateId.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @incrDepth, for example, BTC-USDT@incrDepth\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Symbol name, the symbol must include a '-' like BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of data subscribed to, for example, BTC-USDT@incrDepth\"},{\"name\":\"action\",\"type\":\"\",\"description\":\"Depth type: all for full depth, update for incremental depth\"},{\"name\":\"lastUpdateId\",\"type\":\"\",\"description\":\"Change ID, a continuously increasing long integer used to describe the sequential relationship between returned incremental depths\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"Changed ask depth (price: quantity)\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"Changed bid depth (price: quantity)\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/08_depth_incr_info.json\n// module id = hH3F\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量撤單\"},{\"type\":\"normal\",\"text\":\"将當前賬戶處於當前委託狀態的部分訂單進行批量撤銷操作。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderIdList\":\"[1735924831603391122, 1735924833239172233]\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702711750843\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[{\"symbol\":\"BTC-USDT\",\"orderId\":1735924831603391200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0032\",\"price\":\"41682.9\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702711706435,\"updateTime\":1702711706453,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1735924833239172400,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0033\",\"price\":\"41182.9\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702711706825,\"updateTime\":1702711706838,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}],\"failed\":null}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"orderIdList & clientOrderIDList are both empty;\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderIdList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"係統訂單號, 最多支持10個訂單[1234567,2345678]\"},{\"name\":\"clientOrderIdList\",\"type\":\"LIST\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,[\\\"abc1234567\\\",\\\"abc2345678\\\"]\"},{\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/account/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"60000\",\"timestamp\":\"1702624167523\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"balances\":[{\"asset\":\"USDT\",\"free\":\"566773.193402631\",\"locked\":\"244.18616265388994\"},{\"asset\":\"CHEEMS\",\"free\":\"294854132046232\",\"locked\":\"18350553840\"},{\"asset\":\"VST\",\"free\":\"0\",\"locked\":\"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/account/00_get_account_balance.json\n// module id = hIqz\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","var map = {\n\t\".\": \"XH2f\",\n\t\"./\": \"XH2f\",\n\t\"./01_get_currentTrack\": \"U2sZ\",\n\t\"./01_get_currentTrack.json\": \"U2sZ\",\n\t\"./02_post_close_currentTrack\": \"TXP6\",\n\t\"./02_post_close_currentTrack.json\": \"TXP6\",\n\t\"./03_post_tpsl_currentTrack\": \"qkYN\",\n\t\"./03_post_tpsl_currentTrack.json\": \"qkYN\",\n\t\"./04_spot_trader_sell_order\": \"mCp6\",\n\t\"./04_spot_trader_sell_order.json\": \"mCp6\",\n\t\"./index\": \"XH2f\",\n\t\"./index.js\": \"XH2f\"\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 = \"hUlE\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader ^.*$\n// module id = hUlE\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_limit\": \"WMCK\",\n\t\"./01_limit.json\": \"WMCK\",\n\t\"./02_connect\": \"Jf00\",\n\t\"./02_connect.json\": \"Jf00\",\n\t\"./03_data_compress\": \"eQk0\",\n\t\"./03_data_compress.json\": \"eQk0\",\n\t\"./04_heart_beat\": \"nCmZ\",\n\t\"./04_heart_beat.json\": \"nCmZ\",\n\t\"./05_subscribe\": \"D11h\",\n\t\"./05_subscribe.json\": \"D11h\",\n\t\"./06_cancel_subscribe\": \"8PHc\",\n\t\"./06_cancel_subscribe.json\": \"8PHc\",\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","var map = {\n\t\"./00_limit.json\": \"/ur1\",\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=1696751141337
    recvWindow=0

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

    apiKey = hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A
    secretKey = mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w

    \"},{\"type\":\"html\",\"text\":\"
  • 參數通過query string發送示例
  • \"},{\"type\":\"html\",\"text\":\"1.對接口所有參數拼接(無需排序)\"},{\"type\":\"code\",\"text\":\"recvWindow=0&symbol=BTC-USDT×tamp=1696751141337\"},{\"type\":\"html\",\"text\":\"2. 對拼接好的參數字串使用secretKey生成簽名: 1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8
    \"},{\"type\":\"code\",\"text\":\"echo -n \\\"recvWindow=0&symbol=BTC-USDT×tamp=1696751141337\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3. 发送请求\"},{\"type\":\"html\",\"text\":\"有些通過query string場景(比如a='1'&b={a:'2'})需要對請求參數的每一個值都進行URL編碼,只對值value進行URL編碼,不對欄位key進行URL編碼,也不是對整個原始的parameters字串進行URL編碼,這裡有個特殊欄位:timestamp的value也不用URL編碼,參考:URL編碼場景說明\"},{\"type\":\"code\",\"text\":\"curl -H 'X-BX-APIKEY: hO6oQotzTE0S5FRYze2Jx2wGx7eVnJGMolpA1nZyehsoMgCcgKNWQHd4QgTFZuwl4Zt4xMe2PqGBegWXO4A' 'https://open-api.bingx.com/openApi/swap/v2/user/positions?recvWindow=0&symbol=BTC-USDT×tamp=1696751141337&signature=4f581ecdb1fa09b9d6e57886b6f70cffed17f82b93399722939e49a38edec2bf'\"},{\"type\":\"html\",\"text\":\"
  • 參數通過request body發送示例
  • \"},{\"type\":\"html\",\"text\":\"1.對介面所有參數按照(a-z)排序拼接(需要排序)\"},{\"type\":\"code\",\"text\":\"recvWindow=0&subAccountString=abc12345×tamp=1696751141337\"},{\"type\":\"html\",\"text\":\"2.對拼接好的參數字串使用secretKey生成簽名: 1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\"},{\"type\":\"code\",\"text\":\"echo -n \\\"recvWindow=0&subAccountString=abc12345×tamp=1696751141337\\\" | openssl dgst -sha256 -hmac \\\"mheO6dR8ovSsxZQCOYEFCtelpuxcWGTfHw7te326y6jOwq5WpvFQ9JNljoTwBXZGv5It07m9RXSPpDQEK2w\\\" -hex \"},{\"type\":\"html\",\"text\":\"3.組合成json,放入request body,並且設定header:'Content-Type': 'application/json'\"},{\"type\":\"code\",\"text\":\"{\\\"recvWindow\\\":0,\\\"subAccountString\\\":\\\"abc12345\\\",\\\"timestamp\\\":1696751141337,\\\"signature\\\":\\\"1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\\\"}\"},{\"type\":\"code\",\"text\":\"curl --location 'https://open-api.bingx.com/openApi/subAccount/v1/create' --header 'Content-Type: application/json' --data '{\\\"recvWindow\\\":0,\\\"subAccountString\\\":\\\"abc12345\\\",\\\"timestamp\\\":1696751141337,\\\"signature\\\":\\\"1e63e8cfd1c04919881e60cf369e404b9b7c87d3a09bc300f1abfdcce7da57e8\\\"}'\"}]\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\":\"title\",\"text\":\"2024-04-15\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"接口頻率限制改動詳見:頻率限制\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-04-15.json\n// module id = i/xj\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Modify Isolated Position 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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/positionMargin\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"10000\",\"symbol\":\"BTC-USDT\",\"type\":\"1\",\"amount\":\"3\",\"positionSide\":\"LONG\",\"timestamp\":\"1702718148654\"},\"response\":{\"code\":0,\"msg\":\"\",\"amount\":3,\"type\":1}},\"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\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Position ID, if it is filled, the system will use the positionId first\"},{\"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\"},{\"name\":\"positionId\",\"type\":\"int64\",\"description\":\"Position ID\"}]}]}]\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\":\"warning\",\"text\":\"GET https://open-api.bingx.com/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\":\"用於查詢市場上歷史成交數據\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"請求參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/market/historicalTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"fromId\":\"412551\",\"limit\":\"500\",\"symbol\":\"ETH-USDT\",\"timestamp\":\"1702731995838\",\"recvWindow\":\"60000\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"time\":1705063108365,\"isBuyerMaker\":true,\"price\":\"2662.83\",\"qty\":\"0.10\",\"quoteQty\":\"266.28\",\"id\":\"8179911\"},{\"time\":1705063108486,\"isBuyerMaker\":true,\"price\":\"2662.82\",\"qty\":\"0.10\",\"quoteQty\":\"266.28\",\"id\":\"8179912\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"fromId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"從哪個交易ID開始返回。默認返回最近的交易記錄\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"請求時間戳,單位:毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求有效時間窗口值,單位:毫秒\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"交易對符號。交易對符號中必須包含連字符\\\"-\\\",例如:BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"返回結果集的數量。默認值為50,最大值為100\"}]},{\"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\":\"成交額\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"交易ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/market/19_get_historicalTrades.json\n// module id = iQjo\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢所有訂單\"},{\"type\":\"normal\",\"text\":\"查詢用戶所有訂單(訂單狀態為已成交、已撤銷、部分成交、委託中、新建)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 查詢時間範圍最大不得超過7天
  • \"},{\"type\":\"html\",\"text\":\"
  • 默認查詢最近7天內的數據
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/fullOrder\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USDT\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母,如果不填寫symbol,則會查詢所有幣對的訂單。\"},{\"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\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_ PRICE、CONTRACT_ PRICE、INDEX_ PRICE,默認MARK_ PRICE\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"},{\"name\":\"triggerOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"这一訂單關聯的觸發單訂單號\"},{\"name\":\"isTwap\",\"type\":\"bool\",\"description\":\"是否為TWAP訂單,true:是,flase:不是\"},{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP委託訂單編號\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/23_get_trade_allOrdersV2.json\n// module id = iRbd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel TWAP Order\"},{\"type\":\"normal\",\"text\":\"Used to cancel TWAP commission orders \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/cancelOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"mainOrderId\":\"12312435134\",\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"mainOrderId\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"TWAP order number\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"The timestamp of the request 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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP order number\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction; SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG or SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"Price limit type, constant: price interval, percentage: slippage\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"When type is constant, it represents the price difference (unit is USDT), when type is percentage, it represents the slippage ratio (unit is %)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"Trigger price, this price is the condition that limits the execution of strategy orders. For buying, when the market price is lower than the limit price, an order will be placed based on the set ratio or price distance of the selling price; for selling, when the market price is higher than the limit price, an order will be placed for the selling price down. Take the set ratio or price gap to place an order.\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"After the strategic order is split, the time interval for order placing is between 5-120s\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"The quantity of a single order. After the strategy order is split, the maximum order quantity for a single order. \"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"The total number of orders. The total trading volume of strategy orders, which may be split into multiple order executions. \"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: New/Running: In operation/Canceling: Cancellation of order/Filled: Fully filled/PartiallyFilled: Partially filled/Pending: Not triggered/PartiallyFilledAndResidueFailed: Partially filled (remaining order failed), algorithm order status/PartiallyFilledAndResidueCancelled: Partially filled ( Remaining cancellation), algorithm order status/Cancelled: Canceled (no partial deal exists)/Failed: Order failed (no partial deal exists)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Volume\"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"Execution time, in seconds. The order will be canceled after the execution time expires. \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"Maximum execution time execution time, unit: seconds.\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"Order creation time, unit: milliseconds\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Order update time, unit: milliseconds\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/32_cancel_twap_cancel_order.json\n// module id = iXtv\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"用戶內部轉賬\"},{\"type\":\"html\",\"text\":\"用戶在bingx平台內互相轉賬,僅限主賬戶轉主賬戶和主賬戶轉子賬戶,如需子賬號內轉請使用專用接口: 子賬戶內部轉賬\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/innerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"amount\":\"10.0\",\"coin\":\"USDT\",\"userAccount\":\"16779999\",\"userAccountType\":\"1\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702558152381,\"data\":{\"id\":\"12******1\"}}},\"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\":\"電話區號,當userAccountType=2時必填。\"},{\"name\":\"walletType\",\"type\":\"int\",\"required\":\"是\",\"description\":\"賬戶類型,1 資金賬戶;2 標合賬戶;3 永續賬戶\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID,數字和字母組合,長度小於100字符\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"平台返回內轉記錄唯一id\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID,數字和字母組合,長度小於100字符\"}]}]}]\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","\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/copyTrade/api/trader/index.js","module.exports = {\"module\":\"cswap\",\"path\":\"/zh-tw/cswap/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/cswap/2_description.json\n// module id = ihU3\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\":\"Query Order history\"},{\"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\":\"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\":\"html\",\"text\":\"
  • Return order list sorted by updateTime from smallest to largest
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/allOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USDT\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500}]}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"the query range is more than seven days\",\"data\":{}}}]},\"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 symbol is specified, it will query the historical orders for all trading pairs.\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"no\",\"description\":\"USDC or USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Only return 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.If a specific pair is not provided, a history of transactions for all pairs will be returned\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"},{\"name\":\"triggerOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"trigger order ID associated with this order\"},{\"name\":\"isTwap\",\"type\":\"bool\",\"description\":\"Whether it is a TWAP order, true: yes, false: no\"},{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP order number\"}]}]}]\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\":\"Set 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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/leverage\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"leverage\":\"8\",\"side\":\"SHORT\",\"symbol\":\"ETH-USDT\",\"timestamp\":\"1702733704941\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"leverage\":8,\"symbol\":\"ETH-USDT\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"margin is not enough\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'Side' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'Side' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"symbol not exist\",\"data\":{}}}]},\"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. In the Hedge mode, LONG for long positions, SHORT for short positions. In the One-way mode, only supports BOTH.\"},{\"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\"},{\"name\":\"availableLongVol\",\"type\":\"string\",\"description\":\"Available Long Volume\"},{\"name\":\"availableShortVol\",\"type\":\"string\",\"description\":\"Available Short Volume\"},{\"name\":\"availableLongVal\",\"type\":\"string\",\"description\":\"Available Long Value\"},{\"name\":\"availableShortVal\",\"type\":\"string\",\"description\":\"Available Short Value\"},{\"name\":\"maxPositionLongVal\",\"type\":\"string\",\"description\":\"Maximum Position Long Value\"},{\"name\":\"maxPositionShortVal\",\"type\":\"string\",\"description\":\"Maximum Position Short Value\"}]}]}]\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\":\"Open Interest Statistics\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/openInterest\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"EOS-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"openInterest\":\"7409966.52\",\"symbol\":\"EOS-USDT\",\"time\":1702719692859}}},\"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\":\"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\":\"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\":\"title\",\"text\":\"2024-03-19\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:按倉位ID平倉。\"},{\"type\":\"html\",\"text\":\"永續websocket:訂單信息新增stopGuaranteed字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢訂單接口返回stopGuaranteed字段。\"},{\"type\":\"html\",\"text\":\"永續修改接口:查詢訂單、查詢歷史訂單接口返回triggerOrderId字段。\"},{\"type\":\"html\",\"text\":\"永續行情接口/openApi/swap/v2/quote/contracts新增:tradeMinQuantity、tradeMinUSDT、makerFeeRate、takerFeeRate\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-03-19.json\n// module id = j7dp\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":\"1702731721672\",\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[1736008778921491200],\"failed\":null}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"service has some errors, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109414,\"msg\":\"order not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, for example: BTC-USDT, please use capital letters.\"},{\"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","module.exports = [{\"type\":\"hash\",\"text\":\"批量下單\"},{\"type\":\"desc\",\"text\":\"可用於在現貨批量下單\",\"desc\":[{\"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\":\"warning\",\"text\":\"如果需要計算最大最小下單幣對數量可使用公式:U (最小/最大下單金額) / (限價單輸入Limit price or 市價單Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"查詢價格可參考:GET /openApi/spot/v1/ticker/24hr\"},{\"type\":\"html\",\"text\":\"最小最大下單金額可參考:GET /openApi/spot/v1/common/symbols\"}]},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/spot/trading-rules/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/spot/v1/common/symbols\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]},{\"type\":\"html\",\"text\":\"
  • 批量下單, 如何對request簽名? 請參考 永續: 批量下單
  • \"}]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"data\":\"[{\\\"symbol\\\": \\\"ETHS-USDT\\\", \\\"side\\\": \\\"BUY\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"quantity\\\": 7.663, \\\"price\\\": 12.479, \\\"newClientOrderId\\\": \\\"abc122345\\\"}]\",\"recvWindow\":\"60000\",\"timestamp\":\"1702721964975\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ETHS-USDT\",\"orderId\":1735967859282101200,\"transactTime\":1702721965033,\"price\":\"12.479\",\"origQty\":\"7.663\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"clientOrderID\":\"abc122345\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"是\",\"description\":\"下單的request數組\"},{\"name\":\"sync\",\"type\":\"bool\",\"required\":\"否\",\"description\":\"sync=false(如不填寫則默認false):並行下單(但是需要所有訂單的symbol/side/type相同),sync=true(多個訂單串行下單,所有訂單不要求symbol/side/type相同)\"}]},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"觸發價格,用於TAKE_ STOP_ LIMIT, TAKE_ STOP_ MARKET,TRIGGER_ LIMIT,TRIGGER_ MARKET類型的訂單。\"},{\"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\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"只能字母、數字和_,用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的newClientOrderId,僅支持2個小時的查詢範圍\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC,不填寫則默認GTC\"},{\"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/01_post_trade_batchOrders.json\n// module id = jKsK\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-08-08\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Spot: Added a limit where a single websocket can only successfully subscribe to 200 dataTypes.\"},{\"type\":\"html\",\"text\":\"Spot: Added a limit where a single IP can have at most 60 websockets.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-08-17.json\n// module id = jPZq\n// module chunks = 3","var map = {\n\t\".\": \"Q3ZN\",\n\t\"./\": \"Q3ZN\",\n\t\"./01_dept_info_interval\": \"0EuA\",\n\t\"./01_dept_info_interval.json\": \"0EuA\",\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\"./04_quote_ticker\": \"xVTF\",\n\t\"./04_quote_ticker.json\": \"xVTF\",\n\t\"./05_last_trade_price\": \"gvF4\",\n\t\"./05_last_trade_price.json\": \"gvF4\",\n\t\"./06_last_mark_price\": \"pgER\",\n\t\"./06_last_mark_price.json\": \"pgER\",\n\t\"./07_book_ticker\": \"wF+v\",\n\t\"./07_book_ticker.json\": \"wF+v\",\n\t\"./08_depth_incr_info\": \"hH3F\",\n\t\"./08_depth_incr_info.json\": \"hH3F\",\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\":\"Subscription transaction by transaction\"},{\"type\":\"normal\",\"text\":\"Subscribe to the trade detail data of a trading pair\"},{\"type\":\"warning\",\"text\":\"Due to multi-threaded push, it cannot be guaranteed that the push transaction ID is orderedg\"},{\"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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},\"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\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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 Multi-Assets Rules\"},{\"type\":\"normal\",\"text\":\"Query platform-defined multi-assets rules\"},{\"type\":\"warning\",\"text\":\"Only available for live trading, live trading domain: https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/multiAssetsRules\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"marginAssets\":\"USDT\",\"ltv\":\"99.99%\",\"collateralValueRatio\":\"99.99%\",\"maxTransfer\":\"\",\"indexPrice\":\"1.0006981800\"},{\"marginAssets\":\"USDC\",\"ltv\":\"99.99%\",\"collateralValueRatio\":\"99.99%\",\"maxTransfer\":\"\",\"indexPrice\":\"0.9998772499\"},{\"marginAssets\":\"TRX\",\"ltv\":\"85.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"300000\",\"indexPrice\":\"0.1778813333\"},{\"marginAssets\":\"DOGE\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"300000\",\"indexPrice\":\"0.3891840533\"},{\"marginAssets\":\"BNB\",\"ltv\":\"90.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"160\",\"indexPrice\":\"622.9584792100\"},{\"marginAssets\":\"DOT\",\"ltv\":\"90.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"12000\",\"indexPrice\":\"5.0431331628\"},{\"marginAssets\":\"BTC\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"10\",\"indexPrice\":\"90230.3058075903\"},{\"marginAssets\":\"ETH\",\"ltv\":\"95.00%\",\"collateralValueRatio\":\"95.00%\",\"maxTransfer\":\"100\",\"indexPrice\":\"3214.4279682820\"}]},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"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\":\"marginAssets\",\"type\":\"string\",\"description\":\"Margin assets, such as BTC, ETH, etc.\"},{\"name\":\"ltv\",\"type\":\"string\",\"description\":\"Loan-to-Value ratio, value conversion ratio used when calculating available margin.\"},{\"name\":\"collateralValueRatio\",\"type\":\"string\",\"description\":\"Collateral ratio, value conversion ratio used when calculating risk rate.\"},{\"name\":\"maxTransfer\",\"type\":\"string\",\"description\":\"Transfer limit, maximum amount that can be transferred in. Empty means no limit.\"},{\"name\":\"indexPrice\",\"type\":\"string\",\"description\":\"Current latest USD index price for the asset.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/35_get_multi_asset_rule.json\n// module id = jifI\n// module chunks = 3","var map = {\n\t\"./00_post_trade_order.json\": \"YI4R\",\n\t\"./01_get_commissionRate.json\": \"n+yS\",\n\t\"./02_get_leverage.json\": \"bFqw\",\n\t\"./03_post_leverage.json\": \"N7P3\",\n\t\"./04_post_allOpenOrders.json\": \"0Lu1\",\n\t\"./05_post_closeAllPositions.json\": \"vDcD\",\n\t\"./06_get_positions.json\": \"+oba\",\n\t\"./07_get_balance.json\": \"ptJe\",\n\t\"./08_get_forceOrders.json\": \"D/10\",\n\t\"./09_get_allFillOrders.json\": \"f4x/\",\n\t\"./10_delete_trade_order.json\": \"01Ul\",\n\t\"./11_get_all_openOrders.json\": \"TzVG\",\n\t\"./12_get_trade_order.json\": \"c76v\",\n\t\"./14_get_trade_allOrders.json\": \"I2ee\",\n\t\"./15_get_margin_type.json\": \"qPGu\",\n\t\"./16_post_margin_type.json\": \"LawJ\",\n\t\"./17_post_trade_positionMargin.json\": \"eN7O\"\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 = \"jmrT\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade \\.json$\n// module id = jmrT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Current All Open Orders\"},{\"type\":\"normal\",\"text\":\"Query all orders that the user is currently entrusted with.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/openOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702733126509\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44459.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702256915574,\"updateTime\":1702256915610,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"workingType\":\"MARK_PRICE\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1733405587011123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0030\",\"price\":\"44454.6\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0\",\"commission\":\"0.0\",\"status\":\"PENDING\",\"time\":1702111071719,\"updateTime\":1702111071735,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"StopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"trailingStopRate\":0,\"trailingStopDistance\":0,\"postOnly\":false,\"workingType\":\"MARK_PRICE\"}]}}},\"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,When not filled, query all pending orders. When filled, query the pending orders for the corresponding currency pair\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order/ TRIGGER_REVERSE_MARKET:trigger reverse Market order \"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"postOnly\",\"type\":\"bool\",\"description\":\"Maker only\"},{\"name\":\"trailingStopRate\",\"type\":\"float64\",\"description\":\"Retracement rate\"},{\"name\":\"trailingStopDistance\",\"type\":\"int64\",\"description\":\"價差\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢持倉模式\"},{\"type\":\"normal\",\"text\":\"用於查詢永續合約的持倉方式,支援雙向持倉和單向持倉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionSide/dual\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"dualSidePosition\":\"true\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109401,\"msg\":\"user has pending orders or position\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"string\",\"description\":\"\\\"true\\\": 雙向持倉模式;\\\"false\\\": 單向持倉模式\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/19_get_positionSide.json\n// module id = jzOs\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-01-10\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"GET /openApi/api/v3/capital/withdraw/history response added fields: sourceAddress/transferType/addressTag\"},{\"type\":\"html\",\"text\":\"GET /openApi/api/v3/capital/deposit/hisrec response added field: sourceAddress\"},{\"type\":\"html\",\"text\":\"Perpetual contract new: Query Pending Order Status Interface\"},{\"type\":\"html\",\"text\":\"Spot addition: Query transaction details api GET /openApi/spot/v1/trade/myTrades\"},{\"type\":\"html\",\"text\":\"Perpetual contract new:Query Historical Trading Orders api GET /openApi/swap/v1/market/historicalTrades\"},{\"type\":\"html\",\"text\":\"Perpetual contract:Query the historical funding rate. 1. Change the input parameter 'symbol' to non-mandatory. 2. response added field: fairPrice\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - Optional Push Interval for Depth Information\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-01-10.json\n// module id = k/At\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","var map = {\n\t\"./00_get_account_balance.json\": \"HY4c\",\n\t\"./01_get_asset_transfer.json\": \"bSWG\",\n\t\"./02_get_asset_transfer2.json\": \"gp5h\",\n\t\"./07_post_capital_innerTransfer_apply.json\": \"KPNz\",\n\t\"./14.get_wallet_queryInnerTransferRecords.json\": \"9tS2\",\n\t\"./21_get_account_allAccountBalance.json\": \"Exaw\"\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\":\"Withdraw records\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":\"USDT\",\"endTime\":\"1702536564000\",\"recvWindow\":\"60\",\"startTime\":\"1702450164000\",\"timestamp\":\"1702622964230\"},\"response\":[{\"address\":\"TR****zc\",\"amount\":\"3500.00000000000000000000\",\"applyTime\":\"2023-12-14T04:05:02.000+08:00\",\"coin\":\"USDTTRC20\",\"id\":\"125*****98\",\"network\":\"TRC20\",\"transferType\":1,\"transactionFee\":\"1.00000000000000000000\",\"confirmNo\":2,\"info\":\"\",\"txId\":\"b9***********b67\"}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Unique id of the withdrawal record returned by the platform\"},{\"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,When both the platform ID and withdraw order ID are passed as parameters, the query will be based on the platform ID\"},{\"name\":\"status\",\"type\":\"int\",\"required\":\"no\",\"description\":\"4-Under Review 5-Failed 6-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\":\"withdraw 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,When both the platform ID and withdraw order ID are passed as parameters, the query will be based on the platform ID\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Withdrawal network\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"4-Under Review 5-Failed 6-Completed\"},{\"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\"},{\"name\":\"sourceAddress\",\"type\":\"String\",\"description\":\"Source address\"},{\"name\":\"transferType\",\"type\":\"int\",\"description\":\"Transfer type: 1 Withdrawal, 2 Internal transfer\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"Some currencies like XRP/XMR allow filling in secondary address tags\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/04_get_withdraw_history.json\n// module id = kh23\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-06-28\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續新增接口:查詢歷史成交明細\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-06-28.json\n// module id = khDw\n// module chunks = 3","var map = {\n\t\".\": \"eIko\",\n\t\"./\": \"eIko\",\n\t\"./01_trade_info\": \"m2cs\",\n\t\"./01_trade_info.json\": \"m2cs\",\n\t\"./02_last_price\": \"ntfQ\",\n\t\"./02_last_price.json\": \"ntfQ\",\n\t\"./03_mark_price\": \"D6bT\",\n\t\"./03_mark_price.json\": \"D6bT\",\n\t\"./04_depth\": \"pvqc\",\n\t\"./04_depth.json\": \"pvqc\",\n\t\"./05_bookTicker\": \"exCQ\",\n\t\"./05_bookTicker.json\": \"exCQ\",\n\t\"./06_kline\": \"p1RX\",\n\t\"./06_kline.json\": \"p1RX\",\n\t\"./07_24hr_ticker\": \"5LXd\",\n\t\"./07_24hr_ticker.json\": \"5LXd\",\n\t\"./index\": \"eIko\",\n\t\"./index.js\": \"eIko\"\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 = \"kiRb\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market ^.*$\n// module id = kiRb\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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1min\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1min\\\"}\"},\"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\":\"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\":\"1分鐘k線\"},{\"name\":\"3min\",\"description\":\"3分鐘k線\"},{\"name\":\"5min\",\"description\":\"5分鐘k線\"},{\"name\":\"15min\",\"description\":\"15分鐘k線\"},{\"name\":\"30min\",\"description\":\"30分鐘k線\"},{\"name\":\"60min\",\"description\":\"60分鐘k線\"},{\"name\":\"2hour\",\"description\":\"2小時k線\"},{\"name\":\"4hour\",\"description\":\"4小時k線\"},{\"name\":\"6hour\",\"description\":\"6小時k線\"},{\"name\":\"8hour\",\"description\":\"8小時k線\"},{\"name\":\"12hour\",\"description\":\"12小時k線\"},{\"name\":\"1day\",\"description\":\"1日k線\"},{\"name\":\"3day\",\"description\":\"3日k線\"},{\"name\":\"1week\",\"description\":\"1週k線\"},{\"name\":\"1mon\",\"description\":\"1月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","module.exports = [{\"type\":\"hash\",\"text\":\"交易員按買入訂單號賣出现货資產\"},{\"type\":\"normal\",\"text\":\"此節點用於交易員按现货買入訂單號賣出現貨資產,用於賣出帶單訂單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/spot/trader/sellOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1253517936071234567\"},\"response\":{\"code\":0,\"timestamp\":1711619555065,\"data\":{\"orderNo\":1773285851363541000,\"coinName\":\"BTC\",\"valuationCoinName\":\"USDT\",\"side\":2,\"price\":\"70850\",\"dealPrice\":\"70612.7438655\",\"delegatePrice\":\"70613.45\",\"status\":30}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"交易員現貨買入訂單號\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderNo\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"成交訂單號\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"用戶傳過來的價格\"},{\"name\":\"dealPrice\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"成交均價\"},{\"name\":\"coinName\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易幣的名稱,比如BTC\"},{\"name\":\"status\",\"type\":\"int8\",\"required\":\"是\",\"description\":\"訂單的狀態 5 未觸發 10處理中 11委託中 20撤銷中 30 成功 31 已撤銷 40失敗\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/copyTrade/api/trader/04_spot_trader_sell_order.json\n// module id = kpfu\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\t\"./05_get_quote_ticker.json\": \"wj44\",\n\t\"./06_get_market_agg_depth.json\": \"cYhj\",\n\t\"./07_get_market_price.json\": \"ymfm\",\n\t\"./08_get_market_book_ticker.json\": \"Tbeq\",\n\t\"./09_get_market_history_klines.json\": \"7UNC\",\n\t\"./10_get_ market_histroy_traders.json\": \"cRRp\"\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\":\"撤單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancel\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1735964079647111280\",\"symbol\":\"NEMS-USDT\",\"timestamp\":\"1702721073626\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbol\":\"NEMS-USDT\",\"orderId\":1735964079647111200,\"price\":\"0.1532\",\"stopPrice\":\"0.1532\",\"origQty\":\"126\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\"}}},\"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\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"否\",\"description\":\"撤销指定状态的订单:NEW:新订单 ,PENDING:委托中,PARTIALLY_FILLED:部分成交\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/021_post_trade_order_cancel.json\n// module id = l/8P\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query historical transaction details\"},{\"type\":\"normal\",\"text\":\"Obtain the transaction history details of a certain transaction pair\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Explanation of Order List Retrieval Rules\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"normal\",\"text\":\"Sorting: ORDER BY filledTime ASC, in ascending order of filledTime field\"},{\"type\":\"normal\",\"text\":\"Maximum range: [From current date] up to past 7 days & maximum of 1000 historical filled orders, startTs = [current date] - 7 days\"},{\"type\":\"normal\",\"text\":\"If both startTs and endTs are provided, the data range returned is: startTs < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"If only endTs is provided, the data range returned is: ([current date] - 7 days) < orderList <= endTs\"},{\"type\":\"normal\",\"text\":\"If only startTs is provided, no data is returned\"},{\"type\":\"normal\",\"text\":\"If orderId is provided, only the filled orders of that orderId are returned\"}]},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/fillHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTs\":\"1702731530000\",\"startTs\":\"1702724330000\",\"symbol\":\"WLD-USDT\",\"lastFillId\":130753,\"pageSize\":50,\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"fill_history_orders\":[{\"filledTm\":\"2023-12-16T20:58:36Z\",\"volume\":\"4.10\",\"price\":\"3.1088\",\"qty\":\"12.74\",\"quoteQty\":\"211.40\",\"commission\":\"-0.0025\",\"commissionAsset\":\"USDT\",\"orderId\":\"1736007768311123456\",\"tradeId\":\"241512\",\"filledTime\":\"2023-12-16T20:58:36.000+0800\",\"symbol\":\"WLD-USDT\",\"role\":\"maker\",\"side\":\"buy\",\"positionSide\":\"short\"}],\"total\":290}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"no\",\"description\":\"USDC or USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"If orderId is provided, only the filled orders of that orderId are returned\"},{\"name\":\"lastFillId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The last tradeId of the last query, default is 0 if not filled in.\"},{\"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\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The page number must be greater than 0, if not filled in, the default is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The size of each page must be greater than 0, the maximum value is 1000, if you do not fill in, then the default 50\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"Transaction quantity\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Transaction price\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"Transaction amount\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"commission\"},{\"name\":\"commissionAsset\",\"type\":\"string\",\"description\":\"Asset unit, usually USDT\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"order id\"},{\"name\":\"tradeId\",\"type\":\"string\",\"description\":\"trade id\"},{\"name\":\"filledTime\",\"type\":\"string\",\"description\":\"Match the transaction time in the format of 2006-01-02T15:04:05.999+0800\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"role\",\"type\":\"string\",\"description\":\"Active selling and buying, taker: active buying, maker: active selling\"},{\"name\":\"total\",\"type\":\"int64\",\"description\":\"total records\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/25_get_fill_history_detail.json\n// module id = l3pU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢用戶API Key權限\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiRestrictions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702624501386\"},\"response\":{\"ipRestrict\":false,\"createTime\":1684763997626,\"permitsUniversalTransfer\":false,\"enableReading\":true,\"enableFutures\":false,\"enableSpotAndMarginTrading\":false}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"Kline/Candlestick Data\"},{\"type\":\"normal\",\"text\":\"Check the candlestick chart data of the filled price\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Up to 15 days of data can be returned
  • \"},{\"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/v2/market/kline\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"interval\":\"1m\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720626772,\"data\":[[1702720620000,42216.29,42216.94,42216.29,42216.72,0.2,1702720679999,8548.46],[1702720560000,42220.61,42221.1,42215.56,42216.63,2.93,1702720619999,123968.7],[1702720500000,42182.59,42220.38,42182.59,42220.38,1.53,1702720559999,64851.33],[1702720440000,42182.84,42183.16,42182.22,42182.81,2.54,1702720499999,107559.45],[1702720380000,42199.72,42204.53,42180.2,42182.76,1.1,1702720439999,46549.09]]}},\"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\"},{\"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\":\"klines\",\"type\":\"array\",\"description\":\"Candlestick chart array\"}]},{\"type\":\"data in array\",\"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\":\"Trading volume (number of coins)\"},{\"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\":\"title\",\"text\":\"2024-07-30\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位:所有行情接口和websocket DataType支持USDC幣對。\"},{\"type\":\"html\",\"text\":\"新增: /openApi/swap/v3/user/balance 同時返回 USDT 和 USDC\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-07-30.json\n// module id = l7kI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢係統時間\"},{\"type\":\"html\",\"text\":\"

    HTTP請求

    \"},{\"type\":\"warning\",\"text\":\"GET https://open-api.bingx.com/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/cswap/api/basic/05_system_time.json\n// module id = lC7j\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 https://open-api.bingx.com/openApi/user/auth/userDataStream\"},{\"type\":\"normal\",\"text\":\"CURL\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/del\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":14189999,\"apiKey\":\"2W****mA\"},\"response\":{\"code\":0,\"timestamp\":1702021810315}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"apiKey\",\"type\":\"string\",\"required\":\"是\",\"description\":\"\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子母賬戶資金劃轉可劃轉金額(僅限母賬戶操作)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/transferAsset/supportCoins\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"fromUid\":\"25472377\",\"fromAccountType\":\"2\",\"toUid\":\"25316652\",\"toAccountType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1719498078761,\"data\":{\"coins\":[{\"id\":4,\"name\":\"USDT\",\"showName\":\"Tether\",\"icon\":{\"id\":4,\"uri\":\"https://static-app.teststar.cc/icon/USDT.png\"},\"type\":0,\"fiatSymbol\":\"$\",\"availableAmount\":\"79.02345678\",\"usdtRate\":\"1\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"fromUid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方uid\"},{\"name\":\"fromAccountType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉出方賬戶類型:1-資金賬戶;2-標合賬戶;3-永續U本位賬戶\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方uid\"},{\"name\":\"toAccountType\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"轉入方賬戶類型:1-資金賬戶;2-標合賬戶;3-永續U本位賬戶\"},{\"name\":\"recvWindow\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"執行窗口時間,不能大於 60000\"},{\"name\":\"timestamp\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"當前時間戳 例如1658748648396\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"coins\",\"type\":\"ARRAY\",\"description\":\"幣種列表\"},{\"name\":\"id\",\"type\":\"LONG\",\"description\":\"幣種id\"},{\"name\":\"name\",\"type\":\"STRING\",\"description\":\"幣種名稱,例如USDT\"},{\"name\":\"availableAmount\",\"type\":\"DECIMAL\",\"description\":\"可劃轉金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/19_sub_account_transfer_support_coin.json\n// module id = lU9A\n// module chunks = 3","var map = {\n\t\"./01_server_url.json\": \"wWlE\",\n\t\"./03_error_code.json\": \"/sx7\",\n\t\"./04_rate_limits.json\": \"bIsO\",\n\t\"./04_server_url.json\": \"GK5R\"\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\"./03_get_deposit_hisrec.json\": \"ZlbJ\",\n\t\"./04_get_withdraw_history.json\": \"DNed\",\n\t\"./05_post_wallets_coins.json\": \"BYvq\",\n\t\"./06_post_wallets_withdraw.json\": \"yxdj\",\n\t\"./13.get_wallet_queryDepositAddress.json\": \"WnFl\",\n\t\"./14_get_risk_deposit_records.json\": \"JbVL\"\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 = \"loP8\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet \\.json$\n// module id = loP8\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱最新價格變動\"},{\"type\":\"normal\",\"text\":\"實時推送。\"},{\"type\":\"normal\",\"text\":\"推送最新價格變動。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @lastPrice,比如BTC-USDT@lastPrice。\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},\"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@lastPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"最新交易價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/05_last_trade_price.json\n// module id = lqZR\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"合約交易幣對\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"contractId\":\"100\",\"symbol\":\"BTC-USDT\",\"size\":\"0\",\"quantityPrecision\":4,\"pricePrecision\":1,\"feeRate\":0.0005,\"makerFeeRate\":0.0002,\"takerFeeRate\":0.0005,\"tradeMinLimit\":0,\"tradeMinQuantity\":0.0001,\"tradeMinUSDT\":2,\"maxLongLeverage\":125,\"maxShortLeverage\":125,\"currency\":\"USDT\",\"asset\":\"BTC\",\"status\":1,\"apiStateOpen\":\"true\",\"apiStateClose\":\"true\",\"brokerState\":\"true\",\"launchTime\":1586275200000,\"maintainTime\":0,\"offTime\":0},{\"contractId\":\"101\",\"symbol\":\"ETH-USDT\",\"size\":\"0\",\"quantityPrecision\":2,\"pricePrecision\":2,\"feeRate\":0.0005,\"makerFeeRate\":0.0002,\"takerFeeRate\":0.0005,\"tradeMinLimit\":0,\"tradeMinQuantity\":0.01,\"tradeMinUSDT\":2,\"maxLongLeverage\":125,\"maxShortLeverage\":125,\"currency\":\"USDT\",\"asset\":\"ETH\",\"status\":1,\"apiStateOpen\":\"true\",\"apiStateClose\":\"true\",\"brokerState\":\"true\",\"launchTime\":1586275200000,\"maintainTime\":0,\"offTime\":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\":\"contractId\",\"type\":\"string\",\"description\":\"合約ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"quantityPrecision\",\"type\":\"int\",\"description\":\"交易數量精度\"},{\"name\":\"pricePrecision\",\"type\":\"int\",\"description\":\"價格精度\"},{\"name\":\"makerFeeRate\",\"type\":\"float64\",\"description\":\"maker 交易手續費\"},{\"name\":\"takerFeeRate\",\"type\":\"float64\",\"description\":\"taker 交易手續費\"},{\"name\":\"tradeMinQuantity\",\"type\":\"float64\",\"description\":\"交易最小單位,單位為:幣\"},{\"name\":\"tradeMinUSDT\",\"type\":\"float64\",\"description\":\"交易最小單位,單位為:USDT\"},{\"name\":\"currency\",\"type\":\"string\",\"description\":\"結算和保證金货幣資產\"},{\"name\":\"asset\",\"type\":\"string\",\"description\":\"合約交易資產\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"1:上線,25:禁止開倉, 5:預上線,0:已下線\"},{\"name\":\"apiStateOpen\",\"type\":\"string\",\"description\":\"API是否可開倉\"},{\"name\":\"apiStateClose\",\"type\":\"string\",\"description\":\"API是否可平倉\"},{\"name\":\"ensureTrigger\",\"type\":\"bool\",\"description\":\"是否支持保證止損\"},{\"name\":\"triggerFeeRate\",\"type\":\"string\",\"description\":\"保證止損的手續費\"},{\"name\":\"brokerState\",\"type\":\"bool\",\"description\":\"是否禁止broker用戶交易,true:禁止\"},{\"name\":\"launchTime\",\"type\":\"long\",\"description\":\"上架時間;上架時間前幣對狀態為預上線,上架時間後幣對狀態變為已上線\"},{\"name\":\"maintainTime\",\"type\":\"long\",\"description\":\"禁止開倉開始時間,時間到後幣對處於禁止開倉狀態,僅可以平倉\"},{\"name\":\"offTime\",\"type\":\"long\",\"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\":\"Access\"},{\"type\":\"normal\",\"text\":\"the base URL of Websocket Market Data :wss://open-api-cswap-ws.bingx.com/market\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/introduce/01_connect.json\n// module id = lyY+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢API KEY權限\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiPermissions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702624501386\"},\"response\":{\"apiKey\":\"\",\"permissions\":[1,2],\"ipAddresses\":[],\"note\":\"demo\"}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"apiKey\",\"type\":\"String\",\"description\":\"apiKey\"},{\"name\":\"permissions\",\"type\":\"array\",\"description\":\"權限,1-現貨交易,2-讀取,3-專業合約交易,4-萬向劃轉,5-提幣,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/02_get_account_apiPermission.json\n// module id = m+RL\n// module chunks = 3","var map = {\n\t\".\": \"tksP\",\n\t\"./\": \"tksP\",\n\t\"./01_post_trade_aorder\": \"MZay\",\n\t\"./01_post_trade_aorder.json\": \"MZay\",\n\t\"./01_post_trade_batchOrders\": \"jKsK\",\n\t\"./01_post_trade_batchOrders.json\": \"jKsK\",\n\t\"./021_post_trade_order_cancel\": \"l/8P\",\n\t\"./021_post_trade_order_cancel.json\": \"l/8P\",\n\t\"./022_post_trade_orders_cancel\": \"uDFu\",\n\t\"./022_post_trade_orders_cancel.json\": \"uDFu\",\n\t\"./023_post_cancelOpenOrders\": \"BdSn\",\n\t\"./023_post_cancelOpenOrders.json\": \"BdSn\",\n\t\"./023_post_trade_order_cancel_replace\": \"qru4\",\n\t\"./023_post_trade_order_cancel_replace.json\": \"qru4\",\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\"./077_get_trade_fill_details\": \"ui1J\",\n\t\"./077_get_trade_fill_details.json\": \"ui1J\",\n\t\"./08_get_commissionRate\": \"OkZ/\",\n\t\"./08_get_commissionRate.json\": \"OkZ/\",\n\t\"./09_cancel_all_after\": \"IW4y\",\n\t\"./09_cancel_all_after.json\": \"IW4y\",\n\t\"./100_post_one_oco_order\": \"0DXm\",\n\t\"./100_post_one_oco_order.json\": \"0DXm\",\n\t\"./101_cancel_one_oco_order\": \"cfpy\",\n\t\"./101_cancel_one_oco_order.json\": \"cfpy\",\n\t\"./102_get_one_oco_order\": \"bM6w\",\n\t\"./102_get_one_oco_order.json\": \"bM6w\",\n\t\"./103_get_all_pending_oco_order\": \"EsEh\",\n\t\"./103_get_all_pending_oco_order.json\": \"EsEh\",\n\t\"./104_get_all_history_oco_order\": \"bjJG\",\n\t\"./104_get_all_history_oco_order.json\": \"bjJG\",\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","module.exports = [{\"type\":\"hash\",\"text\":\"按交易訂閱交易\"},{\"type\":\"normal\",\"text\":\"訂閱交易對的交易詳情數據\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @trade 例如 BTC-USD@trade\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@trade\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@trade\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送數據\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"trade\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"t\",\"type\":\"33685717\",\"description\":\"交易ID\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"交易價格\"},{\"name\":\"q\",\"type\":\"1\",\"description\":\"成交數量(合約數量)\"},{\"name\":\"T\",\"type\":\"1649832413512\",\"description\":\"交易時間\"},{\"name\":\"m\",\"type\":\"true\",\"description\":\"買方是否為做市商。如果為true,此交易為主動賣單,否則為主動買單。\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/01_trade_info.json\n// module id = m2cs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢合約基礎信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/contracts\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"symbol\":\"BTC-USD\",\"pricePrecision\":1,\"minTickSize\":\"100\",\"minTradeValue\":\"100\",\"minQty\":\"1.00000000\",\"status\":1,\"timeOnline\":1710738000000},{\"symbol\":\"ETH-USD\",\"pricePrecision\":2,\"minTickSize\":\"10\",\"minTradeValue\":\"10\",\"minQty\":\"1.00000000\",\"status\":1,\"timeOnline\":1710738000000}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USD\"},{\"name\":\"pricePrecision\",\"type\":\"int64\",\"description\":\"交易數量精度\"},{\"name\":\"minTickSize\",\"type\":\"string\",\"description\":\"價格精度\"},{\"name\":\"minTradeValue\",\"type\":\"string\",\"description\":\"最小交易金額\"},{\"name\":\"minQty\",\"type\":\"string\",\"description\":\"交易最小單位,單位為:幣\"},{\"name\":\"status\",\"type\":\"int64\",\"description\":\"1上線, 25 暫停\"},{\"name\":\"timeOnline\",\"type\":\"int64\",\"description\":\"幣對上線時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market/01_get_contracts.json\n// module id = mCcU\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Trader sells spot assets based on buy order number\"},{\"type\":\"normal\",\"text\":\"This node is used for traders to buy spot orders and sell spot assets, used for selling orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/spot/trader/sellOrder\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderId\":\"1253517936071234567\"},\"response\":{\"code\":0,\"timestamp\":1711619555065,\"data\":{\"orderNo\":1773285851363541000,\"coinName\":\"BTC\",\"valuationCoinName\":\"USDT\",\"side\":2,\"price\":\"70850\",\"dealPrice\":\"70612.7438655\",\"delegatePrice\":\"70613.45\",\"status\":30}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Trader's spot buy order number\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"orderNo\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Transaction order number\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Price passed by the user\"},{\"name\":\"dealPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Average transaction price\"},{\"name\":\"coinName\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Name of the trading coin, such as BTC\"},{\"name\":\"status\",\"type\":\"int8\",\"required\":\"yes\",\"description\":\"Order status 5 Not triggered 10 Processing 11 In commission 20 Cancelling 30 Success 31 Cancelled 40 Failed\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader/04_spot_trader_sell_order.json\n// module id = mCp6\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 await bingXOpenApiTest(API.protocol, HOST, API.uri, API.method, API_KEY, API_SECRET)\n}\nfunction getParameters(API, timestamp, urlEncode) {\n let parameters = \"\"\n for (const key in API.payload) {\n if (urlEncode) {\n parameters += key + \"=\" + encodeURIComponent(API.payload[key]) + \"&\"\n } else {\n parameters += key + \"=\" + API.payload[key] + \"&\"\n }\n }\n if (parameters) {\n parameters = parameters.substring(0, parameters.length - 1)\n parameters = parameters + \"×tamp=\" + timestamp\n } else {\n parameters = \"timestamp=\" + timestamp\n }\n return parameters\n}\n\nmain().catch(console.err);\nasync function bingXOpenApiTest(protocol, host, path, method, API_KEY, API_SECRET) {\n const timestamp = new Date().getTime()\n const sign = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA256(getParameters(API, timestamp), API_SECRET))\n const url = protocol+\"://\"+host+path+\"?\"+getParameters(API, timestamp, true)+\"&signature=\"+sign\n console.log(\"protocol:\", protocol)\n console.log(\"method:\", method)\n console.log(\"host:\", host)\n console.log(\"path:\", path)\n console.log(\"parameters:\", getParameters(API, timestamp))\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 !!!!!!!very important\n Notice:in nodeJS when you converts original resp(string) to json, order id is a big-int in some response\n it may have big-int issue, will be transformed automatically\n for example: order id: 172998235239792314304 -be transformed automatically to-->172998235239792314300\n if you find something wrong with order id like 'order not exist' or found the order id suffix with 00 or more 0, chould be the reason \n then can print the original response like below to check the origianl order id \n console.log(resp); \n return resp;\n }\n };\n const resp = await axios(config);\n console.log(resp.status);\n console.log(resp.data);\n !!!!!!!very important\n if there is a Big int ,can transfer it like this below:\n let jsonString = '{\"longInt\":1807651653281644544}';\n console.log(\"original data:\",jsonString)\n let obj = JSON.parse(jsonString);\n console.log(\"JSON.parse:\",obj)\n let longInt = BigInt(obj.longInt);\n console.log(\"to longInt:\",longInt.toString())\n}`\nexport default nodejs\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/code/javascript.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\":\"24hr Ticker Price Change Statistics\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • It is used to query the price change data of the current currency pair in the 24-hour rolling window. Without the symbols parameter, all transaction pair data will be returned
  • \"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/24hr\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702720770200\"},\"response\":{\"code\":0,\"timestamp\":1702720823624,\"data\":[{\"symbol\":\"BTC-USDT\",\"openPrice\":42827.65,\"highPrice\":42893.56,\"lowPrice\":41648.71,\"lastPrice\":42215.15,\"priceChange\":1244.85,\"priceChangePercent\":\"2.91%\",\"volume\":5099.21,\"quoteVolume\":214948771.34,\"openTime\":1702634423624,\"closeTime\":1702720823624,\"askPrice\":42215.55,\"askQty\":2.20125,\"bidPrice\":42214.65,\"bidQty\":0.8962}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pairs, such as: BTC-USDT, will return all symbol data when no parameters are entered\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"The timestamp of the request, in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, for example: BTC-USDT\"},{\"name\":\"openPrice\",\"type\":\"string\",\"description\":\"Opening price in the last 24 hours\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"The highest price in the last 24 hours\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"The lowest price in the last 24 hours\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"Latest price\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"Total trading volume (base asset)\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"Total quote volume (quote asset)\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"The start time of the ticker interval\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"description\":\"end time of the ticker interval\"},{\"name\":\"count\",\"type\":\"int\",\"description\":\"The number of transactions within the statistical time\"},{\"name\":\"bidPrice\",\"type\":\"float64\",\"description\":\"bid price\"},{\"name\":\"bidQty\",\"type\":\"float64\",\"description\":\"bid quantity\"},{\"name\":\"askPrice\",\"type\":\"float64\",\"description\":\"ask price\"},{\"name\":\"askQty\",\"type\":\"float64\",\"description\":\"ask quantity\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"Price change percentage field\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/05_get_quote_ticker.json\n// module id = mWiW\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query API transaction commission (non-invitation relationship)\"},{\"type\":\"normal\",\"text\":\"Query API transaction commissions, commissions from API transactions for non-invited relationship users.Broker platform specific.\"},{\"type\":\"html\",\"text\":\"
  • 1. Only supports querying data after December 1, 2023;
  • \"},{\"type\":\"html\",\"text\":\"
  • 2. startTime 'endtime, endtime -startTime' = 7.
  • \"},{\"type\":\"html\",\"text\":\"
  • 3.Only supports querying the commissions of users who have no invitation relationship but place orders through the corresponding channel API.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/reward/third/commissionDataList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"1645382\",\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"commissionBizType\":\"81\",\"recWindow\":\"6000\"},\"response\":{\"code\":0,\"msg\":\"SUCCESS\",\"timestamp\":1689579799063,\"data\":{\"list\":[{\"uid\":25053735,\"commissionTime\":1700759104737,\"tradeVolume\":\"10.234\",\"commissionVolume\":\"0.02663866\",\"commissionBizType\":81}],\"total\":3}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"UID of the trading user (non-invitation relationship user)\"},{\"name\":\"commissionBizType\",\"type\":\"int\",\"required\":\"YES\",\"description\":\"81: perpetual contract trading API commission 82: spot trading API commission\"},{\"name\":\"startTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"Start timestamp (days), Only supports querying data after December 1, 2023.\"},{\"name\":\"endTime\",\"type\":\"date\",\"required\":\"YES\",\"description\":\"End timestamp (days). Only supports querying data after December 1, 2023.\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"Page number for pagination, must be greater than 0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"The number of pages must be greater than 0 and the maximum value is 100\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: milliseconds. If not filled, the default is 5 seconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"request timestamp, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"UID of the trading user (non-invitation relationship user)\"},{\"name\":\"commissionTime\",\"type\":\"long\",\"description\":\"Commission timestamp, date\"},{\"name\":\"tradeVolume\",\"type\":\"string\",\"description\":\"API order amount is discounted in USDT\"},{\"name\":\"commissionVolume\",\"type\":\"string\",\"description\":\"ebate commission amount in USDT\"},{\"name\":\"commissionBizType\",\"type\":\"int\",\"description\":\"81: perpetual contract trading API commission 82: spot trading API commission\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/05_get_Query_API_transaction_commission.json\n// module id = mYC+\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"批量査詢子帳戶資產概覽\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/allAccountBalance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"subUid\":25316652,\"accountType\":\"sopt\",\"pageIndex\":1,\"pageSize\":10,\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\"},\"response\":{\"code\":0,\"timestamp\":1719494258281,\"data\":{\"result\":[{\"subUid\":\"16477999\",\"accountBalances\":[{\"accountType\":\"sopt\",\"usdtBalance\":\"100\"}]}],\"pageId\":1,\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"否\",\"description\":\"子賬戶uid\"},{\"name\":\"accountType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"帳戶類型,不填默認查全部帳戶的資產。 sopt:現貨(資金帳戶),stdFutures:標準合約帳戶,coinMPerp:幣本位帳戶,USDTMPerp:U本位帳戶,copyTrading:跟單帳戶,grid:策略帳戶,eran:理財帳戶,c2c:c2c帳戶等。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁頁碼,必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁大小,必須大於0,最大10\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"subUid\",\"type\":\"long\",\"description\":\"子賬戶uid\"},{\"name\":\"accountType\",\"type\":\"string\",\"description\":\"帳戶類型,不填默認查全部帳戶的資產。 sopt:現貨(資金帳戶),stdFutures:標準合約帳戶,coinMPerp:幣本位帳戶,USDTMPerp:U本位帳戶,copyTrading:跟單帳戶,grid:策略帳戶,eran:理財帳戶,c2c:c2c帳戶等。\"},{\"name\":\"usdtBalance\",\"type\":\"string\",\"description\":\"折合USDT金額\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/22_sub_account_allAccountBalance.json\n// module id = mYOy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶充值地址\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶查詢子用戶特定幣種在其所在區塊鏈中的充幣地址,限母用戶可用。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccount/deposit/address\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"limit\":\"100\",\"offset\":0,\"subUid\":16239999},\"response\":{\"code\":0,\"timestamp\":1700741585439,\"data\":{\"data\":[],\"total\":0}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子賬戶uid\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"充值地址列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"網絡名稱\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"充值地址\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"帶有前綴的儲值地址\"},{\"name\":\"tag\",\"type\":\"string\",\"description\":\"地址tag\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0已激活 1已申請 2未申請\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/15.get_wallet_querySubDepositAddress.json\n// module id = mcEH\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"創建子帳戶充值地址\"},{\"type\":\"normal\",\"text\":\"此節點用於母用戶創建子用戶的充幣地址,每個幣種僅支持1個充值地址,限母用戶可用\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/createSubAddress\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":\"16769999\",\"walletType\":\"1\",\"coin\":\"USDT\",\"network\":\"TRC20\",\"recvWindow\":\"10000\"},\"response\":{\"code\":0,\"timestamp\":1702444060331,\"data\":{\"coin\":\"USDT\",\"address\":\"T********D\",\"network\":\"TRC20\",\"addressTag\":\"\",\"status\":0,\"ts\":1702444060331}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣種名稱\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"是\",\"description\":\"子帳戶uid\"},{\"name\":\"network\",\"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\":\"address\",\"type\":\"string\",\"description\":\"地址\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"帶有前綴的儲值地址\"},{\"name\":\"addressTag\",\"type\":\"string\",\"description\":\"地址標籤\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"網絡名稱\"},{\"name\":\"status\",\"type\":\"decimal\",\"description\":\"地址狀態 0已激活 1申請中 2未申請\"},{\"name\":\"ts\",\"type\":\"long\",\"description\":\"創建時間,Unix 時間戳的毫秒數格式,如 1597026383085\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/12.post_wallet_createSubDepositAddress.json\n// module id = mmsx\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query position data\"},{\"type\":\"normal\",\"text\":\"Retrieve information on users' positions of Perpetual Swap.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BNB-USDT\",\"timestamp\":\"1702731661854\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"positionId\":\"1735*****52\",\"symbol\":\"BNB-USDT\",\"currency\":\"USDT\",\"positionAmt\":\"0.20\",\"availableAmt\":\"0.20\",\"positionSide\":\"SHORT\",\"isolated\":true,\"avgPrice\":\"246.43\",\"initialMargin\":\"9.7914\",\"leverage\":5,\"unrealizedProfit\":\"-0.0653\",\"realisedProfit\":\"-0.0251\",\"liquidationPrice\":294.16914617776246}]}},\"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\":\"initialMargin\"},{\"name\":\"margin\",\"type\":\"string\",\"description\":\"margin\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average opening price\"},{\"name\":\"liquidationPrice\",\"type\":\"float64\",\"description\":\"liquidation price\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"leverage\"},{\"name\":\"positionValue\",\"type\":\"string\",\"description\":\"Position value\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"Mark price\"},{\"name\":\"riskRate\",\"type\":\"string\",\"description\":\"Risk rate. When the risk rate reaches 100%, it will force liquidation or position reduction\"},{\"name\":\"maxMarginReduction\",\"type\":\"string\",\"description\":\"Maximum margin reduction\"},{\"name\":\"pnlRatio\",\"type\":\"string\",\"description\":\"Unrealized P&L ratio\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"Position update time, in milliseconds timestamp.\"}]}]}]\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\":\"查詢交易手續費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718353924453,\"data\":{\"takerCommissionRate\":\"0.0004\",\"makerCommissionRate\":\"0.00013999\"}}},\"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\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"takerCommissionRate\",\"type\":\"string\",\"description\":\"吃單手續費率\"},{\"name\":\"makerCommissionRate\",\"type\":\"string\",\"description\":\"掛單手續費率\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/01_get_commissionRate.json\n// module id = n+yS\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query standard contract balance\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":[{\"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\":\"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\":\"/zh-tw/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\":\"Query position mode\"},{\"type\":\"normal\",\"text\":\"Used to get the position mode of perpetual contract, supporting both dual position mode and single position mode\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionSide/dual\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"dualSidePosition\":\"true\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109401,\"msg\":\"user has pending orders or position\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"The window time for the request to be valid, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"string\",\"description\":\"\\\"true\\\": dual position mode; \\\"false\\\": single position mode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/19_get_positionSide.json\n// module id = n7WW\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","\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/q&a/index.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/forceOrders 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/allOrders 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/allFillOrders 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/fillHistory 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v1/trade/positionHistory 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v3/user/balance 已支持USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/user/positions 已支持USDC \"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-23.json\n// module id = nC6P\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/04_heart_beat.json\n// module id = nCmZ\n// module chunks = 3","import { codeLangConfig3, CODE_LANG_KEY } from '../lang'\n\nfunction generateCodeJson(api, codeLang, host, defaultCode) {\n\n const code = codeLangConfig3.find(item => item.value === codeLang)\n\n if (!code) {\n return defaultCode || 'No Code'\n }\n const api2 = {}\n let codeStr = require(\"@/utils/codeJson/\" + codeLang + '.js').default\n\n if (code.value === CODE_LANG_KEY.js) {\n api2.uri = api.uri\n api2.method = api.method\n api2.payload = api.payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/AAPPII/g, JSON.stringify(api2, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n return codeStr\n } else if (codeLang == CODE_LANG_KEY.shell) {\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 codeStr = codeStr.replace(/AAPPII/g, api.uri)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api.method)\n codeStr = codeStr.replace(/PPAARRAAMMEETTEERRSS/g, parameters)\n codeStr = codeStr.replace(/\\^/g, '`')\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.go) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = api.payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, JSON.stringify(api2, null, 4))\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, JSON.stringify(api.payload, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.java) {\n // codeStr = require(\"@/utils/code/\" + codeLang + '.js').default\n api2.uri = api.uri\n api2.method = api.method\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n let str = ``\n for (const prop in api.payload) {\n str += `\n parameters.put(\"${prop}\", \"\");`\n }\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, str)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.python) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = api.payload\n api2.protocol = api.protocol\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, JSON.stringify(api.payload, null, 4))\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.csharp) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = api.payload\n api2.protocol = api.protocol\n let payloadStr = JSON.stringify(api.payload, null, 4)\n payloadStr = payloadStr.replace(/:/g, \"=\")\n payloadStr = payloadStr.replace(/\\\"/g, \"\")\n\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, payloadStr)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else if (codeLang === CODE_LANG_KEY.php) {\n api2.uri = api.uri\n api2.method = api.method\n // api2.payload = api.payload\n api2.protocol = api.protocol\n let payloadStr = JSON.stringify(api.payload, null, 4)\n payloadStr = payloadStr.replace(/:/g, \"=\")\n payloadStr = payloadStr.replace(/\\\"/g, \"\")\n\n codeStr = codeStr.replace(/\\^/g, '`')\n codeStr = codeStr.replace(/AAPPII/g, api2.uri)\n codeStr = codeStr.replace(/PPAAYYLLOOAADD/g, payloadStr)\n codeStr = codeStr.replace(/HHOOSSTT/g, host)\n codeStr = codeStr.replace(/PPRROOTTOOCCOOLL/g, api2.protocol)\n codeStr = codeStr.replace(/MMEETTHHOODD/g, api2.method)\n\n return codeStr\n } else {\n return defaultCode || 'No Code'\n }\n}\n\nexport default generateCodeJson\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeJson/generate.js","module.exports = [{\"type\":\"title\",\"text\":\"2024-02-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Change perpetual contract: adjust the switch leverage interface's 'side' field to support the 'BOTH' value.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: In the 'Trade Order' & 'Bulk order' interfaces, the 'stopLoss' and 'takeProfit' fields do not support the 'quantity' field input.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: New parameter 'closePosition' for 'Trade order' & 'Bulk order' interface.\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: New parameter 'activationPrice' for 'Trade order' & 'Bulk order' interface.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-02-23.json\n// module id = nFKt\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Rate limit\"},{\"type\":\"html\",\"text\":\"If the request is too frequent, the system will automatically restrict the request and recover after 5 minutes;\"},{\"type\":\"html\",\"text\":\"Based on account UID rate limit, each api has its own independent rate limit, which does not affect each other\"},{\"type\":\"html\",\"text\":\"Users can check the current frequency limit usage and the expiration of the time window according to \\\"X-RateLimit-Requests-Remain\\\" (remaining number of frequency limits) and \\\"X-RateLimit-Requests-Expire\\\" (window expiration time) in the Http Header. time, and dynamically adjust your request frequency based on this value.\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"The API requests are subject to different rate limits based on UID and IP. Please refer to the respective API documentation for UID rate limits. IP rate limits are based on the following grouping rules:\"},{\"type\":\"html\",\"text\":\"
  • Market API Group [1]: The total IP rate limit for all interfaces within the group is 100 requests per 10 seconds and 500 requests per minute
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [2]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 100 requests per 10 seconds for each interface.
  • \"},{\"type\":\"html\",\"text\":\"
  • Account API Group [3]: The total IP rate limit for all interfaces within the group is 1000 requests per 10 seconds, with an individual IP rate limit of 200 requests per 10 seconds for each interface.
  • \"}]\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 and unfreeze sub-accounts\"},{\"type\":\"normal\",\"text\":\"Freeze/Unfreeze Sub Accounts\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\"},{\"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\":\"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\":\"title\",\"text\":\"2024-09-29\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位:Websocket行情推送,增加推送頻率說明。\"},{\"type\":\"html\",\"text\":\"永續U本位:Websocket訂閱,每個IP最多可以連接240個websocket\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-09-23.json\n// module id = nNlN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel orders in batches and place orders in batches\"},{\"type\":\"normal\",\"text\":\"This api is used to cancel orders in batches and place orders in batches.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/batchCancelReplace\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"batchOrders\":\"[{\\\"cancelOrderId\\\": 1753337028434464768, \\\"cancelReplaceMode\\\": \\\"ALLOW_FAILURE\\\", \\\"symbol\\\": \\\"BTC-USDT\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"side\\\": \\\"BUY\\\", \\\"positionSide\\\": \\\"LONG\\\", \\\"price\\\": 38000, \\\"quantity\\\": 1, \\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 45000, \\\\\\\"price\\\\\\\": 45000}\\\", \\\"stopLoss\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"STOP\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 37000, \\\\\\\"price\\\\\\\": 37000}\\\"}, {\\\"cancelOrderId\\\": 1753337028434464768, \\\"cancelReplaceMode\\\": \\\"ALLOW_FAILURE\\\", \\\"symbol\\\": \\\"BTC-USDT\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"side\\\": \\\"BUY\\\", \\\"positionSide\\\": \\\"LONG\\\", \\\"price\\\": 38000, \\\"quantity\\\": 1, \\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 45000, \\\\\\\"price\\\\\\\": 45000}\\\", \\\"stopLoss\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"STOP\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 37000, \\\\\\\"price\\\\\\\": 37000}\\\"}, {\\\"cancelOrderId\\\": 1753337028434464768, \\\"cancelReplaceMode\\\": \\\"ALLOW_FAILURE\\\", \\\"symbol\\\": \\\"BTC-USDT\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"side\\\": \\\"BUY\\\", \\\"positionSide\\\": \\\"LONG\\\", \\\"price\\\": 38000, \\\"quantity\\\": 1, \\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 45000, \\\\\\\"price\\\\\\\": 45000}\\\", \\\"stopLoss\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"STOP\\\\\\\", \\\\\\\"quantity\\\\\\\": 1, \\\\\\\"stopPrice\\\\\\\": 37000, \\\\\\\"price\\\\\\\": 37000}\\\"}]\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"cancelResult\":\"true\",\"cancelMsg\":\"\",\"cancelResponse\":{\"cancelClientOrderId\":\"\",\"cancelOrderId\":1753337028434464800,\"symbol\":\"BTC-USDT\",\"orderId\":1753337028434464800,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"10.0000\",\"price\":\"38000.0\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1706863098000,\"updateTime\":1706863097000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"workingType\":\"MARK_PRICE\",\"onlyOnePosition\":false,\"reduceOnly\":false},\"replaceResult\":\"true\",\"ReplaceMsg\":\"\",\"newOrderResponse\":{\"orderId\":1753337098747777000,\"symbol\":\"BTC-USDT\",\"positionSide\":\"LONG\",\"side\":\"BUY\",\"type\":\"LIMIT\",\"price\":38000,\"quantity\":1,\"stopPrice\":0,\"workingType\":\"MARK_PRICE\",\"clientOrderId\":\"\",\"timeInForce\":\"GTC\",\"priceRate\":0,\"stopLoss\":\"{\\\"type\\\": \\\"STOP\\\", \\\"quantity\\\": 1, \\\"stopPrice\\\": 37000, \\\"price\\\": 37000}\",\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT\\\", \\\"quantity\\\": 1, \\\"stopPrice\\\": 45000, \\\"price\\\": 45000}\",\"reduceOnly\":false}}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"batchOrders\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"A batch of orders, string form of LIST\"},{\"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\":\"OrderRequest\",\"key\":\"orderRequest\",\"data\":[{\"name\":\"cancelReplaceMode\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"STOP_ON_FAILURE: If the order cancellation fails, the replacement order will not continue.\\nALLOW_FAILURE: Regardless of the success of the order cancellation, the replacement order will proceed.\"},{\"name\":\"cancelClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"The original client-defined order ID to be canceled. The system will convert this field to lowercase. Either cancelClientOrderId or cancelOrderId must be provided. If both parameters are provided, cancelOrderId takes precedence.\"},{\"name\":\"cancelOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The platform order ID to be canceled. The system will convert this field to lowercase. Either cancelClientOrderId or cancelOrderId must be provided. If both parameters are provided, cancelOrderId takes precedence.\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"ONLY_NEW: If the order status is NEW, the cancellation will succeed.\\nONLY_PENDING: If the order status is PENDING, the cancellation will succeed.\\nONLY_PARTIALLY_FILLED: If the order status is PARTIALLY_FILLED, the cancellation will succeed.\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId, clientOrderId only supports LIMIT/MARKET order type\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in Force, currently supports PostOnly, GTC, IOC, and FOK\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"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\":\"OrderResponse\",\"type\":\"OrderResponse\",\"required\":\"yes\",\"description\":\"\"}]},{\"type\":\"OrderResponse\",\"key\":\"orderResponse\",\"data\":[{\"name\":\"cancelResult\",\"type\":\"string\",\"description\":\"Cancellation result. true: Cancellation successful, false: Cancellation failed\"},{\"name\":\"cancelMsg\",\"type\":\"string\",\"description\":\"Reason for the cancellation failure\"},{\"name\":\"cancelResponse\",\"type\":\"CancelResponse\",\"description\":\"Information about the canceled order\"},{\"name\":\"replaceResult\",\"type\":\"string\",\"description\":\"Replacement result. true: Replacement successful, false: Replacement failed\"},{\"name\":\"replaceMsg\",\"type\":\"string\",\"description\":\"Reason for the replacement failure\"},{\"name\":\"newOrderResponse\",\"type\":\"NewOrderResponse\",\"description\":\"Information about the new order\"}]},{\"type\":\"CancelResponse\",\"key\":\"cancelResponse\",\"data\":[{\"name\":\"cancelClientOrderId\",\"type\":\"string\",\"description\":\"Custom OrderId of the canceled order. The system will convert this field to lowercase.\"},{\"name\":\"cancelOrderId\",\"type\":\"string\",\"description\":\"OrderId of the canceled order\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"leverage\",\"type\":\"string\",\"description\":\"Leverage\"},{\"name\":\"workingType\",\"type\":\"string\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"onlyOnePosition\",\"type\":\"bool\",\"description\":\"is OneWay Position mode, true: yes; false: no\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"NewOrderResponse\",\"key\":\"newOrderResponse\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"original order quantity\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"timeInForce\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL; Maximum: 1\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/21_batch_cancel_replace_order.json\n// module id = nNrq\n// module chunks = 3","var map = {\n\t\".\": \"y74g\",\n\t\"./\": \"y74g\",\n\t\"./01_get_contracts\": \"mCcU\",\n\t\"./01_get_contracts.json\": \"mCcU\",\n\t\"./02_get_premiumIndex\": \"nco7\",\n\t\"./02_get_premiumIndex.json\": \"nco7\",\n\t\"./03_get_openInterest\": \"pnyN\",\n\t\"./03_get_openInterest.json\": \"pnyN\",\n\t\"./04_get_kline\": \"Yskp\",\n\t\"./04_get_kline.json\": \"Yskp\",\n\t\"./05_get_depth\": \"2qcG\",\n\t\"./05_get_depth.json\": \"2qcG\",\n\t\"./06_get_ticker\": \"PaEN\",\n\t\"./06_get_ticker.json\": \"PaEN\",\n\t\"./index\": \"y74g\",\n\t\"./index.js\": \"y74g\"\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 = \"nZZO\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market ^.*$\n// module id = nZZO\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"最新標記價格和資金費率\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/premiumIndex\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"BTC-USD\",\"markPrice\":\"42216.4\",\"indexPrice\":\"42219.9\",\"lastFundingRate\":\"0.00025100\",\"nextFundingTime\":1702742400000}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USD\"},{\"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-tw/cswap/api/market/02_get_premiumIndex.json\n// module id = nco7\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel 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\":\"warning\",\"text\":\"The cancellation api is limited to one second and can only cancel the same orderId or clientOrderId. Please do not resubmit\"},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderId\":\"1736011869418901234\",\"symbol\":\"RNDR-USDT\",\"timestamp\":\"1702732515704\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"RNDR-USDT\",\"orderId\":1736011869418901200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"3\",\"price\":\"4.5081\",\"executedQty\":\"0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702732457867,\"updateTime\":1702732457888,\"clientOrderId\":\"lo******7\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"service has some errors, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109414,\"msg\":\"order not exist\",\"data\":{}}}]},\"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. The system will convert this field to lowercase. 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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"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. The system will convert this field to lowercase.\"}]}]}]\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","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\":\"Query Order\"},{\"type\":\"normal\",\"text\":\"Query order details\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/orderDetail\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"orderId\":\"1736012449498123456\",\"symbol\":\"OP-USDT\",\"timestamp\":\"1702733255486\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"OP-USD\",\"orderId\":1736012449498123500,\"side\":\"SELL\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"1.0\",\"price\":\"2.1710\",\"executedQty\":\"0.0\",\"avgPrice\":\"0.0000\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1702732596168,\"updateTime\":1702732596188,\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\"}}}},\"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-USD\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Order ID\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"Effective method, currently supports GTC, IOC, FOK and PostOnly\"}]},{\"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/cswap/api/trade/12_get_trade_order.json\n// module id = nj2w\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱最新成交價\"},{\"type\":\"normal\",\"text\":\"訂閱最新成交價\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @lastPrice 例如 BTC-USD@lastPrice ETH-USDT@lastPrice\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@lastPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@lastPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@lastPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送价格\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"e\",\"type\":\"lastPrice\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"1649832413551\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"p\",\"type\":\"40125.48\",\"description\":\"最新價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/02_last_price.json\n// module id = ntfQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"編輯子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"編輯子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/edit\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":\"16259999\",\"apiKey\":\"CK***g\",\"ipAddresses\":[\"51.**.**.172\",\"51.**.**.135\"],\"note\":\"note\",\"permissions\":[1,2,3,4,6,7]},\"response\":{\"code\":0,\"timestamp\":1699785925994,\"data\":{\"note\":\"note\",\"permissions\":[1,2,3,4,6,7],\"ipAddresses\":[\"51.**.**.172\",\"51.**.**.135\"]}}},\"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白名單\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"hash\",\"text\":\"現貨交易對\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"注意:此接口返回的最大最小下單數量字段minQty/maxQty已廢棄請勿使用,如果需要計算最大最小下單幣對數量可使用公式:U (最小下單金額minNotional 或者 最大下單金額maxNotional) / (限價單輸入Limit price or 市價單Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"查詢價格可參考:GET /openApi/spot/v1/ticker/24hr\"}]},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/common/symbols\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbols\":[{\"symbol\":\"BTC-USDT\",\"minQty\":0.0001826,\"maxQty\":18.2663756,\"minNotional\":5,\"maxNotional\":500000,\"status\":1,\"tickSize\":0.01,\"stepSize\":0.00001}]}}},\"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\":\"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\":\"版本升級,此字段已廢棄,請忽略此字段;可自行計算,公式為:minQty=minNotional/price\"},{\"name\":\"maxQty\",\"type\":\"float64\",\"description\":\"版本升級,此字段已廢棄,請忽略此字段;可自行計算,公式為:maxQty=maxNotional/price\"},{\"name\":\"minNotional\",\"type\":\"float64\",\"description\":\"最小交易金額\"},{\"name\":\"maxNotional\",\"type\":\"float64\",\"description\":\"最大交易金額\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0下線, 1上線, 5預開放, 25暫停交易\"},{\"name\":\"apiStateBuy\",\"type\":\"Boolen\",\"description\":\"可買\"},{\"name\":\"apiStateSell\",\"type\":\"Boolen\",\"description\":\"可賣\"},{\"name\":\"timeOnline\",\"type\":\"long\",\"description\":\"幣對上線時間\"},{\"name\":\"offTime\",\"type\":\"long\",\"description\":\"幣對下線時間\"},{\"name\":\"maintainTime\",\"type\":\"long\",\"description\":\"幣對暫停交易時間\"}]}]}]\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\":\"Spot Best Order Book\"},{\"type\":\"normal\",\"text\":\"Real-time Push\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @bookTicker, for example, BTC_USDT@bookTicker\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g., BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Best bid price\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Best bid quantity\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Best ask price\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Best ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/06_book_ticker.json\n// module id = o9Mz\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/cswap/api/basic/02_timestamp.json\n// module id = oPkH\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/agent/api/agent/index.js","module.exports = [{\"type\":\"hash\",\"text\":\"深度信息\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/quote/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"SHIB-USDT\",\"limit\":\"5\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"T\":1702719083983,\"bids\":[[\"0.000009854\",\"483909\"],[\"0.000009853\",\"824851\"],[\"0.000009852\",\"539085\"],[\"0.000009851\",\"697410\"],[\"0.000009850\",\"488828\"]],\"asks\":[[\"0.000009860\",\"578208\"],[\"0.000009859\",\"279010\"],[\"0.000009858\",\"501588\"],[\"0.000009857\",\"976049\"],[\"0.000009856\",\"687669\"]],\"bidsCoin\":[[\"0.000009854\",\"483909000\"],[\"0.000009853\",\"824851000\"],[\"0.000009852\",\"539085000\"],[\"0.000009851\",\"697410000\"],[\"0.000009850\",\"488828000\"]],\"asksCoin\":[[\"0.000009860\",\"578208000\"],[\"0.000009859\",\"279010000\"],[\"0.000009858\",\"501588000\"],[\"0.000009857\",\"976049000\"],[\"0.000009856\",\"687669000\"]]}}},\"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]\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"T\",\"type\":\"int64\",\"description\":\"係統時間,單位:毫秒\"},{\"name\":\"asks\",\"type\":\"array\",\"description\":\"賣方深度。第一個元素價格,第二個元素數量\"},{\"name\":\"bids\",\"type\":\"array\",\"description\":\"買方深度。第一個元素價格,第二個元素數量\"},{\"name\":\"asksCoin\",\"type\":\"array\",\"description\":\"賣方深度。第一個元素價格,第二個元素數量(币)\"},{\"name\":\"bidsCoin\",\"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\":\"/zh-tw/standard/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了標准合約交易業務相關API的使用方法介紹。\"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/standard/1_introduce.json\n// module id = okpR\n// module chunks = 3","module.exports = {\"module\":\"cswap\",\"path\":\"/en-us/cswap/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingX API, welcome to sign up for the BingX BrokerProject BingX Broker Program Application\"},{\"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\"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/1_introduce.json\n// module id = omwE\n// module chunks = 3","var map = {\n\t\"./01_connect.json\": \"lyY+\",\n\t\"./02_data_compress.json\": \"Q5Jp\",\n\t\"./03_heart_beat.json\": \"IMXD\",\n\t\"./04_subscribe.json\": \"rEmz\",\n\t\"./05_cancel_subscribe.json\": \"SBKE\"\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 = \"osrw\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/introduce \\.json$\n// module id = osrw\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","module.exports = [{\"type\":\"hash\",\"text\":\"頻率限制\"},{\"type\":\"html\",\"text\":\"如果請求過於頻繁系統將自動限制請求,5分鐘後,會自動恢復;\"},{\"type\":\"html\",\"text\":\"基於賬號UID的限頻,每個接口的都有自己獨立的限頻,相互不影響\"},{\"type\":\"html\",\"text\":\"使用者可依據Http Header中的\\\"X-RateLimit-Requests-Remain\\\"(限頻剩餘次數)及\\\"X-RateLimit-Requests-Expire\\\"(視窗過期時間)查看目前限頻使用情況,以及所在時間視窗的過期時間,根據該數值動態調整您的請求頻率。\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"同時會受到根據UID和IP的不同限頻,基於UID限頻詳見各接口文檔,其中基於IP限頻會基於以下分組規則進行\"},{\"type\":\"html\",\"text\":\"
  • 行情接口分組[1]: 分組內所有接口基於IP限頻總和:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[2]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[3]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:200/10s
  • \"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/basic/04_rate_limits.json\n// module id = p+dP\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"推送最新成交價K線\"},{\"type\":\"normal\",\"text\":\"推送最新成交價K線\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @kline_,比如BTC-USD@kline_1m\"},{\"type\":\"normal\",\"text\":\"訂閱舉例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@kline_1m\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@kline_1min\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"合約名稱,合約名稱中需有\\\"-\\\",如BTC-USD\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"是\",\"description\":\"參考字段說明,K線類型\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如 BTC-USD@kline_1min\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"t\",\"type\":1717662900000,\"description\":\"這根K線的開始時間\"},{\"name\":\"o\",\"type\":70941,\"description\":\"這根K線的開盤價\"},{\"name\":\"c\",\"type\":70923.1,\"description\":\"這根K線期的收盤價\"},{\"name\":\"h\",\"type\":70941.3,\"description\":\"這根K線期間最高成交價\"},{\"name\":\"l\",\"type\":70904.2,\"description\":\"這根K線期間最低成交價\"},{\"name\":\"u\",\"type\":336,\"description\":\"這根K線期間成交筆數\"},{\"name\":\"a\",\"type\":2.55,\"description\":\"成交的幣對數量\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"v\",\"type\":1813,\"description\":\"成交的合約張數\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"1分鐘K線\"},{\"name\":\"3m\",\"description\":\"3分鐘K線\"},{\"name\":\"5m\",\"description\":\"5分鐘K線\"},{\"name\":\"15m\",\"description\":\"15分鐘K線\"},{\"name\":\"30m\",\"description\":\"30分鐘K線\"},{\"name\":\"1h\",\"description\":\"1小時K線\"},{\"name\":\"2h\",\"description\":\"2小時K線\"},{\"name\":\"4h\",\"description\":\"4小時K線\"},{\"name\":\"6h\",\"description\":\"6小時K線\"},{\"name\":\"8h\",\"description\":\"8小時K線\"},{\"name\":\"12h\",\"description\":\"12小時K線\"},{\"name\":\"1d\",\"description\":\"1日K線\"},{\"name\":\"3d\",\"description\":\"3日K線\"},{\"name\":\"1w\",\"description\":\"1週K線\"},{\"name\":\"1M\",\"description\":\"1月K線\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/06_kline.json\n// module id = p1RX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Symbol Price Ticker\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Used to query the latest transaction price
  • \"},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\"},\"response\":{\"code\":0,\"timestamp\":1707147143049,\"data\":[{\"symbol\":\"BTC_USDT\",\"trades\":[{\"timestamp\":1707147142579,\"tradeId\":\"86521463\",\"price\":\"42902.61\",\"amount\":\"\",\"type\":1,\"volume\":\"0.11689\"}]}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, such as: BTC_USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"price\",\"type\":\"string\",\"description\":\"Latest price\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, such as: BTC_USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Timestamp\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/market/07_get_market_price.json\n// module id = p4oz\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\":\"warning\",\"text\":\"每次建立連接成功都會全量推送1次,之後每隔5秒全量推送1次。\"},{\"type\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-swap.bingx.com/swap-market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"timestamp\":\"1702731721672\",\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[1736008778921491200],\"failed\":null}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80018,\"msg\":\"order is already filled, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"service has some errors, The order doesn't exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109414,\"msg\":\"order not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對\"},{\"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","module.exports = [{\"type\":\"title\",\"text\":\"2023-08-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續下單:新增追跡止損單類型 永續合約下單接口\"},{\"type\":\"html\",\"text\":\"永續下單:stopPrice觸發價 支持價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE 永續合約下單接口\"},{\"type\":\"html\",\"text\":\"現貨: 批量撤單\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2023-08-11.json\n// module id = pV/D\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Place multiple orders\"},{\"type\":\"desc\",\"text\":\"Can be used to place orders in bulk on spot\",\"desc\":[{\"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 api will not be displayed on the app and web pages.\"}]},{\"type\":\"warning\",\"text\":\"If you need to calculate the maximum and minimum order quantities for a currency pair, you can use the formula: U (minNotional or maxNotional) / (Limit price or Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"For price reference, please check: GET /openApi/spot/v1/ticker/24hr\"},{\"type\":\"html\",\"text\":\"For Minimum/Maximum transaction amount reference, please check: GET /openApi/spot/v1/common/symbols\"}]},{\"type\":\"normal\",\"text\":\"Trading Rules:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Trading Rules: https://bingx.com/en/spot/trading-rules/\"},{\"type\":\"html\",\"text\":\"About price accuracy and quantity accuracy reference interface: https://open-api.bingx.com/openApi/spot/v1/common/symbols\"},{\"type\":\"html\",\"text\":\"If the accuracy exceeds the range of the current period, the current API order will still be successful, but it will be truncated. For example, the price requirement is: 0.0001, if the order is 0.123456, it will be successfully submitted with 0.1234.\"}]},{\"type\":\"html\",\"text\":\"
  • place batch orders, how to sign the request? please refer to Perpetual: place batch orders
  • \"}]},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"data\":\"[{\\\"symbol\\\": \\\"ETHS-USDT\\\", \\\"side\\\": \\\"BUY\\\", \\\"type\\\": \\\"LIMIT\\\", \\\"quantity\\\": 7.663, \\\"price\\\": 12.479, \\\"newClientOrderId\\\": \\\"abc122345\\\"}]\",\"recvWindow\":\"60000\",\"timestamp\":\"1702721964975\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"ETHS-USDT\",\"orderId\":1735967859282101200,\"transactTime\":1702721965033,\"price\":\"12.479\",\"origQty\":\"7.663\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"clientOrderID\":\"abc122345\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"data\",\"type\":\"array\",\"required\":\"Yes\",\"description\":\"The request array for placing orders, limited to 5 orders.\"},{\"name\":\"sync\",\"type\":\"bool\",\"required\":\"no\",\"description\":\"sync=false (default false if not filled in): parallel ordering (but all orders need to have the same symbol/side/type), sync = true (multiple orders are ordered serially, all orders do not require the same symbol/side/type)\"}]},{\"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\":\"MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"order trigger price, used for TAKE_ STOP_ LIMITED,TAKE_ STOP_ MARKET, TRIGGER_ LIMITED, TRIGGER_ Market type orders.\"},{\"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\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Only letters, numbers and _,Customized order ID for users, with a limit of characters from 1 to 40. Different orders cannot use the same newClientOrderId,Only supports a query range of 2 hours\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in force, currently supports PostOnly, GTC, IOC. Default is GTC if not specified.\"},{\"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/01_post_trade_batchOrders.json\n// module id = pX3/\n// module chunks = 3","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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/list\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"limit\":100},\"response\":{\"code\":0,\"timestamp\":1701088491202,\"data\":{\"result\":[{\"subUid\":\"16477999\",\"subAccountString\":\"abc123456\",\"note\":\"\",\"freeze\":false,\"createTime\":1700847351000}],\"pageId\":1,\"total\":1}}},\"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\":\"分頁大小,最大1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"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\":\"hash\",\"text\":\"Subscribe to latest mark price changes\"},{\"type\":\"normal\",\"text\":\"Real time push.\"},{\"type\":\"normal\",\"text\":\"Push latest mark price changes.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @markPrice, such as BTC-USDT@markPrice.\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@markPrice\\\"}\"},\"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\":\"Subscribed data type, e.g., BTC-USDT@markPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"Latest mark price\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/06_last_mark_price.json\n// module id = pgER\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 api 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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},{\"type\":\"warning\",\"text\":\"The effective time of the listen key is 1 hour. In order to ensure that your subscription is not interrupted, please update the listen key regularly\"},{\"type\":\"normal\",\"text\":\"Push data\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"spot.executionReport\\\"}\"},\"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","module.exports = [{\"type\":\"hash\",\"text\":\"獲取合約未平倉數\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/market/openInterest\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"openInterest\":\"35876.52\",\"symbol\":\"BTC-USD\",\"time\":1702719692859}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int64\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"Data\",\"data\":[{\"name\":\"openInterest\",\"type\":\"string\",\"description\":\"持倉數量\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"合約名稱\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"撮合引擎時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/market/03_get_openInterest.json\n// module id = pnyN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢用戶資產\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718421301887,\"data\":[{\"asset\":\"BTC\",\"balance\":\"0.14438227\",\"equity\":\"0.14428116\",\"unrealizedProfit\":\"-0.0001011\",\"availableMargin\":\"0.14317271\",\"usedMargin\":\"0.00110845\",\"freezedMargin\":\"0\",\"shortUid\":\"12345678\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"回應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"List\",\"description\":\"資產list\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"asset\",\"type\":\"string\",\"description\":\"用戶資產\"},{\"name\":\"balance\",\"type\":\"string\",\"description\":\"資產餘額\"},{\"name\":\"equity\",\"type\":\"string\",\"description\":\"資產淨值\"},{\"name\":\"unrealizedProfit\",\"type\":\"string\",\"description\":\"未實現盈餘\"},{\"name\":\"availableMargin\",\"type\":\"string\",\"description\":\"可用保證金\"},{\"name\":\"usedMargin\",\"type\":\"string\",\"description\":\"可用保證金\"},{\"name\":\"freezedMargin\",\"type\":\"string\",\"description\":\"凍結保證金\"},{\"name\":\"shortUid\",\"type\":\"string\",\"description\":\"用戶uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/07_get_balance.json\n// module id = ptJe\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/en-us/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. \"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\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\":\"訂閱有限深度\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"數據類型為 @depth 例如 BTC-USD@depth5 ETH-USDT@depth5\"},{\"type\":\"normal\",\"text\":\"訂閱示例\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@depth5\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@depth5\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"交易對符號中必須有一個連字符/ \\\"-\\\"。例如: BTC-USD\"},{\"name\":\"count\",\"type\":\"integer\",\"required\":\"yes\",\"description\":\"深度檔位數: 100, 50, 20, 10, 5\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"訂閱的數據類型,例如:BTC-USD@depth5\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送深度\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"dataType\",\"type\":\"BTC-USD@depth5\",\"description\":\"事件類型\"},{\"name\":\"symbol\",\"type\":\"BTC-USD\",\"description\":\"交易對\"},{\"name\":\"bids\",\"type\":\"[\\\"p\\\": \\\"70977.5\\\",\\\"a\\\": \\\"3.029129\\\",\\\"v\\\": \\\"2150.0\\\"]\",\"description\":\"買方檔位\"},{\"name\":\"asks\",\"type\":\"[\\\"p\\\": \\\"70978.5\\\",\\\"a\\\": \\\"3.029129\\\",\\\"v\\\": \\\"2150.0\\\"]\",\"description\":\"賣方檔位\"},{\"name\":\"aggPrecision\",\"type\":\"0.1\",\"description\":\"聚合精度\"},{\"name\":\"timestamp\",\"type\":\"1717662601938\",\"description\":\"時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/market/04_depth.json\n// module id = pvqc\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/forceOrders now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/allOrders now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/allFillOrders now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/trade/fillHistory now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v1/trade/positionHistory now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v3/user/balance now support USDC \"},{\"type\":\"html\",\"text\":\"/openApi/swap/v2/user/positions now support USDC \"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-10-23.json\n// module id = pxxT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"現貨最新價格\"},{\"type\":\"normal\",\"text\":\"實時推送\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @lastPrice,比如BTC_USDT@lastPrice\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@lastPrice\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對名稱,如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"c\",\"type\":\"\",\"description\":\"價格\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"幣對名稱,如BTC\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/05_last_price.json\n// module id = q1yk\n// module chunks = 3","var map = {\n\t\"./2023-09-12.json\": \"WisP\"\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 = \"q9zR\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/q&a \\.json$\n// module id = q9zR\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\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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-USD\"},{\"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/cswap/websocket/account/01_balance.json\n// module id = qHKX\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Spot trading symbols\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"Note: The fields minQty/maxQty returned by this api have been deprecated and should not be used. If you need to calculate the maximum and minimum order quantities for a currency pair, you can use the formula: U (minNotional or maxNotional) / (Limit price or Market price)\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"For price reference, please check: GET /openApi/spot/v1/ticker/24hr\"}]},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/common/symbols\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"symbols\":[{\"symbol\":\"BTC-USDT\",\"minQty\":0.0001826,\"maxQty\":18.2663756,\"minNotional\":5,\"maxNotional\":500000,\"status\":1,\"tickSize\":0.01,\"stepSize\":0.00001}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"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\":\"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\":\"Version upgrade, this field is deprecated, please ignore this field,the formula is: minQty= minNotional/price\"},{\"name\":\"maxQty\",\"type\":\"float64\",\"description\":\"Version upgrade, this field is deprecated, please ignore this field,the formula is: maxQty = maxNotional/price\"},{\"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, 5 pre-open, 25 trading suspended\"},{\"name\":\"apiStateBuy\",\"type\":\"Boolean\",\"description\":\"available buy via api\"},{\"name\":\"apiStateSell\",\"type\":\"Boolean\",\"description\":\"available sell via api\"},{\"name\":\"timeOnline\",\"type\":\"long\",\"description\":\"online time \"},{\"name\":\"offTime\",\"type\":\"long\",\"description\":\"offline time\"},{\"name\":\"maintainTime\",\"type\":\"long\",\"description\":\"trading suspension time\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"查詢倉位模式\"},{\"type\":\"normal\",\"text\":\"獲取倉位模式\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/marginType\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USD\",\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1716388317402,\"data\":[{\"symbol\":\"BTC-USD\",\"marginType\":\"ISOLATED\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對\"},{\"name\":\"marginType\",\"type\":\"string\",\"description\":\"持倉模式, 比如:CROSSED,ISOLATED\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/15_get_margin_type.json\n// module id = qPGu\n// module chunks = 3","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\"./04_24hr_ticker\": \"P0Vd\",\n\t\"./04_24hr_ticker.json\": \"P0Vd\",\n\t\"./05_last_price\": \"fqiK\",\n\t\"./05_last_price.json\": \"fqiK\",\n\t\"./06_book_ticker\": \"o9Mz\",\n\t\"./06_book_ticker.json\": \"o9Mz\",\n\t\"./07_depth_incr_info\": \"soQQ\",\n\t\"./07_depth_incr_info.json\": \"soQQ\",\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\":\"Traders set take profit and stop loss based on order numbers\"},{\"type\":\"normal\",\"text\":\"This node is used by traders to set the market price stop profit and stop loss based on the order number with orders. Repeated settings will overwrite the previous settings\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/copyTrading/v1/swap/trace/setTPSL\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"positionId\":\"1253517936071234567\",\"recvWindow\":\"0\",\"stopLossMarkPrice\":\"105.38\",\"timestamp\":\"1702731522946\"},\"response\":{\"code\":0,\"timestamp\":1702731523011,\"data\":{\"positionId\":1253517936071234600,\"stopLossMarkPrice\":105.38}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Order number with order\"},{\"name\":\"takeProfitMarkPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Set the price of the stop profit and stop loss mark, and the price of the stop profit and stop loss mark must be one of two options\"},{\"name\":\"stopLossMarkPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Set a stop loss marker price, and the stop loss marker price must be either\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"Request timestamp in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Request valid time empty window value, unit: milliseconds, default to 5 seconds if left blank\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"yes\",\"description\":\"Order number with order\"},{\"name\":\"takeProfitMarkPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Set the price of the stop profit and stop loss mark, and the price of the stop profit and stop loss mark must be one of two options\"},{\"name\":\"stopLossMarkPrice\",\"type\":\"float64\",\"required\":\"yes\",\"description\":\"Set a stop loss marker price, and the stop loss marker price must be either\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/api/trader/03_post_tpsl_currentTrack.json\n// module id = qkYN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"撤銷掛單再下單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/order/cancelReplace\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USDT\",\"cancelOrderId\":\"17543893539094511234\",\"cancelReplaceMode\":\"ALLOW_FAILURE\",\"side\":\"BUY\",\"type\":\"LIMIT\",\"price\":40000,\"quantity\":1},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"cancelResult\":{\"code\":100400,\"msg\":\" order not exist\",\"result\":false},\"openResult\":{\"code\":0,\"msg\":\"\",\"result\":true},\"orderOpenResponse\":{\"symbol\":\"BTC-USDT\",\"orderId\":1754389353909452800,\"transactTime\":1707113991607,\"price\":\"40000\",\"stopPrice\":\"0\",\"origQty\":\"1\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"PENDING\",\"type\":\"LIMIT\",\"side\":\"BUY\",\"clientOrderID\":\"\"},\"orderCancelResponse\":{\"symbol\":\"\",\"orderId\":0,\"price\":\"0\",\"stopPrice\":\"0\",\"origQty\":\"0\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"\",\"type\":\"\",\"side\":\"\"}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"cancelOrderId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"要取消的訂單id\"},{\"name\":\"cancelClientOrderID\",\"type\":\"string\",\"required\":\"否\",\"description\":\"要取消的用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的clientOrderID,僅支持2個小時的查詢範圍\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"否\",\"description\":\"撤销指定状态的订单:NEW:新订单 ,PENDING:委托中,PARTIALLY_FILLED:部分成交\"},{\"name\":\"CancelReplaceMode\",\"type\":\"string\",\"required\":\"是\",\"description\":\"STOP_ ON_ FAILURE:如果撤銷訂單失敗將不會繼續重新下單。 ALLOW_ FAILURE:不管撤銷訂單是否成功都會繼續重新下單。\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"是\",\"description\":\"MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"required\":\"是\",\"description\":\"觸發價格,用於TAKE_ STOP_ LIMIT, TAKE_ STOP_ MARKET,TRIGGER_ LIMIT,TRIGGER_ MARKET類型的訂單。\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量, 例如: 0.1BTC\"},{\"name\":\"quoteOrderQty\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單金額, 例如: 100USDT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格, 例如: 10000USDT\"},{\"name\":\"newClientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"只能字母、數字和_,用戶自定義訂單ID,限制字符長度1-40,不同訂單不可使用相同的newClientOrderId\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"否\",\"description\":\"撤销指定状态的订单:NEW:新订单 ,PENDING:委托中,PARTIALLY_FILLED:部分成交\"},{\"name\":\"transactTime\",\"type\":\"int64\",\"description\":\"交易時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/023_post_trade_order_cancel_replace.json\n// module id = qru4\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/cswap/api/basic/index_share_to_v1.js","const nodejs = `const WebSocket = require('ws');\nconst zlib = require('zlib');\n\nconst path = \"HHOOSSTT\"; \nconst CHANNEL = AAPPII; \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.indexOf(\"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/spot/nodejs.js","module.exports = [{\"type\":\"hash\",\"text\":\"Symbol Price Ticker\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/ticker/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702718923479\",\"symbol\":\"TIA-USDT\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"symbol\":\"TIA-USDT\",\"price\":\"14.0658\",\"time\":1702718922941}}},\"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\"},{\"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\":\"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/22_get_quote_price_v2.json\n// module id = rCcB\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/cswap/websocket/introduce/04_subscribe.json\n// module id = rEmz\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Main Account Deposit Address\"},{\"type\":\"normal\",\"text\":\"This endpoint is used for a mother account to query the deposit address of a specific coin in the blockchain it belongs to. Only available for mother accounts.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/deposit/address\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"limit\":\"1000\",\"offset\":\"0\",\"recvWindow\":\"0\",\"timestamp\":\"1702623917652\"},\"response\":{\"code\":0,\"timestamp\":1702623918163,\"data\":{\"data\":[{\"coinId\":760,\"coin\":\"USDT\",\"network\":\"ERC20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":780,\"coin\":\"USDT\",\"network\":\"TRC20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":799,\"coin\":\"USDT\",\"network\":\"BEP20\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":857,\"coin\":\"USDT\",\"network\":\"SOL\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1192,\"coin\":\"USDT\",\"network\":\"POLYGON\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1367,\"coin\":\"USDT\",\"network\":\"ARBITRUM\",\"address\":\"40e*****95\",\"tag\":\"\"},{\"coinId\":1371,\"coin\":\"USDT\",\"network\":\"OPTIMISM\",\"address\":\"40e*****95\",\"tag\":\"\"}],\"total\":7}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Name of the coin for transfer\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request window validity, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"List of deposit addresses\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Name of the coin\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Name of the network\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"Deposit address\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"Deposit address with prefix\"},{\"name\":\"tag\",\"type\":\"string\",\"description\":\"Address tag\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0 for activated, 1 for applied, 2 for not applied\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/13.get_wallet_queryDepositAddress.json\n// module id = rgh9\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query transaction details\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • Can only check data within the past 24 hours range
  • \"},{\"type\":\"html\",\"text\":\"
  • If trigTime/endTime is not filled in or invalid, the data of the past 24 hours is returned by default
  • \"},{\"type\":\"html\",\"text\":\"
  • Simultaneously limit the maximum number of returns limit = 500
  • \"},{\"type\":\"html\",\"text\":\"
  • Return to the list sorted by time field, from smallest to largest
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/myTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":1745362930595004400,\"limit\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"fills\":[{\"symbol\":\"BTC-USDT\",\"id\":36767057,\"orderId\":1745362930595004400,\"price\":\"46820.155\",\"qty\":\"0.1430254\",\"quoteQty\":\"6696.471396937\",\"commission\":-0.000046483255,\"commissionAsset\":\"BTC\",\"time\":1704961925000,\"isBuyer\":true,\"isMaker\":false},{\"symbol\":\"BTC-USDT\",\"id\":36767058,\"orderId\":1745362930595004400,\"price\":\"46820.155\",\"qty\":\"0.0003844\",\"quoteQty\":\"17.997667582000002\",\"commission\":-1.2493e-7,\"commissionAsset\":\"BTC\",\"time\":1704961925000,\"isBuyer\":true,\"isMaker\":false}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g. BTC-USDT, please use uppercase letters\"},{\"name\":\"orderId\",\"type\":\"long\",\"required\":\"yes\",\"description\":\"Order ID\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"No\",\"description\":\"Start timestamp, unit: ms\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"No\",\"description\":\"End timestamp, unit: ms\"},{\"name\":\"fromId\",\"type\":\"long\",\"required\":\"No\",\"description\":\"Starting trade ID. By default, the latest trade will be retrieved\"},{\"name\":\"limit\",\"type\":\"long\",\"required\":\"No\",\"description\":\"Default 500, maximum 1000\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Request valid time window, unit: milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, unit: milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading symbol\"},{\"name\":\"id\",\"type\":\"int\",\"description\":\"Trade ID\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price of the trade\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"Quantity of the trade\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"Quote asset quantity traded\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"Commission amount\"},{\"name\":\"commissionAsset\",\"type\":\"string\",\"description\":\"Commission asset type\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"Trade time\"},{\"name\":\"isBuyer\",\"type\":\"bool\",\"description\":\"Whether the buyer\"},{\"name\":\"isMaker\",\"type\":\"bool\",\"description\":\"Whether the maker\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/077_get_trade_fill_details.json\n// module id = s+Dd\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Order history\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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\":{\"endTime\":\"1702721825418\",\"pageIndex\":\"1\",\"pageSize\":\"100\",\"startTime\":\"1702720925417\",\"symbol\":\"SWCH-USDT\",\"timestamp\":\"1702721825418\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"SWCH-USDT\",\"orderId\":1735966927102231300,\"price\":\"0.8548\",\"StopPrice\":\"0\",\"origQty\":\"5.9\",\"executedQty\":\"1.1\",\"cummulativeQuoteQty\":\"0.9402800000000001\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"time\":1702721743000,\"updateTime\":1702721743000,\"origQuoteOrderQty\":\"0\",\"fee\":0,\"avgPrice\":\"0.8881\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"If orderId is set, orders >= orderId. Otherwise, the most recent orders will be returned.\"},{\"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\":\"no\",\"description\":\"Page number, must >0,If not specified, it defaults to 1.\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Page size, must >0,Max 100,If not specified, it defaults to 100.\"},{\"name\":\"status\",\"type\":\"string\",\"required\":\"no\",\"description\":\"status: FILLED (fully filled) CANCELED: (canceled) FAILED: (failed)\"},{\"name\":\"type\",\"type\":\"string\",\"required\":\"no\",\"description\":\"order type: MARKET/LIMIT/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"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\":\"float64\",\"description\":\"fee\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"trigger price\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average fill price\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"Query partner information\"},{\"type\":\"normal\",\"text\":\"This api is used to query partner profile data.\"},{\"type\":\"html\",\"text\":\"
  • 1.Only supports querying data from the last 3 months.
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/asset/partnerData\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"startTime\":\"1699183026000\",\"endTime\":\"1699269426000\",\"pageIndex\":\"1\",\"pageSize\":\"100\",\"recWindow\":\"6000\",\"timestamp\":\"1689426920000\"},\"response\":{\"code\":0,\"timestamp\":1718441614690,\"data\":{\"list\":[{\"uid\":25414560,\"email\":\"jo***@niubi.im\",\"phone\":\"*******7294\",\"referralType\":1,\"remarks\":\"123\",\"referrerUid\":24186664,\"language\":\"en\",\"newReferees\":0,\"firstTrade\":0,\"branchDeposits\":\"24534.446799999998\",\"branchTrading\":4,\"branchTradingVol\":\"98434310.99579316\",\"level\":0,\"commissionRatio\":0.04}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"required\":\"no\",\"description\":\"Partner UID\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Start time, unit: day, only supports querying the latest 3 months. If neither the start time nor the settlement time is filled in, the default query is for this month's data\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"End time, unit: day, only supports querying the latest 3 months. If neither the start time nor the settlement time is filled in, the default query is for this month's data\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"If not filled in, the default value is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The number of pages is 100 by default if not filled in, and the maximum value is 200\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Request valid time window value, unit: milliseconds. If not filled, the default is 5 seconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"request timestamp, unit: millisecond\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"long\",\"description\":\"Partner UID\"},{\"name\":\"email\",\"type\":\"STRING\",\"description\":\"Partner mailbox, encrypted status\"},{\"name\":\"Phone\",\"type\":\"STRING\",\"description\":\"Partner's mobile phone number,Partner's mobile phone number, encrypted\"},{\"name\":\"referralType\",\"type\":\"int\",\"description\":\"Invitation type: 1: direct invitation, 2: indirect invitation\"},{\"name\":\"remarks\",\"type\":\"STRING\",\"description\":\"Remarks\"},{\"name\":\"referrerUid\",\"type\":\"long\",\"description\":\"Superior Uid\"},{\"name\":\"language\",\"type\":\"STRING\",\"description\":\"language\"},{\"name\":\"newReferees\",\"type\":\"STRING\",\"description\":\"The number of new invitees during the query period\"},{\"name\":\"firstTrade\",\"type\":\"STRING\",\"description\":\"Number of people who made their first transaction during the query period\"},{\"name\":\"branchDeposits\",\"type\":\"STRING\",\"description\":\"The amount of channel recharge during the query period\"},{\"name\":\"branchTrading\",\"type\":\"STRING\",\"description\":\"Number of channel transactions during query time\"},{\"name\":\"branchTradingVol\",\"type\":\"STRING\",\"description\":\"The transaction amount of the channel during the query period\"},{\"name\":\"level\",\"type\":\"STRING\",\"description\":\"level\"},{\"name\":\"commissionRatio\",\"type\":\"STRING\",\"description\":\"Rebate ratio\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/agent/api/agent/06_get_Query_partner_information.json\n// module id = sHlI\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to Latest Trading Pair K-Line\"},{\"type\":\"normal\",\"text\":\"Subscribe to Latest Trading Pair K-Line\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @kline_, e.g., BTC-USD@kline_1m\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@kline_1m\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@kline_1min\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Contract name, must contain \\\"-\\\", e.g., BTC-USD\"},{\"name\":\"interval\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Reference field description, K-line type\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USD@kline_1min\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Pushed content\"}]},{\"type\":\"data\",\"key\":\"key1\",\"data\":[{\"name\":\"t\",\"type\":1717662900000,\"description\":\"Start time of this K-line\"},{\"name\":\"o\",\"type\":70941,\"description\":\"Opening price of this K-line\"},{\"name\":\"c\",\"type\":70923.1,\"description\":\"Closing price of this K-line period\"},{\"name\":\"h\",\"type\":70941.3,\"description\":\"Highest price during this K-line period\"},{\"name\":\"l\",\"type\":70904.2,\"description\":\"Lowest price during this K-line period\"},{\"name\":\"u\",\"type\":336,\"description\":\"Number of transactions during this K-line period\"},{\"name\":\"a\",\"type\":2.55,\"description\":\"Amount of trading pair\"},{\"name\":\"s\",\"type\":\"BTC-USD\",\"description\":\"Trading pair\"},{\"name\":\"v\",\"type\":1813,\"description\":\"Number of contracts traded\"}]},{\"type\":\"interval\",\"key\":\"common\",\"data\":[{\"name\":\"1m\",\"description\":\"1 minute K-line\"},{\"name\":\"3m\",\"description\":\"3 minutes K-line\"},{\"name\":\"5m\",\"description\":\"5 minutes K-line\"},{\"name\":\"15m\",\"description\":\"15 minutes K-line\"},{\"name\":\"30m\",\"description\":\"30 minutes K-line\"},{\"name\":\"1h\",\"description\":\"1 hour K-line\"},{\"name\":\"2h\",\"description\":\"2 hours K-line\"},{\"name\":\"4h\",\"description\":\"4 hours K-line\"},{\"name\":\"6h\",\"description\":\"6 hours K-line\"},{\"name\":\"8h\",\"description\":\"8 hours K-line\"},{\"name\":\"12h\",\"description\":\"12 hours K-line\"},{\"name\":\"1d\",\"description\":\"1 day K-line\"},{\"name\":\"3d\",\"description\":\"3 days K-line\"},{\"name\":\"1w\",\"description\":\"1 week K-line\"},{\"name\":\"1M\",\"description\":\"1 month K-line\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/06_kline.json\n// module id = sLxw\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-02-04\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual contract new: Query Latest price\"},{\"type\":\"html\",\"text\":\"Perpetual contract new: Cancel an order and place another one\"},{\"type\":\"html\",\"text\":\"Perpetual contract new: Cancel orders in batches and place orders in batches\"},{\"type\":\"html\",\"text\":\"Perpetual contract: New WS DataType - Book Ticker streams\"},{\"type\":\"html\",\"text\":\"Spot ew endpoint: Cancel order and place a new order\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP api for querying aggregated depth\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP api for querying latest transaction price\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP api for querying best order\"},{\"type\":\"html\",\"text\":\"Spot: Added WS ticker - subscribe to 24-hour price changes\"},{\"type\":\"html\",\"text\":\"Spot: Added WS lastPrice - subscribe to latest transaction price\"},{\"type\":\"html\",\"text\":\"Spot: Added WS bookTicker - subscribe to best order\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP historical transaction query\"},{\"type\":\"html\",\"text\":\"Spot: Added HTTP historical k-line query\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-02-04.json\n// module id = sMHE\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Trading Commission Rate\"},{\"type\":\"normal\",\"text\":\"Used to query the current trading commission rate for spot trading.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702720966321\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"takerCommissionRate\":0.000325,\"makerCommissionRate\":0.0001}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Trading pair, e.g. BTC-USDT, please use uppercase letters\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"No\",\"description\":\"Request valid time window in milliseconds\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"takerCommissionRate\",\"type\":\"float64\",\"description\":\"Taker commission rate\"},{\"name\":\"makerCommissionRate\",\"type\":\"float64\",\"description\":\"Maker commission rate\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/trade/08_get_commissionRate.json\n// module id = sPli\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"查詢倉位歷史\"},{\"type\":\"normal\",\"text\":\"查詢當前賬戶下永續合約的倉位歷史情況。\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/positionHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BNB-USDT\",\"pageId\":0,\"pageSize\":20,\"startTime\":1700409600000,\"1703001599000\":1703001599000,\"timestamp\":\"1702731661854\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"positionId\":\"180870089***590996\",\"symbol\":\"BTC-USDT\",\"isolated\":false,\"positionSide\":\"LONG\",\"openTime\":1720062873000,\"updateTime\":1720062878000,\"avgPrice\":\"58942.31\",\"avgClosePrice\":\"58930.00\",\"realisedProfit\":\"-0.04\",\"netProfit\":\"-0.16\",\"positionAmt\":\"33.0000\",\"closePositionAmt\":\"33.0000\",\"leverage\":20,\"closeAllPositions\":true,\"positionCommission\":\"-0.11669358690000001\",\"totalFunding\":\"0.00000000000000001388\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"否\",\"description\":\"USDC or USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"倉位id,不傳則默認返回相關幣對的所有倉位歷史\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"起始時間戳,單位毫秒,時間跨度最大支持三個月,若不傳開始時間,則默認開始時間90天前時間。\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"結束時間戳,單位毫秒。時間跨度最大支持三個月,若不傳結束時間,則默認結束時間為當前時間。\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"分頁頁碼,必須大於0,如果不填寫則默認為1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"分頁數量,必須大於0,最大值為100,如果不填寫則默認為1000\"},{\"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\":\"closeAllPositions\",\"type\":\"bool\",\"description\":\"是否已全部平倉\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"持倉數量\"},{\"name\":\"closePositionAmt\",\"type\":\"string\",\"description\":\"已平倉量\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"已實現盈虧\"},{\"name\":\"netProfit\",\"type\":\"string\",\"description\":\"淨盈虧\"},{\"name\":\"avgClosePrice\",\"type\":\"float64\",\"description\":\"平倉均價\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"開倉均價\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"槓桿\"},{\"name\":\"positionCommission\",\"type\":\"string\",\"description\":\"手續費\"},{\"name\":\"totalFunding\",\"type\":\"string\",\"description\":\"資金費用\"},{\"name\":\"openTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"開倉時間\"},{\"name\":\"openTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"平倉時間\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/26_get_user_position_history.json\n// module id = sWA2\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"創建子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"創建子賬戶apikey\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/apiKey/create\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"subUid\":14189999,\"note\":\"abc6798\",\"permissions\":[3]},\"response\":{\"code\":0,\"timestamp\":1701526872165,\"data\":{\"note\":\"abc6798\",\"apiKey\":\"kRaent****jg\",\"apiSecret\":\"2b****Og\",\"permissions\":[],\"ipAddresses\":[]}}},\"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-萬向劃轉,5-提幣,7-允許子賬戶內轉\"},{\"name\":\"ipAddresses\",\"type\":\"Array\",\"required\":\"否\",\"description\":\"ip白名單\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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-萬向劃轉,5-提幣,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 multiple 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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/batchOrders\",\"protocol\":\"https\",\"method\":\"DELETE\",\"payload\":{\"orderIdList\":\"[1735924831603391122, 1735924833239172233]\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702711750843\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"success\":[{\"symbol\":\"BTC-USDT\",\"orderId\":1735924831603391200,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0032\",\"price\":\"41682.9\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702711706435,\"updateTime\":1702711706453,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"},{\"symbol\":\"BTC-USDT\",\"orderId\":1735924833239172400,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"0.0033\",\"price\":\"41182.9\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1702711706825,\"updateTime\":1702711706838,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}],\"failed\":null}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80014,\"msg\":\"orderIdList & clientOrderIDList are both empty;\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109201,\"msg\":\"The same order number is only allowed to be submitted once within 1 second.\",\"data\":{}}}]},\"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 [\\\"abc1234567\\\",\\\"abc2345678\\\"]. The system will convert this field to lowercase.\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"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. The system will convert this field to lowercase.\"}]}]}]\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\":\"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\":[{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"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\":\"Incremental and Full Depth Information\"},{\"type\":\"normal\",\"text\":\"Push incremental depth information of 1000 levels every 500ms.\"},{\"type\":\"normal\",\"text\":\"How the client should maintain incremental depth locally\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"1. After successfully subscribing, a full depth with an action field value of 'all' will be returned, along with a lastUpdateId used to handle the continuity of subsequent incremental depth. After receiving the full depth, the WebSocket should cache the full depth data in memory.\"},{\"type\":\"normal\",\"text\":\"2. Subsequent depth changes will return incremental depth, with the action field set to 'update'. The value of the Nth incremental depth's lastUpdateId should be the N-1th depth's lastUpdateId + 1.\"},{\"type\":\"normal\",\"text\":\"3. In rare cases where lastUpdateId is not continuous, you can choose to reconnect, or cache the last three incremental depths and try to merge the data by finding continuous lastUpdateId from the cache (because due to multithreading or network routing issues, data order may not be strongly guaranteed).\"},{\"type\":\"normal\",\"text\":\"4. Then, iterate over the received incremental depth and compare it with the current depth one by one. It's recommended to consider thread-safe design and coding practices (as the push frequency may increase later). The data structure could be a sorted map, such as TreeMap:\"},{\"type\":\"normal\",\"text\":\"(1) If the price level does not exist in the current depth, it means a new price level should be added. (Add)\"},{\"type\":\"normal\",\"text\":\"(2) If the quantity corresponding to the price is 0, the price level should be removed from the current depth. (Delete)\"},{\"type\":\"normal\",\"text\":\"(3) If the quantity corresponding to the price is different from the current value, replace it with the quantity returned by the incremental depth. (Update)\"},{\"type\":\"normal\",\"text\":\"(4) After traversing, you will obtain the latest depth, update the depth cache, and remember to update the lastUpdateId.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @incrDepth, for example, BTC-USDT@incrDepth\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@incrDepth\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Symbol name, the symbol must include a '-' like BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"dataType\",\"type\":\"\",\"description\":\"The type of data subscribed to, for example, BTC-USDT@incrDepth\"},{\"name\":\"action\",\"type\":\"\",\"description\":\"Depth type: all for full depth, update for incremental depth\"},{\"name\":\"lastUpdateId\",\"type\":\"\",\"description\":\"Change ID, a continuously increasing long integer used to describe the sequential relationship between returned incremental depths\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"asks\",\"type\":\"\",\"description\":\"Changed ask depth (price: quantity)\"},{\"name\":\"bids\",\"type\":\"\",\"description\":\"Changed bid depth (price: quantity)\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/websocket/market/07_depth_incr_info.json\n// module id = soQQ\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"TWAP歷史委託\"},{\"type\":\"normal\",\"text\":\"用於查詢TWAP歷史委託記錄,包含部分完成,已完成,已撤銷和委託失敗。 \"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/twap/historyOrders\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BNB-USDT\",\"pageIndex\":1,\"pageSize\":100,\"startTime\":1702731661854,\"endTime\":1702738661854,\"timestamp\":1702731661854,\"recvWindow\":\"0\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1702731661854,\"data\":{\"list\":[{\"symbol\":\"BNB-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"priceType\":\"constant\",\"priceVariance\":\"2000\",\"triggerPrice\":\"68000\",\"interval\":8,\"amountPerOrder\":\"0.111\",\"totalAmount\":\"0.511\",\"orderStatus\":\"Running\",\"executedQty\":\"0.1\",\"duration\":800,\"maxDuration\":9000,\"createdTime\":1702731661854,\"updateTime\":1702731661854}],\"total\":1}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對,例如:BTC-USDT,請使用大寫字母\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"分頁參數,最小值是1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"返回的結果集數量;最大值:1000\"},{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"開始時間,單位:毫秒\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"結束時間,單位:毫秒\"},{\"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\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP委託訂單編號\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"LONG 或 SHORT\"},{\"name\":\"priceType\",\"type\":\"string\",\"description\":\"價格限制類型,constant:價格間距,percentage:滑點\"},{\"name\":\"priceVariance\",\"type\":\"string\",\"description\":\"type為constant時表示價格差(單位為USDT),type為percentage時表示滑點比例(單位為%)\"},{\"name\":\"triggerPrice\",\"type\":\"string\",\"description\":\"觸發價,此價格是限制策略訂單執行的條件。買入是當市場價格低於限制價格時,會以賣一價向上取設定的比例或價距來委託下單;賣出是當市場價格高於限制價格時,會以買一價向下取設定的比例或價距來委託下單\"},{\"name\":\"interval\",\"type\":\"int64\",\"description\":\"策略订单拆单后,委托下单的时间间隔,5-120s之间\"},{\"name\":\"amountPerOrder\",\"type\":\"string\",\"description\":\"单笔下单数量。策略订单拆单后,单笔订单的最大委托数量。\"},{\"name\":\"totalAmount\",\"type\":\"string\",\"description\":\"委託單總數量。策略訂單的總交易量,該總量可能會被拆分為多個訂單執行。\"},{\"name\":\"orderStatus\",\"type\":\"string\",\"description\":\"New: 新建 /Running:運作中/Canceling:撤銷單中/Filled:全部成交/PartiallyFilled:部分成交/Pending:未觸發/PartiallyFilledAndResidueFailed:部分成交(剩餘委託失敗),演算法單狀態/ PartiallyFilledAndResidueCancelled:部分成交(剩餘撤銷),演算法單狀態/Cancelled:已撤銷(不存在部分成交)/Failed:委托失败(不存在部分成交)\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"duration\",\"type\":\"int64\",\"description\":\"已執行時間,單位秒。執行時間到期後委託單將被取消。 \"},{\"name\":\"maxDuration\",\"type\":\"int64\",\"description\":\"最大執行時間執行時間,單位:秒。\"},{\"name\":\"createdTime\",\"type\":\"int64\",\"description\":\"訂單創建時間,單位:毫秒\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"訂單更新時間,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/30_get_twap_history_orders.json\n// module id = srGS\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-10-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:‘訂單更新推送’增加ro字段(reduceOnly字段)\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-11.json\n// module id = ss+C\n// module chunks = 3","var map = {\n\t\"./2023-06-03.json\": \"jVl+\",\n\t\"./2023-07-29.json\": \"MfXY\",\n\t\"./2023-08-03.json\": \"9HpD\",\n\t\"./2023-08-11.json\": \"pV/D\",\n\t\"./2023-08-23.json\": \"bKtD\",\n\t\"./2023-09-18.json\": \"a/u1\",\n\t\"./2023-10-12.json\": \"DJaF\",\n\t\"./2023-11-10.json\": \"bGx6\",\n\t\"./2023-11-22.json\": \"axDH\",\n\t\"./2023-12-08.json\": \"+29D\",\n\t\"./2023-12-21.json\": \"CpXJ\",\n\t\"./2024-01-10.json\": \"KYMz\",\n\t\"./2024-01-23.json\": \"G8cI\",\n\t\"./2024-02-04.json\": \"NFKy\",\n\t\"./2024-02-23.json\": \"NuRj\",\n\t\"./2024-03-04.json\": \"3c71\",\n\t\"./2024-03-14.json\": \"Jip9\",\n\t\"./2024-03-19.json\": \"j7dp\",\n\t\"./2024-03-28.json\": \"ZNZv\",\n\t\"./2024-04-15.json\": \"i/xj\",\n\t\"./2024-04-25.json\": \"87c6\",\n\t\"./2024-05-23.json\": \"KSJz\",\n\t\"./2024-05-27.json\": \"5LYy\",\n\t\"./2024-06-13.json\": \"vBmL\",\n\t\"./2024-06-28.json\": \"khDw\",\n\t\"./2024-07-11.json\": \"vGFC\",\n\t\"./2024-07-22.json\": \"/chU\",\n\t\"./2024-07-30.json\": \"l7kI\",\n\t\"./2024-08-08.json\": \"F1dE\",\n\t\"./2024-08-17.json\": \"aG00\",\n\t\"./2024-08-22.json\": \"L5DY\",\n\t\"./2024-08-27.json\": \"TvGs\",\n\t\"./2024-09-11.json\": \"EMrv\",\n\t\"./2024-09-23.json\": \"nNlN\",\n\t\"./2024-10-09.json\": \"zB9+\",\n\t\"./2024-10-11.json\": \"ss+C\",\n\t\"./2024-10-16.json\": \"UDLl\",\n\t\"./2024-10-23.json\": \"nC6P\",\n\t\"./2024-10-24.json\": \"Aw6+\",\n\t\"./2024-10-30.json\": \"J9sz\",\n\t\"./2024-11-07.json\": \"R99K\",\n\t\"./2024-11-15.json\": \"aAh/\"\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_aorder.json\": \"MZay\",\n\t\"./01_post_trade_batchOrders.json\": \"jKsK\",\n\t\"./021_post_trade_order_cancel.json\": \"l/8P\",\n\t\"./022_post_trade_orders_cancel.json\": \"uDFu\",\n\t\"./023_post_cancelOpenOrders.json\": \"BdSn\",\n\t\"./023_post_trade_order_cancel_replace.json\": \"qru4\",\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\"./077_get_trade_fill_details.json\": \"ui1J\",\n\t\"./08_get_commissionRate.json\": \"OkZ/\",\n\t\"./09_cancel_all_after.json\": \"IW4y\",\n\t\"./100_post_one_oco_order.json\": \"0DXm\",\n\t\"./101_cancel_one_oco_order.json\": \"cfpy\",\n\t\"./102_get_one_oco_order.json\": \"bM6w\",\n\t\"./103_get_all_pending_oco_order.json\": \"EsEh\",\n\t\"./104_get_all_history_oco_order.json\": \"bjJG\"\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\":\"當有新訂單創建、訂單有新成交或者新的狀態變化時會推送此類事件 事件類型統一為 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\":\"warning\",\"text\":\"賬戶數據消耗再訂閱頻道類型、連接 wss://open-api-cswap-ws.bingx.com/market?listenKey=a8ea75681542e66f1a50a1616dd06ed77dab61baa0c296bca03a9b13ee5f2dd7 後,所有事件類型都會推送過來\"},{\"type\":\"warning\",\"text\":\"listen key的有效時間為1小時,為了保證你的訂閱不中斷,請定期更新listen key\"},{\"type\":\"normal\",\"text\":\"推送數據\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"notice:\\\":\\\"no need to subscribe to any specific channel,please check the hightlight msg in the api docs\\\"}\"},\"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\":\"sp\",\"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 or BOTH\"},{\"name\":\"rp\",\"type\":\"\",\"description\":\"該交易實現盈虧: 0.00000000\"},{\"name\":\"z\",\"type\":\"\",\"description\":\"訂單累計已成交量: 0.00000000\"},{\"name\":\"sg\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能。\"},{\"name\":\"ti\",\"type\":\"\",\"description\":\"與此訂單關聯的條件單ID:1771124709866754048\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/account/02_order.json\n// module id = tdP1\n// module chunks = 3","var map = {\n\t\"./01_get_Query_Invited_Users.json\": \"zsZ4\",\n\t\"./02_get_Daily_Commission_Query.json\": \"Gwkw\",\n\t\"./03_get_Query_agent_user_nformation.json\": \"P9RC\",\n\t\"./04_get_Query_the_deposit_details.json\": \"7XUQ\",\n\t\"./05_get_Query_API_transaction_commission.json\": \"IoyB\",\n\t\"./06_get_Query_partner_information.json\": \"8au9\"\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 = \"tepN\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent \\.json$\n// module id = tepN\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"切換保證金模式\"},{\"type\":\"normal\",\"text\":\"切換賬戶保證金模式保證金模式\"},{\"type\":\"warning\",\"text\":\"僅實盤可以調用,實盤域名:https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/assetMode\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"assetMode\":\"multiAssetsMode\",\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"assetMode\":\"multiAssetsMode\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"assetMode\",\"type\":\"string\",\"required\":\"是\",\"description\":\"保證金模式,singleAssetMode 或 multiAssetsMode\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"assetMode\",\"type\":\"string\",\"description\":\"保證金模式,singleAssetMode 或 multiAssetsMode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/api/trade/33_post_asset_mode.json\n// module id = thBV\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"訂閱逐筆交易\"},{\"type\":\"normal\",\"text\":\"逐筆交易推送每一筆成交的信息。成交,或者說交易的定義是僅有一個吃單者與一個掛單者相互交易\"},{\"type\":\"warning\",\"text\":\"因多線程推送,無法保證推送成交ID是有序的\"},{\"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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@trade\\\"}\"},\"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\":\"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\":[{\"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\":\"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\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"warning\",\"text\":\"響應: Excel File\"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 僅保留最近3個月的數據。
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/income/export\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"\",\"limit\":\"200\",\"recvWindow\":\"10000\",\"startTime\":\"\",\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702449874964\"}},\"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/account/18_get_trade_income_export.json\n// module id = tvLy\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"連接限制\"},{\"type\":\"normal\",\"text\":\"一個websocket限制最多200個topic,超過將返回80403錯誤碼。\"},{\"type\":\"normal\",\"text\":\"一個IP限制最多60個websocket,超過將建立連結失敗。\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/introduce/00_limit.json\n// module id = u2Il\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Recent Trades List\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/trades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720325973,\"data\":[{\"id\":76909154,\"price\":42195.21,\"qty\":0.00195,\"time\":1702720325553,\"buyerMaker\":true},{\"id\":76909153,\"price\":42195.31,\"qty\":0.00139,\"time\":1702720325552,\"buyerMaker\":true},{\"id\":76909152,\"price\":42195.48,\"qty\":0.00177,\"time\":1702720325552,\"buyerMaker\":false},{\"id\":76909151,\"price\":42195.15,\"qty\":0.00247,\"time\":1702720324643,\"buyerMaker\":true},{\"id\":76909150,\"price\":42195.25,\"qty\":0.02968,\"time\":1702720324643,\"buyerMaker\":true}]}},\"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 500\"},{\"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\":\"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\":\"buyerMaker\",\"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\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/positions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BNB-USDT\",\"timestamp\":\"1702731661854\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"positionId\":\"1849*********54112\",\"symbol\":\"EIGEN-USDT\",\"currency\":\"USDT\",\"positionAmt\":\"31.877\",\"availableAmt\":\"31.877\",\"positionSide\":\"LONG\",\"isolated\":false,\"avgPrice\":\"3.227\",\"initialMargin\":\"5.1431\",\"margin\":\"4.2938\",\"leverage\":20,\"unrealizedProfit\":\"-0.8493\",\"realisedProfit\":\"-0.0526\",\"liquidationPrice\":1.017,\"pnlRatio\":\"-0.1651\",\"maxMarginReduction\":\"0.0000\",\"riskRate\":\"0.1074\",\"markPrice\":\"3.200\",\"positionValue\":\"102.012\",\"onlyOnePosition\":false,\"updateTime\":1729770634050}]}},\"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\":\"margin\",\"type\":\"string\",\"description\":\"保證金\"},{\"name\":\"liquidationPrice\",\"type\":\"float64\",\"description\":\"強平價\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"開倉均價\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"槓桿\"},{\"name\":\"positionValue\",\"type\":\"string\",\"description\":\"持有價值\"},{\"name\":\"markPrice\",\"type\":\"string\",\"description\":\"標記價格\"},{\"name\":\"riskRate\",\"type\":\"string\",\"description\":\"風險率,風險率達到100%時會強制減倉或者平倉\"},{\"name\":\"maxMarginReduction\",\"type\":\"string\",\"description\":\"最大可減少保證金\"},{\"name\":\"pnlRatio\",\"type\":\"string\",\"description\":\"未實現盈虧收益率\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"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\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/cancelOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"orderIds\":\"1735964997957275648,1735965127519326208\",\"symbol\":\"GM-USDT\",\"timestamp\":\"1702721320676\"},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"GM-USDT\",\"orderId\":1735964997957275600,\"transactTime\":1702721242701,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"8061558\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721242645506402\"},{\"symbol\":\"GM-USDT\",\"orderId\":1735965127519326200,\"transactTime\":1702721249787,\"price\":\"0.00000398\",\"stopPrice\":\"0.00000398\",\"origQty\":\"5806281\",\"executedQty\":\"0\",\"cummulativeQuoteQty\":\"0\",\"status\":\"CANCELED\",\"type\":\"LIMIT\",\"side\":\"SELL\",\"clientOrderID\":\"2most51702721249647382871\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderIds\",\"type\":\"stirng\",\"required\":\"否\",\"description\":\"訂單ids,舉例:orderIds=id1,id2,id3\"},{\"name\":\"clientOrderIDs\",\"type\":\"stirng\",\"required\":\"否\",\"description\":\"自定義訂單ids,舉例:clientOrderIDs=id1,id2,id3\"},{\"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/TAKE_STOP_LIMIT/TAKE_STOP_MARKET/TRIGGER_LIMIT/TRIGGER_MARKET\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"交易類型, BUY買 SELL賣\"},{\"name\":\"clientOrderID\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"觸發價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/022_post_trade_orders_cancel.json\n// module id = uDFu\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Requests\"},{\"type\":\"warning\",\"text\":\"Root URL for REST access: https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"Alternate domain name: open-api.bingx.io (total frequency limit: 60/min) Release the frequency limit of the alternate domain name only when there is a problem with the primary domain name open-api.bingx.com\"},{\"type\":\"html\",\"text\":\"Request Description\"},{\"type\":\"html\",\"text\":\"
  • Request parameter: Parameter encapsulation is performed according to the api 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\":\"實盘行情Websocket的接入URL:wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"模擬盘行情Websocket的接入URL:wss://vst-open-api-ws.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 = [{\"type\":\"hash\",\"text\":\"查詢成交明細\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 只能查詢過去24小時範圍內的數據
  • \"},{\"type\":\"html\",\"text\":\"
  • 如果startTime/endTime不填寫後者無效,則默認返回過去24小時的數據
  • \"},{\"type\":\"html\",\"text\":\"
  • 同時限制最大返回數量limit=500
  • \"},{\"type\":\"html\",\"text\":\"
  • 返回列表按照時間time字段,從小到大排序
  • \"},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/trade/myTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"orderId\":1745362930595004400,\"limit\":10},\"response\":{\"code\":0,\"msg\":\"\",\"debugMsg\":\"\",\"data\":{\"fills\":[{\"symbol\":\"BTC-USDT\",\"id\":36767057,\"orderId\":1745362930595004400,\"price\":\"46820.155\",\"qty\":\"0.1430254\",\"quoteQty\":\"6696.471396937\",\"commission\":-0.000046483255,\"commissionAsset\":\"BTC\",\"time\":1704961925000,\"isBuyer\":true,\"isMaker\":false},{\"symbol\":\"BTC-USDT\",\"id\":36767058,\"orderId\":1745362930595004400,\"price\":\"46820.155\",\"qty\":\"0.0003844\",\"quoteQty\":\"17.997667582000002\",\"commission\":-1.2493e-7,\"commissionAsset\":\"BTC\",\"time\":1704961925000,\"isBuyer\":true,\"isMaker\":false}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易品種, 例如: BTC-USDT, 請使用大寫字母\"},{\"name\":\"orderId\",\"type\":\"long\",\"required\":\"是\",\"description\":\"訂單id\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"開始時間戳,單位:ms\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"結束時間戳,單位:ms\"},{\"name\":\"fromId\",\"type\":\"long\",\"required\":\"否\",\"description\":\"起始trade id。默認獲取最新交易\"},{\"name\":\"limit\",\"type\":\"long\",\"required\":\"否\",\"description\":\"默認500,最大1000\"},{\"name\":\"recvWindow\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求時間戳, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易品種\"},{\"name\":\"id\",\"type\":\"int\",\"description\":\"trade ID\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"訂單id\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"成家價格\"},{\"name\":\"qty\",\"type\":\"string\",\"description\":\"成交量\"},{\"name\":\"quoteQty\",\"type\":\"string\",\"description\":\"成交金額\"},{\"name\":\"commission\",\"type\":\"float64\",\"description\":\"交易費金額\"},{\"name\":\"commissionAsset\",\"type\":\"string\",\"description\":\"交易費資產類型\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"交易時間\"},{\"name\":\"isBuyer\",\"type\":\"bool\",\"description\":\"是否是買家\"},{\"name\":\"isMaker\",\"type\":\"bool\",\"description\":\"是否是掛單方\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/trade/077_get_trade_fill_details.json\n// module id = ui1J\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","module.exports = [{\"type\":\"hash\",\"text\":\"Get sub-account list\"},{\"type\":\"normal\",\"text\":\"Query sub account list\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/subAccount/v1/list\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"limit\":100},\"response\":{\"code\":0,\"timestamp\":1701088491202,\"data\":{\"result\":[{\"subUid\":\"16477999\",\"subAccountString\":\"abc123456\",\"note\":\"\",\"freeze\":false,\"createTime\":1700847351000}],\"pageId\":1,\"total\":1}}},\"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 1000\"},{\"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\":\"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\":\"
  • 100204 - 無數據
  • \"},{\"type\":\"html\",\"text\":\"
  • 100400 - 參數錯誤
  • \"},{\"type\":\"html\",\"text\":\"
  • 100440 - 下單價格跟市場市場價格偏离太远
  • \"},{\"type\":\"html\",\"text\":\"
  • 100500 - 服務器內部錯誤
  • \"},{\"type\":\"html\",\"text\":\"
  • 100503 - 服務器繁忙
  • \"},{\"type\":\"normal\",\"text\":\"100202\",\"children\":[{\"type\":\"html\",\"text\":\"Insufficient assets\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"}]},{\"type\":\"normal\",\"text\":\"100421\",\"children\":[{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"}]},{\"type\":\"normal\",\"text\":\"100400\",\"children\":[{\"type\":\"html\",\"text\":\"quantity/quoteOrderQty can't both be lte 0 in limit order\"},{\"type\":\"html\",\"text\":\"The current system is busy, please try again later\"},{\"type\":\"html\",\"text\":\"The same order can only be submitted once per second.\"},{\"type\":\"html\",\"text\":\"invalid symbol, send symbol like BTC-USDT\"},{\"type\":\"html\",\"text\":\"The minimum amount per order is *\"},{\"type\":\"html\",\"text\":\"miss arguments\"}]},{\"type\":\"normal\",\"text\":\"100414\",\"children\":[{\"type\":\"html\",\"text\":\"The account is abnormal, please contact customer service.\"}]},{\"type\":\"normal\",\"text\":\"100413\",\"children\":[{\"type\":\"html\",\"text\":\"Incorrect apiKey\"},{\"type\":\"html\",\"text\":\"Null apiKey\"}]},{\"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\":\"\",\"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\":\"title\",\"text\":\"2023-09-18\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual Futures: Added support for setting stop-profit and stop-loss when placing an order\"},{\"type\":\"html\",\"text\":\"Perpetual Futures: Add historical transaction orders to return trading pair information\"},{\"type\":\"html\",\"text\":\"Perpetual Futures:/openApi/swap/v2/user/positions return liquidation price\"},{\"type\":\"html\",\"text\":\"Perpetual Futures: New contract depth query api adds returns in currency units\"},{\"type\":\"html\",\"text\":\"Perpetual Futures: Added contract ordering, order checking, push support and return to workingType\"},{\"type\":\"html\",\"text\":\"Spot: Fix the problem that the K-line does not include the start and end time; update the K-line query api V2. When only starttime is transmitted, the time sequence is returned in descending order\"},{\"type\":\"html\",\"text\":\"Wallet: AddedSub-account recharge Address-related creation and query interface interface\"},{\"type\":\"html\",\"text\":\"Copy Trading: AddedAPI for copy trading system\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2023-09-18.json\n// module id = v1XT\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query Trading Commission Rate\"},{\"type\":\"normal\",\"text\":\"Obtain the transaction rate for the current user\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/user/commissionRate\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702732072912\",\"recvWindow\":\"5000\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"commission\":{\"takerCommissionRate\":0.0005,\"makerCommissionRate\":0.0002}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"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\":\"takerCommissionRate\",\"type\":\"float64\",\"description\":\"taker fee rate\"},{\"name\":\"makerCommissionRate\",\"type\":\"float64\",\"description\":\"maker fee rate\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/account/19_get_trade_user_commissionRate.json\n// module id = v5LS\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-06-13\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續幣本位新增系列交易API\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-06-13.json\n// module id = vBmL\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"下單\"},{\"type\":\"desc\",\"text\":\"當前賬戶在指定symbol合約上進行下單操作。(支持限價單、市價單、計劃委託市價單、計劃委託限價單、倉位止盈止損單、針對倉位平倉)\",\"desc\":[{\"type\":\"warning\",\"text\":\"基於訂單 type 不同,強制要求某些參數:\"},{\"type\":\"html\",\"text\":\"
  • LIMIT: 強制要求參數 quantity, price
  • \"},{\"type\":\"html\",\"text\":\"
  • MARKET: 強制要求參數 quantity
  • \"},{\"type\":\"html\",\"text\":\"
  • TRAILING_STOP_MARKET(追跡委託單)和TRAILING_TP_SL(移動止盈止損單):需填寫price欄位或者priceRate欄位
  • \"},{\"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\":\"html\",\"text\":\"

    3. 開倉加倉的同時設置止盈止損:使用takeProfit或者stopLoss字段

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

    {\\\"symbol\\\": \\\"BTC-USDT\\\",\\\"side\\\": \\\"BUY\\\",\\\"positionSide\\\": \\\"LONG\\\",\\\"type\\\": \\\"MARKET\\\",\\\"quantity\\\": 5,\\\"takeProfit\\\": \\\"{\\\\\\\"type\\\\\\\": \\\\\\\"TAKE_PROFIT_MARKET\\\\\\\", \\\\\\\"stopPrice\\\\\\\": 31968.0,\\\\\\\"price\\\\\\\": 31968.0,\\\\\\\"workingType\\\\\\\":\\\\\\\"MARK_PRICE\\\\\\\"}\\\"}

    \"},{\"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\":\"warning\",\"text\":\"最小下單數量可從接口 /openApi/swap/v2/quote/contracts 獲取:tradeMinQuantity、tradeMinUSDT\"},{\"type\":\"normal\",\"text\":\"交易規則:\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"交易規則: https://bingx.com/zh-tw/tradeInfo/perpetual/trading-rules/BTC-USDT/\"},{\"type\":\"html\",\"text\":\"關於價格精度和數量精度參考接口: https://open-api.bingx.com/openApi/swap/v2/quote/contracts\"},{\"type\":\"html\",\"text\":\"如果精度超過當期的範圍,當前API下單仍然成功,但是會被截斷.比如price要求是:0.0001,如果下單0.123456.最後會以0.1234成功提交\"}]}]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v2/trade/order\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":[{\"title\":\"MARKET\",\"desc\":\"以市場價格下訂單並設定止盈\",\"payload\":{\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\"}},{\"title\":\"STOP_MARKET\",\"desc\":\"市場价止損單\",\"payload\":{\"type\":\"STOP_MARKET\",\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_PROFIT_MARKET\",\"desc\":\"市場价止盈單\",\"payload\":{\"type\":\"TAKE_PROFIT_MARKET\",\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"STOP\",\"desc\":\"止損限價單\",\"payload\":{\"type\":\"STOP\",\"price\":50000,\"stopPrice\":50000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TAKE_PROFIT\",\"desc\":\"限價止盈訂單\",\"payload\":{\"type\":\"TAKE_PROFIT\",\"price\":70000,\"stopPrice\":70000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_LIMIT\",\"desc\":\"計劃委託單限價單\",\"payload\":{\"type\":\"TRIGGER_LIMIT\",\"price\":70000,\"stopPrice\":70000,\"priceRate\":0,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"takeProfit\":\"\",\"recvWindow\":1000,\"stopLoss\":\"\",\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRIGGER_MARKET\",\"desc\":\"計劃委託市價單\",\"payload\":{\"type\":\"TRIGGER_MARKET\",\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"takeProfit\":\"\",\"recvWindow\":1000,\"stopLoss\":\"\",\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRAILING_STOP_MARKET\",\"desc\":\"追蹤委託單\",\"payload\":{\"type\":\"TRAILING_STOP_MARKET\",\"price\":0,\"stopPrice\":0,\"priceRate\":0.1,\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"TRAILING_TP_SL\",\"desc\":\"移動止盈止損\",\"payload\":{\"type\":\"TRAILING_TP_SL\",\"price\":0,\"stopPrice\":0,\"priceRate\":0.1,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726231037325}},{\"title\":\"POSITION_STOP_MARKET\",\"desc\":\"倉位市價止損單\",\"payload\":{\"type\":\"STOP_MARKET\",\"closePosition\":true,\"stopPrice\":50000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}},{\"title\":\"POSITION_TAKE_PROFIT_MARKET\",\"desc\":\"倉位市價止盈單\",\"payload\":{\"type\":\"TAKE_PROFIT_MARKET\",\"closePosition\":true,\"stopPrice\":70000,\"symbol\":\"BTC-USDT\",\"side\":\"SELL\",\"quantity\":0.002,\"positionSide\":\"LONG\",\"clientOrderID\":\"\",\"recvWindow\":1000,\"timeInForce\":\"GTC\",\"workingType\":\"\",\"timestamp\":1726223068783}}],\"errors\":[{\"desc\":\"溫馨提醒:由於市場波動較大,為降低爆倉風險,API訂單暫時關閉。\",\"sample\":{\"code\":80014,\"msg\":\"Reminder: Due to the large market fluctuations, in order to reduce the risk of liquidation, API orders are temporarily disabled.\",\"data\":{}}},{\"desc\":\"需要滿足最小下單金額2U\",\"sample\":{\"code\":101400,\"msg\":\"Please ensure that the minimum nominal value of the order placed must be greater than 2u\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101212,\"msg\":\"Failed. Please check if you have pending orders under the trading pair. If yes, please cancel them and try again\",\"data\":{}}},{\"desc\":\"當前您的賬號被風控,當前無法使用API下單,需要聯繫我們客服確認\",\"sample\":{\"code\":80020,\"msg\":\"risk forbidden\",\"data\":{}}},{\"desc\":\"需要填寫quantity字段\",\"sample\":{\"code\":80014,\"msg\":\"parameter quantity is must\",\"data\":{}}},{\"desc\":\"止損價格需要低於當前最新價\",\"sample\":{\"code\":110411,\"msg\":\"Stop Loss price should be lower than the current price\",\"data\":{}}},{\"desc\":\"當前無倉位,請先檢查是否有倉位\",\"sample\":{\"code\":101205,\"msg\":\"No position to close\",\"data\":{}}},{\"desc\":\"保證金不足,請先檢查是否足夠\",\"sample\":{\"code\":101204,\"msg\":\"Insufficient margin\",\"data\":{}}},{\"desc\":\"需要填寫必填參數\",\"sample\":{\"code\":80014,\"msg\":\"Invalid parameters,positionSide: This field is required.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101215,\"msg\":\"The Maker (Post Only) order ensures that the user always acts as a maker. If the order would immediately match with available orders in the market, it will be canceled.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110406,\"msg\":\"Position SL order already exists\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"This operation is not allowed as your account assets are being processed. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110412,\"msg\":\"Stop Loss price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"The Reduce Only order can only decrease the position and not be used to open a position. Please check your positions and open orders.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the One-way mode, the 'PositionSide' field can only be set to BOTH.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101211,\"msg\":\"Order price should be higher than 15.5\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101481,\"msg\":\"clientOrderID cannot be repeated\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"You have a copy trading signal in process, please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":109400,\"msg\":\"In the Hedge mode, the 'PositionSide' field can only be set to LONG or SHORT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101515,\"msg\":\"You're temporarily suspended from trading. Please try again later.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110400,\"msg\":\"The parameters submitted don't meet the requirement. Please try again later or contact customer support\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101419,\"msg\":\"Your order size has reached the upper limit\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110413,\"msg\":\"Take Profit price should be greater than the current price\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101209,\"msg\":\"The maximum position value for this leverage is 170000 USDT.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101424,\"msg\":\"This order exceeds the current position limit amount of 5000 USDT. Please complete your KYC to increase the maximum position limit.\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101400,\"msg\":\"The trading pair is not available for trading\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80012,\"msg\":\"The current system is busy, please try again later\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":101290,\"msg\":\"\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":110407,\"msg\":\"Position TP order already exists\",\"data\":{}}}],\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"order\":{\"symbol\":\"BTC-USDT\",\"orderId\":1735950529123455000,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"clientOrderId\":\"\",\"workingType\":\"MARK_PRICE\"}}}},\"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:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"是\",\"description\":\"買賣方向 SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"否\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格,TRAILING_STOP_MARKET和TRAILING_TP_SL類型傳該參數表示回撤價差\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"下單數量,合約數量,當前只支持以幣計的合約數,暫不支持用U的數量下單\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價, 僅 STOP_MARKET,TAKE_PROFIT_MARKET,STOP,TAKE_PROFIT,TRIGGER_LIMIT,TRIGGER_MARKET 需要此參數\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"針對type:TRAILING_STOP_MARKET和TRAILING_TP_SL; 最大:1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位:毫秒\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止損。但僅支持type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"否\",\"description\":\"支持下單同時設置止盈。但僅支持type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫,限制字符長度1-40,不同訂單不可使用相同的clientOrderId, clientOrderId 僅支援 LIMIT/MARKET 訂單類型\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"否\",\"description\":\"有效方式,目前支持PostOnly、GTC、IOC和FOK\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"否\",\"description\":\"true, false;觸發後全部平倉,僅支援STOP_MARKET和TAKE_PROFIT_MARKET;不與quantity合用;自帶只平倉效果,不與reduceOnly 合用\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"追蹤委託單/移動止盈止損單啟動價格,TRAILING_TP_SL和TRAILING_STOP_MARKET 需要此參數, 預設為下單當前市場價格(支援不同workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能;cutfee:啟用保證停損功能,同時啟用VIP保證停損費用減免功能,VIP費用減免只有在停損單時才起作用。預設不啟用保證止盈止損功能。stopGuaranteed為true或cutfee的時候,quantity字段不生效。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"僅支持type: STOP_MARKET/STOP、TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"觸發價,僅STOP_MARKET、TAKE_PROFIT_MARKET、STOP、TAKE_PROFIT。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"否\",\"description\":\"委託價格\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能;cutfee:啟用保證停損功能,同時啟用VIP保證停損費用減免功能,VIP費用減免只有在停損單時才起作用。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"買賣方向\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT:限價單/MARKET:市價單/STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃委託市價單/TRAILING_STOP_MARKET:追踪委託單/TRAILING_TP_SL:移動止盈止損\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"持仓方向,单项持仓必填BOTH,双向持仓僅可選擇 LONG 或 SHORT,為空時默認LONG\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; 單項持倉模式下默認false;雙開持倉模式下不接受此參數\"},{\"name\":\"orderID\",\"type\":\"string\",\"description\":\"訂單號\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"否\",\"description\":\"stopPrice觸發價價格類型:MARK_PRICE、CONTRACT_PRICE、INDEX_PRICE,默認MARK_PRICE。當type為STOP或STOP_MARKET,以及stopGuaranteed為true的時候,workingType只能為CONTRACT_PRICE。\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"用戶自定義訂單ID,系統會將該字段轉為英文小寫\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true:啟用保證止盈停損功能;false:不啟用保證停損功能;cutfee:啟用保證停損功能,同時啟用VIP保證停損費用減免功能,VIP費用減免只有在停損單時才起作用。預設不啟用保證止盈止損功能。支援的訂單類型type有:STOP_MARKET:市價止損單/TAKE_PROFIT_MARKET:市價止盈單/STOP:限價止損單/TAKE_PROFIT:限價止盈單/TRIGGER_LIMIT:計劃委託單限價單/TRIGGER_MARKET:計劃計劃委託市價單。\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"全部一鍵平倉下單\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/closeAllPositions\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718434280880,\"data\":{\"success\":[\"1801870087554072576\"],\"failed\":[{\"positionId\":\"12345678910111234\",\"errCode\":123,\"errorMsg\":\"balabala\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對, 例如: BTC-USD, 請使用大寫字母\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"code\",\"type\":\"int32\",\"description\":\"狀態碼\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"描述信息\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"響應生成時間點,單位:毫秒\"},{\"name\":\"data\",\"type\":\"Obj\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"success\",\"type\":\"List\",\"description\":\"平倉成功的訂單id list\"},{\"name\":\"failed\",\"type\":\"List\",\"description\":\"平仓失敗的msg\"}]},{\"type\":\"Failed\",\"key\":\"failed\",\"data\":[{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"平倉失敗的仓位id\"},{\"name\":\"errCode\",\"type\":\"int32\",\"description\":\"錯誤碼\"},{\"name\":\"errorMsg\",\"type\":\"string\",\"description\":\"錯誤描述訊息\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/api/trade/05_post_closeAllPositions.json\n// module id = vDcD\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-07-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"現貨批量下單新增功能:POST /openApi/spot/v1/trade/batchOrders,新增字段sync(true/false)支持並行和串行批量下單兩種方式\"},{\"type\":\"html\",\"text\":\"永續U本位調整接口:下單接口 Post /openApi/swap/v2/trade/order,StopGuaranteed字段新增一個參數值cutfee,表示開啟停損功能,並且啟用VIP減免停損費用\"},{\"type\":\"html\",\"text\":\"永續U本位調整接口:查詢訂單、查詢歷史訂單接口返回triggerOrderId字段。\"},{\"type\":\"html\",\"text\":\"永續U本位新增接口:查詢倉位歷史 Get /openApi/swap/v1/trade/positionHistory。\"},{\"type\":\"html\",\"text\":\"永續幣本位新增接口:查詢倉位模式 Get /openApi/cswap/v1/trade/marginType。\"},{\"type\":\"html\",\"text\":\"永續幣本位新增接口:設置倉位模式 Post /openApi/cswap/v1/trade/marginType。\"},{\"type\":\"html\",\"text\":\"永續幣本位新增接口:設置倉位保證金 Post /openApi/cswap/v1/trade/positionMargin。\"},{\"type\":\"html\",\"text\":\"永續幣本位調整接口:下單接口 Post /openApi/cswap/v1/trade/order,下單支持逐倉模式、計劃委託\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-07-11.json\n// module id = vGFC\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel an Existing Order and Send a New Orde\"},{\"type\":\"normal\",\"text\":\"This api is used to cancel an order and place a new one on the same trading pair.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/cancelReplace\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"cancelReplaceMode\":\"STOP_ON_FAILURE\",\"cancelClientOrderId\":\"abc123test\",\"cancelOrderId\":123456789,\"cancelRestrictions\":\"ONLY_NEW\",\"symbol\":\"BTC-USDT\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"MARKET\",\"quantity\":5,\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT_MARKET\\\", \\\"stopPrice\\\": 31968.0,\\\"price\\\": 31968.0,\\\"workingType\\\":\\\"MARK_PRICE\\\"}\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"cancelResult\":\"true\",\"cancelMsg\":\"\",\"cancelResponse\":{\"cancelClientOrderId\":\"\",\"cancelOrderId\":123456789,\"symbol\":\"BTC-USDT\",\"orderId\":123456789,\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"origQty\":\"1.0000\",\"price\":\"38000.0\",\"executedQty\":\"0.0000\",\"avgPrice\":\"0.0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"PENDING\",\"time\":1706858471000,\"updateTime\":1706858471000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"workingType\":\"MARK_PRICE\",\"onlyOnePosition\":false,\"reduceOnly\":false},\"replaceResult\":\"true\",\"replaceMsg\":\"\",\"newOrderResponse\":{\"orderId\":987654321,\"symbol\":\"BTC-USDT\",\"positionSide\":\"LONG\",\"side\":\"BUY\",\"type\":\"LIMIT\",\"price\":38000,\"quantity\":1,\"stopPrice\":0,\"workingType\":\"MARK_PRICE\",\"clientOrderId\":\"\",\"timeInForce\":\"GTC\",\"priceRate\":0,\"stopLoss\":\"{\\\"type\\\": \\\"STOP\\\", \\\"stopPrice\\\": 37000, \\\"price\\\": 37000}\",\"takeProfit\":\"{\\\"type\\\": \\\"TAKE_PROFIT\\\", \\\"stopPrice\\\": 45000, \\\"price\\\": 45000}\",\"reduceOnly\":false}}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"cancelReplaceMode\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"STOP_ON_FAILURE: If the order cancellation fails, the replacement order will not continue.\\nALLOW_FAILURE: Regardless of the success of the order cancellation, the replacement order will proceed.\"},{\"name\":\"cancelClientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"The original client-defined order ID to be canceled. The system will convert this field to lowercase. Either cancelClientOrderId or cancelOrderId must be provided. If both parameters are provided, cancelOrderId takes precedence.\"},{\"name\":\"cancelOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"The platform order ID to be canceled. Either cancelClientOrderId or cancelOrderId must be provided. If both parameters are provided, cancelOrderId takes precedence.\"},{\"name\":\"cancelRestrictions\",\"type\":\"string\",\"required\":\"no\",\"description\":\"ONLY_NEW: If the order status is NEW, the cancellation will succeed.\\nONLY_PENDING: If the order status is PENDING, the cancellation will succeed.\\nONLY_PARTIALLY_FILLED: If the order status is PARTIALLY_FILLED, the cancellation will succeed.\"},{\"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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"side\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"buying and selling direction SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Price, represents the trailing stop distance in TRAILING_STOP_MARKET and TRAILING_TP_SL\"},{\"name\":\"quantity\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Original quantity, only support units by COIN ,Ordering with quantity U is not currently supported.\"},{\"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\":\"priceRate\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL ; Maximum: 1\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopLoss\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting stop loss while placing an order. Only supports type: STOP_MARKET/STOP\"},{\"name\":\"takeProfit\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Support setting take profit while placing an order. Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Customized order ID for users, with a limit of characters from 1 to 40. The system will convert this field to lowercase. Different orders cannot use the same clientOrderId, clientOrderId only supports LIMIT/MARKET order type\"},{\"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\"},{\"name\":\"closePosition\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true, false; all position squaring after triggering, only support STOP_MARKET and TAKE_PROFIT_MARKET; not used with quantity; comes with only position squaring effect, not used with reduceOnly\"},{\"name\":\"activationPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Used with TRAILING_STOP_MARKET or TRAILING_TP_SL orders, default as the latest price(supporting different workingType)\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Time in Force, currently supports PostOnly, GTC, IOC, and FOK\"}]},{\"type\":\"stopLoss/takeProfit\",\"key\":\"key1\",\"data\":[{\"name\":\"type\",\"type\":\"string\",\"description\":\"Only supports type: STOP_MARKET/STOP, TAKE_PROFIT_MARKET/TAKE_PROFIT\"},{\"name\":\"stopPrice\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Trigger price, only for STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT\"},{\"name\":\"price\",\"type\":\"float64\",\"required\":\"no\",\"description\":\"Order price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Trigger price type for stopPrice: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default is MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"cancelResult\",\"type\":\"string\",\"description\":\"Cancellation result. true: Cancellation successful, false: Cancellation failed\"},{\"name\":\"cancelMsg\",\"type\":\"string\",\"description\":\"Reason for the cancellation failure\"},{\"name\":\"cancelResponse\",\"type\":\"CancelResponse\",\"description\":\"Information about the canceled order\"},{\"name\":\"replaceResult\",\"type\":\"string\",\"description\":\"Replacement result. true: Replacement successful, false: Replacement failed\"},{\"name\":\"replaceMsg\",\"type\":\"string\",\"description\":\"Reason for the replacement failure\"},{\"name\":\"newOrderResponse\",\"type\":\"NewOrderResponse\",\"description\":\"Information about the new order\"}]},{\"type\":\"CancelResponse\",\"key\":\"cancelResponse\",\"data\":[{\"name\":\"cancelClientOrderId\",\"type\":\"string\",\"description\":\"Custom OrderId of the canceled order. The system will convert this field to lowercase.\"},{\"name\":\"cancelOrderId\",\"type\":\"string\",\"description\":\"OrderId of the canceled order\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"original order quantity\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"volume\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"average transaction price\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"transaction amount\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"profit and loss\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Fee\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"order status\"},{\"name\":\"time\",\"type\":\"int64\",\"description\":\"order time, unit: millisecond\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"leverage\",\"type\":\"string\",\"description\":\"Leverage\"},{\"name\":\"workingType\",\"type\":\"string\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"onlyOnePosition\",\"type\":\"bool\",\"description\":\"is OneWay Position mode, true: yes; false: no\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]},{\"type\":\"NewOrderResponse\",\"key\":\"newOrderResponse\",\"data\":[{\"name\":\"orderId\",\"type\":\"int64\",\"description\":\"Order ID\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"buying and selling direction\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order / TRAILING_TP_SL: Trailing TakeProfit or StopLoss\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Price\"},{\"name\":\"quantity\",\"type\":\"float64\",\"description\":\"original order quantity\"},{\"name\":\"stopPrice\",\"type\":\"string\",\"description\":\"Trigger price\"},{\"name\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE. When the type is STOP or STOP_MARKET, and stopGuaranteed is true, the workingType must only be CONTRACT_PRICE.\"},{\"name\":\"clientOrderId\",\"type\":\"string\",\"description\":\"Customized order ID for users. The system will convert this field to lowercase.\"},{\"name\":\"timeInForce\",\"type\":\"string\",\"description\":\"timeInForce\"},{\"name\":\"priceRate\",\"type\":\"float64\",\"description\":\"For type: TRAILING_STOP_MARKET or TRAILING_TP_SL ; Maximum: 1\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/20_cancel_replace_order.json\n// module id = vKvg\n// module chunks = 3","var map = {\n\t\".\": \"Tl8j\",\n\t\"./\": \"Tl8j\",\n\t\"./01_balance\": \"qHKX\",\n\t\"./01_balance.json\": \"qHKX\",\n\t\"./02_order\": \"tdP1\",\n\t\"./02_order.json\": \"tdP1\",\n\t\"./03_setting\": \"PEUY\",\n\t\"./03_setting.json\": \"PEUY\",\n\t\"./index\": \"Tl8j\",\n\t\"./index.js\": \"Tl8j\"\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 = \"vOn1\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/cswap/websocket/account ^.*$\n// module id = vOn1\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query user API Key permissions\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/v1/account/apiPermissions\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702624501386\"},\"response\":{\"apiKey\":\"\",\"permissions\":[1,2],\"ipAddresses\":[],\"note\":\"demo\"}},\"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\":\"apiKey\",\"type\":\"String\",\"description\":\"apiKey\"},{\"name\":\"permissions\",\"type\":\"array\",\"description\":\"Permissions, 1-spot trading, 2-reading, 3-professional contract trading, 4-universal transfer, 5-coin withdrawal, 7-allow transfer within sub-account\"},{\"name\":\"ipAddresses\",\"type\":\"array\",\"description\":\"ip whitelist\"},{\"name\":\"note\",\"type\":\"String\",\"description\":\"Remark\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/02_get_account_apiPermission.json\n// module id = vPcu\n// module chunks = 3","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/cswap/websocket/introduce/03_heart_beat.json\n// module id = vR2M\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\":\"現貨最優掛單\"},{\"type\":\"normal\",\"text\":\"實時推送\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @bookTicker,比如BTC_USDT@bookTicker\"},{\"type\":\"normal\",\"text\":\"訂閱例子\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"幣對名稱,如BTC-USDT\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件推送時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"買單最優掛單價格\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"買單最優掛單數量\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"賣單最優掛單價格\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"賣單最優掛單數量\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/websocket/market/06_book_ticker.json\n// module id = vVRe\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-07-11\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"New Spot features: POST /openApi/spot/v1/trade/batchOrders, new field sync (true/false) supports parallel and serial batch ordering\"},{\"type\":\"html\",\"text\":\"Change perpetual contract: Order api Post /openApi/swap/v2/trade/order, StopGuaranteed field add a new parameter value cutfee, it means to turn on the stop-loss function, and enable VIP to reduce the stop-loss fee.\"},{\"type\":\"html\",\"text\":\"Perpetual U-based api adjustment: query order, query historical order interfaces return the triggerOrderId field.\"},{\"type\":\"html\",\"text\":\"New perpetual U-based interface: query position history Get /openApi/swap/v1/trade/positionHistory.\"},{\"type\":\"html\",\"text\":\"New perpetual coin-based interface: query margin mode Get /openApi/cswap/v1/trade/marginType.\"},{\"type\":\"html\",\"text\":\"New perpetual coin-based interface: set margin mode Post /openApi/cswap/v1/trade/marginType.\"},{\"type\":\"html\",\"text\":\"New perpetual coin-based interface: set position margin Post /openApi/cswap/v1/trade/positionMargin.\"},{\"type\":\"html\",\"text\":\"Perpetual coin-based api adjustment: order api Post /openApi/cswap/v1/trade/order, order supports isolated margin mode and planned entrusted limit orders\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-07-11.json\n// module id = vZQv\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_interval.json\": \"bP1Q\",\n\t\"./02_latest_records.json\": \"cRtg\",\n\t\"./03_kline_data.json\": \"WbRb\",\n\t\"./04_quote_ticker.json\": \"AAve\",\n\t\"./05_last_trade_price.json\": \"lqZR\",\n\t\"./06_last_mark_price.json\": \"zVt3\",\n\t\"./07_book_ticker.json\": \"5TRZ\",\n\t\"./08_depth_incr_info.json\": \"PEl6\"\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\":\"warning\",\"text\":\"https://open-api.bingx.com/openApi/spot/v1/server/time\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/basic/04_server_url.json\n// module id = w7yn\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to the Book Ticker Streams\"},{\"type\":\"normal\",\"text\":\"Push every 10 ms.\"},{\"type\":\"normal\",\"text\":\"Push the Book Ticker Streams.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @bookTicker, such as BTC-USDT@bookTicker.\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@bookTicker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair, e.g., BTC-USDT, please use uppercase letters.\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"code\",\"type\":\"\",\"description\":\"Whether there is an error message, 0 for normal, 1 for error.\"},{\"name\":\"dataType\",\"type\":\"\",\"description\":\"Subscribed data type, e.g., BTC-USDT@bookTicker.\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push content\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"u\",\"type\":\"\",\"description\":\"Update ID\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"T\",\"type\":\"\",\"description\":\"Transaction time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair, e.g., BTC-USDT\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Best bid price\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Best bid quantity\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Best ask price\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Best ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/07_book_ticker.json\n// module id = wF+v\n// module chunks = 3","module.exports = [{\"type\":\"title\",\"text\":\"2024-05-23\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual New Interface: Query Position and Maintenance Margin Ratio.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-05-23.json\n// module id = wQ5t\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Service Address\"},{\"type\":\"code\",\"text\":\"https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"Alternate domain name: open-api.bingx.io (total frequency limit: 60/min) Release the frequency limit of the alternate domain name only when there is a problem with the primary domain name 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","module.exports = [{\"type\":\"hash\",\"text\":\"All Orders\"},{\"type\":\"normal\",\"text\":\"Query the user's historical orders (order status is fully executed, pending, newly created, partially executed, or cancelled.).\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"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/v1/trade/fullOrder\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"endTime\":\"1702731995000\",\"limit\":\"500\",\"startTime\":\"1702688795000\",\"symbol\":\"PYTH-USDT\",\"timestamp\":\"1702731995838\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"orders\":[{\"symbol\":\"PYTH-USDT\",\"orderId\":1736007506620112100,\"side\":\"SELL\",\"positionSide\":\"SHORT\",\"type\":\"LIMIT\",\"origQty\":\"33\",\"price\":\"0.3916\",\"executedQty\":\"33\",\"avgPrice\":\"0.3916\",\"cumQuote\":\"13\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"-0.002585\",\"status\":\"FILLED\",\"time\":1702731418000,\"updateTime\":1702731470000,\"clientOrderId\":\"\",\"leverage\":\"15X\",\"takeProfit\":{\"type\":\"TAKE_PROFIT\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"stopLoss\":{\"type\":\"STOP\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"MARK_PRICE\",\"stopGuaranteed\":false,\"triggerOrderId\":1736012449498123500,\"isTwap\":true,\"mainOrderId\":\"21312431241234\"}]}}},\"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 symbol is specified, it will query the orders for all trading pairs.\"},{\"name\":\"orderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"Only return 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\":\"LIMIT: Limit Order / MARKET: Market Order / STOP_MARKET: Stop Market Order / TAKE_PROFIT_MARKET: Take Profit Market Order / STOP: Stop Limit Order / TAKE_PROFIT: Take Profit Limit Order / TRIGGER_LIMIT: Stop Limit Order with Trigger / TRIGGER_MARKET: Stop Market Order with Trigger / TRAILING_STOP_MARKET: Trailing Stop Market Order\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, required for single position as BOTH, for both long and short positions only LONG or SHORT can be chosen, defaults to LONG if empty\"},{\"name\":\"reduceOnly\",\"type\":\"string\",\"description\":\"true, false; Default value is false for single position mode; This parameter is not accepted for both long and short positions mode\"},{\"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\":\"workingType\",\"type\":\"string\",\"required\":\"no\",\"description\":\"StopPrice trigger price types: MARK_PRICE, CONTRACT_PRICE, INDEX_PRICE, default MARK_PRICE\"},{\"name\":\"updateTime\",\"type\":\"int64\",\"description\":\"update time, unit: millisecond\"},{\"name\":\"stopGuaranteed\",\"type\":\"string\",\"required\":\"no\",\"description\":\"true: Enables the guaranteed stop-loss and take-profit feature; false: Disables the feature. The guaranteed stop-loss feature is not enabled by default. Supported order types include: STOP_MARKET: Market stop-loss order / TAKE_PROFIT_MARKET: Market take-profit order / STOP: Limit stop-loss order / TAKE_PROFIT: Limit take-profit order / TRIGGER_LIMIT: Stop-limit order with trigger / TRIGGER_MARKET: Market order with trigger for stop-loss.\"},{\"name\":\"triggerOrderId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"trigger order ID associated with this order\"},{\"name\":\"isTwap\",\"type\":\"bool\",\"description\":\"Whether it is a TWAP order, true: yes, false: no\"},{\"name\":\"mainOrderId\",\"type\":\"string\",\"description\":\"TWAP order number\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/23_get_trade_allOrdersV2.json\n// module id = wYbs\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Access\"},{\"type\":\"normal\",\"text\":\"the base URL of Live Websocket Market Data :wss://open-api-swap.bingx.com/swap-market\"},{\"type\":\"normal\",\"text\":\"the base URL of VST Websocket Market Data :wss://vst-open-api-ws.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\"./2023-08-03\": \"H0k7\",\n\t\"./2023-08-03.json\": \"H0k7\",\n\t\"./2023-08-11\": \"D1C9\",\n\t\"./2023-08-11.json\": \"D1C9\",\n\t\"./2023-08-23\": \"CcT1\",\n\t\"./2023-08-23.json\": \"CcT1\",\n\t\"./2023-09-18\": \"v1XT\",\n\t\"./2023-09-18.json\": \"v1XT\",\n\t\"./2023-10-12\": \"7wfK\",\n\t\"./2023-10-12.json\": \"7wfK\",\n\t\"./2023-11-10\": \"U8SU\",\n\t\"./2023-11-10.json\": \"U8SU\",\n\t\"./2023-11-22\": \"4w61\",\n\t\"./2023-11-22.json\": \"4w61\",\n\t\"./2023-12-08\": \"aUA7\",\n\t\"./2023-12-08.json\": \"aUA7\",\n\t\"./2023-12-21\": \"R2wc\",\n\t\"./2023-12-21.json\": \"R2wc\",\n\t\"./2024-01-10\": \"k/At\",\n\t\"./2024-01-10.json\": \"k/At\",\n\t\"./2024-01-23\": \"FtO6\",\n\t\"./2024-01-23.json\": \"FtO6\",\n\t\"./2024-02-04\": \"sMHE\",\n\t\"./2024-02-04.json\": \"sMHE\",\n\t\"./2024-02-23\": \"nFKt\",\n\t\"./2024-02-23.json\": \"nFKt\",\n\t\"./2024-03-04\": \"VZgP\",\n\t\"./2024-03-04.json\": \"VZgP\",\n\t\"./2024-03-14\": \"UMYu\",\n\t\"./2024-03-14.json\": \"UMYu\",\n\t\"./2024-03-19\": \"68aw\",\n\t\"./2024-03-19.json\": \"68aw\",\n\t\"./2024-03-28\": \"96CF\",\n\t\"./2024-03-28.json\": \"96CF\",\n\t\"./2024-04-15\": \"eP5L\",\n\t\"./2024-04-15.json\": \"eP5L\",\n\t\"./2024-04-25\": \"0uHt\",\n\t\"./2024-04-25.json\": \"0uHt\",\n\t\"./2024-05-23\": \"wQ5t\",\n\t\"./2024-05-23.json\": \"wQ5t\",\n\t\"./2024-05-27\": \"ED08\",\n\t\"./2024-05-27.json\": \"ED08\",\n\t\"./2024-06-13\": \"Jim+\",\n\t\"./2024-06-13.json\": \"Jim+\",\n\t\"./2024-06-28\": \"xM8g\",\n\t\"./2024-06-28.json\": \"xM8g\",\n\t\"./2024-07-11\": \"vZQv\",\n\t\"./2024-07-11.json\": \"vZQv\",\n\t\"./2024-07-22\": \"OOYK\",\n\t\"./2024-07-22.json\": \"OOYK\",\n\t\"./2024-07-30\": \"OTiI\",\n\t\"./2024-07-30.json\": \"OTiI\",\n\t\"./2024-08-08\": \"dzxx\",\n\t\"./2024-08-08.json\": \"dzxx\",\n\t\"./2024-08-17\": \"jPZq\",\n\t\"./2024-08-17.json\": \"jPZq\",\n\t\"./2024-08-22\": \"POz2\",\n\t\"./2024-08-22.json\": \"POz2\",\n\t\"./2024-08-27\": \"gYbm\",\n\t\"./2024-08-27.json\": \"gYbm\",\n\t\"./2024-09-11\": \"Lezn\",\n\t\"./2024-09-11.json\": \"Lezn\",\n\t\"./2024-09-23\": \"6qxj\",\n\t\"./2024-09-23.json\": \"6qxj\",\n\t\"./2024-10-09\": \"esMP\",\n\t\"./2024-10-09.json\": \"esMP\",\n\t\"./2024-10-11\": \"McI3\",\n\t\"./2024-10-11.json\": \"McI3\",\n\t\"./2024-10-16\": \"OleB\",\n\t\"./2024-10-16.json\": \"OleB\",\n\t\"./2024-10-23\": \"pxxT\",\n\t\"./2024-10-23.json\": \"pxxT\",\n\t\"./2024-10-24\": \"SHTI\",\n\t\"./2024-10-24.json\": \"SHTI\",\n\t\"./2024-10-30\": \"Gmgm\",\n\t\"./2024-10-30.json\": \"Gmgm\",\n\t\"./2024-11-07\": \"1koR\",\n\t\"./2024-11-07.json\": \"1koR\",\n\t\"./2024-11-15\": \"yLee\",\n\t\"./2024-11-15.json\": \"yLee\",\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\":\"24小時價格變動情況\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 用於查詢現貨幣對24小時滾動窗口價格變動數據。不攜帶symbols參數會返回全部交易對數據
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/24hr\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"timestamp\":\"1702720770200\"},\"response\":{\"code\":0,\"timestamp\":1702720823624,\"data\":[{\"symbol\":\"BTC-USDT\",\"openPrice\":42827.65,\"highPrice\":42893.56,\"lowPrice\":41648.71,\"lastPrice\":42215.15,\"priceChange\":1244.85,\"priceChangePercent\":\"2.91%\",\"volume\":5099.21,\"quoteVolume\":214948771.34,\"openTime\":1702634423624,\"closeTime\":1702720823624,\"askPrice\":42215.55,\"askQty\":2.20125,\"bidPrice\":42214.65,\"bidQty\":0.8962}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"否\",\"description\":\"交易對,如:BTC-USDT,不入參時將返回所有symbol的數據\"},{\"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\":\"openPrice\",\"type\":\"string\",\"description\":\"最近24小時的開盤價\"},{\"name\":\"highPrice\",\"type\":\"string\",\"description\":\"最近24小時的最高價\"},{\"name\":\"lowPrice\",\"type\":\"string\",\"description\":\"最近24小時的最低價\"},{\"name\":\"lastPrice\",\"type\":\"string\",\"description\":\"最新價\"},{\"name\":\"volume\",\"type\":\"string\",\"description\":\"總交易量(base asset)\"},{\"name\":\"quoteVolume\",\"type\":\"string\",\"description\":\"總交易額(quote asset)\"},{\"name\":\"openTime\",\"type\":\"int64\",\"description\":\"ticker間隔的開始時間\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"description\":\"ticker間隔的結束時間\"},{\"name\":\"count\",\"type\":\"int\",\"description\":\"統計時間內交易筆數\"},{\"name\":\"bidPrice\",\"type\":\"float64\",\"description\":\"買一價格\"},{\"name\":\"bidQty\",\"type\":\"float64\",\"description\":\"買一數量\"},{\"name\":\"askPrice\",\"type\":\"float64\",\"description\":\"賣一價格\"},{\"name\":\"askQty\",\"type\":\"float64\",\"description\":\"賣一數量\"},{\"name\":\"priceChangePercent\",\"type\":\"string\",\"description\":\"價格變動百分比欄位\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/05_get_quote_ticker.json\n// module id = wj44\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Set Position Mode\"},{\"type\":\"normal\",\"text\":\"Used to set the position mode of perpetual contract, supporting both dual position mode and single position mode\"},{\"type\":\"warning\",\"text\":\"*The Position Mode applies to all contracts and can be set when there are no active positions or pending orders.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/positionSide/dual\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"dualSidePosition\":\"true\",\"timestamp\":\"1702731530753\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"dualSidePosition\":\"true\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"margin not enough\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80017,\"msg\":\"position not exist\",\"data\":{}}},{\"desc\":\"\",\"sample\":{\"code\":80001,\"msg\":\"position is not isolated\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"true\",\"required\":\"Yes\",\"description\":\"\\\"true\\\": dual position mode; \\\"false\\\": single position mode\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"The window time for the request to be valid, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"dualSidePosition\",\"type\":\"string\",\"description\":\"\\\"true\\\": dual position mode; \\\"false\\\": single position mode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/18_set_positionSide.json\n// module id = wp4b\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"頻率限制\"},{\"type\":\"html\",\"text\":\"如果請求過於頻繁系統將自動限制請求,5分鐘後,會自動恢復;\"},{\"type\":\"html\",\"text\":\"基於賬號UID的限頻,每個接口的都有自己獨立的限頻,相互不影響\"},{\"type\":\"html\",\"text\":\"使用者可依據Http Header中的\\\"X-RateLimit-Requests-Remain\\\"(限頻剩餘次數)及\\\"X-RateLimit-Requests-Expire\\\"(視窗過期時間)查看目前限頻使用情況,以及所在時間視窗的過期時間,根據該數值動態調整您的請求頻率。\"},{\"type\":\"html\",\"text\":\"

    REST API

    \"},{\"type\":\"html\",\"text\":\"同時會受到根據UID和IP的不同限頻,基於UID限頻詳見各接口文檔,其中基於IP限頻會基於以下分組規則進行\"},{\"type\":\"html\",\"text\":\"
  • 行情接口分組[1]: 分組內所有接口基於IP限頻總和:100/10s,500/min
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[2]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:100/10s
  • \"},{\"type\":\"html\",\"text\":\"
  • 賬號接口分組[3]: 分組內所有接口基於IP限頻總和:1000/10s, 單個接口基於IP限頻:200/10s
  • \"}]\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\"./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\":\"title\",\"text\":\"2024-06-28\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual New Interface: Query historical transaction details.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-06-28.json\n// module id = xM8g\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Cancel all orders\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/cswap/v1/trade/allOpenOrders\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"symbol\":\"BTC-USD\"},\"response\":{\"code\":0,\"msg\":\"\",\"timestamp\":1718372477371,\"data\":{\"success\":[{\"symbol\":\"BTC-USD\",\"orderId\":\"1801610628516806656\",\"side\":\"BUY\",\"positionSide\":\"LONG\",\"type\":\"LIMIT\",\"quantity\":2,\"origQty\":\"0\",\"price\":\"27173\",\"executedQty\":\"0\",\"avgPrice\":\"0\",\"cumQuote\":\"0\",\"stopPrice\":\"\",\"profit\":\"0.0000\",\"commission\":\"0.000000\",\"status\":\"CANCELLED\",\"time\":1718372420802,\"updateTime\":1718372420820,\"clientOrderId\":\"\",\"leverage\":\"\",\"takeProfit\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"stopGuaranteed\":\"\"},\"stopLoss\":{\"type\":\"\",\"quantity\":0,\"stopPrice\":0,\"price\":0,\"workingType\":\"\",\"stopGuaranteed\":\"\"},\"advanceAttr\":0,\"positionID\":0,\"takeProfitEntrustPrice\":0,\"stopLossEntrustPrice\":0,\"orderType\":\"\",\"workingType\":\"\"}],\"failed\":[{\"orderId\":\"1801610628516806656\",\"code\":123,\"msg\":\"\"},{\"orderId\":\"1801610628516806656\",\"code\":123,\"msg\":\"\"}]}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, example: BTC-USD, use uppercase letters\"},{\"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\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"Response generation time point, unit: milliseconds\"},{\"name\":\"data\",\"type\":\"Obj\",\"description\":\"\"}]},{\"type\":\"Data\",\"key\":\"data\",\"data\":[{\"name\":\"success\",\"type\":\"List\",\"description\":\"\"},{\"name\":\"failed\",\"type\":\"List\",\"description\":\"\"}]},{\"type\":\"Success\",\"key\":\"success\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair\"},{\"name\":\"orderId\",\"type\":\"string\",\"description\":\"Order number\"},{\"name\":\"side\",\"type\":\"string\",\"description\":\"Buy or sell direction, SELL, BUY\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position direction, bidirectional holding can only select LONG or SHORT\"},{\"name\":\"time\",\"type\":\"string\",\"description\":\"Order time\"},{\"name\":\"type\",\"type\":\"string\",\"description\":\"Order type\"},{\"name\":\"status\",\"type\":\"string\",\"description\":\"Order status\"},{\"name\":\"commission\",\"type\":\"string\",\"description\":\"Commission for this order\"},{\"name\":\"updateTime\",\"type\":\"string\",\"description\":\"Latest trade time\"},{\"name\":\"quantity\",\"type\":\"string\",\"description\":\"Order quantity\"},{\"name\":\"price\",\"type\":\"string\",\"description\":\"Order price\"},{\"name\":\"origQty\",\"type\":\"string\",\"description\":\"Order quantity\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average price\"},{\"name\":\"cumQuote\",\"type\":\"string\",\"description\":\"Trade volume\"},{\"name\":\"profit\",\"type\":\"string\",\"description\":\"Profit or loss for this order\"},{\"name\":\"executedQty\",\"type\":\"string\",\"description\":\"Cumulative traded quantity\"}]},{\"type\":\"Failed\",\"key\":\"failed\",\"data\":[{\"name\":\"OrderId\",\"type\":\"string\",\"description\":\"Order number\"},{\"name\":\"code\",\"type\":\"int32\",\"description\":\"Status code\"},{\"name\":\"msg\",\"type\":\"string\",\"description\":\"Description\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/trade/04_post_allOpenOrders.json\n// module id = xM9z\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Switch Multi-Assets Mode\"},{\"type\":\"normal\",\"text\":\"Switch account multi-assets mode\"},{\"type\":\"warning\",\"text\":\"Only available for live trading, live trading domain: https://open-api.bingx.com\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Interface Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/assetMode\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"assetMode\":\"multiAssetsMode\",\"timestamp\":1730863321895},\"response\":{\"code\":0,\"msg\":\"\",\"data\":{\"assetMode\":\"multiAssetsMode\"}},\"errors\":[{\"desc\":\"\",\"sample\":{\"code\":109500,\"msg\":\"Account Service Unavailable, err:symbol not exist\",\"data\":{}}}]},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"assetMode\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"multi-assets mode, singleAssetMode or multiAssetsMode\"},{\"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\":\"assetMode\",\"type\":\"string\",\"description\":\"multi-assets mode, singleAssetMode or multiAssetsMode\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/33_post_asset_mode.json\n// module id = xS3w\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Kline/Candlestick Data\"},{\"type\":\"normal\",\"text\":\"Get the latest Kline Data\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v3/quote/klines\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"KNC-USDT\",\"interval\":\"1h\",\"limit\":\"1000\",\"startTime\":\"1702717199998\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"open\":\"0.7034\",\"close\":\"0.7065\",\"high\":\"0.7081\",\"low\":\"0.7033\",\"volume\":\"635494.00\",\"time\":1702717200000}]}},\"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\"},{\"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\":\"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\":\"Subscribe to 24-hour price changes\"},{\"type\":\"normal\",\"text\":\"Push every 1 second.\"},{\"type\":\"normal\",\"text\":\"Push 24-hour price changes.\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @ticker, such as BTC-USDT@ticker.\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},\"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 BTC-USDT@ticker\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"Push Data\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"Event type\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Event time\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"trading pair, for example: BTC-USDT\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"24-hour price change\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"Price change percentage\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"First price in the last 24 hours\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"Highest price in the last 24 hours\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Lowest price in the last 24 hours\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"24-hour turnover, the unit is USDT\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"The latest transaction price\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"24-hour trading volume\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"24-hour trading amount, in USDT\"},{\"name\":\"O\",\"type\":\"\",\"description\":\"Time of the first transaction in the last 24 hours\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"Time of the last transaction in the last 24 hours\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Bid price\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Bid quantity\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Ask price\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/websocket/market/04_quote_ticker.json\n// module id = xVTF\n// module chunks = 3","var map = {\n\t\".\": \"ZM3m\",\n\t\"./\": \"ZM3m\",\n\t\"./2023-09-12\": \"Sd/4\",\n\t\"./2023-09-12.json\": \"Sd/4\",\n\t\"./index\": \"ZM3m\",\n\t\"./index.js\": \"ZM3m\"\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 = \"xY+c\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/q&a ^.*$\n// module id = xY+c\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Order Book\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/market/depth\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC-USDT\",\"limit\":5},\"response\":{\"code\":0,\"timestamp\":1702720487674,\"data\":{\"bids\":[[\"42182.22\",\"0.99114\"],[\"42182.19\",\"1.00643\"],[\"42182.17\",\"0.95406\"],[\"42182.10\",\"0.87420\"],[\"42182.08\",\"1.17445\"]],\"asks\":[[\"42183.23\",\"3.57139\"],[\"42183.22\",\"2.05573\"],[\"42183.20\",\"2.26065\"],[\"42183.19\",\"1.61695\"],[\"42183.17\",\"4.14752\"]],\"ts\":1702720487674}}},\"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 1000\"},{\"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\":\"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","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 Position History\"},{\"type\":\"normal\",\"text\":\"Query the position history of perpetual contracts under the current account.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"API Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/trade/positionHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"recvWindow\":\"0\",\"symbol\":\"BNB-USDT\",\"pageId\":0,\"pageSize\":20,\"startTime\":1700409600000,\"1703001599000\":1703001599000,\"timestamp\":\"1702731661854\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"positionId\":\"180870089***590996\",\"symbol\":\"BTC-USDT\",\"isolated\":false,\"positionSide\":\"LONG\",\"openTime\":1720062873000,\"updateTime\":1720062878000,\"avgPrice\":\"58942.31\",\"avgClosePrice\":\"58930.00\",\"realisedProfit\":\"-0.04\",\"netProfit\":\"-0.16\",\"positionAmt\":\"33.0000\",\"closePositionAmt\":\"33.0000\",\"leverage\":20,\"closeAllPositions\":true,\"positionCommission\":\"-0.11669358690000001\",\"totalFunding\":\"0.00000000000000001388\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"No\",\"description\":\"Trading pair, e.g.: BTC-USDT, please use uppercase letters\"},{\"name\":\"currency\",\"type\":\"string\",\"required\":\"no\",\"description\":\"USDC or USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Request timestamp, in milliseconds\"},{\"name\":\"positionId\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Position ID, if not provided, all position histories of the relevant trading pair will be returned by default\"},{\"name\":\"startTs\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Start timestamp, in milliseconds, maximum time span is three months, if not provided, the default start time is 90 days ago\"},{\"name\":\"endTs\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"End timestamp, in milliseconds, maximum time span is three months, if not provided, the default end time is the current time\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Page number, must be greater than 0, if not provided, the default is 1\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Page size, must be greater than 0, maximum value is 100, if not provided, the default is 1000\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid window value, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"Trading pair, e.g.: BTC-USDT\"},{\"name\":\"positionId\",\"type\":\"string\",\"description\":\"Position ID\"},{\"name\":\"positionSide\",\"type\":\"string\",\"description\":\"Position side LONG/SHORT\"},{\"name\":\"isolated\",\"type\":\"bool\",\"description\":\"Isolated mode, true: isolated mode, false: cross margin\"},{\"name\":\"closeAllPositions\",\"type\":\"bool\",\"description\":\"All positions closed\"},{\"name\":\"positionAmt\",\"type\":\"string\",\"description\":\"Position amount\"},{\"name\":\"closePositionAmt\",\"type\":\"string\",\"description\":\"Closed position amount\"},{\"name\":\"realisedProfit\",\"type\":\"string\",\"description\":\"Realized profit and loss\"},{\"name\":\"netProfit\",\"type\":\"string\",\"description\":\"Net profit and loss\"},{\"name\":\"avgClosePrice\",\"type\":\"float64\",\"description\":\"Average close price\"},{\"name\":\"avgPrice\",\"type\":\"string\",\"description\":\"Average open price\"},{\"name\":\"leverage\",\"type\":\"int\",\"description\":\"Leverage\"},{\"name\":\"positionCommission\",\"type\":\"string\",\"description\":\"Commission fee\"},{\"name\":\"totalFunding\",\"type\":\"string\",\"description\":\"Funding fee\"},{\"name\":\"openTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Open time\"},{\"name\":\"closeTime\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Close time\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/trade/26_get_user_position_history.json\n// module id = xptQ\n// module chunks = 3","var map = {\n\t\".\": \"Q6u2\",\n\t\"./\": \"Q6u2\",\n\t\"./01_get_contracts\": \"Fui1\",\n\t\"./01_get_contracts.json\": \"Fui1\",\n\t\"./02_get_premiumIndex\": \"5uda\",\n\t\"./02_get_premiumIndex.json\": \"5uda\",\n\t\"./03_get_openInterest\": \"ewcP\",\n\t\"./03_get_openInterest.json\": \"ewcP\",\n\t\"./04_get_kline\": \"FuQd\",\n\t\"./04_get_kline.json\": \"FuQd\",\n\t\"./05_get_depth\": \"GbOE\",\n\t\"./05_get_depth.json\": \"GbOE\",\n\t\"./06_get_ticker\": \"6xac\",\n\t\"./06_get_ticker.json\": \"6xac\",\n\t\"./index\": \"Q6u2\",\n\t\"./index.js\": \"Q6u2\"\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 = \"xwDQ\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/api/market ^.*$\n// module id = xwDQ\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\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/v1/uid\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{},\"response\":{\"code\":0,\"timestamp\":1702558965648,\"data\":{\"uid\":16844999}}},\"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\":\"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 = [{\"type\":\"hash\",\"text\":\"Query historical transaction orders\"},{\"type\":\"normal\",\"text\":\"Used to query historical transaction data in the market\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v1/market/historicalTrades\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"fromId\":\"412551\",\"limit\":\"500\",\"symbol\":\"ETH-USDT\",\"timestamp\":\"1702731995838\",\"recvWindow\":\"60000\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"time\":1705063108365,\"isBuyerMaker\":true,\"price\":\"2662.83\",\"qty\":\"0.10\",\"quoteQty\":\"266.28\",\"id\":\"8179911\"},{\"time\":1705063108486,\"isBuyerMaker\":true,\"price\":\"2662.82\",\"qty\":\"0.10\",\"quoteQty\":\"266.28\",\"id\":\"8179912\"}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"fromId\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"From which transaction ID to start returning. By default, it returns the most recent transaction records\"},{\"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\"},{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"no\",\"description\":\"There must be a hyphen/ \\\"-\\\" in the trading pair symbol. eg: BTC-USDT\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"no\",\"description\":\"The number of returned result sets The default value is 50, the maximum value is 100\"}]},{\"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\"},{\"name\":\"id\",\"type\":\"string\",\"description\":\"transaction ID\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/swapV2/api/market/19_get_historicalTrades.json\n// module id = xyiP\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 = \"HHOOSSTT\" // \n\tchannel = \"AAPPII\" // \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 strings.Contains(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/spot/golang.js","module.exports = {\"module\":\"common\",\"path\":\"/en-us/common/introduce\",\"name\":\"Introduction\",\"content\":[{\"type\":\"html\",\"text\":\"Welcome to the BingX API, welcome to sign up for the BingX BrokerProject BingX Broker Program Application\"},{\"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. \"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\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\":\"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\":\"數量,選填\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"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","\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/cswap/api/market/index.js","const nodejs = `const WebSocket = require('ws');\nconst zlib = require('zlib');\n\nconst path = \"HHOOSSTT\"; \nconst CHANNEL = AAPPII; \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\t\"./2023-08-03.json\": \"H0k7\",\n\t\"./2023-08-11.json\": \"D1C9\",\n\t\"./2023-08-23.json\": \"CcT1\",\n\t\"./2023-09-18.json\": \"v1XT\",\n\t\"./2023-10-12.json\": \"7wfK\",\n\t\"./2023-11-10.json\": \"U8SU\",\n\t\"./2023-11-22.json\": \"4w61\",\n\t\"./2023-12-08.json\": \"aUA7\",\n\t\"./2023-12-21.json\": \"R2wc\",\n\t\"./2024-01-10.json\": \"k/At\",\n\t\"./2024-01-23.json\": \"FtO6\",\n\t\"./2024-02-04.json\": \"sMHE\",\n\t\"./2024-02-23.json\": \"nFKt\",\n\t\"./2024-03-04.json\": \"VZgP\",\n\t\"./2024-03-14.json\": \"UMYu\",\n\t\"./2024-03-19.json\": \"68aw\",\n\t\"./2024-03-28.json\": \"96CF\",\n\t\"./2024-04-15.json\": \"eP5L\",\n\t\"./2024-04-25.json\": \"0uHt\",\n\t\"./2024-05-23.json\": \"wQ5t\",\n\t\"./2024-05-27.json\": \"ED08\",\n\t\"./2024-06-13.json\": \"Jim+\",\n\t\"./2024-06-28.json\": \"xM8g\",\n\t\"./2024-07-11.json\": \"vZQv\",\n\t\"./2024-07-22.json\": \"OOYK\",\n\t\"./2024-07-30.json\": \"OTiI\",\n\t\"./2024-08-08.json\": \"dzxx\",\n\t\"./2024-08-17.json\": \"jPZq\",\n\t\"./2024-08-22.json\": \"POz2\",\n\t\"./2024-08-27.json\": \"gYbm\",\n\t\"./2024-09-11.json\": \"Lezn\",\n\t\"./2024-09-23.json\": \"6qxj\",\n\t\"./2024-10-09.json\": \"esMP\",\n\t\"./2024-10-11.json\": \"McI3\",\n\t\"./2024-10-16.json\": \"OleB\",\n\t\"./2024-10-23.json\": \"pxxT\",\n\t\"./2024-10-24.json\": \"SHTI\",\n\t\"./2024-10-30.json\": \"Gmgm\",\n\t\"./2024-11-07.json\": \"1koR\",\n\t\"./2024-11-15.json\": \"yLee\"\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\":\"查詢子母賬戶劃轉歷史記錄(僅限母賬戶操作)\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/account/transfer/v1/subAccount/asset/transferHistory\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"uid\":\"213342\",\"tranId\":\"1051323896482406240336\",\"type\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"startTime\":\"1719496046943\",\"endTime\":\"1719596046943\",\"pageId\":1,\"pagingSize\":10},\"response\":{\"total\":1,\"rows\":[{\"asset\":\"VST\",\"amount\":\"100000.00000000000000000000\",\"type\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"status\":\"CONFIRMED\",\"tranId\":\"1051323896482406240336\",\"timestamp\":1702252271000,\"fromUid\":2332424,\"toUid\":123244}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"uid\",\"type\":\"LONG\",\"required\":\"是\",\"description\":\"需要查詢的UID\"},{\"name\":\"type\",\"type\":\"ENUM\",\"required\":\"否\",\"description\":\"劃轉類型\"},{\"name\":\"tranId\",\"type\":\"STRING\",\"required\":\"否\",\"description\":\"劃轉id\"},{\"name\":\"startTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"開始時間 1658748648396\"},{\"name\":\"endTime\",\"type\":\"LONG\",\"required\":\"否\",\"description\":\"結束時間 1658748648396\"},{\"name\":\"pageId\",\"type\":\"int\",\"required\":\"否\",\"description\":\"當前頁 默認1\"},{\"name\":\"pagingSize\",\"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\":\"MAIN_CAPITAL_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"母賬戶資金賬戶->子賬戶資金賬戶\"},{\"name\":\"MAIN_CAPITAL_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"母账户資金賬戶->子账户標合账户\"},{\"name\":\"MAIN_CAPITAL_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"母账户資金賬戶->子账户永續U本位账户\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"母账户標合賬戶->子账户資金賬戶\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"母账户標合賬戶->子账户標合账户\"},{\"name\":\"MAIN_CONTRACT_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"母账户標合賬戶->子账户永續U本位账户\"},{\"name\":\"MAIN_SWAP_TO_SUB_CAPITAL\",\"type\":\"\",\"description\":\"母账户永續U本位賬戶->子账户資金賬戶\"},{\"name\":\"MAIN_SWAP_TO_SUB_CONTRACT\",\"type\":\"\",\"description\":\"母账户永續U本位賬戶->子账户標合账户\"},{\"name\":\"MAIN_SWAP_TO_SUB_SWAP\",\"type\":\"\",\"description\":\"母账户永續U本位賬戶->子账户永續U本位账户\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"子账户資金賬戶->母账户資金賬戶\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"子账户資金賬戶->母账户標合賬户\"},{\"name\":\"SUB_CAPITAL_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"子账户資金賬戶->母账户永續U本位賬戶\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"子账户標合賬戶->母账户資金賬戶\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"子账户標合賬戶->母账户標合賬户\"},{\"name\":\"SUB_CONTRACT_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"子账户標合賬戶->母账户永續U本位賬戶\"},{\"name\":\"SUB_SWAP_TO_MAIN_CAPITAL\",\"type\":\"\",\"description\":\"子账户永續U本位賬戶->母账户資金賬戶\"},{\"name\":\"SUB_SWAP_TO_MAIN_CONTRACT\",\"type\":\"\",\"description\":\"子账户永續U本位賬戶->母账户標合賬户\"},{\"name\":\"SUB_SWAP_TO_MAIN_SWAP\",\"type\":\"\",\"description\":\"子账户永續U本位賬戶->母账户永續U本位賬戶\"}]},{\"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\":\"劃轉的時間戳\"},{\"name\":\"fromUid\",\"type\":\"LONG\",\"description\":\"轉出方uid\"},{\"name\":\"toUid\",\"type\":\"LONG\",\"description\":\"轉入方uid\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/18_query_sub_account_transfer_history.json\n// module id = yGUm\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\t\"./05_get_quote_ticker.json\": \"mWiW\",\n\t\"./06_get_market_agg_depth.json\": \"eCwL\",\n\t\"./07_get_market_price.json\": \"p4oz\",\n\t\"./08_get_market_book_ticker.json\": \"OdvA\",\n\t\"./09_get_market_history_klines.json\": \"Turq\",\n\t\"./10_get_ market_histroy_traders.json\": \"MGWO\"\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","module.exports = [{\"type\":\"title\",\"text\":\"2024-11-15\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"Perpetual USDT-M: Added 'Switch Multi-Assets Mode' interface.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT-M: Added 'Query Multi-Assets Mode' interface.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT-M: Added 'Query Multi-Assets Rules' interface.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT-M: Added 'Query Multi-Assets Margin' interface.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT-M: A websocket is limited to a maximum of 200 topics, and 80403 error codes will be returned.\"},{\"type\":\"html\",\"text\":\"Perpetual USDT-M: An IP limit is up to 60 websockets, beyond which the link will fail.\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/changelog/2024-11-15.json\n// module id = yLee\n// module chunks = 3","\nconst python = `\nimport json\nimport websocket\nimport gzip\nimport io\nURL=\"HHOOSSTT\" \nCHANNEL= AAPPII\nclass Test(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 test = Test()\n test.start()`\nexport default python\n\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/python.js","module.exports = [{\"type\":\"hash\",\"text\":\"查詢子賬戶內轉記錄\"},{\"type\":\"normal\",\"text\":\"此節點用於子賬戶查詢自己的內轉記錄\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccount/innerTransfer/records\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"startTime\":1694761643000,\"endTime\":1694765243428,\"offset\":0,\"limit\":100,\"timestamp\":0,\"recvWindow\":0}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"是\",\"description\":\"轉賬幣種名\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID。同時入參平臺ID和transferClientId時以平臺id查詢為主\"},{\"name\":\"startTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"開始時間\"},{\"name\":\"endTime\",\"type\":\"long\",\"required\":\"否\",\"description\":\"結束時間\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"否\",\"description\":\"起始記錄數,默認從0開始\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"否\",\"description\":\"分頁大小,默認100,大於1000則取1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值,單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"內轉記錄列表\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"地址總數量\"},{\"name\":\"id\",\"type\":\"long\",\"description\":\"內轉id\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"幣種名稱\"},{\"name\":\"receiver\",\"type\":\"long\",\"description\":\"收款人uid\"},{\"name\":\"amount\",\"type\":\"decimal\",\"description\":\"轉賬金額\"},{\"name\":\"time\",\"type\":\"long\",\"description\":\"內轉時間\"},{\"name\":\"status\",\"type\":\"Integer\",\"description\":\"狀態 4-審核中 5-已失敗 6-已完成\"},{\"name\":\"transferClientId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義內轉ID。同時入參平臺ID和transferClientId時以平臺id查詢為主\"},{\"name\":\"fromUid\",\"type\":\"long\",\"description\":\"付款人帳戶\"},{\"name\":\"recordType\",\"type\":\"string\",\"description\":\"out:轉出記錄,in:轉入記錄\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/common/api/subAccount/17.get_wallet_querySubInnerTransferRecords.json\n// module id = yVRY\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","module.exports = [{\"type\":\"hash\",\"text\":\"最新成交價\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"html\",\"text\":\"
  • 用於查詢最新成交價
  • \"},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/spot/v1/ticker/price\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"symbol\":\"BTC_USDT\"},\"response\":{\"code\":0,\"timestamp\":1707147143049,\"data\":[{\"symbol\":\"BTC_USDT\",\"trades\":[{\"timestamp\":1707147142579,\"tradeId\":\"86521463\",\"price\":\"42902.61\",\"amount\":\"\",\"type\":1,\"volume\":\"0.11689\"}]}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"是\",\"description\":\"交易對,如:BTC_USDT\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"price\",\"type\":\"string\",\"description\":\"最新價格\"},{\"name\":\"symbol\",\"type\":\"string\",\"description\":\"交易對,如:BTC_USDT\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"description\":\"時間戳\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/market/07_get_market_price.json\n// module id = ymfm\n// module chunks = 3","var map = {\n\t\"./01_post_trade_a_order.json\": \"ZnNv\",\n\t\"./01_post_trade_batchOrders.json\": \"pX3/\",\n\t\"./021_post_trade_order_cancel.json\": \"ev9X\",\n\t\"./022_post_trade_orders_cancel.json\": \"aTY/\",\n\t\"./023_post_cancelOpenOrders.json\": \"gz1R\",\n\t\"./023_post_trade_order_cancel_replace.json\": \"TA5G\",\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\"./077_get_trade_fill_details.json\": \"s+Dd\",\n\t\"./08_get_commissionRate.json\": \"sPli\",\n\t\"./09_cancel_all_after.json\": \"KWsz\",\n\t\"./100_post_one_oco_order.json\": \"R/1P\",\n\t\"./101_cancel_one_oco_order.json\": \"dd2V\",\n\t\"./102_get_one_oco_order.json\": \"MN46\",\n\t\"./103_get_all_pending_oco_order.json\": \"YC1x\",\n\t\"./104_get_all_history_oco_order.json\": \"JLQZ\"\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","module.exports = [{\"type\":\"hash\",\"text\":\"Subscribe to 24-Hour Price Change\"},{\"type\":\"normal\",\"text\":\"Pushes data of 24-hour price change every 1000ms\"},{\"type\":\"normal\",\"text\":\"Subscription Type\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType is @ticker, e.g., BTC_USDT@ticker\"},{\"type\":\"normal\",\"text\":\"Subscription Example\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"{\\\"id\\\":\\\"975f7385-7f28-4ef1-93af-df01cb9ebb53\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@ticker\\\"}\"},{\"type\":\"normal\",\"text\":\"Subscription Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USD@ticker\\\"}\"},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"symbol\",\"type\":\"string\",\"required\":\"yes\",\"description\":\"Trading pair name, e.g., BTC-USD\"}]},{\"type\":\"Response\",\"key\":\"wssResponse\",\"data\":[{\"name\":\"s\",\"type\":\"\",\"description\":\"Trading pair name\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"Millisecond timestamp, timestamp\"},{\"name\":\"o\",\"type\":\"\",\"description\":\"Opening price, open\"},{\"name\":\"h\",\"type\":\"\",\"description\":\"Highest price, high\"},{\"name\":\"l\",\"type\":\"\",\"description\":\"Lowest price, low\"},{\"name\":\"v\",\"type\":\"\",\"description\":\"Volume\"},{\"name\":\"m\",\"type\":\"\",\"description\":\"Turnover, coin-coin quantity, U base-amount USDT\"},{\"name\":\"q\",\"type\":\"\",\"description\":\"Turnover, coin base-is USD, U base-useless\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"Price change\"},{\"name\":\"P\",\"type\":\"\",\"description\":\"Price change percentage\"},{\"name\":\"c\",\"type\":\"\",\"description\":\"Latest price\"},{\"name\":\"C\",\"type\":\"\",\"description\":\"Latest trade time\"},{\"name\":\"L\",\"type\":\"\",\"description\":\"Latest trade quantity\"},{\"name\":\"B\",\"type\":\"\",\"description\":\"Bid price\"},{\"name\":\"b\",\"type\":\"\",\"description\":\"Bid quantity\"},{\"name\":\"A\",\"type\":\"\",\"description\":\"Ask price\"},{\"name\":\"a\",\"type\":\"\",\"description\":\"Ask quantity\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/cswap/websocket/market/07_24hr_ticker.json\n// module id = ywsQ\n// module chunks = 3","var map = {\n\t\"./01_limit.json\": \"+dFG\",\n\t\"./02_connect.json\": \"hDC3\",\n\t\"./03_data_compress.json\": \"YUWz\",\n\t\"./04_heart_beat.json\": \"Ze9p\",\n\t\"./05_cancel_subscribe.json\": \"hlb8\",\n\t\"./06_subscribe.json\": \"g2tG\"\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\":\"hash\",\"text\":\"提幣\"},{\"type\":\"normal\",\"text\":\"指定用戶賬戶發起提幣\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/withdraw/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"address\":\"0x8****11\",\"addressTag\":\"None\",\"amount\":\"4998.0\",\"coin\":\"USDT\",\"network\":\"BEP20\",\"timestamp\":\"1702619167144\",\"walletType\":\"1\"},\"response\":{\"code\":0,\"timestamp\":1702619168218,\"data\":{\"id\":\"125*****4\"}}},\"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\":\"addressTag\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Tag or memo,部分幣種支持tag或者memo\"},{\"name\":\"amount\",\"type\":\"float64\",\"required\":\"是\",\"description\":\"提幣金額\"},{\"name\":\"walletType\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"賬戶類型,1資金賬戶,2標合賬戶,3永續賬戶\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義提幣ID,數字和字母組合,長度小於100字符\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"是\",\"description\":\"請求的時間戳,單位為毫秒\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"否\",\"description\":\"請求有效時間空窗值, 單位:毫秒\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"id\",\"type\":\"string\",\"description\":\"平台返回內轉記錄唯一id\"},{\"name\":\"withdrawOrderId\",\"type\":\"string\",\"required\":\"否\",\"description\":\"客戶自定義提幣ID,數字和字母組合,長度小於100字符\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/spot/api/wallet/06_post_wallets_withdraw.json\n// module id = yxdj\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/en-us/spot/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔。\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"If you have any questions or feedback, you can join the API issue Telegram group.\"}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/copyTrade/1_introduce.json\n// module id = yyuB\n// module chunks = 3","module.exports = {\"module\":\"spot\",\"path\":\"/zh-tw/spot/introduce\",\"name\":\"聯繫我們\",\"content\":[{\"type\":\"html\",\"text\":\"歡迎使用BingX開發者文檔, 歡迎報名BingX經濟商項目 BingX Broker Program Application\"},{\"type\":\"normal\",\"text\":\"本文檔提供了現货交易業務的賬戶管理、行情查詢、交易功能等相關API的使用方法介紹。 行情API提供市場的公開的行情數據接口,賬戶和交易API需要身份驗證,提供下單、撤單,查詢訂單和帐戶信息等功能。 \"},{\"type\":\"html\",\"text\":\"如有問題反饋可加入:API問題telegram電報群\"}]}\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\":\"title\",\"text\":\"2024-10-09\"},{\"type\":\"normal\",\"text\":\"\",\"style\":{\"font-weight\":\"bold\"},\"children\":[{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:每次新建連接都會推送全量的“賬戶餘額和倉位更新推送”數據,之後每5秒推送一次。\"},{\"type\":\"html\",\"text\":\"永續U本位Websocket服務:每次新建連接都會推送全量的“槓桿倍數和保證金模式”數據,之後每5秒推送一次。\"},{\"type\":\"html\",\"text\":\"永續U本位Restful服務:‘持倉與維持保證金率’接口新增tier字段。\"}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/changelog/2024-10-09.json\n// module id = zB9+\n// module chunks = 3","const java = `\npackage org.socket;\n\nimport java.io.ByteArrayInputStream;\nimport java.io.IOException;\nimport java.util.Timer;\nimport java.util.TimerTask;\nimport java.util.zip.GZIPInputStream;\n\nimport org.java_websocket.client.WebSocketClient;\nimport org.java_websocket.handshake.ServerHandshake;\nimport org.java_websocket.enums.ReadyState;\n\nimport java.net.URI;\nimport java.nio.ByteBuffer;\n\npublic class WebSocketExample {\n private static final String PATH = \"wss://open-api-swap.bingx.com/swap-market?listenKey=425f783f4a17cd65f4a5d7470cfd45a956dba0c29564aa4b70967bee4e4a8984\";\n private static final String CHANNEL = \"https://open-api.bingx.com/openApi/user/auth/userDataStream\";\n private static WebSocketClient webSocketClient;\n\n public static void main(String[] args) {\n try {\n // Initialize WebSocket client\n URI uri = new URI(PATH);\n webSocketClient = new WebSocketClient(uri) {\n @Override\n public void onOpen(ServerHandshake handshakedata) {\n System.out.println(\"WebSocket connection opened\");\n send(CHANNEL);\n }\n\n @Override\n public void onMessage(String message) {\n System.out.println(\"Received Text Message: \" + message);\n }\n\n @Override\n public void onMessage(ByteBuffer bytes) {\n try {\n String decodedMsg = decodeGzip(bytes.array());\n System.out.println(\"Received Binary Message: \" + decodedMsg);\n\n if (mainStr.contains(\"ping\")) { \n send(\"pong\");\n System.out.println(\"Sent pong\");\n }\n\n } catch (IOException e) {\n System.out.println(\"Error decoding message: \" + e.getMessage());\n }\n }\n\n @Override\n public void onClose(int code, String reason, boolean remote) {\n System.out.println(\"WebSocket connection closed: \" + reason);\n }\n\n @Override\n public void onError(Exception ex) {\n System.out.println(\"WebSocket error: \" + ex.getMessage());\n }\n };\n\n webSocketClient.connectBlocking();\n\n // Schedule periodic ping messages\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n if (webSocketClient.getReadyState() == ReadyState.OPEN) {\n webSocketClient.send(\"Ping\");\n System.out.println(\"Sent Ping\");\n }\n }\n }, 0, 5000);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n // GZIP decoding function\n private static String decodeGzip(byte[] compressedData) throws IOException {\n GZIPInputStream gzipInputStream = new GZIPInputStream(new ByteArrayInputStream(compressedData));\n byte[] buffer = new byte[1024];\n StringBuilder decodedMessage = new StringBuilder();\n\n int len;\n while ((len = gzipInputStream.read(buffer)) != -1) {\n decodedMessage.append(new String(buffer, 0, len));\n }\n\n gzipInputStream.close();\n return decodedMessage.toString();\n }\n}\n`\nexport default java\n\n\n// WEBPACK FOOTER //\n// ./src/utils/codeWs/spot/java.js","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\\\",\\\"reqType\\\": \\\"sub\\\",\\\"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\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"e745cd6d-d0f6-4a70-8d5a-043e4c741b40\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@kline_1m\\\"}\"},\"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\":\"desc\",\"text\":\"查詢當前賬戶下永續合約(USDT和USDC)資產的相關信息\",\"desc\":[]},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/swap/v3/user/balance\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702731518913\"},\"response\":{\"code\":0,\"msg\":\"\",\"data\":[{\"userId\":\"116***295\",\"asset\":\"USDT\",\"balance\":\"194.8212\",\"equity\":\"196.7431\",\"unrealizedProfit\":\"1.9219\",\"realisedProfit\":\"-109.2504\",\"availableMargin\":\"193.7609\",\"usedMargin\":\"1.0602\",\"freezedMargin\":\"0.0000\"}]}},\"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\":\"凍結保證金\"},{\"name\":\"shortUid\",\"type\":\"string\",\"description\":\"短uid\"}]}]}]\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\":\"warning\",\"text\":\"GET https://open-api.bingx.com/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","var map = {\n\t\"./en-US/agent/1_introduce.json\": \"CM7q\",\n\t\"./en-US/agent/api/agent/01_get_Query_Invited_Users.json\": \"Bd4q\",\n\t\"./en-US/agent/api/agent/02_get_Daily_Commission_Query.json\": \"Czkf\",\n\t\"./en-US/agent/api/agent/03_get_Query_agent_user_nformation.json\": \"N9hH\",\n\t\"./en-US/agent/api/agent/04_get_Query_the_deposit_details.json\": \"ZKxt\",\n\t\"./en-US/agent/api/agent/05_get_Query_API_transaction_commission.json\": \"mYC+\",\n\t\"./en-US/agent/api/agent/06_get_Query_partner_information.json\": \"sHlI\",\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/changelog/2023-08-03.json\": \"H0k7\",\n\t\"./en-US/changelog/2023-08-11.json\": \"D1C9\",\n\t\"./en-US/changelog/2023-08-23.json\": \"CcT1\",\n\t\"./en-US/changelog/2023-09-18.json\": \"v1XT\",\n\t\"./en-US/changelog/2023-10-12.json\": \"7wfK\",\n\t\"./en-US/changelog/2023-11-10.json\": \"U8SU\",\n\t\"./en-US/changelog/2023-11-22.json\": \"4w61\",\n\t\"./en-US/changelog/2023-12-08.json\": \"aUA7\",\n\t\"./en-US/changelog/2023-12-21.json\": \"R2wc\",\n\t\"./en-US/changelog/2024-01-10.json\": \"k/At\",\n\t\"./en-US/changelog/2024-01-23.json\": \"FtO6\",\n\t\"./en-US/changelog/2024-02-04.json\": \"sMHE\",\n\t\"./en-US/changelog/2024-02-23.json\": \"nFKt\",\n\t\"./en-US/changelog/2024-03-04.json\": \"VZgP\",\n\t\"./en-US/changelog/2024-03-14.json\": \"UMYu\",\n\t\"./en-US/changelog/2024-03-19.json\": \"68aw\",\n\t\"./en-US/changelog/2024-03-28.json\": \"96CF\",\n\t\"./en-US/changelog/2024-04-15.json\": \"eP5L\",\n\t\"./en-US/changelog/2024-04-25.json\": \"0uHt\",\n\t\"./en-US/changelog/2024-05-23.json\": \"wQ5t\",\n\t\"./en-US/changelog/2024-05-27.json\": \"ED08\",\n\t\"./en-US/changelog/2024-06-13.json\": \"Jim+\",\n\t\"./en-US/changelog/2024-06-28.json\": \"xM8g\",\n\t\"./en-US/changelog/2024-07-11.json\": \"vZQv\",\n\t\"./en-US/changelog/2024-07-22.json\": \"OOYK\",\n\t\"./en-US/changelog/2024-07-30.json\": \"OTiI\",\n\t\"./en-US/changelog/2024-08-08.json\": \"dzxx\",\n\t\"./en-US/changelog/2024-08-17.json\": \"jPZq\",\n\t\"./en-US/changelog/2024-08-22.json\": \"POz2\",\n\t\"./en-US/changelog/2024-08-27.json\": \"gYbm\",\n\t\"./en-US/changelog/2024-09-11.json\": \"Lezn\",\n\t\"./en-US/changelog/2024-09-23.json\": \"6qxj\",\n\t\"./en-US/changelog/2024-10-09.json\": \"esMP\",\n\t\"./en-US/changelog/2024-10-11.json\": \"McI3\",\n\t\"./en-US/changelog/2024-10-16.json\": \"OleB\",\n\t\"./en-US/changelog/2024-10-23.json\": \"pxxT\",\n\t\"./en-US/changelog/2024-10-24.json\": \"SHTI\",\n\t\"./en-US/changelog/2024-10-30.json\": \"Gmgm\",\n\t\"./en-US/changelog/2024-11-07.json\": \"1koR\",\n\t\"./en-US/changelog/2024-11-15.json\": \"yLee\",\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_get_account_apiPermission.json\": \"vPcu\",\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/common/api/subAccount/11_post_capital_innerTransfer_apply.json\": \"4v69\",\n\t\"./en-US/common/api/subAccount/12.post_wallet_createSubDepositAddress.json\": \"33ms\",\n\t\"./en-US/common/api/subAccount/15.get_wallet_querySubDepositAddress.json\": \"zfQA\",\n\t\"./en-US/common/api/subAccount/16.get_wallet_querySubDepositRecords.json\": \"cjvr\",\n\t\"./en-US/common/api/subAccount/17.get_wallet_querySubInnerTransferRecords.json\": \"FRId\",\n\t\"./en-US/common/api/subAccount/18.query_sub_account_transfer_history.json\": \"Jxen\",\n\t\"./en-US/common/api/subAccount/19.sub_account_transfer_support_coin.json\": \"A6qi\",\n\t\"./en-US/common/api/subAccount/20.sub_account_transfer.json\": \"6Epj\",\n\t\"./en-US/common/api/subAccount/22_sub_account_allAccountBalance.json\": \"aaNH\",\n\t\"./en-US/copyTrade/1_introduce.json\": \"yyuB\",\n\t\"./en-US/copyTrade/api/trader/01_get_currentTrack.json\": \"U2sZ\",\n\t\"./en-US/copyTrade/api/trader/02_post_close_currentTrack.json\": \"TXP6\",\n\t\"./en-US/copyTrade/api/trader/03_post_tpsl_currentTrack.json\": \"qkYN\",\n\t\"./en-US/copyTrade/api/trader/04_spot_trader_sell_order.json\": \"mCp6\",\n\t\"./en-US/cswap/1_introduce.json\": \"omwE\",\n\t\"./en-US/cswap/2_description.json\": \"WXeB\",\n\t\"./en-US/cswap/api/basic/01_error_code.json\": \"Py8D\",\n\t\"./en-US/cswap/api/basic/02_timestamp.json\": \"Ui1f\",\n\t\"./en-US/cswap/api/basic/03_digital_rule.json\": \"OGaA\",\n\t\"./en-US/cswap/api/basic/04_rate_limits.json\": \"dz5L\",\n\t\"./en-US/cswap/api/basic/05_system_time.json\": \"TbUJ\",\n\t\"./en-US/cswap/api/market/01_get_contracts.json\": \"Fui1\",\n\t\"./en-US/cswap/api/market/02_get_premiumIndex.json\": \"5uda\",\n\t\"./en-US/cswap/api/market/03_get_openInterest.json\": \"ewcP\",\n\t\"./en-US/cswap/api/market/04_get_kline.json\": \"FuQd\",\n\t\"./en-US/cswap/api/market/05_get_depth.json\": \"GbOE\",\n\t\"./en-US/cswap/api/market/06_get_ticker.json\": \"6xac\",\n\t\"./en-US/cswap/api/trade/00_post_trade_order.json\": \"JG85\",\n\t\"./en-US/cswap/api/trade/01_get_commissionRate.json\": \"3Csz\",\n\t\"./en-US/cswap/api/trade/01_get_leverage.json\": \"6Wqe\",\n\t\"./en-US/cswap/api/trade/03_post_leverage.json\": \"HWdZ\",\n\t\"./en-US/cswap/api/trade/04_post_allOpenOrders.json\": \"xM9z\",\n\t\"./en-US/cswap/api/trade/05_post_closeAllPositions.json\": \"A11g\",\n\t\"./en-US/cswap/api/trade/06_get_positions.json\": \"Uqg4\",\n\t\"./en-US/cswap/api/trade/07_get_balance.json\": \"DyCG\",\n\t\"./en-US/cswap/api/trade/08_get_forceOrders.json\": \"79Xw\",\n\t\"./en-US/cswap/api/trade/09_get_allFillOrders.json\": \"KXGF\",\n\t\"./en-US/cswap/api/trade/10_delete_trade_order.json\": \"Mwlf\",\n\t\"./en-US/cswap/api/trade/11_get_all_openOrders.json\": \"Ui0Y\",\n\t\"./en-US/cswap/api/trade/12_get_trade_order.json\": \"nj2w\",\n\t\"./en-US/cswap/api/trade/14_get_trade_allOrders.json\": \"BW7b\",\n\t\"./en-US/cswap/api/trade/15_get_margin_type.json\": \"Qb5x\",\n\t\"./en-US/cswap/api/trade/16_post_margin_type.json\": \"dI3A\",\n\t\"./en-US/cswap/api/trade/17_post_trade_positionMargin.json\": \"2WEb\",\n\t\"./en-US/cswap/websocket/account/01_balance.json\": \"bzx+\",\n\t\"./en-US/cswap/websocket/account/02_order.json\": \"K1eD\",\n\t\"./en-US/cswap/websocket/account/03_setting.json\": \"2Cei\",\n\t\"./en-US/cswap/websocket/introduce/01_connect.json\": \"lyY+\",\n\t\"./en-US/cswap/websocket/introduce/02_data_compress.json\": \"Q5Jp\",\n\t\"./en-US/cswap/websocket/introduce/03_heart_beat.json\": \"IMXD\",\n\t\"./en-US/cswap/websocket/introduce/04_subscribe.json\": \"rEmz\",\n\t\"./en-US/cswap/websocket/introduce/05_cancel_subscribe.json\": \"SBKE\",\n\t\"./en-US/cswap/websocket/market/01_trade_info.json\": \"dF/+\",\n\t\"./en-US/cswap/websocket/market/02_last_price.json\": \"GtO6\",\n\t\"./en-US/cswap/websocket/market/03_mark_price.json\": \"BwZb\",\n\t\"./en-US/cswap/websocket/market/04_depth.json\": \"fcau\",\n\t\"./en-US/cswap/websocket/market/05_bookTicker.json\": \"KrjX\",\n\t\"./en-US/cswap/websocket/market/06_kline.json\": \"sLxw\",\n\t\"./en-US/cswap/websocket/market/07_24hr_ticker.json\": \"ywsQ\",\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/q&a/2023-09-12.json\": \"WisP\",\n\t\"./en-US/spot/1_introduce.json\": \"y1S6\",\n\t\"./en-US/spot/api/account/00_get_account_balance.json\": \"HY4c\",\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/07_post_capital_innerTransfer_apply.json\": \"KPNz\",\n\t\"./en-US/spot/api/account/14.get_wallet_queryInnerTransferRecords.json\": \"9tS2\",\n\t\"./en-US/spot/api/account/21_get_account_allAccountBalance.json\": \"Exaw\",\n\t\"./en-US/spot/api/basic/01_server_url.json\": \"wWlE\",\n\t\"./en-US/spot/api/basic/03_error_code.json\": \"/sx7\",\n\t\"./en-US/spot/api/basic/04_rate_limits.json\": \"bIsO\",\n\t\"./en-US/spot/api/basic/04_server_url.json\": \"GK5R\",\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/market/05_get_quote_ticker.json\": \"mWiW\",\n\t\"./en-US/spot/api/market/06_get_market_agg_depth.json\": \"eCwL\",\n\t\"./en-US/spot/api/market/07_get_market_price.json\": \"p4oz\",\n\t\"./en-US/spot/api/market/08_get_market_book_ticker.json\": \"OdvA\",\n\t\"./en-US/spot/api/market/09_get_market_history_klines.json\": \"Turq\",\n\t\"./en-US/spot/api/market/10_get_ market_histroy_traders.json\": \"MGWO\",\n\t\"./en-US/spot/api/trade/01_post_trade_a_order.json\": \"ZnNv\",\n\t\"./en-US/spot/api/trade/01_post_trade_batchOrders.json\": \"pX3/\",\n\t\"./en-US/spot/api/trade/021_post_trade_order_cancel.json\": \"ev9X\",\n\t\"./en-US/spot/api/trade/022_post_trade_orders_cancel.json\": \"aTY/\",\n\t\"./en-US/spot/api/trade/023_post_cancelOpenOrders.json\": \"gz1R\",\n\t\"./en-US/spot/api/trade/023_post_trade_order_cancel_replace.json\": \"TA5G\",\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/077_get_trade_fill_details.json\": \"s+Dd\",\n\t\"./en-US/spot/api/trade/08_get_commissionRate.json\": \"sPli\",\n\t\"./en-US/spot/api/trade/09_cancel_all_after.json\": \"KWsz\",\n\t\"./en-US/spot/api/trade/100_post_one_oco_order.json\": \"R/1P\",\n\t\"./en-US/spot/api/trade/101_cancel_one_oco_order.json\": \"dd2V\",\n\t\"./en-US/spot/api/trade/102_get_one_oco_order.json\": \"MN46\",\n\t\"./en-US/spot/api/trade/103_get_all_pending_oco_order.json\": \"YC1x\",\n\t\"./en-US/spot/api/trade/104_get_all_history_oco_order.json\": \"JLQZ\",\n\t\"./en-US/spot/api/wallet/03_get_deposit_hisrec.json\": \"dXH3\",\n\t\"./en-US/spot/api/wallet/04_get_withdraw_history.json\": \"kh23\",\n\t\"./en-US/spot/api/wallet/05_post_wallets_coins.json\": \"zgmp\",\n\t\"./en-US/spot/api/wallet/06_post_wallets_withdraw.json\": \"YSKw\",\n\t\"./en-US/spot/api/wallet/13.get_wallet_queryDepositAddress.json\": \"rgh9\",\n\t\"./en-US/spot/api/wallet/14_get_risk_deposit_records.json\": \"CxZu\",\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_limit.json\": \"+dFG\",\n\t\"./en-US/spot/websocket/introduce/02_connect.json\": \"hDC3\",\n\t\"./en-US/spot/websocket/introduce/03_data_compress.json\": \"YUWz\",\n\t\"./en-US/spot/websocket/introduce/04_heart_beat.json\": \"Ze9p\",\n\t\"./en-US/spot/websocket/introduce/05_cancel_subscribe.json\": \"hlb8\",\n\t\"./en-US/spot/websocket/introduce/06_subscribe.json\": \"g2tG\",\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/spot/websocket/market/04_24hr_ticker.json\": \"P0Vd\",\n\t\"./en-US/spot/websocket/market/05_last_price.json\": \"fqiK\",\n\t\"./en-US/spot/websocket/market/06_book_ticker.json\": \"o9Mz\",\n\t\"./en-US/spot/websocket/market/07_depth_incr_info.json\": \"soQQ\",\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/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/account/18_get_trade_income_export.json\": \"/Pe4\",\n\t\"./en-US/swapV2/api/account/19_get_trade_user_commissionRate.json\": \"v5LS\",\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/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/market/19_get_historicalTrades.json\": \"xyiP\",\n\t\"./en-US/swapV2/api/market/20_get_trade_quote_bookTicker.json\": \"E4EJ\",\n\t\"./en-US/swapV2/api/market/21_get_quote_mark_price_klines.json\": \"VeQG\",\n\t\"./en-US/swapV2/api/market/22_get_quote_price_v2.json\": \"rCcB\",\n\t\"./en-US/swapV2/api/trade/00_post_trade_order_test.json\": \"TrnZ\",\n\t\"./en-US/swapV2/api/trade/01_post_trade_order.json\": \"YLkf\",\n\t\"./en-US/swapV2/api/trade/01_post_trade_order_vst.json\": \"dww0\",\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_check_pending_order.json\": \"fLAw\",\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/17_get_trade_allFillOrders.json\": \"1A8u\",\n\t\"./en-US/swapV2/api/trade/18_set_positionSide.json\": \"wp4b\",\n\t\"./en-US/swapV2/api/trade/19_get_positionSide.json\": \"n7WW\",\n\t\"./en-US/swapV2/api/trade/20_cancel_replace_order.json\": \"vKvg\",\n\t\"./en-US/swapV2/api/trade/21_batch_cancel_replace_order.json\": \"nNrq\",\n\t\"./en-US/swapV2/api/trade/22_cancel_all_after.json\": \"6Ivy\",\n\t\"./en-US/swapV2/api/trade/22_post_closePosition.json\": \"JRrP\",\n\t\"./en-US/swapV2/api/trade/23_get_trade_allOrdersV2.json\": \"wYbs\",\n\t\"./en-US/swapV2/api/trade/24_get_maint_margin_ratio.json\": \"OkoV\",\n\t\"./en-US/swapV2/api/trade/25_get_fill_history_detail.json\": \"l3pU\",\n\t\"./en-US/swapV2/api/trade/26_get_user_position_history.json\": \"xptQ\",\n\t\"./en-US/swapV2/api/trade/27_get_position_margin_history.json\": \"bHz9\",\n\t\"./en-US/swapV2/api/trade/27_post_get_vst.json\": \"cn9g\",\n\t\"./en-US/swapV2/api/trade/28_post_twap_order.json\": \"6+7u\",\n\t\"./en-US/swapV2/api/trade/29_get_twap_open_orders.json\": \"2vkv\",\n\t\"./en-US/swapV2/api/trade/30_get_twap_history_orders.json\": \"BBsp\",\n\t\"./en-US/swapV2/api/trade/31_get_twap_order_detail.json\": \"NQ2q\",\n\t\"./en-US/swapV2/api/trade/32_cancel_twap_cancel_order.json\": \"iXtv\",\n\t\"./en-US/swapV2/api/trade/33_post_asset_mode.json\": \"xS3w\",\n\t\"./en-US/swapV2/api/trade/34_get_asset_mode.json\": \"ZFUX\",\n\t\"./en-US/swapV2/api/trade/35_get_multi_asset_rule.json\": \"jifI\",\n\t\"./en-US/swapV2/api/trade/36_get_margin_asset.json\": \"+eKI\",\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/00_limit.json\": \"/ur1\",\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_interval.json\": \"0EuA\",\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\"./en-US/swapV2/websocket/market/04_quote_ticker.json\": \"xVTF\",\n\t\"./en-US/swapV2/websocket/market/05_last_trade_price.json\": \"gvF4\",\n\t\"./en-US/swapV2/websocket/market/06_last_mark_price.json\": \"pgER\",\n\t\"./en-US/swapV2/websocket/market/07_book_ticker.json\": \"wF+v\",\n\t\"./en-US/swapV2/websocket/market/08_depth_incr_info.json\": \"hH3F\",\n\t\"./zh-tw/agent/1_introduce.json\": \"Nfjq\",\n\t\"./zh-tw/agent/api/agent/01_get_Query_Invited_Users.json\": \"zsZ4\",\n\t\"./zh-tw/agent/api/agent/02_get_Daily_Commission_Query.json\": \"Gwkw\",\n\t\"./zh-tw/agent/api/agent/03_get_Query_agent_user_nformation.json\": \"P9RC\",\n\t\"./zh-tw/agent/api/agent/04_get_Query_the_deposit_details.json\": \"7XUQ\",\n\t\"./zh-tw/agent/api/agent/05_get_Query_API_transaction_commission.json\": \"IoyB\",\n\t\"./zh-tw/agent/api/agent/06_get_Query_partner_information.json\": \"8au9\",\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/changelog/2023-08-03.json\": \"9HpD\",\n\t\"./zh-tw/changelog/2023-08-11.json\": \"pV/D\",\n\t\"./zh-tw/changelog/2023-08-23.json\": \"bKtD\",\n\t\"./zh-tw/changelog/2023-09-18.json\": \"a/u1\",\n\t\"./zh-tw/changelog/2023-10-12.json\": \"DJaF\",\n\t\"./zh-tw/changelog/2023-11-10.json\": \"bGx6\",\n\t\"./zh-tw/changelog/2023-11-22.json\": \"axDH\",\n\t\"./zh-tw/changelog/2023-12-08.json\": \"+29D\",\n\t\"./zh-tw/changelog/2023-12-21.json\": \"CpXJ\",\n\t\"./zh-tw/changelog/2024-01-10.json\": \"KYMz\",\n\t\"./zh-tw/changelog/2024-01-23.json\": \"G8cI\",\n\t\"./zh-tw/changelog/2024-02-04.json\": \"NFKy\",\n\t\"./zh-tw/changelog/2024-02-23.json\": \"NuRj\",\n\t\"./zh-tw/changelog/2024-03-04.json\": \"3c71\",\n\t\"./zh-tw/changelog/2024-03-14.json\": \"Jip9\",\n\t\"./zh-tw/changelog/2024-03-19.json\": \"j7dp\",\n\t\"./zh-tw/changelog/2024-03-28.json\": \"ZNZv\",\n\t\"./zh-tw/changelog/2024-04-15.json\": \"i/xj\",\n\t\"./zh-tw/changelog/2024-04-25.json\": \"87c6\",\n\t\"./zh-tw/changelog/2024-05-23.json\": \"KSJz\",\n\t\"./zh-tw/changelog/2024-05-27.json\": \"5LYy\",\n\t\"./zh-tw/changelog/2024-06-13.json\": \"vBmL\",\n\t\"./zh-tw/changelog/2024-06-28.json\": \"khDw\",\n\t\"./zh-tw/changelog/2024-07-11.json\": \"vGFC\",\n\t\"./zh-tw/changelog/2024-07-22.json\": \"/chU\",\n\t\"./zh-tw/changelog/2024-07-30.json\": \"l7kI\",\n\t\"./zh-tw/changelog/2024-08-08.json\": \"F1dE\",\n\t\"./zh-tw/changelog/2024-08-17.json\": \"aG00\",\n\t\"./zh-tw/changelog/2024-08-22.json\": \"L5DY\",\n\t\"./zh-tw/changelog/2024-08-27.json\": \"TvGs\",\n\t\"./zh-tw/changelog/2024-09-11.json\": \"EMrv\",\n\t\"./zh-tw/changelog/2024-09-23.json\": \"nNlN\",\n\t\"./zh-tw/changelog/2024-10-09.json\": \"zB9+\",\n\t\"./zh-tw/changelog/2024-10-11.json\": \"ss+C\",\n\t\"./zh-tw/changelog/2024-10-16.json\": \"UDLl\",\n\t\"./zh-tw/changelog/2024-10-23.json\": \"nC6P\",\n\t\"./zh-tw/changelog/2024-10-24.json\": \"Aw6+\",\n\t\"./zh-tw/changelog/2024-10-30.json\": \"J9sz\",\n\t\"./zh-tw/changelog/2024-11-07.json\": \"R99K\",\n\t\"./zh-tw/changelog/2024-11-15.json\": \"aAh/\",\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_get_account_apiPermission.json\": \"m+RL\",\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/common/api/subAccount/11_post_capital_innerTransfer_apply.json\": \"S1Mk\",\n\t\"./zh-tw/common/api/subAccount/12.post_wallet_createSubDepositAddress.json\": \"mmsx\",\n\t\"./zh-tw/common/api/subAccount/15.get_wallet_querySubDepositAddress.json\": \"mcEH\",\n\t\"./zh-tw/common/api/subAccount/16.get_wallet_querySubDepositRecords.json\": \"Iuwz\",\n\t\"./zh-tw/common/api/subAccount/17.get_wallet_querySubInnerTransferRecords.json\": \"yVRY\",\n\t\"./zh-tw/common/api/subAccount/18_query_sub_account_transfer_history.json\": \"yGUm\",\n\t\"./zh-tw/common/api/subAccount/19_sub_account_transfer_support_coin.json\": \"lU9A\",\n\t\"./zh-tw/common/api/subAccount/20_sub_account_transfer.json\": \"7zc5\",\n\t\"./zh-tw/common/api/subAccount/22_sub_account_allAccountBalance.json\": \"mYOy\",\n\t\"./zh-tw/copyTrade/1_introduce.json\": \"Le/y\",\n\t\"./zh-tw/copyTrade/api/trader/01_get_currentTrack.json\": \"gp62\",\n\t\"./zh-tw/copyTrade/api/trader/02_post_close_currentTrack.json\": \"Fxil\",\n\t\"./zh-tw/copyTrade/api/trader/03_post_tpsl_currentTrack.json\": \"Sfdp\",\n\t\"./zh-tw/copyTrade/api/trader/04_spot_trader_sell_order.json\": \"kpfu\",\n\t\"./zh-tw/cswap/1_introduce.json\": \"2yPl\",\n\t\"./zh-tw/cswap/2_description.json\": \"ihU3\",\n\t\"./zh-tw/cswap/api/basic/01_error_code.json\": \"XCkz\",\n\t\"./zh-tw/cswap/api/basic/02_timestamp.json\": \"oPkH\",\n\t\"./zh-tw/cswap/api/basic/03_digital_rule.json\": \"WihS\",\n\t\"./zh-tw/cswap/api/basic/04_rate_limits.json\": \"p+dP\",\n\t\"./zh-tw/cswap/api/basic/05_system_time.json\": \"lC7j\",\n\t\"./zh-tw/cswap/api/market/01_get_contracts.json\": \"mCcU\",\n\t\"./zh-tw/cswap/api/market/02_get_premiumIndex.json\": \"nco7\",\n\t\"./zh-tw/cswap/api/market/03_get_openInterest.json\": \"pnyN\",\n\t\"./zh-tw/cswap/api/market/04_get_kline.json\": \"Yskp\",\n\t\"./zh-tw/cswap/api/market/05_get_depth.json\": \"2qcG\",\n\t\"./zh-tw/cswap/api/market/06_get_ticker.json\": \"PaEN\",\n\t\"./zh-tw/cswap/api/trade/00_post_trade_order.json\": \"YI4R\",\n\t\"./zh-tw/cswap/api/trade/01_get_commissionRate.json\": \"n+yS\",\n\t\"./zh-tw/cswap/api/trade/02_get_leverage.json\": \"bFqw\",\n\t\"./zh-tw/cswap/api/trade/03_post_leverage.json\": \"N7P3\",\n\t\"./zh-tw/cswap/api/trade/04_post_allOpenOrders.json\": \"0Lu1\",\n\t\"./zh-tw/cswap/api/trade/05_post_closeAllPositions.json\": \"vDcD\",\n\t\"./zh-tw/cswap/api/trade/06_get_positions.json\": \"+oba\",\n\t\"./zh-tw/cswap/api/trade/07_get_balance.json\": \"ptJe\",\n\t\"./zh-tw/cswap/api/trade/08_get_forceOrders.json\": \"D/10\",\n\t\"./zh-tw/cswap/api/trade/09_get_allFillOrders.json\": \"f4x/\",\n\t\"./zh-tw/cswap/api/trade/10_delete_trade_order.json\": \"01Ul\",\n\t\"./zh-tw/cswap/api/trade/11_get_all_openOrders.json\": \"TzVG\",\n\t\"./zh-tw/cswap/api/trade/12_get_trade_order.json\": \"c76v\",\n\t\"./zh-tw/cswap/api/trade/14_get_trade_allOrders.json\": \"I2ee\",\n\t\"./zh-tw/cswap/api/trade/15_get_margin_type.json\": \"qPGu\",\n\t\"./zh-tw/cswap/api/trade/16_post_margin_type.json\": \"LawJ\",\n\t\"./zh-tw/cswap/api/trade/17_post_trade_positionMargin.json\": \"eN7O\",\n\t\"./zh-tw/cswap/websocket/account/01_balance.json\": \"qHKX\",\n\t\"./zh-tw/cswap/websocket/account/02_order.json\": \"tdP1\",\n\t\"./zh-tw/cswap/websocket/account/03_setting.json\": \"PEUY\",\n\t\"./zh-tw/cswap/websocket/introduce/01_connect.json\": \"3tXb\",\n\t\"./zh-tw/cswap/websocket/introduce/02_data_compress.json\": \"CVyP\",\n\t\"./zh-tw/cswap/websocket/introduce/03_heart_beat.json\": \"vR2M\",\n\t\"./zh-tw/cswap/websocket/introduce/04_subscribe.json\": \"UYWd\",\n\t\"./zh-tw/cswap/websocket/introduce/05_cancel_subscribe.json\": \"2xEp\",\n\t\"./zh-tw/cswap/websocket/market/01_trade_info.json\": \"m2cs\",\n\t\"./zh-tw/cswap/websocket/market/02_last_price.json\": \"ntfQ\",\n\t\"./zh-tw/cswap/websocket/market/03_mark_price.json\": \"D6bT\",\n\t\"./zh-tw/cswap/websocket/market/04_depth.json\": \"pvqc\",\n\t\"./zh-tw/cswap/websocket/market/05_bookTicker.json\": \"exCQ\",\n\t\"./zh-tw/cswap/websocket/market/06_kline.json\": \"p1RX\",\n\t\"./zh-tw/cswap/websocket/market/07_24hr_ticker.json\": \"5LXd\",\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/q&a/2023-09-12.json\": \"Sd/4\",\n\t\"./zh-tw/spot/1_introduce.json\": \"z74M\",\n\t\"./zh-tw/spot/api/account/00_get_account_balance.json\": \"hIqz\",\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/07_post_capital_innerTransfer_apply.json\": \"iYO+\",\n\t\"./zh-tw/spot/api/account/14.get_wallet_queryInnerTransferRecords.json\": \"Jtu9\",\n\t\"./zh-tw/spot/api/account/21_get_account_allAccountBalance.json\": \"9SLF\",\n\t\"./zh-tw/spot/api/basic/01_server_url.json\": \"FVkd\",\n\t\"./zh-tw/spot/api/basic/03_error_code.json\": \"uv3h\",\n\t\"./zh-tw/spot/api/basic/04_rate_limits.json\": \"XvOK\",\n\t\"./zh-tw/spot/api/basic/04_server_url.json\": \"w7yn\",\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/market/05_get_quote_ticker.json\": \"wj44\",\n\t\"./zh-tw/spot/api/market/06_get_market_agg_depth.json\": \"cYhj\",\n\t\"./zh-tw/spot/api/market/07_get_market_price.json\": \"ymfm\",\n\t\"./zh-tw/spot/api/market/08_get_market_book_ticker.json\": \"Tbeq\",\n\t\"./zh-tw/spot/api/market/09_get_market_history_klines.json\": \"7UNC\",\n\t\"./zh-tw/spot/api/market/10_get_ market_histroy_traders.json\": \"cRRp\",\n\t\"./zh-tw/spot/api/trade/01_post_trade_aorder.json\": \"MZay\",\n\t\"./zh-tw/spot/api/trade/01_post_trade_batchOrders.json\": \"jKsK\",\n\t\"./zh-tw/spot/api/trade/021_post_trade_order_cancel.json\": \"l/8P\",\n\t\"./zh-tw/spot/api/trade/022_post_trade_orders_cancel.json\": \"uDFu\",\n\t\"./zh-tw/spot/api/trade/023_post_cancelOpenOrders.json\": \"BdSn\",\n\t\"./zh-tw/spot/api/trade/023_post_trade_order_cancel_replace.json\": \"qru4\",\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/077_get_trade_fill_details.json\": \"ui1J\",\n\t\"./zh-tw/spot/api/trade/08_get_commissionRate.json\": \"OkZ/\",\n\t\"./zh-tw/spot/api/trade/09_cancel_all_after.json\": \"IW4y\",\n\t\"./zh-tw/spot/api/trade/100_post_one_oco_order.json\": \"0DXm\",\n\t\"./zh-tw/spot/api/trade/101_cancel_one_oco_order.json\": \"cfpy\",\n\t\"./zh-tw/spot/api/trade/102_get_one_oco_order.json\": \"bM6w\",\n\t\"./zh-tw/spot/api/trade/103_get_all_pending_oco_order.json\": \"EsEh\",\n\t\"./zh-tw/spot/api/trade/104_get_all_history_oco_order.json\": \"bjJG\",\n\t\"./zh-tw/spot/api/wallet/03_get_deposit_hisrec.json\": \"ZlbJ\",\n\t\"./zh-tw/spot/api/wallet/04_get_withdraw_history.json\": \"DNed\",\n\t\"./zh-tw/spot/api/wallet/05_post_wallets_coins.json\": \"BYvq\",\n\t\"./zh-tw/spot/api/wallet/06_post_wallets_withdraw.json\": \"yxdj\",\n\t\"./zh-tw/spot/api/wallet/13.get_wallet_queryDepositAddress.json\": \"WnFl\",\n\t\"./zh-tw/spot/api/wallet/14_get_risk_deposit_records.json\": \"JbVL\",\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_limit.json\": \"WMCK\",\n\t\"./zh-tw/spot/websocket/introduce/02_connect.json\": \"Jf00\",\n\t\"./zh-tw/spot/websocket/introduce/03_data_compress.json\": \"eQk0\",\n\t\"./zh-tw/spot/websocket/introduce/04_heart_beat.json\": \"nCmZ\",\n\t\"./zh-tw/spot/websocket/introduce/05_subscribe.json\": \"D11h\",\n\t\"./zh-tw/spot/websocket/introduce/06_cancel_subscribe.json\": \"8PHc\",\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/spot/websocket/market/04_24hr_ticker.json\": \"7Biw\",\n\t\"./zh-tw/spot/websocket/market/05_last_price.json\": \"q1yk\",\n\t\"./zh-tw/spot/websocket/market/06_book_ticker.json\": \"vVRe\",\n\t\"./zh-tw/spot/websocket/market/07_depth_incr_info.json\": \"MY8u\",\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/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/account/18_get_trade_income_export.json\": \"tvLy\",\n\t\"./zh-tw/swapV2/api/account/19_get_trade_user_commissionRate.json\": \"IIQZ\",\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/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/market/19_get_historicalTrades.json\": \"iQjo\",\n\t\"./zh-tw/swapV2/api/market/20_get_trade_quote_bookTicker.json\": \"1iLz\",\n\t\"./zh-tw/swapV2/api/market/21_get_quote_mark_price_klines.json\": \"5vst\",\n\t\"./zh-tw/swapV2/api/market/22_get_quote_price_v2.json\": \"OSRE\",\n\t\"./zh-tw/swapV2/api/trade/00_post_trade_order_test.json\": \"CwX9\",\n\t\"./zh-tw/swapV2/api/trade/01_post_trade_order.json\": \"vDBD\",\n\t\"./zh-tw/swapV2/api/trade/01_post_trade_order_vst.json\": \"6dPc\",\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_check_pending_order.json\": \"26Si\",\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/17_get_trade_allFillOrders.json\": \"7iFh\",\n\t\"./zh-tw/swapV2/api/trade/18_set_positionSide.json\": \"QEfH\",\n\t\"./zh-tw/swapV2/api/trade/19_get_positionSide.json\": \"jzOs\",\n\t\"./zh-tw/swapV2/api/trade/20_cancel_replace_order.json\": \"4bTX\",\n\t\"./zh-tw/swapV2/api/trade/21_batch_cancel_replace_order.json\": \"/nLp\",\n\t\"./zh-tw/swapV2/api/trade/22_cancel_all_after.json\": \"1pQ9\",\n\t\"./zh-tw/swapV2/api/trade/22_post_closePosition.json\": \"/qZT\",\n\t\"./zh-tw/swapV2/api/trade/23_get_trade_allOrdersV2.json\": \"iRbd\",\n\t\"./zh-tw/swapV2/api/trade/24_get_maint_margin_ratio.json\": \"OyBm\",\n\t\"./zh-tw/swapV2/api/trade/25_get_fill_history_detail.json\": \"PJcf\",\n\t\"./zh-tw/swapV2/api/trade/26_get_user_position_history.json\": \"sWA2\",\n\t\"./zh-tw/swapV2/api/trade/27_get_position_margin_history.json\": \"5iQm\",\n\t\"./zh-tw/swapV2/api/trade/27_post_get_vst.json\": \"dtEQ\",\n\t\"./zh-tw/swapV2/api/trade/28_post_twap_order.json\": \"50Mv\",\n\t\"./zh-tw/swapV2/api/trade/29_get_twap_open_orders.json\": \"0L6n\",\n\t\"./zh-tw/swapV2/api/trade/30_get_twap_history_orders.json\": \"srGS\",\n\t\"./zh-tw/swapV2/api/trade/31_get_twap_order_detail.json\": \"+xXY\",\n\t\"./zh-tw/swapV2/api/trade/32_cancel_twap_order.json\": \"5pjb\",\n\t\"./zh-tw/swapV2/api/trade/33_post_asset_mode.json\": \"thBV\",\n\t\"./zh-tw/swapV2/api/trade/34_get_asset_mode.json\": \"cRAY\",\n\t\"./zh-tw/swapV2/api/trade/35_get_multi_asset_rule.json\": \"EWHP\",\n\t\"./zh-tw/swapV2/api/trade/36_get_margin_asset.json\": \"/HCz\",\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/00_limit.json\": \"u2Il\",\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_interval.json\": \"bP1Q\",\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\t\"./zh-tw/swapV2/websocket/market/04_quote_ticker.json\": \"AAve\",\n\t\"./zh-tw/swapV2/websocket/market/05_last_trade_price.json\": \"lqZR\",\n\t\"./zh-tw/swapV2/websocket/market/06_last_mark_price.json\": \"zVt3\",\n\t\"./zh-tw/swapV2/websocket/market/07_book_ticker.json\": \"5TRZ\",\n\t\"./zh-tw/swapV2/websocket/market/08_depth_incr_info.json\": \"PEl6\"\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\":\"實時推送。\"},{\"type\":\"normal\",\"text\":\"推送最新標記價格變動。\"},{\"type\":\"normal\",\"text\":\"訂閱類型\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"dataType 為 @markPrice,比如BTC-USDT@markPrice。\"},{\"type\":\"normal\",\"text\":\"訂閱參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"{\\\"id\\\":\\\"24dd0e35-56a4-4f7a-af8a-394c7060909c\\\",\\\"reqType\\\": \\\"sub\\\",\\\"dataType\\\":\\\"BTC-USDT@markPrice\\\"}\"},\"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@markPrice\"},{\"name\":\"data\",\"type\":\"\",\"description\":\"推送內容\"},{\"name\":\"e\",\"type\":\"\",\"description\":\"事件類型\"},{\"name\":\"E\",\"type\":\"\",\"description\":\"事件時間\"},{\"name\":\"s\",\"type\":\"\",\"description\":\"交易對, 例如: BTC-USDT\"},{\"name\":\"p\",\"type\":\"\",\"description\":\"最新標記價格\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/swapV2/websocket/market/06_last_mark_price.json\n// module id = zVt3\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 \"method\" => $method\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\":\"html\",\"text\":\"用於子帳戶在bingx平台內互相轉賬(子帳戶轉子帳戶、子帳戶轉主帳戶),本接口不可用於主帳戶內轉,主賬號內轉請使用專用接口 (主)用戶內部轉賬\"},{\"type\":\"html\",\"text\":\"此接口需要主帳戶API KEY設置權限:允許子帳戶內轉,可前往 配置API KEY權限 \"},{\"type\":\"html\",\"text\":\"註:使用此接口前,請確認已經對相應子帳號授權內轉權限,可調用接口: 授權子帳號內轉 \"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"接口參數\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccountInnerTransfer/apply\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"amount\":20,\"coin\":\"usdt\",\"userAccount\":\"16689999\",\"userAccountType\":1,\"walletType\":1},\"response\":{\"code\":0,\"timestamp\":1702520425652,\"data\":{\"id\":\"12*******12\"}}},\"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\":\"電話區號,當userAccountType=2時必填。\"},{\"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\":\"平台返回內轉記錄唯一id\"}]}]}]\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","module.exports = [{\"type\":\"hash\",\"text\":\"Get sub-account deposit address\"},{\"type\":\"normal\",\"text\":\"This endpoint is used for the parent user to query the deposit address of a specific coin for a child user in the blockchain where the child user is located. Only available for parent users.\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"Parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/subAccount/deposit/address\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"coin\":\"USDT\",\"limit\":\"100\",\"offset\":0,\"subUid\":16239999},\"response\":{\"code\":0,\"timestamp\":1700741585439,\"data\":{\"data\":[],\"total\":0}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"Yes\",\"description\":\"Name of the transfer coin\"},{\"name\":\"subUid\",\"type\":\"long\",\"required\":\"Yes\",\"description\":\"Sub-account UID\"},{\"name\":\"offset\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Starting record number, default is 0\"},{\"name\":\"limit\",\"type\":\"int\",\"required\":\"No\",\"description\":\"Page size, default is 100, maximum is 1000\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"Timestamp of the request in milliseconds\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"Request valid time window, in milliseconds\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"data\",\"type\":\"object\",\"description\":\"List of deposit addresses\"},{\"name\":\"total\",\"type\":\"int\",\"description\":\"Total number of addresses\"},{\"name\":\"coin\",\"type\":\"string\",\"description\":\"Coin name\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Network name\"},{\"name\":\"address\",\"type\":\"string\",\"description\":\"Deposit address\"},{\"name\":\"addressWithPrefix\",\"type\":\"string\",\"description\":\"Deposit address with prefix\"},{\"name\":\"tag\",\"type\":\"string\",\"description\":\"Address tag\"},{\"name\":\"status\",\"type\":\"int\",\"description\":\"0: Activated, 1: Applied, 2: Not applied\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/common/api/subAccount/15.get_wallet_querySubDepositAddress.json\n// module id = zfQA\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"Query currency deposit and withdrawal data\"},{\"type\":\"normal\",\"text\":\"Get information of coins,And query the limit corresponding to the coins\"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"request parameters\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/wallets/v1/capital/config/getall\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"timestamp\":\"1702623270607\"},\"response\":{\"code\":0,\"timestamp\":1702623271477,\"data\":[{\"coin\":\"BTC\",\"name\":\"BTC\",\"networkList\":[{\"name\":\"BTC\",\"network\":\"BTC\",\"isDefault\":true,\"minConfirm\":2,\"withdrawEnable\":true,\"depositEnable\":true,\"withdrawFee\":\"0.0006\",\"withdrawMax\":\"1.17522\",\"withdrawMin\":\"0.0005\",\"depositMin\":\"0.0002\"},{\"name\":\"BTC\",\"network\":\"BEP20\",\"isDefault\":false,\"minConfirm\":15,\"withdrawEnable\":true,\"depositEnable\":true,\"withdrawFee\":\"0.0000066\",\"withdrawMax\":\"1.17522\",\"withdrawMin\":\"0.0000066\",\"depositMin\":\"0.0002\"}]}]}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"coin\",\"type\":\"string\",\"required\":\"no\",\"description\":\"Coin identification\"},{\"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\":\"coin\",\"type\":\"string\",\"description\":\"Coin identification\"},{\"name\":\"name\",\"type\":\"string\",\"description\":\"Coin name\"},{\"name\":\"networkList\",\"type\":\"Network\",\"description\":\"Network information\"}]},{\"type\":\"Network\",\"key\":\"key1\",\"data\":[{\"name\":\"name\",\"type\":\"string\",\"description\":\"Network name\"},{\"name\":\"network\",\"type\":\"string\",\"description\":\"Network identification\"},{\"name\":\"depositEnable\",\"type\":\"boolean\",\"description\":\"Whether the currency is enabled for deposit\"},{\"name\":\"depositMin\",\"type\":\"decimal\",\"description\":\"Minimum deposit amount\"},{\"name\":\"minConfirm\",\"type\":\"int64\",\"description\":\"Minimum number of confirmed blocks\"},{\"name\":\"isDefault\",\"type\":\"boolean\",\"description\":\"Is it the default network\"},{\"name\":\"withdrawEnable\",\"type\":\"boolean\",\"description\":\"Is the coin open for withdrawal\"},{\"name\":\"withdrawFee\",\"type\":\"float64\",\"description\":\"withdraw fee\"},{\"name\":\"withdrawMax\",\"type\":\"float64\",\"description\":\"Maximum withdrawal amount(Withdrawal limit)\"},{\"name\":\"withdrawMin\",\"type\":\"float64\",\"description\":\"Minimum withdrawal amount\"},{\"name\":\"withdrawDesc\",\"type\":\"string\",\"description\":\"Description of withdrawal\"},{\"name\":\"withdrawPrecision\",\"type\":\"int\",\"description\":\"Withdrawal precision\"},{\"name\":\"depositPrecision\",\"type\":\"int\",\"description\":\"Deposit precision\"},{\"name\":\"contractAddress\",\"type\":\"int\",\"description\":\"Contract address\"},{\"name\":\"needTagOrMemo\",\"type\":\"String\",\"description\":\"Whether memo or tag is required, true: required, false: not required\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/en-US/spot/api/wallet/05_post_wallets_coins.json\n// module id = zgmp\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_get_account_apiPermission\": \"m+RL\",\n\t\"./02_get_account_apiPermission.json\": \"m+RL\",\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\"./11_post_capital_innerTransfer_apply\": \"S1Mk\",\n\t\"./11_post_capital_innerTransfer_apply.json\": \"S1Mk\",\n\t\"./12.post_wallet_createSubDepositAddress\": \"mmsx\",\n\t\"./12.post_wallet_createSubDepositAddress.json\": \"mmsx\",\n\t\"./15.get_wallet_querySubDepositAddress\": \"mcEH\",\n\t\"./15.get_wallet_querySubDepositAddress.json\": \"mcEH\",\n\t\"./16.get_wallet_querySubDepositRecords\": \"Iuwz\",\n\t\"./16.get_wallet_querySubDepositRecords.json\": \"Iuwz\",\n\t\"./17.get_wallet_querySubInnerTransferRecords\": \"yVRY\",\n\t\"./17.get_wallet_querySubInnerTransferRecords.json\": \"yVRY\",\n\t\"./18_query_sub_account_transfer_history\": \"yGUm\",\n\t\"./18_query_sub_account_transfer_history.json\": \"yGUm\",\n\t\"./19_sub_account_transfer_support_coin\": \"lU9A\",\n\t\"./19_sub_account_transfer_support_coin.json\": \"lU9A\",\n\t\"./20_sub_account_transfer\": \"7zc5\",\n\t\"./20_sub_account_transfer.json\": \"7zc5\",\n\t\"./22_sub_account_allAccountBalance\": \"mYOy\",\n\t\"./22_sub_account_allAccountBalance.json\": \"mYOy\",\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\":\"代理KOL可以使用此介面査詢受邀下級用戶的基本資訊。\"},{\"type\":\"html\",\"text\":\"
  • 開始時間<結束時間,結束時間-開始時間<=30天。 如果不填寫,將査詢所有數據.
  • \"},{\"type\":\"html\",\"text\":\"
  • 只有具有驗證UID的代理才能使用此功能。 3.蒐索在startTime和endTime之間注册的下級用戶,按註冊時間從最近到最近排序。
  • \"},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"normal\",\"text\":\"HTTP Request\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"demo\",\"api\":{\"uri\":\"/openApi/agent/v1/account/inviteAccountList\",\"protocol\":\"https\",\"method\":\"GET\",\"payload\":{\"pageIndex\":\"1\",\"pageSize\":\"2\",\"timestamp\":\"1702731524208\"},\"response\":{\"code\":0,\"timestamp\":1690428366803,\"data\":{\"list\":[{\"uid\":24828902,\"ownInviteCode\":\"LYA1453\",\"superiorsUid\":2293934,\"InvitationCode\":\"LYA2023\",\"registerDateTime\":1688992720000,\"directInvitation\":false,\"kycResult\":\"false\",\"deposit\":false,\"trade\":false,\"userLevel\":0,\"commissionRatio\":3,\"currentBenefit\":0,\"benefitRatio\":0,\"benefitExpiration\":0}],\"total\":1,\"currentAgentUid\":1115195195666423800}}},\"params\":[{\"type\":\"Request\",\"key\":\"request\",\"data\":[{\"name\":\"startTime\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"開始時間戳(毫秒),最大査詢視窗為30天。 如果要檢索所有數據,可以將startTime和endTime欄位留空。\"},{\"name\":\"endTime\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"結束時間戳(毫秒),最大査詢視窗為30天。 如果査詢所有數據,startTime和endTime可以留空\"},{\"name\":\"lastUid\",\"type\":\"int64\",\"required\":\"No\",\"description\":\"當査詢的數據超過10000時,必須傳輸用戶UID。不需要傳遞第一個請求,之後每次傳遞當前頁面的最後一個UID\"},{\"name\":\"pageIndex\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"分頁的頁碼必須大於0\"},{\"name\":\"pageSize\",\"type\":\"int64\",\"required\":\"YES\",\"description\":\"頁數必須大於0,最大值為200\"},{\"name\":\"recvWindow\",\"type\":\"int64\",\"required\":\"Yes\",\"description\":\"請求有效時間視窗,以毫秒為組織。 如果未提供,預設值為5秒。\"},{\"name\":\"timestamp\",\"type\":\"int64\",\"required\":\"no\",\"description\":\"請求時間戳記(毫秒)\"}]},{\"type\":\"Response\",\"key\":\"response\",\"data\":[{\"name\":\"uid\",\"type\":\"string\",\"description\":\"受邀用戶UID\"},{\"name\":\"ownInviteCode\",\"type\":\"string\",\"description\":\"受邀用戶的邀請碼\"},{\"name\":\"inviterSid\",\"type\":\"long\",\"description\":\"上級Uid\"},{\"name\":\"InvitationCode\",\"type\":\"string\",\"description\":\"上級邀請碼\"},{\"name\":\"registerTime\",\"type\":\"long\",\"description\":\"註冊時間戳,組織:毫秒\"},{\"name\":\"directInvitation\",\"type\":\"boolean\",\"description\":\"true:直接邀請,false:間接邀請\"},{\"name\":\"kycResult\",\"type\":\"string\",\"description\":\"true:KYC,false:無KYC\"},{\"name\":\"deposit\",\"type\":\"boolean\",\"description\":\"true(已存入),false(未存入)\"},{\"name\":\"balanceVolume\",\"type\":\"string\",\"description\":\"淨資產(美元)\"},{\"name\":\"trade\",\"type\":\"boolean\",\"description\":\"true:已交易,false:未交易,不包括使用試用基金或額外基金進行的交易\"},{\"name\":\"userLevel\",\"type\":\"int\",\"description\":\"客戶級別\"},{\"name\":\"commissionRatio\",\"type\":\"int\",\"description\":\"傭金百分比,單位:%\"},{\"name\":\"currentBenefit \",\"type\":\"int\",\"description\":\"當前福利管道:0-無福利,1-費用返現,2-永久費用折扣\"},{\"name\":\"benefitRatio\",\"type\":\"int\",\"description\":\"交易手續費减免百分比,單位:%\"},{\"name\":\"benefitExpiration\",\"type\":\"long\",\"description\":\"福利到期時間戳記,單位:毫秒\"}]}]}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/config/zh-tw/agent/api/agent/01_get_Query_Invited_Users.json\n// module id = zsZ4\n// module chunks = 3","module.exports = [{\"type\":\"hash\",\"text\":\"資產劃轉\"},{\"type\":\"normal\",\"text\":\"HTTP 請求\",\"style\":{\"font-weight\":\"bold\"}},{\"type\":\"code\",\"text\":\"curl --location --request POST 'https://open-api.bingx.com/openApi/api/v3/post/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/post/asset/transfer\",\"protocol\":\"https\",\"method\":\"POST\",\"payload\":{\"recvWindow\":\"6000\",\"timestamp\":\"1702619257404\",\"asset\":\"USDT\",\"amount\":\"1095\",\"type\":\"FUND_PFUTURES\"},\"response\":{\"tranId\":\"17********28\"}},\"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.0f56012b6c6c48327603.js.map b/static/js/manifest.0f56012b6c6c48327603.js.map index e4433072..904375ec 100644 --- a/static/js/manifest.0f56012b6c6c48327603.js.map +++ b/static/js/manifest.0f56012b6c6c48327603.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap 4ba2493cbbaa303e0a42"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","5","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,UACAD,EAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EACAJ,EAAAK,QAAA,KAEArB,EAAAsB,IACAN,EAAAO,aAAA,QAAAvB,EAAAsB,IAEAN,EAAAQ,IAAAxB,EAAAyB,EAAA,aAAAtC,EAAA,KAAwEuC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,wBAAiFzC,GAAA,MACzJ,IAAAkC,EAAAQ,WAAAC,EAAA,MAEA,SAAAA,IAEAd,EAAAe,QAAAf,EAAAgB,OAAA,KACAC,aAAAZ,GACA,IAAAa,EAAA1C,EAAAL,GACA,IAAA+C,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAAhD,EAAA,aAEAK,EAAAL,QAAAiD,GAKA,OAfApB,EAAAe,QAAAf,EAAAgB,OAAAF,EAaAjB,EAAAwB,YAAArB,GAEAL,GAIAX,EAAAsC,EAAAxC,EAGAE,EAAAuC,EAAArC,EAGAF,EAAAwC,EAAA,SAAApC,EAAAqC,EAAAC,GACA1C,EAAA2C,EAAAvC,EAAAqC,IACA/C,OAAAkD,eAAAxC,EAAAqC,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMA1C,EAAAgD,EAAA,SAAA3C,GACA,IAAAqC,EAAArC,KAAA4C,WACA,WAA2B,OAAA5C,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAwC,EAAAE,EAAA,IAAAA,GACAA,GAIA1C,EAAA2C,EAAA,SAAAO,EAAAC,GAAsD,OAAAzD,OAAAC,UAAAC,eAAAC,KAAAqD,EAAAC,IAGtDnD,EAAAyB,EAAA,KAGAzB,EAAAoD,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.0f56012b6c6c48327603.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t5: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"c2ffe3c2f5f726c56993\",\"1\":\"bcb01bb85c06b088df74\",\"2\":\"df4a04d77712fe8b0638\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 4ba2493cbbaa303e0a42"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/bootstrap dc67200c4391391c4c76"],"names":["parentJsonpFunction","window","chunkIds","moreModules","executeModules","moduleId","chunkId","result","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","shift","__webpack_require__","s","installedModules","5","exports","module","l","e","installedChunkData","Promise","resolve","promise","reject","head","document","getElementsByTagName","script","createElement","type","charset","async","timeout","nc","setAttribute","src","p","0","1","2","setTimeout","onScriptComplete","onerror","onload","clearTimeout","chunk","Error","undefined","appendChild","m","c","d","name","getter","o","defineProperty","configurable","enumerable","get","n","__esModule","object","property","oe","err","console","error"],"mappings":"aACA,IAAAA,EAAAC,OAAA,aACAA,OAAA,sBAAAC,EAAAC,EAAAC,GAIA,IADA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,EAAAC,KACQD,EAAAN,EAAAQ,OAAoBF,IAC5BF,EAAAJ,EAAAM,GACAG,EAAAL,IACAG,EAAAG,KAAAD,EAAAL,GAAA,IAEAK,EAAAL,GAAA,EAEA,IAAAD,KAAAF,EACAU,OAAAC,UAAAC,eAAAC,KAAAb,EAAAE,KACAY,EAAAZ,GAAAF,EAAAE,IAIA,IADAL,KAAAE,EAAAC,EAAAC,GACAK,EAAAC,QACAD,EAAAS,OAAAT,GAEA,GAAAL,EACA,IAAAI,EAAA,EAAYA,EAAAJ,EAAAM,OAA2BF,IACvCD,EAAAY,IAAAC,EAAAhB,EAAAI,IAGA,OAAAD,GAIA,IAAAc,KAGAV,GACAW,EAAA,GAIA,SAAAH,EAAAd,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAkB,QAGA,IAAAC,EAAAH,EAAAhB,IACAG,EAAAH,EACAoB,GAAA,EACAF,YAUA,OANAN,EAAAZ,GAAAW,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAA,SAAApB,GACA,IAAAqB,EAAAhB,EAAAL,GACA,OAAAqB,EACA,WAAAC,QAAA,SAAAC,GAA0CA,MAI1C,GAAAF,EACA,OAAAA,EAAA,GAIA,IAAAG,EAAA,IAAAF,QAAA,SAAAC,EAAAE,GACAJ,EAAAhB,EAAAL,IAAAuB,EAAAE,KAEAJ,EAAA,GAAAG,EAGA,IAAAE,EAAAC,SAAAC,qBAAA,WACAC,EAAAF,SAAAG,cAAA,UACAD,EAAAE,KAAA,kBACAF,EAAAG,QAAA,QACAH,EAAAI,OAAA,EACAJ,EAAAK,QAAA,KAEArB,EAAAsB,IACAN,EAAAO,aAAA,QAAAvB,EAAAsB,IAEAN,EAAAQ,IAAAxB,EAAAyB,EAAA,aAAAtC,EAAA,KAAwEuC,EAAA,uBAAAC,EAAA,uBAAAC,EAAA,wBAAiFzC,GAAA,MACzJ,IAAAkC,EAAAQ,WAAAC,EAAA,MAEA,SAAAA,IAEAd,EAAAe,QAAAf,EAAAgB,OAAA,KACAC,aAAAZ,GACA,IAAAa,EAAA1C,EAAAL,GACA,IAAA+C,IACAA,GACAA,EAAA,OAAAC,MAAA,iBAAAhD,EAAA,aAEAK,EAAAL,QAAAiD,GAKA,OAfApB,EAAAe,QAAAf,EAAAgB,OAAAF,EAaAjB,EAAAwB,YAAArB,GAEAL,GAIAX,EAAAsC,EAAAxC,EAGAE,EAAAuC,EAAArC,EAGAF,EAAAwC,EAAA,SAAApC,EAAAqC,EAAAC,GACA1C,EAAA2C,EAAAvC,EAAAqC,IACA/C,OAAAkD,eAAAxC,EAAAqC,GACAI,cAAA,EACAC,YAAA,EACAC,IAAAL,KAMA1C,EAAAgD,EAAA,SAAA3C,GACA,IAAAqC,EAAArC,KAAA4C,WACA,WAA2B,OAAA5C,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAwC,EAAAE,EAAA,IAAAA,GACAA,GAIA1C,EAAA2C,EAAA,SAAAO,EAAAC,GAAsD,OAAAzD,OAAAC,UAAAC,eAAAC,KAAAqD,EAAAC,IAGtDnD,EAAAyB,EAAA,KAGAzB,EAAAoD,GAAA,SAAAC,GAA8D,MAApBC,QAAAC,MAAAF,GAAoBA","file":"static/js/manifest.0f56012b6c6c48327603.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tvar parentJsonpFunction = window[\"webpackJsonp\"];\n \twindow[\"webpackJsonp\"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) {\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [], result;\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules, executeModules);\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n \t\tif(executeModules) {\n \t\t\tfor(i=0; i < executeModules.length; i++) {\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = executeModules[i]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t};\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// objects to store loaded and loading chunks\n \tvar installedChunks = {\n \t\t5: 0\n \t};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData === 0) {\n \t\t\treturn new Promise(function(resolve) { resolve(); });\n \t\t}\n\n \t\t// a Promise means \"currently loading\".\n \t\tif(installedChunkData) {\n \t\t\treturn installedChunkData[2];\n \t\t}\n\n \t\t// setup Promise in chunk cache\n \t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t});\n \t\tinstalledChunkData[2] = promise;\n\n \t\t// start chunk loading\n \t\tvar head = document.getElementsByTagName('head')[0];\n \t\tvar script = document.createElement('script');\n \t\tscript.type = \"text/javascript\";\n \t\tscript.charset = 'utf-8';\n \t\tscript.async = true;\n \t\tscript.timeout = 120000;\n\n \t\tif (__webpack_require__.nc) {\n \t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t}\n \t\tscript.src = __webpack_require__.p + \"static/js/\" + chunkId + \".\" + {\"0\":\"c2ffe3c2f5f726c56993\",\"1\":\"bcb01bb85c06b088df74\",\"2\":\"df4a04d77712fe8b0638\"}[chunkId] + \".js\";\n \t\tvar timeout = setTimeout(onScriptComplete, 120000);\n \t\tscript.onerror = script.onload = onScriptComplete;\n \t\tfunction onScriptComplete() {\n \t\t\t// avoid mem leaks in IE.\n \t\t\tscript.onerror = script.onload = null;\n \t\t\tclearTimeout(timeout);\n \t\t\tvar chunk = installedChunks[chunkId];\n \t\t\tif(chunk !== 0) {\n \t\t\t\tif(chunk) {\n \t\t\t\t\tchunk[1](new Error('Loading chunk ' + chunkId + ' failed.'));\n \t\t\t\t}\n \t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t}\n \t\t};\n \t\thead.appendChild(script);\n\n \t\treturn promise;\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"./\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap dc67200c4391391c4c76"],"sourceRoot":""} \ No newline at end of file