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

Change default Reality's timeout to 3 days #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export MIN_MARKET_PROPOSAL_INTERVAL_SECONDS=1800
export TOPICS='["business","science","technology","politics","arts","weather"]'
export MARKET_FEE=2
export INITIAL_FUNDS=1
export MARKET_TIMEOUT=1
export MARKET_TIMEOUT=3
export MARKET_IDENTIFICATION_PROMPT=$(sed -e ':a' -e 'N' -e '$!ba' \
-e 's/"/\\"/g' \
-e "s/'/\\\'/g" \
Expand All @@ -123,7 +123,7 @@ These are the descriptions of the variables used by the Market Creator service.
- `TOPICS`: Topics to create the markets.
- `MARKET_FEE`: % liquidity provider fees on the market. Default is 2%.
- `INITIAL_FUNDS`: Initial liquidity funds for the market, in cents. Default is 1 cent (0.01 Eth, xDAI, WxDAI, etc...).
- `MARKET_TIMEOUT`: How long people will have to correct incorrect responses after they are posted on [reality.eth](https://realityeth.github.io/). Default is 1 day.
- `MARKET_TIMEOUT`: How long people will have to correct incorrect responses after they are posted on [reality.eth](https://realityeth.github.io/). Default is 3 days.
- `MARKET_IDENTIFICATION_PROMPT`: Prompt to create the market proposals on the market approval server. As defined above, it reads the contents of the file `market_identification_prompt.txt`, which you can modify and experiment with different prompts You must include the placeholders `{event_date}`, `{input_news}` and `{topics}` in the prompt.

## Launch the market approval server
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/agents/market_maker/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ models:
topics: ${list:["business","cryptocurrency","politics","science","technology","trending","fashion","social","health","sustainability","internet","travel","food","pets","animals","curiosities","music","economy","arts","entertainment","weather","sports","finance","international"]}
market_fee: ${float:2.0}
initial_funds: ${float:1.0}
market_timeout: ${int:1}
market_timeout: ${int:3}
min_market_proposal_interval_seconds: ${int:7200}
news_sources: ${list:["bbc-news","bbc-sport","abc-news","cnn","google-news","reuters","usa-today","breitbart-news","the-verge","techradar"]}
event_offset_start_days: ${int:4}
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/market_maker/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ models:
topics: ${TOPICS:list:["business","cryptocurrency","politics","science","technology","trending","fashion","social","health","sustainability","internet","travel","food","pets","animals","curiosities","music","economy","arts","entertainment","weather","sports","finance","international"]}
market_fee: ${MARKET_FEE:float:2.0}
initial_funds: ${INITIAL_FUNDS:float:1.0}
market_timeout: ${MARKET_TIMEOUT:int:1}
market_timeout: ${MARKET_TIMEOUT:int:3}
min_market_proposal_interval_seconds: ${MIN_MARKET_PROPOSAL_INTERVAL_SECONDS:int:7200}
news_sources: ${NEWS_SOURCES:list:["bbc-news","bbc-sport","abc-news","cnn","google-news","reuters","usa-today","breitbart-news","the-verge","techradar"]}
event_offset_start_days: ${EVENT_OFFSET_START_DAYS:int:4}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ models:
- international
market_fee: 2.0
initial_funds: 1.0
market_timeout: 1
market_timeout: 3
min_market_proposal_interval_seconds: 7200
news_sources:
- bbc-news
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/market_maker_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ models:
- international
market_fee: 2.0
initial_funds: 1.0
market_timeout: 1
market_timeout: 3
min_market_proposal_interval_seconds: 7200
news_sources:
- bbc-news
Expand Down
2 changes: 1 addition & 1 deletion run_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export MIN_MARKET_PROPOSAL_INTERVAL_SECONDS=1800
export TOPICS='["business","science","technology","politics","arts","weather"]'
export MARKET_FEE=2
export INITIAL_FUNDS=1
export MARKET_TIMEOUT=1
export MARKET_TIMEOUT=3
export MARKET_IDENTIFICATION_PROMPT=$(sed -e ':a' -e 'N' -e '$!ba' \
-e 's/"/\\"/g' \
-e "s/'/\\\'/g" \
Expand Down