Quick Scripts
These scripts are the quick entry points for fyers-store. Each is intentionally short, single-purpose, and assumes you installed the repository with pip install -e . so imports resolve without manual sys.path hacks.
- Run them from the repository root so the config resolvers find
config/...files. - Live helpers require credentials plus the explicit confirmations mentioned inside each script; see
docs/SETUP.mdfor auth guidance.
Block 1: Connectivity & Preflight
- quick_auth_check.py
- quick_token_expiry_check.py
- quick_check_configs.py
- quick_store_health.py
- quick_rest_health.py
- quick_ws_health.py
- quick_latency_check.py
Block 2: Market Snapshot & Discovery
- quick_ltp_fetch.py
- quick_symbol_check.py
- quick_symbol_search.py
- quick_multi_symbol_ltp.py
- quick_market_depth.py
- quick_intraday_snapshot.py
- quick_top_gainers_losers.py
- quick_trading_hours_check.py
Block 3: Historical Data & Persistence
- quick_history_fetch.py
- quick_multi_symbol_history.py
- quick_cache_warmup.py
- quick_cache_stats.py
- quick_cache_inspector.py
- quick_cache_clear.py
Block 4: Complex Trading Strategies (Backtrader)
- quick_orb_strategy.py
- quick_macd_strategy.py
- quick_sma_backtest.py
- quick_rsi_backtest.py
- quick_multi_tf_backtest.py
- quick_macd_backtest.py
- quick_portfolio_backtest.py
- quick_strategy_comparison.py
- quick_backtest_summary.py
- quick_walk_forward_test.py
Block 5: Order Lifecycle & Execution
- quick_place_order.py
- quick_modify_order.py
- quick_cancel_order.py
- quick_cancel_all_orders.py
- quick_order_status.py
- quick_square_off.py
- quick_trade_lifecycle.py
Block 6: Account & Risk Awareness
- quick_account_balance.py
- quick_margin_usage.py
- quick_positions_check.py
- quick_holdings_check.py
- quick_daily_pnl.py
- quick_trade_history.py
- quick_exposure_summary.py
- quick_drawdown_check.py
- quick_risk_limits.py
Block 7: Portfolio Management
- quick_multi_symbol_portfolio.py
- quick_equal_weight_portfolio.py
- quick_risk_parity.py
- quick_sector_allocation.py
- quick_portfolio_snapshot.py
- quick_rebalance_strategy.py
Block 8: Safety Guards & Environment
- quick_env_check.py
- quick_trading_guard_demo.py
- quick_readonly_mode.py
- quick_trading_toggle.py
- quick_emergency_stop.py
- quick_failover_test.py
Block 9: Strategy Utilities
- quick_signal_only.py
- quick_position_sizing.py
- quick_stop_loss_demo.py
- quick_trailing_stop.py
- quick_take_profit.py
- quick_multi_strategy.py
Block 10: Connectivity & Operations
- quick_ws_config_check.py
- quick_reconnect_ws.py
- quick_config_check.py
- quick_credentials_check.py
- quick_restart_services.py
- quick_log_check.py
Block 11: Educational / Learning
- quick_strategy_template.py
- quick_indicator_demo.py
- quick_backtrader_basics.py
- quick_signal_visualization.py
Block 12: Paper & Simulation
- quick_paper_trading.py
- quick_paper_positions.py
- quick_paper_orders.py
- quick_paper_pnl.py
- quick_paper_restart.py
- quick_backtest_speed_test.py
Reference / CLI Examples
- backtest.py – canonical EMA backtest with auth preflight.
- backtest_to_live.py – backtest + optional live transition flow with CLI flags.
- history_ingest.py – REST history fetch that populates the SQLite cache with calendar-aware slicing.
- adhocs_query.py – quick cache inspector for a hardcoded window (supports optional ingest).
- adhocs.ipynb – Jupyter exploration of the cache query helper (first cell explains how to install).
- live_signal_loop.py – environment-guarded live signal loop with order/pricing safety checks.
- live_ws_demo.py – raw WebSocket connect/dump demo for market+order sockets.
- history_cerebro.py – lightweight Backtrader feed demo that prints the first bar.
- portfolio_backtest_two_symbols.py – multi-symbol equal-weight backtest entry point.
- diy_backtest_no_backtrader.py – DIY SMA backtest without Backtrader, showing how to use the Store/cache directly.
- reliance_ema_cross_backtest.py – more detailed Reliance EMA(60/120) example.