-
Notifications
You must be signed in to change notification settings - Fork 19
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
New betting strategy for the academy #240
base: develop
Are you sure you want to change the base?
Conversation
Based on the comment from https://github.com/valory-xyz/trader/pull/201/files, I executed autonomy ipfs add inside of
can someone give me an advice what to do, please? |
@@ -0,0 +1,20 @@ | |||
# -*- coding: utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the required package structure (see this as reference).
trader/packages/<author>/customs/<package_name>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved, sorry I missed that. Is this repository-design decision, or is it enforced by the framework?
But, unfortunately, I'm still getting the error above :(
Processing package: /Users/peter/Dropbox/Projects/Gnosis/trader/packages/kongzii/customs/market_moving_bet
Traceback (most recent call last):
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/bin/autonomy", line 8, in <module>
sys.exit(cli())
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/click/core.py", line 1126, in __call__
return self.main(*args, **kwargs)
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/click/core.py", line 1051, in main
rv = self.invoke(ctx)
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/click/core.py", line 1393, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/click/core.py", line 752, in invoke
return __callback(*args, **kwargs)
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/aea_cli_ipfs/core.py", line 85, in add
package_hash = register_package(ipfs_tool, dir_path, no_pin)
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/aea_cli_ipfs/core.py", line 178, in register_package
register_item_to_local_registry(
File "/Users/peter/Library/Caches/pypoetry/virtualenvs/trader-ZP1nLyMi-py3.10/lib/python3.10/site-packages/aea_cli_ipfs/registry.py", line 150, in register_item_to_local_registry
registry_data[f"{item_type}s"][str(public_id)] = str(package_hash)
KeyError: 'customs'
A new betting strategy migrated from https://github.com/gnosis/prediction-market-agent-tooling/blob/main/prediction_market_agent_tooling/tools/betting_strategies/market_moving.py.
The idea is simple: How much and on what outcome do we need to bet, if we want to move market's probability to X? (credits for original implementation to https://github.com/evangriffiths in our PMAT repository 🥇 )
Output from running
example.py
: