MATIC Level crush betaarchived
MATIC price breakout strategy
Strategy Logs
Main loop terminated. Entering to the web server wait mode. Run-time version was:
Trade-executor Docker version: v1077
Commit hash: 0b7c52a62601a5b7d27ab90870ea5aa89bc1293b
Commit message: Update backtest datasets. Add Docker image tag to Sentry version output. Fix Docker imaeg post issue for large images
AssertionError('Position went to negative: <ReservePosition <USDC at 0x2791bca1f2de4661ed88a30c99a7a9449aa84174> at -145.616474573389594435866459> with token <USD Coin (PoS) (USDC) at 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174, 6 decimals, on chain 137> and amount 155903249\nQuantity: 155.903249, old balance: 10.286774426610405564133541')
Traceback (most recent call last): (7 lines)
File "/usr/src/trade-executor/tradeexecutor/cli/commands/start.py", line 594, in start loop.run_with_state(state) File "/usr/src/trade-executor/tradeexecutor/cli/loop.py", line 1541, in run_with_state return self.run_live(state) ^^^^^^^^^^^^^^^^^^^^ File "/usr/src/trade-executor/tradeexecutor/cli/loop.py", line 1155, in run_live self.sync_model.sync_treasury( File "/usr/src/trade-executor/tradeexecutor/ethereum/enzyme/vault.py", line 631, in sync_treasury events += self.translate_and_apply_event(state, chain_event, strategy_cycle_ts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/trade-executor/tradeexecutor/ethereum/enzyme/vault.py", line 391, in translate_and_apply_event return self.process_redemption(portfolio, event, strategy_cycle_ts) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/trade-executor/tradeexecutor/ethereum/enzyme/vault.py", line 328, in process_redemption assert old_balance - quantity >= 0, f"Position went to negative: {position} with token {token_details} and amount {raw_amount}\n" \ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: Position went to negative: <ReservePosition <USDC at 0x2791bca1f2de4661ed88a30c99a7a9449aa84174> at -145.616474573389594435866459> with token <USD Coin (PoS) (USDC) at 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174, 6 decimals, on chain 137> and amount 155903249 Quantity: 155.903249, old balance: 10.286774426610405564133541trade-executor enzyme-polygon-matic-usdc execution loop crashed
Trading universe is:
base quote exchange type fee % price last_price_at first_price_at volume tvl tvl_at tax
id
2854997 WMATIC USDC uniswap-v3 traded 0.05 0.17 0 days 2025-06-21 13:00:00 3422.10 <not loaded> - 0.0% / 0.0%
forward_fill_until could not be determined, assuming legacy test path and does the slow method
The execution state was last saved 2024-11-25 12:02:22
Starting with strategy parameters:
Parameter Value
----------------------------------- ----------------------
allocation 0.98
backtest_end 2024-04-15 00:00:00
backtest_start 2021-09-01 00:00:00
backtest_trading_fee 0.0005
bollinger_bands_ma_length 19
chain_id 137
clock_shift_bars 0
cycle_duration CycleDuration.cycle_1h
id matic-breakout
initial_cash 10000
required_history_period 1 day, 14:00:00
routing TradeRouting.default
rsi_bars 14
rsi_entry 50
source_time_bucket TimeBucket.h1
std_dev 2.8
stop_loss 0.98
stop_loss_time_bucket TimeBucket.m15
target_time_bucket TimeBucket.h1
trailing_stop_loss 0.98
trailing_stop_loss_activation_level 1.05
grid_search False
MATIC Level crush (enzyme-polygon-matic-usdc): trade execution starting
Parameters.slippage_tolerance missing - needed for live trading. Please add.
Connected to chain: polygon, gas pricing method: london, providers ['polygon-mainnet.g.alchemy.com', 'lb.drpc.org', 'proud-small-resonance.matic.quiknode.pro']