OrderlyExchangeConfig#
API documentation for tradeexecutor.strategy.freqtrade.config.OrderlyExchangeConfig Python class in Trading Strategy framework.
- class OrderlyExchangeConfig[source]#
Bases:
objectConfiguration for Orderly vault deposits and withdrawals.
Deposit flow: 1. ERC20.approve(vault_address, amount) 2. Vault.deposit((account_id, broker_hash, token_hash, amount))
Withdrawal flow: 1. Vault.withdraw((account_id, broker_hash, token_hash, amount))
broker_hash = keccak256(broker_id) token_hash = keccak256(token_id)
- __init__(vault_address, orderly_account_id, broker_id, token_id=None, fee_tolerance=Decimal('1.0'), confirmation_timeout=600, poll_interval=10)#
Methods
__init__(vault_address, orderly_account_id, ...)Attributes
Orderly vault contract address
Orderly account ID (32 bytes hex)
Broker ID string (will be keccak256 hashed)
Token ID string (will be keccak256 hashed)
Maximum fee variance allowed when confirming deposit/withdrawal (in reserve currency units)
Seconds to wait for balance update after on-chain tx confirms
Seconds between Freqtrade balance checks
- fee_tolerance: Decimal#
Maximum fee variance allowed when confirming deposit/withdrawal (in reserve currency units)
- __init__(vault_address, orderly_account_id, broker_id, token_id=None, fee_tolerance=Decimal('1.0'), confirmation_timeout=600, poll_interval=10)#