app / src /libs /constants.py
lemdaddy's picture
update
383415a
raw
history blame
1.61 kB
"""
Constants representing the number of seconds in a quarter.
"""
ONE_QUARTER_IN_SECONDS : int = (86400 * 30) * 3
"""
Constants representing the number of seconds in a month.
"""
ONE_MONTH_IN_SECONDS : int = 86400 * 30
"""
Constants representing the number of seconds in a week.
"""
ONE_WEEK_IN_SECONDS : int = 604800
"""
Constants representing the number of seconds in a day.
"""
ONE_DAY_IN_SECONDS : int = 86400
"""
Constant representing the number of seconds in one hour.
"""
ONE_HOUR_IN_SECONDS : int = 3600
"""
Constant representing the number of seconds in one minute.
"""
ONE_MINUTE_IN_SECONDS : int = 60
"""
This constant is used to represent the base URL for DexScreener API.
DEX_SCREENER_BASE_URL : str
"""
DEX_SCREENER_BASE_URL : str = "https://api.dexscreener.com/latest/dex/"
"""
This constant is used to represent the base endpoint for Jina Search API.
JINA_SEARCH_BASE_ENDPOINT : str
"""
JINA_SEARCH_BASE_ENDPOINT : str = "https://s.jina.ai/"
"""
This constant is used to represent the base endpoint for Jina Reader API.
JINA_READER_BASE_ENDPOINT : str
"""
JINA_READER_BASE_ENDPOINT : str = "https://r.jina.ai/"
"""
This constant is used to represent the base URL for CryptoCompare API.
CRYPTO_COMPARE_BASE_URL: str
"""
CRYPTO_COMPARE_API_BASE_URL: str = "https://min-api.cryptocompare.com/"
"""
This constant is used to represent the base URL for CryptoCompare asset data API.
CRYPTO_COMPARE_ASSET_DATA_API_BASE_URL: str
"""
CRYPTO_COMPARE_ASSET_DATA_API_BASE_URL : str = "https://data-api.cryptocompare.com/asset/v1/"
# TTLs
SEARCH_DATA_TTL : int = ONE_WEEK_IN_SECONDS