仓位管理
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>仓位管理</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/admin/swap/account/page-query</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;data&quot; : {
&quot;content&quot; : [ {
&quot;currentPriceMap&quot; : {
&quot;ADA/USDT&quot; : 0.3382,
&quot;DOT/USDT&quot; : 4.136,
&quot;LINK/USDT&quot; : 10.421,
&quot;ETC/USDT&quot; : 18.24,
&quot;BTC/USDT&quot; : 56403.6,
&quot;CHZ/USDT&quot; : 0.05185,
&quot;TRX/USDT&quot; : 0.15203,
&quot;EOS/USDT&quot; : 0.4804,
&quot;ALGO/USDT&quot; : 0.126,
&quot;AAVE/USDT&quot; : 150.21,
&quot;XRP/USDT&quot; : 0.5317,
&quot;AXS/USDT&quot; : 4.458,
&quot;SUSHI/USDT&quot; : 0.6046,
&quot;SOL/USDT&quot; : 131.78,
&quot;FIL/USDT&quot; : 3.563,
&quot;ETH/USDT&quot; : 2333.17,
&quot;LTC/USDT&quot; : 61.7,
&quot;DOGE/USDT&quot; : 0.09995,
&quot;BNB/USDT&quot; : 510.8,
&quot;BCH/USDT&quot; : 322.6,
&quot;APE/USDT&quot; : 0.7987,
&quot;ATOM/USDT&quot; : 4.085
},
&quot;blastMarginRate&quot; : 20,
&quot;optionPurse&quot; : null,
&quot;walletList&quot; : [ ],
&quot;todayRevenue&quot; : null,
&quot;yesterdayBalance&quot; : null,
&quot;todayDeposit&quot; : null,
&quot;currentTodayRevenue&quot; : null,
&quot;username&quot; : &quot;18566655516&quot;,
&quot;cashBalance&quot; : 100.00654282,
&quot;followBalance&quot; : null,
&quot;optionBalance&quot; : null,
&quot;id&quot; : 800001,
&quot;balance&quot; : 141097.82808265,
&quot;frozenBalance&quot; : 0E-8,
&quot;totalFrozenBalance&quot; : null,
&quot;frozenMargin&quot; : 3E-8,
&quot;positionType&quot; : 0,
&quot;moneyType&quot; : 1,
&quot;isSupervised&quot; : 0,
&quot;currentPositionWithCutList&quot; : [ {
&quot;id&quot; : 186247,
&quot;memberId&quot; : 800001,
&quot;leverage&quot; : 200.00,
&quot;totalPosition&quot; : 10.00000000,
&quot;openPrice&quot; : 2312.67687300,
&quot;closedOpenPrice&quot; : null,
&quot;closePrice&quot; : null,
&quot;principalAmount&quot; : 115.63384365,
&quot;totalPrincipalAmount&quot; : 115.63384365,
&quot;frozenPosition&quot; : 0E-8,
&quot;closedPosition&quot; : 0E-8,
&quot;type&quot; : 0,
&quot;moneyType&quot; : 1,
&quot;direction&quot; : &quot;SELL&quot;,
&quot;usdtProfit&quot; : 0E-8,
&quot;shareNumber&quot; : 500.00000000,
&quot;status&quot; : &quot;STARTED&quot;,
&quot;coin&quot; : {
&quot;id&quot; : 2,
&quot;name&quot; : &quot;ETH永续合约&quot;,
&quot;symbol&quot; : &quot;ETH/USDT&quot;,
&quot;coinSymbol&quot; : &quot;ETH&quot;,
&quot;baseSymbol&quot; : &quot;USDT&quot;,
&quot;sort&quot; : 2,
&quot;coinScale&quot; : 2,
&quot;baseCoinScale&quot; : 4,
&quot;type&quot; : &quot;PERPETUAL&quot;,
&quot;enable&quot; : 1,
&quot;visible&quot; : 1,
&quot;exchangeable&quot; : 1,
&quot;enableOpenSell&quot; : 1,
&quot;enableOpenBuy&quot; : 1,
&quot;enableMarketSell&quot; : 1,
&quot;enableMarketBuy&quot; : 1,
&quot;enableTriggerEntrust&quot; : 1,
&quot;spreadType&quot; : 1,
&quot;spread&quot; : 0.00001000,
&quot;leverageType&quot; : 2,
&quot;leverage&quot; : &quot;10,20,30,50,100,200,1200&quot;,
&quot;shareNumber&quot; : 500.00000000,
&quot;minShare&quot; : 0.10000000,
&quot;maxShare&quot; : 10000.00000000,
&quot;intervalHour&quot; : 1,
&quot;feePercent&quot; : 0.01911000,
&quot;maintenanceMarginRate&quot; : 0.01000000,
&quot;openFee&quot; : 0.00050000,
&quot;closeFee&quot; : 0.00050000,
&quot;takerFee&quot; : 0.00100000,
&quot;makerFee&quot; : 0.00100000,
&quot;followFee&quot; : 0.00025000,
&quot;totalProfit&quot; : 507432.65406077,
&quot;totalLoss&quot; : 577870.04096583,
&quot;totalOpenFee&quot; : 0E-8,
&quot;totalCloseFee&quot; : 213400.30785309,
&quot;currentTime&quot; : null,
&quot;currentPrice&quot; : null,
&quot;usdtRate&quot; : 6.42,
&quot;maxTotalShare&quot; : 2000000.00000000,
&quot;minScale&quot; : 1
},
&quot;createTime&quot; : &quot;2024-08-05 18:00:08&quot;,
&quot;openTime&quot; : &quot;2024-08-05 18:00:08&quot;,
&quot;latestOpenTime&quot; : &quot;2024-08-05 18:00:08&quot;,
&quot;closeTime&quot; : null,
&quot;openType&quot; : 0,
&quot;closeType&quot; : null,
&quot;decimalScale&quot; : 1,
&quot;commissionFee&quot; : 11.56338437,
&quot;blastedAmount&quot; : null,
&quot;isLock&quot; : null,
&quot;violateTime&quot; : null,
&quot;currentPrice&quot; : 2333.17,
&quot;followOrderId&quot; : null,
&quot;followPositionId&quot; : null,
&quot;dividendPercent&quot; : null,
&quot;isSpecial&quot; : null,
&quot;loadUser&quot; : false,
&quot;usdtBuyPosition&quot; : null,
&quot;marginDifference&quot; : null,
&quot;cutList&quot; : [ {
&quot;id&quot; : 1577989,
&quot;contractId&quot; : 2,
&quot;memberId&quot; : 800001,
&quot;positionId&quot; : 186247,
&quot;contractOrderEntrustId&quot; : &quot;CE172285200840974&quot;,
&quot;patterns&quot; : &quot;CROSSED&quot;,
&quot;entrustType&quot; : &quot;CLOSE&quot;,
&quot;direction&quot; : &quot;BUY&quot;,
&quot;type&quot; : &quot;SPOT_LIMIT&quot;,
&quot;symbol&quot; : &quot;ETH/USDT&quot;,
&quot;coinSymbol&quot; : &quot;ETH&quot;,
&quot;baseSymbol&quot; : &quot;USDT&quot;,
&quot;triggerPrice&quot; : null,
&quot;entrustPrice&quot; : null,
&quot;lossPrice&quot; : 5000.00000000,
&quot;lossEntrustPrice&quot; : null,
&quot;profitPrice&quot; : 2000.00000000,
&quot;profitEntrustPrice&quot; : null,
&quot;tradedPrice&quot; : 0E-8,
&quot;principalUnit&quot; : &quot;USDT&quot;,
&quot;principalAmount&quot; : 0E-8,
&quot;currentPrice&quot; : 2312.67687300,
&quot;openFee&quot; : null,
&quot;closeFee&quot; : 2.50000000,
&quot;shareNumber&quot; : 500.00000000,
&quot;volume&quot; : 10.00000000,
&quot;tradedVolume&quot; : 0E-8,
&quot;profitAndLoss&quot; : 0E-8,
&quot;status&quot; : &quot;ENTRUST_ING&quot;,
&quot;createTime&quot; : 1722852008409,
&quot;triggeringTime&quot; : 0,
&quot;isFromSpot&quot; : 1,
&quot;isBlast&quot; : 0,
&quot;isReward&quot; : 0,
&quot;isCut&quot; : 1,
&quot;isOneClose&quot; : 0,
&quot;isMarketAllClose&quot; : 0,
&quot;isLimitPrice&quot; : 0,
&quot;usdtOpenTime&quot; : null,
&quot;usdtOpenPrice&quot; : 2312.67687300,
&quot;isReversedOpen&quot; : 0,
&quot;leverage&quot; : 200,
&quot;dealTime&quot; : null,
&quot;positionType&quot; : 0,
&quot;moneyType&quot; : 1,
&quot;openType&quot; : 0,
&quot;closeType&quot; : 4,
&quot;decimalScale&quot; : 1,
&quot;isPercentage&quot; : null,
&quot;violateTime&quot; : null,
&quot;followId&quot; : null,
&quot;followSystemId&quot; : null,
&quot;dividendPercent&quot; : null,
&quot;isSpecial&quot; : null,
&quot;percentageVolume&quot; : null,
&quot;cutType&quot; : null,
&quot;cutMold&quot; : null,
&quot;followMemberId&quot; : null,
&quot;isSpotLimitOrder&quot; : 0,
&quot;isSpotLimitOrderMsg&quot; : null,
&quot;loadUser&quot; : false
} ],
&quot;estimatedBlastPrice&quot; : 16420.1265006807,
&quot;marginRate&quot; : 120773.79,
&quot;currencyBalance&quot; : null,
&quot;contractBalance&quot; : null,
&quot;followCount&quot; : null,
&quot;currentMargin&quot; : 116.65850000,
&quot;currentPosition&quot; : 1E+1,
&quot;availablePosition&quot; : 1E+1,
&quot;currentOpenValue&quot; : 23126.7687300,
&quot;currentProfit&quot; : -204.9312700,
&quot;currentMarketValue&quot; : 23331.7
} ],
&quot;currentDate&quot; : null,
&quot;todayInitialCapital&quot; : null,
&quot;spotWallet&quot; : null,
&quot;accountInfoList&quot; : null,
&quot;positionsWithCut&quot; : null,
&quot;currentCapital&quot; : 140892.89681268,
&quot;estimatedBlastRate&quot; : -6.03768971,
&quot;currentMargin&quot; : 116.65850000,
&quot;availableBalance&quot; : 140776.23831265,
&quot;availableBalanceForOpen&quot; : 140892.89681265,
&quot;currentRevenue&quot; : -204.9312700,
&quot;staticBalance&quot; : 141097.82808268,
&quot;currentBalance&quot; : 140981.16958265,
&quot;maketValue&quot; : [ 0, 23331.7 ],
&quot;todayRevenueRate&quot; : 0
} ],
&quot;size&quot; : 15,
&quot;number&quot; : 0
},
&quot;code&quot; : 0,
&quot;message&quot; : &quot;success&quot;,
&quot;totalPage&quot; : null,
&quot;totalElement&quot; : null
}
</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">frozenPosition</td>
<td style="text-align: left;">int</td>
<td>冻结仓位</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>