summaryrefslogtreecommitdiffstats
path: root/examples/README.md
blob: b50fc62499dc501f5252aa40c3c3a10583d7155e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Jupyter Notebook Examples Using the OpenBB Platform

This folder is a collection of example notebooks that demonstrate some of the ways to get started with using the OpenBB Platform.  To run them, ensure that the active kernel selected is the same Python virtual environment where OpenBB was installed.

## Table of Contents

### googleColab

This notebook installs the OpenBB Platform in a Google Colab environment with examples for:

- Logging into OpenBB Hub
- Setting the output preference
- Fetching options and company fundamentals data
- Creating bar chart visualizations

### findSymbols

This notebook provides an introduction to discovering, finding, and searching ticker symbols.

- Search
- Find company and institutional filings
- Screen stocks by region and metrics

### loadHistoricalPriceData

This notebook walks through collecting historical price data, at different intervals, using a variety of sources.

- Loading data with different intervals, and changing sources
- A brief explanation of ticker symbology
- Resampling a time series index
- Some differences between providers, and comparing outputs

### financialStatements

This set of examples introduces financial statements in the OpenBB Platform and compares the free cash flow yields of large-cap retail industry companies.

- Financial statements
- What to expect with data from different sources
- Financial attributes
- Ratios and other metrics

### copperToGoldRatio

This notebook explains how to calculate and plot the Copper-to-Gold ratio.

- Loading historical front-month futures prices.
- Getting the historical series from FRED for the 10-year constant maturity US treasury bill.
- Performing basic DataFrame operations.
- Creating charts with Plotly Graph Objects.

### openbbPlatformAsLLMTools

This notebook shows you how you can use OpenbB Platform as functions in an LLM by leveraging function calling.

- Create an LLM tool from an OpenBB Platform function
- Convert all OpenBB Platform functions to LLM tools
- Build a basic Langchain agent that can utilize function calling
- Run the agent

### usdLiquidityIndex

This notebook demonstrates how to query the Federal Reserve Economic Database and recreate the USD Liquidity Index.

- Search FRED for series IDs.
- Load multiple series as a single call.
- Unpacking the data response from the FRED query.
- Perform arithmetic operations on a DataFrame.
- Normalization methods for a series or DataFrame.
- Simple processes for creating charts.

### impliedEarningsMove

This notebook demonstrates how to calculate the implied earnings move using options prices from free sources.

- Get upcoming earnings calendar.
- Fetch options chains data.
- Get the last price of the underlying stock.
- Find the nearest call and put strikes to the last price of the stock.
- Calculate the implied daily move using the price of a straddle.