Coder Social home page Coder Social logo

finance24's Introduction

SECURE COMMUNICATIONS WITHIN A LAN

==================================

Updated Communication Protocols
TCP with SSL/TLS:
For secure communication without the overhead of HTTPS.

Direct TCP/IP:
If security is managed at the network level (e.g., VPN, firewalls).

Frontend to Backend:
Using TCP with SSL/TLS for secure communication within the LAN.

Backend to Market Data Feed:
TCP/IP.

Backend to Position Server:
Using TCP with SSL/TLS for secure communication within the LAN.

Position Server to Database:
SQL over a secure connection if required.

DETAILED COMPONENTS AND DATA FLOW WITH UPDATED PROTOCOLS

Windows Frontend Application
User Interaction:
Trader places a buy/sell order.

Data Transmission:
Order details (e.g., symbol, quantity, price) sent to the Trading Backend via TCP with SSL/TLS.

Linux Trading Backend Service
Receive Order:
Backend receives the trade order.

Process Order:
Validates the order and interacts with the market data feed to execute the trade.

Update Position:
Sends the trade details to the Position Server via TCP with SSL/TLS.

Linux Position Server
Receive Trade Details:
Position server receives trade details.

Update Database:
Updates the positions in the database based on the trade.

Acknowledge Update:
Sends a confirmation back to the Trading Backend.

Database
Positions Table:
Stores the current positions of traders.

Trades Table:
Logs each trade executed.

Market Data Feed
Real-Time Data:
Provides live market data (e.g., prices, volumes) via TCP/IP.

Data Integration:
Trading Backend uses this data to execute trades at market prices.

Application Logs
Logging Events:
All significant events (e.g., order received, trade executed, position updated) are logged.

Storage:
Logs can be stored in files or centralized logging services (e.g., ELK stack).

UPDATED COMMUNICATION PATHS

Windows Frontend to Linux Backend (TCP with SSL/TLS)
Order Placement:
Direction: Windows Frontend -> Linux Backend
Protocol: TCP with SSL/TLS (for secure LAN transmission)
Data: Trade order details (symbol, quantity, price)

Linux Backend to Market Data Feed (TCP/IP)
Market Data Fetch:
Direction: Linux Backend <-> Market Data Feed
Protocol: TCP/IP
Data: Real-time market prices and volumes

Linux Backend to Linux Position Server (TCP with SSL/TLS)
Trade Execution Details:
Direction: Linux Backend -> Linux Position Server
Protocol: TCP with SSL/TLS (for secure LAN transmission)
Data: Trade details (trader_id, symbol, trade_type, quantity, price)

Position Server to Database (SQL)
Position and Trade Logging:
Direction: Linux Position Server -> Database
Protocol: SQL (Database connection)
Data: Position updates and trade logs

Application Logs
Event Logging:
Direction: All components -> Logging Service/Files
Protocol: Depends on logging implementation (e.g., file I/O, network logging services)
Data: Events, errors, and debug information


finance24's People

Contributors

gordodev avatar

Stargazers

César Pinheiro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.