Skip to content

Configuration and Utilities

This diagram maps configuration files and shared utilities to the modules that consume them.

flowchart TD
    subgraph Config["config/"]
        CREDS["fyers_credentials.yaml"]
        WS_CFG["fyers_ws.yaml"]
        REST_LIMITS["fyers_rest_limits.yaml"]
        CACHE_CFG["cache.yaml"]
        CAL["nse_calendar.yaml"]
        BROKER_CFG["broker.yaml"]
        FEED_CFG["data_feed.yaml"]
        LOG_CFG["logging_config.yaml"]
        STATE_CFG["state.yaml"]
        SYMBOLS["symbol_master_sources.yaml"]
    end

    subgraph Code["src/"]
        AUTH["fyers/auth.py"]
        WS_ADAPTER["fyers_store/adapters/fyers_ws.py"]
        REST_ADAPTER["fyers_store/adapters/fyers_rest.py"]
        CACHE["fyers_store/persistence/sqlite_cache.py"]
        BROKER["fyers_store/broker.py"]
        FEED["fyers_store/data_feed.py"]
        LOGGING["logging_module/config.py"]
        STATE["fyers_store/state/"]
    end

    CREDS --> AUTH
    WS_CFG --> WS_ADAPTER
    REST_LIMITS --> REST_ADAPTER
    CACHE_CFG --> CACHE
    CAL --> CACHE
    BROKER_CFG --> BROKER
    FEED_CFG --> FEED
    LOG_CFG --> LOGGING
    STATE_CFG --> STATE
    SYMBOLS --> AUTH