perform_test_trade#
API documentation for tradeexecutor.cli.commands.perform_test_trade.perform_test_trade Python function.
- perform_test_trade(id=<typer.models.OptionInfo object>, name=<typer.models.OptionInfo object>, strategy_file=<typer.models.OptionInfo object>, trading_strategy_api_key=<typer.models.OptionInfo object>, state_file=<typer.models.OptionInfo object>, cache_path=<typer.models.OptionInfo object>, log_level=<typer.models.OptionInfo object>, json_rpc_binance=<typer.models.OptionInfo object>, json_rpc_polygon=<typer.models.OptionInfo object>, json_rpc_avalanche=<typer.models.OptionInfo object>, json_rpc_ethereum=<typer.models.OptionInfo object>, json_rpc_arbitrum=<typer.models.OptionInfo object>, json_rpc_anvil=<typer.models.OptionInfo object>, private_key=<typer.models.OptionInfo object>, asset_management_mode=<typer.models.OptionInfo object>, vault_address=<typer.models.OptionInfo object>, vault_adapter_address=<typer.models.OptionInfo object>, vault_payment_forwarder_address=<typer.models.OptionInfo object>, min_gas_balance=<typer.models.OptionInfo object>, max_slippage=<typer.models.OptionInfo object>, confirmation_block_count=<typer.models.OptionInfo object>, confirmation_timeout=<typer.models.OptionInfo object>, test_evm_uniswap_v2_router=<typer.models.OptionInfo object>, test_evm_uniswap_v2_factory=<typer.models.OptionInfo object>, test_evm_uniswap_v2_init_code_hash=<typer.models.OptionInfo object>, unit_testing=<typer.models.OptionInfo object>, pair=<typer.models.OptionInfo object>, all_pairs=<typer.models.OptionInfo object>, buy_only=<typer.models.OptionInfo object>, test_short=<typer.models.OptionInfo object>, test_credit_supply=<typer.models.OptionInfo object>, simulate=<typer.models.OptionInfo object>)[source]#
Perform a small test swap.
Tests that the private wallet and the exchange can trade by making 1 USD trade using the routing configuration from the strategy.
The trade will be recorded on the state as a position.
- Parameters:
id (str) –
strategy_file (Path) –
trading_strategy_api_key (str) –
log_level (str) –
private_key (str) –
asset_management_mode (AssetManagementMode) –
max_slippage (float) –
confirmation_block_count (int) –
confirmation_timeout (int) –
unit_testing (bool) –
all_pairs (bool) –
buy_only (bool) –
test_short (bool) –
test_credit_supply (bool) –
simulate (bool) –