coin.html 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Coin主页</title>
  5. <meta name="referrer" content="never">
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta http-equiv="cache-control" content="no-cache">
  9. <meta http-equiv="expires" content="0">
  10. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  11. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  12. <link rel="shortcut icon" href="cover/bitcoin.ico" type="image/x-icon">
  13. <script src="js/jquery-3.6.0.min.js"></script>
  14. <script type="text/javascript" src="js/my-coin.js"></script>
  15. </head>
  16. <style type="text/css">
  17. .font {
  18. color: blue;
  19. }
  20. .dynamic_hide {
  21. display: none;
  22. }
  23. </style>
  24. <script type="text/javascript">
  25. function show() {
  26. var my = document.getElementById("my");
  27. if (my.className.indexOf("dynamic_hide") > -1) {
  28. my.classList.remove("dynamic_hide");
  29. } else {
  30. my.classList.add("dynamic_hide");
  31. }
  32. }
  33. </script>
  34. <body>
  35. <span>Hello <font id="myc" style="cursor: pointer;" onclick="show()">W</font>orld!</span>
  36. <div id="my" class="dynamic_hide">
  37. <hr/>
  38. <div style="margin-right:20px;">
  39. <span class="font aaa">获取全部合约仓位信息V2</span>
  40. <button id="findAllPositionv2-1">展开</button>
  41. <button id="findAllPositionv2-2">实时启动</button>
  42. <button id="findAllPositionv2-3">实时停止</button>
  43. <input type="text" style="width: 100px;" class="bbb">
  44. </div>
  45. <div id="content" style="display: none;">
  46. total:<span id="contentSPAN">0</span>
  47. <table border="1" cellspacing="0">
  48. <thead>
  49. <tr id="contentTH">
  50. <th ccc="symbol">币对名称</th>
  51. <th ccc="marginCoin">保证金币种</th>
  52. <th ccc="holdSide">持仓方向</th>
  53. <th ccc="openDelegateCount">当前委托待成交的数量</th>
  54. <th ccc="margin">保证金数量</th>
  55. <th ccc="autoMargin">自动追加保证金</th>
  56. <th ccc="available">仓位可用</th>
  57. <th ccc="locked">仓位冻结</th>
  58. <th ccc="total">仓位总数量</th>
  59. <th ccc="leverage">杠杆倍数</th>
  60. <th ccc="achievedProfits">已实现盈亏</th>
  61. <th ccc="averageOpenPrice">平均开仓价</th>
  62. <th ccc="marginMode">保证金模式</th>
  63. <th ccc="holdMode">持仓模式</th>
  64. <th ccc="unrealizedPL">未实现盈亏</th>
  65. <th ccc="liquidationPrice">预估强平价</th>
  66. <th ccc="keepMarginRate">维持保证金率</th>
  67. <th ccc="marketPrice">标记价格</th>
  68. <th ccc="cTime">最近更新时间</th>
  69. </tr>
  70. </thead>
  71. <tbody id="contentTD">
  72. </tbody>
  73. </table>
  74. </div>
  75. </div>
  76. </body>
  77. </html>