123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- {
- "accounts": [
- {
- "id": "hedge-account-1",
- "name": "HedgeLong1",
- "privateKey": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
- "publicKey": "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6",
- "initialUSDC": 10000,
- "riskLimits": {
- "maxPositionSize": 0.1,
- "maxDailyLoss": 0.05,
- "maxLeverage": 10,
- "stopLossThreshold": 0.05,
- "maxSlippage": 0.001,
- "minMarginRatio": 0.15
- },
- "isActive": true,
- "createdAt": "2024-12-19T10:00:00.000Z",
- "lastUpdated": "2024-12-19T10:00:00.000Z"
- },
- {
- "id": "hedge-account-2",
- "name": "HedgeShort1",
- "privateKey": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
- "publicKey": "0x8ba1f109551bD432803012645Hac136c0c8b3488",
- "initialUSDC": 10000,
- "riskLimits": {
- "maxPositionSize": 0.1,
- "maxDailyLoss": 0.05,
- "maxLeverage": 10,
- "stopLossThreshold": 0.05,
- "maxSlippage": 0.001,
- "minMarginRatio": 0.15
- },
- "isActive": true,
- "createdAt": "2024-12-19T10:00:00.000Z",
- "lastUpdated": "2024-12-19T10:00:00.000Z"
- },
- {
- "id": "hedge-account-3",
- "name": "HedgeLong2",
- "privateKey": "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba",
- "publicKey": "0x9f8e7d6c5b4a3928171615141312111098765432",
- "initialUSDC": 10000,
- "riskLimits": {
- "maxPositionSize": 0.1,
- "maxDailyLoss": 0.05,
- "maxLeverage": 10,
- "stopLossThreshold": 0.05,
- "maxSlippage": 0.001,
- "minMarginRatio": 0.15
- },
- "isActive": true,
- "createdAt": "2024-12-19T10:00:00.000Z",
- "lastUpdated": "2024-12-19T10:00:00.000Z"
- },
- {
- "id": "hedge-account-4",
- "name": "HedgeShort2",
- "privateKey": "0xfedcba0987654321fedcba0987654321fedcba0987654321fedcba0987654321",
- "publicKey": "0x1234567890abcdef1234567890abcdef12345678",
- "initialUSDC": 10000,
- "riskLimits": {
- "maxPositionSize": 0.1,
- "maxDailyLoss": 0.05,
- "maxLeverage": 10,
- "stopLossThreshold": 0.05,
- "maxSlippage": 0.001,
- "minMarginRatio": 0.15
- },
- "isActive": true,
- "createdAt": "2024-12-19T10:00:00.000Z",
- "lastUpdated": "2024-12-19T10:00:00.000Z"
- }
- ],
- "hedgingSessions": [
- {
- "id": "session-eth-usd-1",
- "name": "ETH-USD-Hedging-Session-1",
- "accountIds": ["hedge-account-1", "hedge-account-2"],
- "volumeTarget": 100000,
- "strategy": {
- "name": "BasicHedgingStrategy",
- "symbol": "ETH/USD",
- "volumeDistribution": "equal",
- "priceRange": {
- "min": 0.0001,
- "max": 0.0005
- },
- "timing": {
- "minInterval": 5,
- "maxInterval": 15,
- "orderSize": {
- "min": 0.1,
- "max": 0.5
- }
- },
- "riskLimits": {
- "maxPositionSize": 0.1,
- "stopLossThreshold": 0.05,
- "maxSlippage": 0.001
- }
- },
- "status": "active",
- "createdAt": "2024-12-19T10:00:00.000Z",
- "lastUpdated": "2024-12-19T10:00:00.000Z"
- },
- {
- "id": "session-eth-usd-2",
- "name": "ETH-USD-Hedging-Session-2",
- "accountIds": ["hedge-account-3", "hedge-account-4"],
- "volumeTarget": 100000,
- "strategy": {
- "name": "BasicHedgingStrategy",
- "symbol": "ETH/USD",
- "volumeDistribution": "equal",
- "priceRange": {
- "min": 0.0001,
- "max": 0.0005
- },
- "timing": {
- "minInterval": 5,
- "maxInterval": 15,
- "orderSize": {
- "min": 0.1,
- "max": 0.5
- }
- },
- "riskLimits": {
- "maxPositionSize": 0.1,
- "stopLossThreshold": 0.05,
- "maxSlippage": 0.001
- }
- },
- "status": "active",
- "createdAt": "2024-12-19T10:00:00.000Z",
- "lastUpdated": "2024-12-19T10:00:00.000Z"
- }
- ],
- "riskProfiles": {
- "conservative": {
- "maxPositionSize": 0.05,
- "maxDailyLoss": 0.02,
- "maxLeverage": 5,
- "stopLossThreshold": 0.02,
- "maxSlippage": 0.0005,
- "minMarginRatio": 0.2
- },
- "moderate": {
- "maxPositionSize": 0.1,
- "maxDailyLoss": 0.05,
- "maxLeverage": 10,
- "stopLossThreshold": 0.05,
- "maxSlippage": 0.001,
- "minMarginRatio": 0.15
- },
- "aggressive": {
- "maxPositionSize": 0.2,
- "maxDailyLoss": 0.1,
- "maxLeverage": 20,
- "stopLossThreshold": 0.1,
- "maxSlippage": 0.002,
- "minMarginRatio": 0.1
- }
- },
- "metadata": {
- "version": "1.0.0",
- "createdAt": "2024-12-19T10:00:00.000Z",
- "description": "Pacifica多账户对冲系统配置示例",
- "totalAccounts": 4,
- "totalSessions": 2,
- "totalVolumeTarget": 200000
- }
- }
|