Coder Social home page Coder Social logo

finance_pyes's Introduction

Finance Pyes ๐Ÿ• ฯ€ ๐Ÿฅง - Enjoy! ๐Ÿ˜‹

A collection of various finance related projects done in python. They are all in separate jupyter notebooks that contain basic examples of all the topics that I was interested to explore. In the following you have short links and descriptions of all my projects.

Have fun exploring yourself! Feel free to experiment with everything you find! ๐Ÿ™ƒ

In this notebook we gather our financial data and preprocess it into the form that is most commonly used in real-life projects.

We use CoinGecko to obtain our historical data. You may find other sources such as Yahoo Finance, Coinmarketcap or Alpha Vantage as good alternatives too. Just keep in mind that data differs among sources as the respective sites also get their data from different sources and might use other methods to adjust the prices for corporate actions.

Once we prepare our historical data, we will investigate whether it follows certain patterns (called stylized facts) commonly observed in financial assets.

In this notebook we cover the following topics:

  • Getting data from CoinGecko
  • Converting prices to returns
  • Financial Data and Preprocessing
  • Visualizing time series data
  • Identifying outliers
  • Investigating stylized facts of asset returns

In this notebook I do some basic portfolio optimisation and statistical analysis. My universe of securities is pretty short here (only 14 stocks), but you should get the idea. For better performence try to use a larger amount.

Also I have provided code to get financial data using different API (yahoo finance and quandl). But I like to work with yfinance ๐Ÿ˜Š

I am really found of financial markets. After reading some books, learning some machine learning tools, joining Datacrunch community and working with their datasets using various ML models, I've got inspired to create this notebook.

The idea here is to get live quotes for a stock, create features (using RSI, Moving Averages, etc) Then train a simple tree model on those features against the custom target.

You can use different API for finance data (yahoo finance, quandl etc)

In this notebook, we go through the basics of time series modeling.

We explore the building blocks of time series and how to separate them using some decomposition methods. We introduce the concept of stationarity and why it is important, how to test for it, and ultimately how to achieve it in case the original series is not stationary. We also look into the most widely used approach to time series modeling โ€” ARIMA class models.

We cover the following:

  • Decomposing time series
  • Correcting for stationarity in time series
  • Modeling time series with ARIMA class models
  • Forecasting using ARIMA class models

We will explore everything mentioned above using Weekly Apple's stock prices in 2015-2022.

finance_pyes's People

Contributors

oksanakalytenko avatar

Stargazers

Tobias 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.