-
Notifications
You must be signed in to change notification settings - Fork 158
Description
trading-1 | 2025-05-21 09:27:01.582 | INFO | trading.transaction.builders.ray_v4:build_buy_instructions:57 - 构建购买交易: B1Uz83yQC3aphKk8EdZ53VFWkQb9o6DKFWG3xRKopump, SOL输入: 0.05, 滑点: 250bps
trading-1 | 2025-05-21 09:27:01.583 | INFO | solbot_cache.rayidum:get_preferred_pool:269 - No pool found for mint: B1Uz83yQC3aphKk8EdZ53VFWkQb9o6DKFWG3xRKopump, fetching from rpc
trading-1 | 2025-05-21 09:27:02.901 | ERROR | main:_process_single_swap_event:61 - Failed to process swap event: user_pubkey='B1NF6PHPdE6FCuF1g7Jo7sG6jBiQiEcNHJRTJ7N8cDyB' swap_mode='ExactIn' input_mint='So11111111111111111111111111111111111111112' output_mint='B1Uz83yQC3aphKk8EdZ53VFWkQb9o6DKFWG3xRKopump' amount=50000000 ui_amount=0.05 timestamp=1747819620 amount_pct=None swap_in_type='qty' priority_fee=0.002 slippage_bps=250 by='copytrade' dynamic_slippage=False min_slippage_bps=None max_slippage_bps=None program_id='675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8' tx_event=TxEvent(signature='2kunLSmFPxEYdo69Wxv36SeHZYUMQ5EvHzP8nxdr3ZgbKdRz2gHQGLfXdAsbSqmd6CbuxZATw7pW5b7fg7eCpmS6', from_amount=3742972, from_decimals=9, to_amount=713689804576, to_decimals=6, mint='B1Uz83yQC3aphKk8EdZ53VFWkQb9o6DKFWG3xRKopump', who='AJHfZbWYi7bQnnPQ9q7rsJq7QxNBQFaeuGAe2K48EMDS', tx_type=<TxType.OPEN_POSITION: 'open_position'>, tx_direction='buy', timestamp=1747819620, pre_token_amount=0, post_token_amount=713689804576, program_id=None)
trading-1 | Traceback (most recent call last):
trading-1 |
trading-1 | File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
trading-1 | return _run_code(code, main_globals, None,
trading-1 | │ │ └ {'name': 'main', 'doc': None, 'package': 'trading', 'loader': <_frozen_importlib_external.SourceFileLoade...
trading-1 | │ └ <code object at 0x7f0a67db2340, file "/app/trading/main.py", line 1>
trading-1 | └ <function _run_code at 0x7f0a67fba320>
trading-1 | File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
trading-1 | exec(code, run_globals)
trading-1 | │ └ {'name': 'main', 'doc': None, 'package': 'trading', 'loader': <_frozen_importlib_external.SourceFileLoade...
trading-1 | └ <code object at 0x7f0a67db2340, file "/app/trading/main.py", line 1>
trading-1 |
trading-1 | File "/app/trading/main.py", line 151, in
trading-1 | asyncio.run(trading.start())
trading-1 | │ │ │ └ <function Trading.start at 0x7f0a605da440>
trading-1 | │ │ └ <main.Trading object at 0x7f0a67520850>
trading-1 | │ └ <function run at 0x7f0a67fdcee0>
trading-1 | └ <module 'asyncio' from '/usr/local/lib/python3.10/asyncio/init.py'>
trading-1 |
trading-1 | File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
trading-1 | return loop.run_until_complete(main)
trading-1 | │ │ └ <coroutine object Trading.start at 0x7f0a605ef610>
trading-1 | │ └ <function BaseEventLoop.run_until_complete at 0x7f0a676872e0>
trading-1 | └ <_UnixSelectorEventLoop running=True closed=False debug=False>
trading-1 | File "/usr/local/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
trading-1 | self.run_forever()
trading-1 | │ └ <function BaseEventLoop.run_forever at 0x7f0a67687250>
trading-1 | └ <_UnixSelectorEventLoop running=True closed=False debug=False>
trading-1 | File "/usr/local/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
trading-1 | self._run_once()
trading-1 | │ └ <function BaseEventLoop._run_once at 0x7f0a67688dc0>
trading-1 | └ <_UnixSelectorEventLoop running=True closed=False debug=False>
trading-1 | File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
trading-1 | handle._run()
trading-1 | │ └ <function Handle._run at 0x7f0a67d80790>
trading-1 | └ <Handle <TaskStepMethWrapper object at 0x7f0a60584550>()>
trading-1 | File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
trading-1 | self._context.run(self._callback, *self._args)
trading-1 | │ │ │ │ │ └ <member '_args' of 'Handle' objects>
trading-1 | │ │ │ │ └ <Handle <TaskStepMethWrapper object at 0x7f0a60584550>()>
trading-1 | │ │ │ └ <member '_callback' of 'Handle' objects>
trading-1 | │ │ └ <Handle <TaskStepMethWrapper object at 0x7f0a60584550>()>
trading-1 | │ └ <member '_context' of 'Handle' objects>
trading-1 | └ <Handle <TaskStepMethWrapper object at 0x7f0a60584550>()>
trading-1 |
trading-1 | > File "/app/trading/main.py", line 52, in _process_single_swap_event
trading-1 | sig = await self._execute_swap(swap_event)
trading-1 | │ │ └ SwapEvent(user_pubkey='B1NF6PHPdE6FCuF1g7Jo7sG6jBiQiEcNHJRTJ7N8cDyB', swap_mode='ExactIn', input_mint='So11111111111111111111...
trading-1 | │ └ <function Trading._execute_swap at 0x7f0a605da050>
trading-1 | └ <main.Trading object at 0x7f0a67520850>
trading-1 |
trading-1 | File "/app/pypackages/3.10/lib/backoff/_async.py", line 151, in retry
trading-1 | ret = await target(*args, **kwargs)
trading-1 | │ │ └ {}
trading-1 | │ └ (<main.Trading object at 0x7f0a67520850>, SwapEvent(user_pubkey='B1NF6PHPdE6FCuF1g7Jo7sG6jBiQiEcNHJRTJ7N8cDyB', swap_mode...
trading-1 | └ <function Trading._execute_swap at 0x7f0a605d9e10>
trading-1 |
trading-1 | File "/app/trading/main.py", line 76, in _execute_swap
trading-1 | sig = await self.trading_executor.exec(swap_event)
trading-1 | │ │ │ └ SwapEvent(user_pubkey='B1NF6PHPdE6FCuF1g7Jo7sG6jBiQiEcNHJRTJ7N8cDyB', swap_mode='ExactIn', input_mint='So11111111111111111111...
trading-1 | │ │ └ <function TradingExecutor.exec at 0x7f0a6064c5e0>
trading-1 | │ └ <trading.executor.TradingExecutor object at 0x7f0a60665330>
trading-1 | └ <main.Trading object at 0x7f0a67520850>
trading-1 |
trading-1 | File "/app/trading/executor.py", line 97, in exec
trading-1 | sig = await self._trading_service.use_route(trade_route).swap(
trading-1 | │ │ │ └ <TradingRoute.RAYDIUM_V4: 'raydium_v4'>
trading-1 | │ │ └ <function TradingService.use_route at 0x7f0a605d9630>
trading-1 | │ └ <trading.transaction.factory.TradingService object at 0x7f0a60664130>
trading-1 | └ <trading.executor.TradingExecutor object at 0x7f0a60665330>
trading-1 |
trading-1 | File "/app/trading/transaction/factory.py", line 58, in swap
trading-1 | transaction = await self.builder.build_swap_transaction(
trading-1 | │ │ └ <function RaydiumV4TransactionBuilder.build_swap_transaction at 0x7f0a605d83a0>
trading-1 | │ └ <trading.transaction.builders.ray_v4.RaydiumV4TransactionBuilder object at 0x7f0a60676680>
trading-1 | └ <trading.transaction.factory.Swapper object at 0x7f0a60af09a0>
trading-1 |
trading-1 | File "/app/trading/transaction/builders/ray_v4.py", line 361, in build_swap_transaction
trading-1 | instructions = await self.build_buy_instructions(
trading-1 | │ └ <function RaydiumV4TransactionBuilder.build_buy_instructions at 0x7f0a605d8280>
trading-1 | └ <trading.transaction.builders.ray_v4.RaydiumV4TransactionBuilder object at 0x7f0a60676680>
trading-1 |
trading-1 | File "/app/trading/transaction/builders/ray_v4.py", line 62, in build_buy_instructions
trading-1 | raise ValueError(f"未找到代币 {token_address} 的交易池")
trading-1 |
trading-1 | ValueError: 未找到代币 B1Uz83yQC3aphKk8EdZ53VFWkQb9o6DKFWG3xRKopump 的交易池
trading-1 | Task exception was never retrieved
trading-1 | future: <Task finished name='Task-733' coro=<Trading._process_single_swap_event() done, defined at /app/trading/main.py:46> exception=ValueError('未找到代币 B1Uz83yQC3aphKk8EdZ53VFWkQb9o6DKFWG3xRKopump 的交易池')>
trading-1 | Traceback (most recent call last):
trading-1 | File "/app/trading/main.py", line 64, in _process_single_swap_event
trading-1 | raise e
trading-1 | File "/app/trading/main.py", line 52, in _process_single_swap_event
trading-1 | sig = await self._execute_swap(swap_event)
trading-1 | File "/app/pypackages/3.10/lib/backoff/_async.py", line 151, in retry
trading-1 | ret = await target(*args, **kwargs)
trading-1 | File "/app/trading/main.py", line 76, in _execute_swap
trading-1 | sig = await self.trading_executor.exec(swap_event)
trading-1 | File "/app/trading/executor.py", line 97, in exec
trading-1 | sig = await self._trading_service.use_route(trade_route).swap(
trading-1 | File "/app/trading/transaction/factory.py", line 58, in swap
trading-1 | transaction = await self.builder.build_swap_transaction(
trading-1 | File "/app/trading/transaction/builders/ray_v4.py", line 361, in build_swap_transaction
trading-1 | instructions = await self.build_buy_instructions(
trading-1 | File "/app/trading/transaction/builders/ray_v4.py", line 62, in build_buy_instructions
trading-1 | raise ValueError(f"未找到代币 {token_address} 的交易池")
trading-1 | ValueError: 未找到代币 B1Uz83yQC3aphKk8EdZ53VFWkQb9o6DKFWG3xRKopump 的交易池