Skip to content

deeleeramone/demo-risk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot 2025-03-31 at 7 41 48 PM

While the portfolio data is just a canned sample, one could likely insert their own model portfolios into the logic chain.

Python Installation

Install this in an environment with a version of Python between 3.9-3.12, inclusively.

  • Run, pip install -e .

  • Run, openbb-api --app demo_risk/app.py --host 0.0.0.0 --port 6020

  • Open the OpenBB Workspace.

  • Add http://127.0.0.1:6020 as a new custom backend.

  • Go to the templates page, click Refresh button.

  • Click on the new template.

  • Enjoy your burrito.

Screenshot 2025-03-25 at 2 39 06 PM

Docker Installation

To run the application using Docker:

  1. Build the Docker image:
docker build -t demo-risk .
  1. Run the container:
docker run -p 6020:6020 demo-risk
  1. Open the OpenBB Workspace.

  2. Add http://127.0.0.1:6020 as a new custom backend.

  3. Go to the templates page, click Refresh button.

  4. Click on the new template.

That's it.

Fly.io Deployment

To deploy the application on Fly.io:

  1. Install the Fly.io CLI:
curl -L https://fly.io/install.sh | sh
  1. Login to Fly.io:
fly auth login
  1. Initialize the app (if not already done):
fly launch
  1. Deploy the application:
fly deploy
  1. Open the deployed app:
fly open
  1. In the OpenBB Workspace:
  • Add the deployed URL (e.g., https://demo-risk.fly.dev) as a new custom backend.
  • Go to the templates page and click Refresh
  • Click on the new template

The application is now deployed and accessible from anywhere!

Note: the deployed URL may vary based on your configs.

About

Demonstration OpenBB Workspace application to show how sample portfolios respond to different market factors using Fama-French analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages