config.sample.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. stale_price_threshold_seconds = 5
  2. prometheus_port = 9090
  3. [hyperliquid]
  4. hyperliquid_ws_urls = ["wss://api.hyperliquid-testnet.xyz/ws"]
  5. market_name = "pyth"
  6. asset_context_symbols = ["BTC"]
  7. use_testnet = false
  8. oracle_pusher_key_path = "/path/to/oracle_pusher_key.txt"
  9. publish_interval = 3.0
  10. publish_timeout = 5.0
  11. enable_publish = false
  12. [multisig]
  13. enable_multisig = false
  14. [kms]
  15. enable_kms = false
  16. aws_kms_key_id_path = "/path/to/aws_kms_key_id.txt"
  17. [lazer]
  18. lazer_urls = ["wss://pyth-lazer-0.dourolabs.app/v1/stream", "wss://pyth-lazer-1.dourolabs.app/v1/stream"]
  19. lazer_api_key = "lazer_api_key"
  20. feed_ids = [1, 8] # BTC, USDT
  21. [hermes]
  22. hermes_urls = ["wss://hermes.pyth.network/ws"]
  23. feed_ids = [
  24. "e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43", # BTC
  25. "2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b" # USDT
  26. ]
  27. [price.oracle]
  28. BTC = [
  29. { source_type = "single", source = { source_name = "hl_oracle", source_id = "BTC" } },
  30. { source_type = "pair", base_source = { source_name = "lazer", source_id = 1, exponent = -8 }, quote_source = { source_name = "lazer", source_id = 8, exponent = -8 } },
  31. { source_type = "pair", base_source = { source_name = "hermes", source_id = "e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43", exponent = -8 }, quote_source = { source_name = "hermes", source_id = "2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b", exponent = -8 } },
  32. ]
  33. [price.external]
  34. BTC = [{ source_type = "single", source = { source_name = "hl_mark", source_id = "BTC" } }]
  35. PYTH = [{ source_type = "constant", value = "0.10" }]
  36. FOGO = [{ source_type = "constant", value = "0.01" }]