Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Robo-Advisor with Python

You're reading from   Robo-Advisor with Python A hands-on guide to building and operating your own Robo-advisor

Arrow left icon
Product type Paperback
Published in Feb 2023
Publisher Packt
ISBN-13 9781801819695
Length 250 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Aki Ranin Aki Ranin
Author Profile Icon Aki Ranin
Aki Ranin
Arrow right icon
View More author details
Toc

Table of Contents (22) Chapters Close

Preface 1. Part 1: The Basic Elements of Robo-Advisors
2. Chapter 1: Introduction to Robo-Advisors FREE CHAPTER 3. Chapter 2: What Makes Up a Robo-Advisor? 4. Chapter 3: Robo-Advisor Platforms versus Algorithms 5. Chapter 4: Leasing, Buying, or Building Your Own Robo-Advisor 6. Part 2: Building Your Own Robo-Advisor
7. Chapter 5: Basic Setup and Requirements for Building a Robo-Advisor 8. Chapter 6: Goal-Based Investing 9. Chapter 7: Risk Profiling and Scoring 10. Chapter 8: Model Portfolio Construction 11. Chapter 9: Investment Projections 12. Chapter 10: Account Opening and KYC 13. Chapter 11: Funding Your Account 14. Chapter 12: Order Management and Execution 15. Part 3: Running and Operating Your Own Robo-Advisor
16. Chapter 13: Performance Reporting 17. Chapter 14: Rebalancing 18. Chapter 15: Dividends and Fee Management 19. Chapter 16: Regulations for Robo-Advisors 20. Index 21. Other Books You May Enjoy

Creating your first investment Goal using Python

Let’s pick things up from where we left off in the previous chapter. Open up Google Colab in your browser of choice, and either continue in your existing Colab notebook or create a new one for this chapter.

If you don’t have much experience with programming languages, then a key concept you will need to learn about is classes. To make it simple, a class is a place to store information that you want to reuse in your code. This helps avoid having to write the same code over and over again, which is a common source of errors. Goals are something we plan to reuse across our code, and therefore it’s useful to define some details about Goals to make our life easier later on. This prevents us from having to copy and paste sections of code including lists of variables and will help us maintain code that can be easily updated when changes are needed.

In our situation, the first useful class will be Goal. This is because...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image