account-config-example.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. {
  2. "accounts": [
  3. {
  4. "id": "hedge-account-1",
  5. "name": "HedgeLong1",
  6. "privateKey": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
  7. "publicKey": "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6",
  8. "initialUSDC": 10000,
  9. "riskLimits": {
  10. "maxPositionSize": 0.1,
  11. "maxDailyLoss": 0.05,
  12. "maxLeverage": 10,
  13. "stopLossThreshold": 0.05,
  14. "maxSlippage": 0.001,
  15. "minMarginRatio": 0.15
  16. },
  17. "isActive": true,
  18. "createdAt": "2024-12-19T10:00:00.000Z",
  19. "lastUpdated": "2024-12-19T10:00:00.000Z"
  20. },
  21. {
  22. "id": "hedge-account-2",
  23. "name": "HedgeShort1",
  24. "privateKey": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
  25. "publicKey": "0x8ba1f109551bD432803012645Hac136c0c8b3488",
  26. "initialUSDC": 10000,
  27. "riskLimits": {
  28. "maxPositionSize": 0.1,
  29. "maxDailyLoss": 0.05,
  30. "maxLeverage": 10,
  31. "stopLossThreshold": 0.05,
  32. "maxSlippage": 0.001,
  33. "minMarginRatio": 0.15
  34. },
  35. "isActive": true,
  36. "createdAt": "2024-12-19T10:00:00.000Z",
  37. "lastUpdated": "2024-12-19T10:00:00.000Z"
  38. },
  39. {
  40. "id": "hedge-account-3",
  41. "name": "HedgeLong2",
  42. "privateKey": "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba",
  43. "publicKey": "0x9f8e7d6c5b4a3928171615141312111098765432",
  44. "initialUSDC": 10000,
  45. "riskLimits": {
  46. "maxPositionSize": 0.1,
  47. "maxDailyLoss": 0.05,
  48. "maxLeverage": 10,
  49. "stopLossThreshold": 0.05,
  50. "maxSlippage": 0.001,
  51. "minMarginRatio": 0.15
  52. },
  53. "isActive": true,
  54. "createdAt": "2024-12-19T10:00:00.000Z",
  55. "lastUpdated": "2024-12-19T10:00:00.000Z"
  56. },
  57. {
  58. "id": "hedge-account-4",
  59. "name": "HedgeShort2",
  60. "privateKey": "0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321",
  61. "publicKey": "0x1234567890abcdef1234567890abcdef12345678",
  62. "initialUSDC": 10000,
  63. "riskLimits": {
  64. "maxPositionSize": 0.1,
  65. "maxDailyLoss": 0.05,
  66. "maxLeverage": 10,
  67. "stopLossThreshold": 0.05,
  68. "maxSlippage": 0.001,
  69. "minMarginRatio": 0.15
  70. },
  71. "isActive": true,
  72. "createdAt": "2024-12-19T10:00:00.000Z",
  73. "lastUpdated": "2024-12-19T10:00:00.000Z"
  74. }
  75. ],
  76. "hedgingSessions": [
  77. {
  78. "id": "session-eth-usd-1",
  79. "name": "ETH-USD-Hedging-Session-1",
  80. "accountIds": ["hedge-account-1", "hedge-account-2"],
  81. "volumeTarget": 100000,
  82. "strategy": {
  83. "name": "BasicHedgingStrategy",
  84. "symbol": "ETH/USD",
  85. "volumeDistribution": "equal",
  86. "priceRange": {
  87. "min": 0.0001,
  88. "max": 0.0005
  89. },
  90. "timing": {
  91. "minInterval": 5,
  92. "maxInterval": 15,
  93. "orderSize": {
  94. "min": 0.1,
  95. "max": 0.5
  96. }
  97. },
  98. "riskLimits": {
  99. "maxPositionSize": 0.1,
  100. "stopLossThreshold": 0.05,
  101. "maxSlippage": 0.001
  102. }
  103. },
  104. "status": "active",
  105. "createdAt": "2024-12-19T10:00:00.000Z",
  106. "lastUpdated": "2024-12-19T10:00:00.000Z"
  107. },
  108. {
  109. "id": "session-eth-usd-2",
  110. "name": "ETH-USD-Hedging-Session-2",
  111. "accountIds": ["hedge-account-3", "hedge-account-4"],
  112. "volumeTarget": 100000,
  113. "strategy": {
  114. "name": "BasicHedgingStrategy",
  115. "symbol": "ETH/USD",
  116. "volumeDistribution": "equal",
  117. "priceRange": {
  118. "min": 0.0001,
  119. "max": 0.0005
  120. },
  121. "timing": {
  122. "minInterval": 5,
  123. "maxInterval": 15,
  124. "orderSize": {
  125. "min": 0.1,
  126. "max": 0.5
  127. }
  128. },
  129. "riskLimits": {
  130. "maxPositionSize": 0.1,
  131. "stopLossThreshold": 0.05,
  132. "maxSlippage": 0.001
  133. }
  134. },
  135. "status": "active",
  136. "createdAt": "2024-12-19T10:00:00.000Z",
  137. "lastUpdated": "2024-12-19T10:00:00.000Z"
  138. }
  139. ],
  140. "riskProfiles": {
  141. "conservative": {
  142. "maxPositionSize": 0.05,
  143. "maxDailyLoss": 0.02,
  144. "maxLeverage": 5,
  145. "stopLossThreshold": 0.02,
  146. "maxSlippage": 0.0005,
  147. "minMarginRatio": 0.2
  148. },
  149. "moderate": {
  150. "maxPositionSize": 0.1,
  151. "maxDailyLoss": 0.05,
  152. "maxLeverage": 10,
  153. "stopLossThreshold": 0.05,
  154. "maxSlippage": 0.001,
  155. "minMarginRatio": 0.15
  156. },
  157. "aggressive": {
  158. "maxPositionSize": 0.2,
  159. "maxDailyLoss": 0.1,
  160. "maxLeverage": 20,
  161. "stopLossThreshold": 0.1,
  162. "maxSlippage": 0.002,
  163. "minMarginRatio": 0.1
  164. }
  165. },
  166. "metadata": {
  167. "version": "1.0.0",
  168. "createdAt": "2024-12-19T10:00:00.000Z",
  169. "description": "Pacifica多账户对冲系统配置示例",
  170. "totalAccounts": 4,
  171. "totalSessions": 2,
  172. "totalVolumeTarget": 200000
  173. }
  174. }