Skip to content

Commit

Permalink
fix: disable coingecko altogether
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Jun 5, 2024
1 parent 0b26b28 commit 54295be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions balanced_backend/api/v1/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@
dex,
stability,
)
from balanced_backend.config import settings

api_router = APIRouter()
api_router.include_router(contract_methods.router)
api_router.include_router(volumes.router)
api_router.include_router(pools.router)
api_router.include_router(tokens.router)
api_router.include_router(holders.router)
api_router.include_router(cmc.router, prefix='/coin-market-cap',
tags=["coin-market-cap"])
api_router.include_router(coingecko.router, prefix='/coingecko', tags=["coingecko"])
api_router.include_router(
cmc.router, prefix='/coin-market-cap', tags=["coin-market-cap"])

if not settings.COINGECKO_DISABLE:
api_router.include_router(
coingecko.router, prefix='/coingecko', tags=["coingecko"])

api_router.include_router(stats.router)
api_router.include_router(supply.router)
api_router.include_router(dex.router)
Expand Down
1 change: 1 addition & 0 deletions balanced_backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class Settings(BaseSettings):
MAX_TS_RECORDS: int = 5000

COINGECKO_LIQUIDITY_CUTOFF: int = 1000
COINGECKO_DISABLE: bool = True

class Config:
case_sensitive = True
Expand Down

0 comments on commit 54295be

Please sign in to comment.