credential-manager.example.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "accounts": [
  3. {
  4. "id": "pacifica-main",
  5. "name": "Pacifica Main Trading Account",
  6. "platform": "PACIFICA",
  7. "enabled": true,
  8. "credentials": {
  9. "type": "ed25519",
  10. "privateKey": "f26670e2ca334117f8859f9f32e50251641953a30b54f6ffcf82db836cfdfea5"
  11. }
  12. },
  13. {
  14. "id": "pacifica-backup",
  15. "name": "Pacifica Backup Account",
  16. "platform": "PACIFICA",
  17. "enabled": true,
  18. "credentials": {
  19. "type": "ed25519",
  20. "privateKey": "a26670e2ca334117f8859f9f32e50251641953a30b54f6ffcf82db836cfdfea5"
  21. }
  22. },
  23. {
  24. "id": "aster-main",
  25. "name": "Aster Main Account",
  26. "platform": "ASTER",
  27. "enabled": true,
  28. "credentials": {
  29. "type": "secp256k1",
  30. "privateKey": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
  31. }
  32. },
  33. {
  34. "id": "binance-spot",
  35. "name": "Binance Spot Trading",
  36. "platform": "BINANCE",
  37. "enabled": true,
  38. "credentials": {
  39. "type": "hmac",
  40. "apiKey": "your-binance-api-key-here",
  41. "secretKey": "your-binance-secret-key-here"
  42. }
  43. }
  44. ],
  45. "hedging": {
  46. "platforms": {
  47. "PACIFICA": {
  48. "enabled": true,
  49. "primaryAccounts": ["pacifica-main"],
  50. "backupAccounts": ["pacifica-backup"],
  51. "loadBalanceStrategy": "round-robin",
  52. "healthCheckInterval": 30000,
  53. "failoverThreshold": 3
  54. },
  55. "ASTER": {
  56. "enabled": true,
  57. "primaryAccounts": ["aster-main"],
  58. "backupAccounts": [],
  59. "loadBalanceStrategy": "weighted",
  60. "healthCheckInterval": 30000,
  61. "failoverThreshold": 2
  62. },
  63. "BINANCE": {
  64. "enabled": true,
  65. "primaryAccounts": ["binance-spot"],
  66. "backupAccounts": [],
  67. "loadBalanceStrategy": "least-used",
  68. "healthCheckInterval": 15000,
  69. "failoverThreshold": 2
  70. }
  71. },
  72. "hedging": {
  73. "enableCrossplatformBalancing": true,
  74. "maxAccountsPerPlatform": 10,
  75. "reservationTimeoutMs": 60000
  76. }
  77. }
  78. }