Skip to content

j-w-code/Module_5_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monte Carlo Simulator


Monte Carlo Simulator

This project covers the use of API Requests and the python MCSimulator library to run financial simulations on portfolio balances.

"The House always wins!"

Technologies

This project uses Python, Pandas Libraries, and the MC Simulator to run virtual projections of possible profits.

pandas MC-Simulator

Installation Guide

In order to use this program please import and utilize the following libraries and dependencies:

import os
import requests
import json
import pandas as pd
from dotenv import load_dotenv
import alpaca_trade_api as tradeapi
from MCForecastTools import MCSimulation
%matplotlib inline

Usage

the following blocks of Pandas library are fundamental in executing the program.

load_dotenv()

This imports the ENV file.

requests.get().json()

This is needed for making a request of the python library and formatting it in the JSON output.

alpaca.get_bars()

This is needed to make an API request for the specific API "Alpaca".

MCSimulation.calc_cumulative_return()

This is a portion of code for running the sequence of simulations for forecasting.

MCSimulation.plot_simulation()

This code will plot above simulation as an overlay line plot.

<alt text>

Contributors

Jeffrey J. Wiley Jr

License

MIT

About

a Monte Carlo simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published