Skip to content

TeroMeht/Tradeapplication

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the production server:

Frontend:

npm run start

Backend:

python .\FlaskApp.py

Now open http://localhost:3000 with your browser to see the result.

System higher level hierachy

image

UI views and functionalities

Home page

image

Alarms are shown on the right side bar with option that user can show only alarms from today.

Live streamer controlling

image

Start watchliststreamer with input tickers. Show database last rows in the table.

Order and position management

image

There is Alpaca API for Tradeview integration where user can place stop level manually. Order will show here. Another method is automatic generated order when entry is triggered. Below there is open position management table. It includes request exit button which will tell to code that if there is certain trigger this position will be closed automatically using market order in IBKR TWS API.

Market scanners

image

Scanning real time market with certain parameters. The most extreme moves should pop up.

TODO:

  • Backend to FaskAPI and making it solid asynchronous with IB client
  • Monthly view on the home page
  • Risk levels order management improvments (add to order,

Endpoint testing script

POST request

$uri = "http://localhost:8080/api/portfoliomanager"

$body = @{ Symbol = "MU" Alarm = "endofday_exit" Date = "2026-01-15" Time = "10:12:00" } | ConvertTo-Json

Invoke-RestMethod -Uri $uri -Method Post -ContentType "application/json" -Body $body

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published