# Open Broker - Environment Variables
# Copy this file to .env in the project root and fill in your values:
#   cp config/example.env .env

# Required: Your wallet private key (64 hex chars with 0x prefix)
# WARNING: Keep this secret! Never commit .env to git
HYPERLIQUID_PRIVATE_KEY=0x...

# Optional: Network (mainnet or testnet)
# Default: mainnet
HYPERLIQUID_NETWORK=mainnet

# =============================================================================
# API Wallet Setup (Optional)
# =============================================================================
# To use an API wallet (recommended for automated trading):
# 1. Generate a new wallet for signing (the "API wallet")
# 2. Approve it as an agent on your main account via Hyperliquid UI
# 3. Set HYPERLIQUID_PRIVATE_KEY to the API wallet's key
# 4. Set HYPERLIQUID_ACCOUNT_ADDRESS to your main account address
#
# IMPORTANT: Builder fee approval must be done with the MAIN wallet first!
# After approval, you can switch to using the API wallet for trading.
#
# HYPERLIQUID_ACCOUNT_ADDRESS=0x...

# =============================================================================
# Builder Fee Configuration
# =============================================================================
# Open Broker uses builder codes to fund development.
# Default builder: 0xbb67021fA3e62ab4DA985bb5a55c5c1884381068
#
# Custom builder address (optional):
# BUILDER_ADDRESS=0x...
#
# Builder fee in tenths of basis points (10 = 1 bps = 0.01%)
# Default: 10
# BUILDER_FEE=10

# =============================================================================
# Trading Configuration
# =============================================================================
# Default slippage for market orders in basis points
# Default: 50 (0.5%)
# SLIPPAGE_BPS=50

# Enable verbose/debug logging
# VERBOSE=1
