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

Fixes data collection for market liquidity removal by using subgraph instead of filtering on-chain events #42

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

angrybayblade
Copy link
Contributor

No description provided.

Optional[List[Dict[str, Any]]],
contract_api_response.state.body.get("data", []),
query = CONDITIONS_QUERY.substitute(conditions=json.dumps(condition_ids))
response = yield from self.get_http_response(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will have to add a retry mechanism here, but first let's test if this works or not

questions = cast(
Optional[List[Dict[str, Any]]],
contract_api_response.state.body.get("data", []),
query = QUESTIONS_QUERY.substitute(conditions=json.dumps(question_ids))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@jmoreira-valory jmoreira-valory merged commit 05ec386 into main Aug 2, 2023
6 checks passed
@DavidMinarsch DavidMinarsch deleted the fix/market-data-collection branch August 16, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants