Skip to content

Commit

Permalink
addressed most comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhagarwal03 committed Aug 14, 2024
1 parent ea28651 commit c5d57a0
Show file tree
Hide file tree
Showing 16 changed files with 246 additions and 545 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SOLVER_SLIPPAGE_DB_URL=
# configure chain sleep time, e.g. CHAIN_SLEEP_TIME=60
CHAIN_SLEEP_TIME=

# add chain name, e.g. CHAIN_NAME=Ethereum
# add chain name, e.g. CHAIN_NAME=mainnet
CHAIN_NAME=

# OPTIONAL: when running imbalances_script to test for a single tx hash, must provide below variables
Expand Down
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ pandas==2.2.1
SQLAlchemy==2.0.28
psycopg2==2.9.9
python-dotenv==1.0.0
black==23.3.0
mypy==1.4.1
pylint==3.2.5
pytest==7.4.0
moralis==0.1.48
dune-client==1.7.4
black
mypy
pylint
pytest
setuptools
pandas-stubs
types-psycopg2
types-requests
moralis
dune-client
types-requests
10 changes: 5 additions & 5 deletions src/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
)

# Time limit after which Coingecko Token List is re-fetched (in seconds)
TOKEN_LIST_RELOAD_TIME = 86400
COINGECKO_TOKEN_LIST_RELOAD_TIME = 86400

# Time in seconds of 45 hours
# Time in seconds of 45 hours. Time limit after which 5-minute prices become unavailable.
COINGECKO_TIME_LIMIT = 162000

# Buffer time interval to allow 5-minutely Coingecko prices to be fetched
BUFFER_TIME = 600
COINGECKO_BUFFER_TIME = 600

# Dune query for fetching prices is set to LIMIT 1, i.e. it will return a single price
FETCH_PRICE_QUERY_ID = 3935228
DUNE_PRICE_QUERY_ID = 3935228

# Dune Query 3935228 uses an end_timestamp to limit results
QUERY_BUFFER_TIME = 100
DUNE_QUERY_BUFFER_TIME = 100
318 changes: 0 additions & 318 deletions src/daemon.py

This file was deleted.

Loading

0 comments on commit c5d57a0

Please sign in to comment.