Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

监听交易额在track和触发跟单消息中不一致,买入成功后依旧反馈交易失败 #31

Open
MengZe-96 opened this issue Feb 9, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@MengZe-96
Copy link

监听交易额在track和触发跟单消息中不一致,买入成功后依旧反馈交易失败

Image

@mkdir700
Copy link
Collaborator

mkdir700 commented Feb 9, 2025

交易通知的交易 hash 和触发跟单的 hash 是一致的吗?

@MengZe-96
Copy link
Author

交易通知的交易 hash 和触发跟单的 hash 是一致的吗?

一致

@mkdir700
Copy link
Collaborator

mkdir700 commented Feb 9, 2025

交易通知的交易 hash 和触发跟单的 hash 是一致的吗?

一致

方便发一下吗

@MengZe-96
Copy link
Author

MengZe-96 commented Feb 9, 2025

交易通知的交易 hash 和触发跟单的 hash 是一致的吗?

一致

方便发一下吗

target_wallet hash: 23TVGVLxewCjw2bU5XVyzYuC79da5Qiek7aFPrqPGgrUeAbFBgx6dJi4a2TsggK89M3Lbvwmq6SgZSHg2VSVYoyh

copytrade hash:
4SeQ8MMuror2XqnVnWUBTgUQapzSCXbQJo4z5bYBgfwoiawjobwP2VXA4wYQ2TnFEPovkCM52aKKnRQ2qViD2tdk

@MengZe-96
Copy link
Author

MengZe-96 commented Feb 9, 2025

###Trading Log : ERROR

2025-02-08 08:29:24 | ERROR    | __main__:_process_single_swap_event:63 - Failed to process swap event: 
user_pubkey='Ar5rCvCDt3xQ3ztkipgsCc8mgtdEMpqWKDmwEPtjReDu' swap_mode='ExactIn' 
input_mint='So11111111111111111111111111111111111111112' 
output_mint='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' amount=10000000 ui_amount=0.01 
timestamp=1739003361 amount_pct=None swap_in_type='qty' priority_fee=0.001 slippage_bps=250 
by='copytrade' dynamic_slippage=False min_slippage_bps=None max_slippage_bps=None program_id=None 
tx_event=TxEvent(signature='23TVGVLxewCjw2bU5XVyzYuC79da5Qiek7aFPrqPGgrUeAbFBgx6dJi4a2TsggK89M3Lbvwmq6SgZSHg2VSVYoyh', 
from_amount=10134103, from_decimals=9, to_amount=1928056, to_decimals=6, mint='EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', who='CESbEpMxQrTZzc4i8fzPCFz4AT2CUb22JdfaBcp3SBiB', tx_type=<TxType.ADD_POSITION: 'add_position'>, tx_direction='buy', timestamp=1739003361, pre_token_amount=1266087246, post_token_amount=1268015302, program_id=None)
Traceback (most recent call last):

  File "/app/src/trading/main.py", line 163, in <module>
    asyncio.run(trading.start())
    │       │   │       └ <function Trading.start at 0x7142d1331cf0>
    │       │   └ <__main__.Trading object at 0x7142d9b68cd0>
    │       └ <function run at 0x7142df8ec1f0>
    └ <module 'asyncio' from '/usr/local/lib/python3.10/asyncio/__init__.py'>

  File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
           │    │                  └ <coroutine object Trading.start at 0x7142d1377d80>
           │    └ <function BaseEventLoop.run_until_complete at 0x7142df1ba7a0>
           └ <_UnixSelectorEventLoop running=True closed=False debug=False>
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
    │    └ <function BaseEventLoop.run_forever at 0x7142df1ba710>
    └ <_UnixSelectorEventLoop running=True closed=False debug=False>
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
    │    └ <function BaseEventLoop._run_once at 0x7142df1bc280>
    └ <_UnixSelectorEventLoop running=True closed=False debug=False>
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
    │      └ <function Handle._run at 0x7142df893be0>
    └ <Handle <TaskStepMethWrapper object at 0x7142d148d180>()>
  File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
    │    │            │    │           │    └ <member '_args' of 'Handle' objects>
    │    │            │    │           └ <Handle <TaskStepMethWrapper object at 0x7142d148d180>()>
    │    │            │    └ <member '_callback' of 'Handle' objects>
    │    │            └ <Handle <TaskStepMethWrapper object at 0x7142d148d180>()>
    │    └ <member '_context' of 'Handle' objects>
    └ <Handle <TaskStepMethWrapper object at 0x7142d148d180>()>

> File "/app/src/trading/main.py", line 55, in _process_single_swap_event
    swap_result = await self._record_swap_result(sig, swap_event)
                        │    │                   │    └ SwapEvent(user_pubkey='Ar5rCvCDt3xQ3ztkipgsCc8mgtdEMpqWKDmwEPtjReDu', swap_mode='ExactIn', input_mint='So11111111111111111111...
                        │    │                   └ Signature(
                        │    │                         4SeQ8MMuror2XqnVnWUBTgUQapzSCXbQJo4z5bYBgfwoiawjobwP2VXA4wYQ2TnFEPovkCM52aKKnRQ2qViD2tdk,
                        │    │                     )
                        │    └ <function Trading._record_swap_result at 0x7142d1331bd0>
                        └ <__main__.Trading object at 0x7142d9b68cd0>

  File "/app/__pypackages__/3.10/lib/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
                │       │       └ {}
                │       └ (<__main__.Trading object at 0x7142d9b68cd0>, Signature(
                │             4SeQ8MMuror2XqnVnWUBTgUQapzSCXbQJo4z5bYBgfwoiawjobwP2VXA4wYQ2TnF...
                └ <function Trading._record_swap_result at 0x7142d1331900>

  File "/app/src/trading/main.py", line 105, in _record_swap_result
    swap_record = await self.swap_settlement_processor.process(sig, swap_event)
                        │    │                         │       │    └ SwapEvent(user_pubkey='Ar5rCvCDt3xQ3ztkipgsCc8mgtdEMpqWKDmwEPtjReDu', swap_mode='ExactIn', input_mint='So11111111111111111111...
                        │    │                         │       └ Signature(
                        │    │                         │             4SeQ8MMuror2XqnVnWUBTgUQapzSCXbQJo4z5bYBgfwoiawjobwP2VXA4wYQ2TnFEPovkCM52aKKnRQ2qViD2tdk,
                        │    │                         │         )
                        │    │                         └ <function SwapSettlementProcessor.process at 0x7142d13315a0>
                        │    └ <trading.settlement.processor.SwapSettlementProcessor object at 0x7142ddd82bf0>
                        └ <__main__.Trading object at 0x7142d9b68cd0>

  File "/app/src/trading/settlement/processor.py", line 136, in process
    data = await self.analyzer.analyze_transaction(
                 │    │        └ <function TransactionAnalyzer.analyze_transaction at 0x7142d1331360>
                 │    └ <trading.settlement.analyzer.TransactionAnalyzer object at 0x7142ddd83d60>
                 └ <trading.settlement.processor.SwapSettlementProcessor object at 0x7142ddd82bf0>

  File "/app/src/trading/settlement/analyzer.py", line 363, in analyze_transaction
    raise NotImplementedError(f"不支持的交易类型: {tx_type}")

NotImplementedError: 不支持的交易类型: TRANSFER

@mkdir700 mkdir700 added the bug Something isn't working label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants