# tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution architecture

> Architecture diagram of the GitHub repository tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution
- Repository: https://github.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution

## Overview

This small Python script implements a scheduled Bank Nifty bull call spread: it waits for the configured entry time, reads spot price and selects matching call contracts from a local instruments CSV, then submits a market buy and sell through Kite Connect. `acctkn.py` supplies placeholder API credentials. The excerpts show this runtime path; no README or evidence for additional product capabilities was provided.

Main entry points: [`Bull_Call_Spread_OptionStrategy.py`](https://github.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution/blob/main/Bull_Call_Spread_OptionStrategy.py) (Contract selection and orders), [`acctkn.py`](https://github.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution/blob/main/acctkn.py) (API credentials)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_strategy["Spread strategy"]
  node_scheduler["Entry-time wait"]
  node_spread["Contract selection and orders"]
  node_instruments["Instrument catalog"]
end

subgraph group_broker["Broker access"]
  node_credentials["API credentials<br/>[acctkn.py]"]
  node_kite["Kite Connect API"]
end

node_operator(("Strategy operator"))

node_operator -->|"runs script"| node_scheduler
node_scheduler -->|"starts at time"| node_spread
node_spread -->|"reads contracts"| node_instruments
node_credentials -->|"provides keys"| node_spread
node_spread -->|"requests quotes and orders"| node_kite

click node_scheduler "https://github.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution/blob/main/Bull_Call_Spread_OptionStrategy.py"
click node_spread "https://github.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution/blob/main/Bull_Call_Spread_OptionStrategy.py"
click node_credentials "https://github.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution/blob/main/acctkn.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_scheduler,node_spread,node_instruments toneBlue
class node_credentials,node_kite toneAmber
class node_operator toneIndigo
```

## Components

### Spread strategy

- [Entry-time wait](https://github.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution/blob/main/Bull_Call_Spread_OptionStrategy.py): `Bull_Call_Spread_OptionStrategy.py`
- [Contract selection and orders](https://github.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution/blob/main/Bull_Call_Spread_OptionStrategy.py): `Bull_Call_Spread_OptionStrategy.py`
- **Instrument catalog**

### Broker access

- [API credentials](https://github.com/tradeeasywithme/banknifty-option-strtegy-bull-call-spread-algo-trading-with-live-execution/blob/main/acctkn.py): `acctkn.py`
- **Kite Connect API**

### Other components

- **Strategy operator**

## Connections

- Strategy operator → Entry-time wait: runs script (evidence: `Bull_Call_Spread_OptionStrategy.py`)
- Entry-time wait → Contract selection and orders: starts at time (evidence: `Bull_Call_Spread_OptionStrategy.py`)
- Contract selection and orders → Instrument catalog: reads contracts (evidence: `Bull_Call_Spread_OptionStrategy.py`)
- API credentials → Contract selection and orders: provides keys (evidence: `Bull_Call_Spread_OptionStrategy.py`)
- Contract selection and orders → Kite Connect API: requests quotes and orders (evidence: `Bull_Call_Spread_OptionStrategy.py`)
