Closed amolkittur closed 1 month ago
@amolkittur Its possible to get a better documentation like this: https://docs.docker.com/engine/api/v1.25/#tag/Image refer to: https://fastapi.tiangolo.com/#alternative-api-docs-upgrade to how to do this for our project. Include this in your story.
Funds Validator
{
"18Jul24_Portfolio_AccountValue": 141559,
"18Jul24_Portfolio_FreeCash": 141558.6,
"18Jul24_Portfolio_Holdings": 81028
}
{
"Equity": {
"18Jul24_Equity_AccountValue": 141559,
"18Jul24_Equity_FreeCash": 141558.6,
"18Jul24_Equity_Holdings": 81028
}
}
Market Info Endpoint
{
"EquityQtyAmplifier": 1,
"OBQtyAmplifier": 2,
"OSQtyAmplifier": 1,
"TradeView": "Bullish"
}
Daily Instrument Aggregator
Calculate Quantity
{
"Strategy1": {
"Qty": 28,
"CapitalAllocation": 50,
"StrategyName": "PyStocks",
"TradeState": {
"orders": [
{
"avg_prc": 83.2,
"exchange_token": 9881,
"message": "PASS",
"order_id": "240212501608640",
"qty": 321,
"time_stamp": "2024-02-12 10:12",
"trade_id": "PS2_LG_MO_EN"
}
]
}
}
}
Place Orders
Trade State Verification
Database Logging Verification
Holdings Collection Verification
1. Admin
2. Backend
Fast API
3. Frontend
@amolkittur Its possible to get a better documentation like this: https://docs.docker.com/engine/api/v1.25/#tag/Image refer to: https://fastapi.tiangolo.com/#alternative-api-docs-upgrade to how to do this for our project. Include this in your story.
I will check and update the swagger/docs into a new look
Endpoints for admin pages
Funds Validator
{
"18Jul24_Portfolio_AccountValue": 141559,
"18Jul24_Portfolio_FreeCash": 141558.6,
"18Jul24_Portfolio_Holdings": 81028
}
As discussed with @omkarh25 , we will update the base capital field in the accounts section and split the capital based on the Capital Allocation during the onboarding process. After the freecash values have been updated in the segment, we start trading from the freecash available in the segment and maintain the account separately for each segment.
For quantity calculation, we can directly fetch the freecash from the segment, calculate the quantity, and trade with the calculated quantity. At the end of the day (EOD), we calculate the P&L, holdings, and update the values in the segment.
Today we celebrate a key milestone: our system's first successful order. This achievement marks the beginning of an exciting phase of enhancements and growth for our project.
Major error
This document is for planned enhancements for our software across Admin, Backend, and Frontend components to improve functionality and user experience over the next 2 weeks.
Setup Env files for prod, staging and dev
Update the admin section with the primary accounts
Update the primary accounts with the live brokers (Zerodha and Firstock)
Logic for Funds Validation at the portfolio level
Qty calculation (Done)
Instrument Aggregator
Separate script for equity calculation which needs to be executed before the market hours
Schedule the tasks (short, mid and long term) i.e daily, weekly and monthly
Error handling logic for new user while placing stoploss
Eod report should include all the opted segments
Refactoring the fast api endpoints used for onboarding process
Add indicators/strategies to mid and long term
Order executor endpoints
Endpoint to modify the orders/stoploss
Send notice to all users
Admin dashboard page (Should include AUM/ graphs)
Live pnl and live positions for users
@amolkittur Closing this issue. Hope you have transferred all the remaining tasks to phase 2. Well done!
Equity Module Testing
Description
We need to perform comprehensive testing of the Equity module, focusing on the short-term, mid-term, and long-term modules. The primary objectives are to ensure that orders are placed correctly, logged accurately, and properly written to the database under holdings.
Tasks
Test the short-term module
Test the mid-term module
Test the long-term module
Acceptance Criteria
Additional Notes