cool-otc

byYasin Momo

على كل ازواج OTC وعلى فريم 1دقيقة وعلى OTC+1 ويكون البوت مباشرة على الوقت الحالي صمم لي برنامج تداول بوت

No preview

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirements Document for OTC تداول بوت

1. Introduction

OTC تداول بوت is a trading-bot program requested by Yasin Momo (DZ) for Arabic-speaking retail OTC traders. The product intent, taken directly from the authoritative requirement thread, is a bot that operates on all OTC pairs, on the 1-minute timeframe, on OTC+1, and that runs directly on the current time — meaning the bot is live against the present market moment rather than a historical or delayed feed.

The audience is the retail OTC trader who wants to switch on an automated instrument across the full OTC pair set at the one-minute cadence, with the current time as the operating clock. The product is a control instrument: the trader selects the OTC pairs, confirms the 1-minute frame and OTC+1, and runs the bot live.

This document is the System Requirements Document for the project named cool-otc (product name: OTC تداول بوت).

2. System Overview

Page 1 of 16

2a. Product Interpretation and Delivery Boundary

The product is delivered as a first-party web application: a React front end, a shared FastAPI backend, and a MariaDB database for application-owned persistent data. The bot's operation is background automation owned by the application backend; the trader's interaction with it is through the application's own pages.

Delivery and access ownership:

  • Landing is the public entry surface. It presents the OTC trading bot and explains how it works before the trader enters. It is reachable without identity.
  • Login is the identity access surface. The trader establishes a self-service account on first use and verifies it when returning, so that bot settings persist to the correct trader.
  • Bot Control is the protected working surface. It requires login. Here the trader selects OTC pairs, sets the 1-minute frame and OTC+1, and runs the bot on the current time.

The bot's live operation on the current time is a backend responsibility; the trader's control, observation, and resumption of that operation happen on Bot Control. No provider-owned or external trading surface is part of the accepted scope; the application owns the bot lifecycle and the trader's settings.

Current scope is limited to the accepted requirements above. Nothing beyond OTC pairs, the 1-minute frame, OTC+1, and current-time operation is committed.

Removed from scope

  • None. No concept was removed by the user across the requirement thread.
Page 2 of 16

2c. Page Content and Component Coverage

Landing

  • Information and state: product identity (OTC تداول بوت), the headline "بوت تداول OTC مباشر على كل الأزواج", the subline "شغّل البوت على فريم 1 دقيقة وعلى OTC+1 في الوقت الحالي.", and the call to action "ابدأ الآن". A live teal clock showing the current time and the 1-minute frame. A ruled pair display presenting each OTC pair with its 1-minute state.
  • Primary action: "ابدأ الآن" — proceeds to identity access (Login) for a new or returning trader.
  • Supporting actions: none beyond entry; the pair display is informational on this surface.
  • Domain entities: OTC pair (name, 1-minute state), current time, 1-minute frame, OTC+1.
  • Component responsibilities: hero with gold ribbon curve carrying the headline on its inner edge; live clock component bound to current time; pair-row list with curved left cap and thin gold rule; entry control.
  • States:
    • Loading: pair rows and clock initialize; numbers count up on load.
    • Empty: if no pair state is yet available, rows show a neutral placeholder rather than fabricated values.
    • Success: clock ticks on current time; pair rows show each OTC pair with its 1-minute state.
    • Error: if live time or pair state cannot be read, the affected element shows an unavailable state and the entry control remains usable.
    • Recovery: the surface retries reading live state; the trader can still proceed to Login.
Page 3 of 16

Login

  • Information and state: self-service account establishment for a first-time trader and verification for a returning trader; the purpose is to reach saved bot settings.
  • Primary action: create account (first use) or verify identity (returning).
  • Supporting actions: move to account creation from the verification view and back.
  • Domain entities: trader identity, credential, session.
  • Component responsibilities: identity form, verification step, error messaging, submit control.
  • States:
    • Loading: submission in progress with control disabled.
    • Empty: first-use view offering account creation.
    • Success: identity established; the trader proceeds to Bot Control.
    • Error: invalid or unverified credentials show a clear message and preserve entered values where safe.
    • Recovery: the trader retries verification or switches to account creation.
Page 4 of 16

Bot Control

  • Information and state: the trader's saved bot configuration — selected OTC pairs, the 1-minute frame, OTC+1, and current-time operation — plus the bot's run state (stopped, starting, running, error).
  • Primary action: run the bot on the current time across the selected OTC pairs at the 1-minute frame and OTC+1.
  • Supporting actions: select or deselect OTC pairs; confirm the 1-minute frame; confirm OTC+1; stop the bot; resume a stopped bot.
  • Domain entities: OTC pair selection, timeframe (1 minute), OTC+1 setting, bot run state, run timestamp (current time), trader identity.
  • Component responsibilities: pair selector covering all OTC pairs; frame and OTC+1 confirmation controls; gold run control; run-state indicator; live clock; persistence of configuration to the trader's account.
  • States:
    • Loading: saved configuration is fetched for the signed-in trader.
    • Empty: no pairs selected yet; run control is unavailable until at least one OTC pair is selected.
    • Success: bot runs on current time; run state and start time are visible.
    • Error: if the bot cannot start or loses its live feed, the run state shows the failure with a clear message and the trader can retry.
    • Recovery: the trader adjusts selection or settings and runs again; saved configuration persists across sessions.
Page 5 of 16

3. Functional Requirements

FR-1 — Run the bot on all OTC pairs (explicit) As a متداول OTC, I should run the trading bot across all OTC pairs, so that the bot covers the full OTC pair set.

  • Trigger/input: the trader selects OTC pairs on Bot Control (all OTC pairs are available for selection).
  • Observable result: the bot's active pair set reflects the selected OTC pairs; the run state shows the bot operating on them.
  • Access state: requires login.
  • Failure/recovery: if a pair cannot be included, it is shown as excluded with a reason and the trader can retry.
  • Continuation: the selection is saved to the trader's account for the next session.

FR-2 — Operate on the 1-minute timeframe (explicit) As a متداول OTC, I should run the bot on the 1-minute frame, so that its operation follows one-minute cadence.

  • Trigger/input: the trader confirms the 1-minute frame on Bot Control.
  • Observable result: the run state and the live clock display the 1-minute frame as the active timeframe.
  • Access state: requires login.
  • Failure/recovery: if the frame cannot be applied, the run does not start and the trader sees the reason.
  • Continuation: the 1-minute frame persists with the saved configuration.
Page 6 of 16

FR-3 — Operate on OTC+1 (explicit) As a متداول OTC, I should run the bot on OTC+1, so that the bot operates under the OTC+1 setting.

  • Trigger/input: the trader confirms OTC+1 on Bot Control.
  • Observable result: OTC+1 is shown as the active setting alongside the 1-minute frame.
  • Access state: requires login.
  • Failure/recovery: if OTC+1 cannot be applied, the run does not start and the trader sees the reason.
  • Continuation: OTC+1 persists with the saved configuration.

FR-4 — Run directly on the current time (explicit) As a متداول OTC, I should have the bot run directly on the current time, so that its operation is live against the present moment.

  • Trigger/input: the trader presses the run control on Bot Control.
  • Observable result: the bot starts against the current time; the live clock and run state show the current time as the operating clock.
  • Access state: requires login.
  • Failure/recovery: if the live current time cannot be obtained, the bot does not start and the trader sees the failure with a retry path.
  • Continuation: the trader can stop and resume the bot; the run state remains visible.
Page 7 of 16

FR-5 — Establish a self-service account before configuring the bot (required_inference) As a متداول OTC, I should create my own account before configuring the bot, so that my bot settings belong to me and can be resumed.

  • Trigger/input: the trader chooses "ابدأ الآن" on Landing and creates an account on Login.
  • Observable result: identity is established and the trader reaches Bot Control.
  • Access state: anonymous entry on Landing and Login; Bot Control becomes available after identity is established.
  • Failure/recovery: invalid input shows a clear message and the trader can correct and resubmit.
  • Continuation: the trader proceeds to configure and run the bot.

FR-6 — Verify identity on return (required_inference) As a متداول OTC, I should verify my identity when I return, so that I reach my saved bot settings.

  • Trigger/input: the returning trader submits credentials on Login.
  • Observable result: the trader's saved configuration is loaded on Bot Control.
  • Access state: anonymous Login surface; protected Bot Control after verification.
  • Failure/recovery: failed verification shows a clear message and allows retry.
  • Continuation: the trader resumes or reconfigures the bot.

4. User Personas

Page 8 of 16

متداول OTC

  • Product context: an Arabic-speaking retail OTC trader who wants an automated trading bot rather than manual execution. The trader's request is specific: the bot must cover all OTC pairs, run on the 1-minute frame, run on OTC+1, and operate directly on the current time.
  • Primary goal: switch on a live bot that works the full OTC pair set at one-minute cadence against the present moment.
  • Distinct accepted responsibilities: establishing a self-service account before configuring the bot; verifying identity on return; selecting OTC pairs; confirming the 1-minute frame and OTC+1; running, stopping, and resuming the bot on the current time; reading the bot's run state.
  • Relevant inputs and decisions: which OTC pairs to include; confirmation of the 1-minute frame; confirmation of OTC+1; when to run, stop, or resume.
  • Interactions with other accepted participants: none beyond the trader and the application's own bot process; the bot's background operation is the application's responsibility, and the trader observes its state on Bot Control.
  • Observable success: the bot is running on the current time across the selected OTC pairs at the 1-minute frame and OTC+1, with the run state visible, and the configuration is restored on the next visit.

5. Core User Flows

Page 9 of 16

Flow A — First-time trader starts the bot

  1. The trader opens Landing (anonymous). The hero presents "بوت تداول OTC مباشر على كل الأزواج" with the subline and the live teal clock showing the current time and the 1-minute frame; the pair rows show each OTC pair with its 1-minute state.
  2. The trader presses "ابدأ الآن" and arrives at Login.
  3. On Login, the trader creates a self-service account. On success, identity is established and the trader proceeds to Bot Control.
  4. On Bot Control, the saved configuration loads. The trader selects the OTC pairs to include (all OTC pairs are available).
  5. The trader confirms the 1-minute frame and OTC+1.
  6. The trader presses the gold run control. The bot starts directly on the current time; the run state and live clock show it running.
  7. Failure/recovery: if the live current time cannot be obtained or the bot cannot start, the run state shows the failure with a clear message; the trader retries.
  8. Continuation: the trader can stop the bot and resume it later; the configuration is saved to the account.

Flow B — Returning trader resumes the bot

  1. The trader opens Landing and presses "ابدأ الآن".
  2. On Login, the trader verifies identity. On success, the trader reaches Bot Control with the saved configuration restored.
  3. The trader reviews the selected OTC pairs, the 1-minute frame, and OTC+1, adjusts if needed, and runs or resumes the bot on the current time.
  4. Failure/recovery: failed verification shows a clear message and the trader retries; a failed run shows its state and the trader retries.
  5. Continuation: the run state remains visible on Bot Control for the trader to monitor and stop.
Page 10 of 16

6. Visuals Colors and Theme

Authoritative creative direction: Fluid precision for a live OTC trading bot — muse Zaha Hadid; headline direction: a full-bleed charcoal scene with a large gold ribbon curve sweeping from the left edge, pearl-light Jost headline, and a teal live clock with one gold run button at the lower left.

Color tokens (dark mode):

RoleHex
Background (charcoal ground, ~70%)#0E1013
Surface (panels)#181B20
Text (pearl)#F2F1EC
Primary (gold — run control)#E8B04B
Accent (teal — live 1-minute data)#3FD0C9
Muted#8B9099

Typography:

  • Headings: Jost, Light 300, wide tracking, uppercase Latin labels. Scale (1.333 modular): 96 / 72 / 48 / 32 / 20 / 16 px. Hero: 44px mobile, 96px desktop.
  • Body: IBM Plex Sans Arabic.

Shape language: long continuous curves cutting the sections; thin luminous rules bending at corners; panels with one soft curved edge.

Layout: full-bleed curved hero; three-column instrument grid below it; ruled pair rows showing each OTC pair with its 1-minute state.

Page 11 of 16

Motion: slow camera-like sweeps on the hero curve; numbers count up on load; no bounce. Tempo: restrained.

Imagery: one flowing 3D ribbon form in dark pearl and gold; thin topographic lines behind the live pair grid.

Avoid: no blue or indigo accents; no grid of identical hover-lift cards; no gradient-blob hero; no Inter, Roboto, or system fonts; no playful illustrations.

Readability rule: headlines, wordmarks, labels, numbers, and card text and controls stay whole inside the viewport and their container at 375px, 768px, and 1280px, wrapping or scaling (e.g. clamp(...)) to fit; decoration may bleed and crop, readable text and controls may not.

7. Signature Design Concept

The public entry (Landing) is a full-bleed charcoal scene in which a single large gold ribbon curve sweeps in from the left edge and carries the headline "بوت تداول OTC مباشر على كل الأزواج" on its inner edge in pearl-light Jost. At the lower left, a teal live clock shows the current time and the 1-minute frame beside one gold run button ("ابدأ الآن"). Below the hero, a three-column instrument grid holds ruled pair rows, each with a curved left cap and a thin gold rule that fills as the bot reads each pair, over thin topographic lines. Section boundaries are long diagonal curves, never straight lines. The concept recomposes only accepted content — the headline, subline, entry control, live clock, and OTC pair states — and introduces no new behavior.

Page 12 of 16

8. Interaction Model & Motion Direction

Interaction Model: Animated Motion Tempo: restrained Hero Dimensionality: layered_2d

Landing Hero Motion Brief

  • Focal subject: the gold ribbon curve sweeping from the left edge of the charcoal hero, carrying the headline on its inner edge.
  • Input → transformation → outcome thesis: as the page loads, the ribbon sweeps slowly into place (camera-like, no bounce) and the live clock begins ticking on the current time; the pair rows' gold rules fill as each OTC pair's 1-minute state is read. The outcome is a composed, live instrument ready for the trader to press "ابدأ الآن".
  • Motion vocabulary: slow camera-like sweeps on the hero curve; numbers count up on load; no bounce; restrained tempo.
  • Composed first frame: charcoal ground, gold ribbon entering from the left with the pearl headline on its inner edge, teal clock and gold run button at the lower left, topographic lines faint behind the pair grid.
  • Reduced-motion state: the ribbon, headline, clock, and run button appear in their final static arrangement; numbers show final values without counting up; pair rows wrap or scroll so every item can be brought fully into view.
Page 13 of 16

9. Non-Functional Requirements

  • Live current-time operation (explicit): the bot must operate against the current time, not a historical or delayed clock; the live clock on Landing and Bot Control reflects the current time.
  • 1-minute cadence (explicit): the bot's operating frame is fixed at 1 minute; the interface must not present another frame as active.
  • OTC+1 setting (explicit): OTC+1 is a fixed operating setting shown alongside the 1-minute frame.
  • OTC-only pair scope (explicit): the pair set is limited to OTC pairs; no non-OTC pairs are offered.
  • Durable trader state (required_inference): bot configuration and run state persist per trader in the application database so returning traders resume their settings.
  • Readable layout at 375px, 768px, and 1280px (explicit design constraint): all readable text and controls remain whole within the viewport and their containers.
  • Reduced-motion support (explicit design constraint): a usable static arrangement is provided under prefers-reduced-motion.

10. Tech Stack

  • Frontend: React application UI.
  • Backend: shared FastAPI process for application APIs and domain modules, including the bot's background operation on the current time.
  • Database: MariaDB for application-owned persistent data (trader identity, bot configuration, run state).
  • Infrastructure: docker-compose with the frontend, backend, and database services as provisioned.
Page 14 of 16

11. Assumptions and Constraints

  • A-1 (assumption): "all OTC pairs" means every OTC pair the application makes available; the exact pair list is supplied by the application's OTC pair source.
  • A-2 (assumption): "OTC+1" is treated as a fixed operating setting the trader confirms alongside the 1-minute frame, as stated in the requirement thread.
  • A-3 (assumption): the bot's execution logic beyond pair selection, the 1-minute frame, OTC+1, and current-time operation is not specified by the user and is not committed here.
  • C-1 (constraint): pairs are limited to OTC pairs only.
  • C-2 (constraint): the frame is fixed at 1 minute.
  • C-3 (constraint): OTC+1 is a fixed setting.
  • C-4 (constraint): the bot operates directly on the current time.
  • C-5 (constraint): Bot Control requires login; Landing and Login are anonymous entry surfaces.
Page 15 of 16

12. Glossary

  • OTC pair: a trading pair in the OTC (over-the-counter) pair set; the only pair scope accepted.
  • 1-minute frame: the fixed timeframe on which the bot operates.
  • OTC+1: the fixed operating setting the trader confirms alongside the 1-minute frame.
  • Current time: the live present moment against which the bot runs directly.
  • Bot Control: the protected page where the trader selects OTC pairs, confirms the 1-minute frame and OTC+1, and runs, stops, or resumes the bot.
  • Run state: the bot's status (stopped, starting, running, error) shown to the trader.
Page 16 of 16

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Landing: View live clock and pair states

Landing: Press ابدأ الآن

Login: 1. Create self-service account

Login: 2. Correct invalid input and resubmit

Bot Control: Load saved configuration

Bot Control: Select OTC pairs

Bot Control: Confirm 1-minute frame

Bot Control: Confirm OTC+1

Bot Control: Enable Feronix candle AI OTC signal

Bot Control: Review AI candle signal and confidence

Bot Control: 1. Press gold run control

Bot Control: 1. Read run state and current time

Bot Control: 2. Retry after start failure

Bot Control: 2. Stop running bot

Bot Control: 3. Resume stopped bot

Landing: Return and press ابدأ الآن

Login: 1. Verify identity

Login: 2. Retry failed verification

Bot Control: Review restored configuration

Bot Control: Adjust pairs or settings

Bot Control: Run or resume on current time

Bot Control: Monitor visible run state

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Landing: View live clock and pair states

Landing: Press ابدأ الآن

Login: 1. Create self-service account

Login: 2. Correct invalid input and resubmit

Bot Control: Load saved configuration

Bot Control: Select OTC pairs

Bot Control: Confirm 1-minute frame

Bot Control: Confirm OTC+1

Bot Control: Enable Feronix candle AI OTC signal

Bot Control: Review AI candle signal and confidence

Bot Control: 1. Press gold run control

Bot Control: 1. Read run state and current time

Bot Control: 2. Retry after start failure

Bot Control: 2. Stop running bot

Bot Control: 3. Resume stopped bot

Landing: Return and press ابدأ الآن

Login: 1. Verify identity

Login: 2. Retry failed verification

Bot Control: Review restored configuration

Bot Control: Adjust pairs or settings

Bot Control: Run or resume on current time

Bot Control: Monitor visible run state