Skip to content

Commit

Permalink
Cleanup + revised definition of process_query typing
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanMcOwen committed Aug 4, 2021
1 parent e862f8e commit 3d0be8e
Show file tree
Hide file tree
Showing 20 changed files with 10 additions and 4 deletions.
Binary file removed .DS_Store
Binary file not shown.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,9 @@ dmypy.json

# Pyre type checker
.pyre/
reports/*
reports/*

.csv
.DS_Store
.html
.ipynb_checkpoints
Binary file removed data/runs/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion data/runs/2021-07-22 02:10:39.918801-meta.json

This file was deleted.

Binary file removed data/runs/2021-07-22 02:10:39.918801-signal.csv.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion data/runs/2021-07-22 12:59:45.117245-meta.json

This file was deleted.

Binary file removed data/runs/2021-07-22 12:59:45.117245-signal.csv.gz
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file removed uniswap_digital_twin/.DS_Store
Binary file not shown.
5 changes: 4 additions & 1 deletion uniswap_digital_twin/Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from tqdm import tqdm
import numpy as np
from datetime import datetime
from typing import List

######Global Params#######
graph_url = 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2'
Expand All @@ -12,7 +13,9 @@
'amount0In': float, 'amount0Out': float, 'amount1In': float, 'amount1Out': float}
#########################

def process_query(query, data_field, graph_url):


def process_query(query: str, data_field: str, graph_url: str) -> List[dict]:
"""
Helper function to take a query and retrieve the data.
query (str): The query to be executed
Expand Down
Binary file removed uniswap_digital_twin/data/.DS_Store
Binary file not shown.
Binary file removed uniswap_digital_twin/reports/.DS_Store
Binary file not shown.

0 comments on commit 3d0be8e

Please sign in to comment.