Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions python/valuecell/agents/common/trading/execution/ccxt_trading.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,8 @@ async def create_ccxt_gateway(
api_key: str,
secret_key: str,
passphrase: Optional[str] = None,
wallet_address: Optional[str] = None,
private_key: Optional[str] = None,
testnet: bool = False,
market_type: str = "swap",
margin_mode: str = "cross",
Expand All @@ -1381,10 +1383,12 @@ async def create_ccxt_gateway(
"""Factory function to create and initialize a CCXT execution gateway.

Args:
exchange_id: Exchange identifier (e.g., 'binance', 'okx', 'bybit')
api_key: API key for authentication
secret_key: Secret key for authentication
exchange_id: Exchange identifier (e.g., 'binance', 'okx', 'bybit', 'hyperliquid')
api_key: API key for authentication (not required for Hyperliquid)
secret_key: Secret key for authentication (not required for Hyperliquid)
passphrase: Optional passphrase (required for OKX)
wallet_address: Wallet address (required for Hyperliquid)
private_key: Private key (required for Hyperliquid)
testnet: Whether to use testnet/sandbox mode
market_type: Market type ('spot', 'future', 'swap')
margin_mode: Margin mode ('isolated' or 'cross')
Expand All @@ -1410,6 +1414,8 @@ async def create_ccxt_gateway(
api_key=api_key,
secret_key=secret_key,
passphrase=passphrase,
wallet_address=wallet_address,
private_key=private_key,
testnet=testnet,
default_type=market_type,
margin_mode=margin_mode,
Expand Down