# khaledsaif362/rupee architecture

> Architecture diagram of the GitHub repository khaledsaif362/rupee, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/khaledsaif362/rupee
- Repository: https://github.com/khaledsaif362/rupee

## Overview

This is a browser-based RupeeSeed RMS toolkit: users work with standalone pages to generate or process operational files. The main evidenced workflows are generating RMS setup files from client inputs, and processing position data using uploaded files or manual entries before downloading CSV output. Other pages indicate additional bulk-order, span, exposure, and exchange-specific tools, but their implementations were not sampled. The graph reflects only relationships visible in the excerpts; it does not assume how the unsampled pages are wired.

Main entry points: [`POS.js`](https://github.com/khaledsaif362/rupee/blob/main/POS.js) (Position processor), [`BOT.js`](https://github.com/khaledsaif362/rupee/blob/main/BOT.js) (RMS file generator), [`client.js`](https://github.com/khaledsaif362/rupee/blob/main/client.js) (Client file generator), [`cost.js`](https://github.com/khaledsaif362/rupee/blob/main/cost.js) (Average price generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access"]
  node_login["Login page<br/>[login.html]"]
  node_login_gate["Login gate<br/>[rs-login-gate.js]"]
end

subgraph group_setup["RMS Setup Files"]
  node_rms_generator["RMS file generator<br/>[BOT.js]"]
  node_client_generator["Client file generator<br/>[client.js]"]
  node_client_page["Client tool page<br/>[client.html]"]
  node_bo_page["BO tool page<br/>[BO.html]"]
end

subgraph group_positions["Position Tools"]
  node_position_processor["Position processor<br/>[POS.js]"]
  node_position_page["Position tool page<br/>[POS.html]"]
  node_cost_generator["Average price generator<br/>[cost.js]"]
  node_cost_page["Cost tool page<br/>[cost.html]"]
  node_position_cache[("Position cache<br/>[POS.js]")]
end

subgraph group_other["Other RMS Tools"]
  node_bulk_orders["Bulk orders<br/>[bulk-orders.html]"]
  node_fo_bulk["FO bulk orders<br/>[fobulk.html]"]
  node_span_tool["Span tools<br/>[span.html]"]
  node_mcx_span["MCX span tool<br/>[mcxspan.html]"]
  node_threshold_tool["Threshold tool<br/>[Threshold.pdf]"]
  node_exposure_tools["Exposure tools<br/>[ltpexp.html]"]
  node_special_exposure["Special exposure<br/>[spexp.html]"]
  node_exchange_pages["Exchange tools<br/>[NSEEQ.html]"]
end

node_user(("User"))
node_download["Downloaded files"]

node_login_gate -->|"redirects to"| node_login
node_user -->|"provides inputs"| node_rms_generator
node_rms_generator -->|"downloads files"| node_download
node_user -->|"enters codes"| node_client_generator
node_client_generator -->|"downloads files"| node_download
node_user -->|"uploads or enters data"| node_position_processor
node_position_processor -->|"reads and writes"| node_position_cache
node_position_processor -->|"downloads CSV"| node_download
node_user -->|"enters prices"| node_cost_generator
node_cost_generator -->|"downloads file"| node_download

click node_login "https://github.com/khaledsaif362/rupee/blob/main/login.html"
click node_login_gate "https://github.com/khaledsaif362/rupee/blob/main/rs-login-gate.js"
click node_rms_generator "https://github.com/khaledsaif362/rupee/blob/main/BOT.js"
click node_client_generator "https://github.com/khaledsaif362/rupee/blob/main/client.js"
click node_client_page "https://github.com/khaledsaif362/rupee/blob/main/client.html"
click node_bo_page "https://github.com/khaledsaif362/rupee/blob/main/BO.html"
click node_position_processor "https://github.com/khaledsaif362/rupee/blob/main/POS.js"
click node_position_page "https://github.com/khaledsaif362/rupee/blob/main/POS.html"
click node_cost_generator "https://github.com/khaledsaif362/rupee/blob/main/cost.js"
click node_cost_page "https://github.com/khaledsaif362/rupee/blob/main/cost.html"
click node_bulk_orders "https://github.com/khaledsaif362/rupee/blob/main/bulk-orders.html"
click node_fo_bulk "https://github.com/khaledsaif362/rupee/blob/main/fobulk.html"
click node_span_tool "https://github.com/khaledsaif362/rupee/blob/main/span.html"
click node_mcx_span "https://github.com/khaledsaif362/rupee/blob/main/mcxspan.html"
click node_threshold_tool "https://github.com/khaledsaif362/rupee/blob/main/Threshold.pdf"
click node_exposure_tools "https://github.com/khaledsaif362/rupee/blob/main/ltpexp.html"
click node_special_exposure "https://github.com/khaledsaif362/rupee/blob/main/spexp.html"
click node_exchange_pages "https://github.com/khaledsaif362/rupee/blob/main/NSEEQ.html"
click node_position_cache "https://github.com/khaledsaif362/rupee/blob/main/POS.js"

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_login,node_login_gate,node_user toneBlue
class node_rms_generator,node_client_generator,node_client_page,node_bo_page toneAmber
class node_position_processor,node_position_page,node_cost_generator,node_cost_page,node_position_cache toneMint
class node_bulk_orders,node_fo_bulk,node_span_tool,node_mcx_span,node_threshold_tool,node_exposure_tools,node_special_exposure,node_exchange_pages toneRose
class node_download toneIndigo
```

## Components

### Access

- [Login page](https://github.com/khaledsaif362/rupee/blob/main/login.html): `login.html`
- [Login gate](https://github.com/khaledsaif362/rupee/blob/main/rs-login-gate.js): `rs-login-gate.js`

### RMS Setup Files

- [RMS file generator](https://github.com/khaledsaif362/rupee/blob/main/BOT.js): `BOT.js`
- [Client file generator](https://github.com/khaledsaif362/rupee/blob/main/client.js): `client.js`
- [Client tool page](https://github.com/khaledsaif362/rupee/blob/main/client.html): `client.html`
- [BO tool page](https://github.com/khaledsaif362/rupee/blob/main/BO.html): `BO.html`

### Position Tools

- [Position processor](https://github.com/khaledsaif362/rupee/blob/main/POS.js): `POS.js`
- [Position tool page](https://github.com/khaledsaif362/rupee/blob/main/POS.html): `POS.html`
- [Average price generator](https://github.com/khaledsaif362/rupee/blob/main/cost.js): `cost.js`
- [Cost tool page](https://github.com/khaledsaif362/rupee/blob/main/cost.html): `cost.html`
- [Position cache](https://github.com/khaledsaif362/rupee/blob/main/POS.js): `POS.js`

### Other RMS Tools

- [Bulk orders](https://github.com/khaledsaif362/rupee/blob/main/bulk-orders.html): `bulk-orders.html`
- [FO bulk orders](https://github.com/khaledsaif362/rupee/blob/main/fobulk.html): `fobulk.html`
- [Span tools](https://github.com/khaledsaif362/rupee/blob/main/span.html): `span.html`
- [MCX span tool](https://github.com/khaledsaif362/rupee/blob/main/mcxspan.html): `mcxspan.html`
- [Threshold tool](https://github.com/khaledsaif362/rupee/blob/main/Threshold.pdf): `Threshold.pdf`
- [Exposure tools](https://github.com/khaledsaif362/rupee/blob/main/ltpexp.html): `ltpexp.html`
- [Special exposure](https://github.com/khaledsaif362/rupee/blob/main/spexp.html): `spexp.html`
- [Exchange tools](https://github.com/khaledsaif362/rupee/blob/main/NSEEQ.html): `NSEEQ.html`

### Other components

- **User**
- **Downloaded files**

## Connections

- Login gate → Login page: redirects to (evidence: `rs-login-gate.js`)
- User → RMS file generator: provides inputs (evidence: `BOT.js`)
- RMS file generator → Downloaded files: downloads files (evidence: `BOT.js`)
- User → Client file generator: enters codes (evidence: `client.js`)
- Client file generator → Downloaded files: downloads files (evidence: `client.js`)
- User → Position processor: uploads or enters data (evidence: `POS.js`)
- Position processor → Position cache: reads and writes (evidence: `POS.js`)
- Position processor → Downloaded files: downloads CSV (evidence: `POS.js`)
- User → Average price generator: enters prices (evidence: `cost.js`)
- Average price generator → Downloaded files: downloads file (evidence: `cost.js`)
