Skip to content

Commit

Permalink
Updated READMEs for individual chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
guanidene committed Sep 2, 2020
1 parent 5cebeaf commit 0275a61
Show file tree
Hide file tree
Showing 11 changed files with 163 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Chapter01/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
Learn everything about the Python DateTime module and Pandas DataFrames required
to handle time series data efficiently.

### List of Recipes in this chapter
1. Creating datetime objects
2. Creating timedelta objects
3. Operations on datetime objects
4. Modifying datetime objects
5. Converting a datetime object to a string
6. Creating a datetime object from a string
7. The datetime object and time zones
8. Creating a pandas.DataFrame object
9. DataFrame manipulation: renaming, rearranging, reversing, and slicing
10. DataFrame manipulation: applying, sorting, iterating and concatenating
11. Converting a DataFrame into other formats
12. Creating a DataFrame from other formats

*[**[Click here to VIEW Chapter 1 Jupyter Notebook on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter01/CHAPTER%201.ipynb)**]*
<br>
*[**[Click here to RUN Chapter 1 Jupyter Notebook in the cloud using binder. No installation needed on your end.](https://mybinder.org/v2/gh/PacktPublishing/Python-Algorithmic-Trading-Cookbook/master?filepath=Chapter01/CHAPTER%201.ipynb)**]*
Expand Down
15 changes: 15 additions & 0 deletions Chapter02/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ Learn how to setup Python connectivity with a broker, fetch financial instrument
and get a quick hands-on at placing simple orders. Also, learn about querying
margins and calculating brokerage and government taxes.

### List of Recipes in this chapter
1. Setting up Python connectivity with the Broker
2. Querying a list of Instruments
3. Fetching an instrument
4. Querying a list of Exchanges
5. Querying a list of Segments
6. Variety Types, Product Types and Order Types
7. Placing a simple REGULAR order
8. Placing a simple BRACKET order
9. Placing a simple INTRADAY order
10. Placing a simple DELIVERY order
11. Querying Margins and Funds
12. Calculating the Brokerage charged
13. Calculating the government taxes charged

*[**[Click here to VIEW Chapter 2 Jupyter Notebook on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter02/CHAPTER%202.ipynb)**]*
<br>
*[**[Click here to RUN Chapter 2 Jupyter Notebook in the cloud using binder. No installation needed on your end.](https://mybinder.org/v2/gh/PacktPublishing/Python-Algorithmic-Trading-Cookbook/master?filepath=Chapter02/CHAPTER%202.ipynb)**]*
Expand Down
17 changes: 17 additions & 0 deletions Chapter03/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
### Chapter 3: Fetching Financial Data
Learn everything about Financial Instruments in-depth.

### List of Recipes in this chapter
1. Fetching the list of Financial Instruments
2. Attributes of a Financial Instrument
3. Expiry of Financial Instruments
4. Circuit Limits of a Financial Instrument
5. Market depth of a Financial Instrument
6. Total Pending Buy Quantity of a Financial Instrument
7. Total Pending Sell Quantity of a Financial Instrument
8. Total Volume traded for the day of a Financial Instrument
9. Last Traded Price of a Financial Instrument
10. Last Traded Time of a Financial Instrument
11. Last Traded Quantity of a Financial Instrument
12. The recorded Open price of the day of a Financial Instrument
13. The recorded Highest price of the day of a Financial Instrument
14. The recorded Lowest price of the day of a Financial Instrument
15. The recorded Close price of the last traded day of a Financial Instrument

*[**[Click here to VIEW Chapter 3 Jupyter Notebook on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter03/CHAPTER%203.ipynb)**]*
<br>
*[**[Click here to RUN Chapter 3 Jupyter Notebook in the cloud using binder. No installation needed on your end.](https://mybinder.org/v2/gh/PacktPublishing/Python-Algorithmic-Trading-Cookbook/master?filepath=Chapter03/CHAPTER%203.ipynb)**]*
Expand Down
9 changes: 9 additions & 0 deletions Chapter04/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ Learn how to fetch and understand historical data. Also learn how to fetch, comp
and plot various candlesticks patterns including Japanese (OHLC), Renko, Line Break
and Heikin-Ashi.

### List of Recipes in this chapter
1. Fetching historical data using the broker API
2. Fetching historical data with the Japanese (OHLC) candlestick pattern
3. Fetching the Japanese candlestick pattern with variations in candle intervals
4. Fetching historical data with the Line Break candlestick pattern
5. Fetching historical data with the Renko candlestick pattern
6. Fetching historical data with the Heikin-Ashi candlestick pattern
7. Fetching historical data using Quandl

*[**[Click here to VIEW Chapter 4 Jupyter Notebook & interact with charts on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter04/CHAPTER%204.ipynb)**]*
<br>
*[**[Click here to RUN Chapter 4 Jupyter Notebook in the cloud using binder. No installation needed on your end.](https://mybinder.org/v2/gh/PacktPublishing/Python-Algorithmic-Trading-Cookbook/master?filepath=Chapter04/CHAPTER%204.ipynb)**]*
Expand Down
12 changes: 12 additions & 0 deletions Chapter05/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
Learn how to compute and plot 10 types of Technical Indicators including Trend
Indicators, Momentum Indicators, Volatility Indicators and Volume Indicators.

### List of Recipes in this chapter
1. Trend Indicator: Simple Moving Average
2. Trend Indicator: Exponential Moving Average
3. Trend Indicator: Moving Average Convergence Divergence
4. Trend Indicator: Parabolic Stop and Reverse
5. Momentum Indicator: Relative Strength Index
6. Momentum Indicator: Stochastic Oscillator
7. Volatility Indicator: Bollinger Bands
8. Volatility Indicator: Average True Range
9. Volume Indicator: On Balance Volume
10. Volume Indicator: Volume Weighted Average Price

*[**[Click here to VIEW Chapter 5 Jupyter Notebook & interact with charts on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter05/CHAPTER%205.ipynb)**]*

### Requirements
Expand Down
22 changes: 22 additions & 0 deletions Chapter06/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@ two order codes and four order varieties. Learn to query the order status in
real-time. Also, learn about the possible order states supported by the broker
and the order life-cycle for Regular Orders.

### List of Recipes in this chapter
1. Placing a Regular Market Order
- Buy, Regular, Intraday, Market Order
- Sell, Regular, Intraday, Market Order
- Buy, Regular, Delivery, Market Order
- Sell, Regular, Delivery, Market Order
2. Placing a Regular Limit Order
- Buy, Regular, Intraday, Limit Order
- Sell, Regular, Intraday, Limit Order
- Buy, Regular, Delivery, Limit Order
- Sell, Regular, Delivery, Limit Order
3. Placing a Regular Stoploss-Limit Order
- Buy, Regular, Intraday, Stoploss-Limit Order
- Sell, Regular, Intraday, Stoploss-Limit Order
- Buy, Regular, Delivery, Stoploss-Limit Order
- Sell, Regular, Delivery, Stoploss-Limit Order
4. Placing a Regular Stoploss-Market Order
- Buy, Regular, Intraday, Stoploss-Market Order
- Sell, Regular, Intraday, Stoploss-Market Order
- Buy, Regular, Delivery, Stoploss-Market Order
- Sell, Regular, Delivery, Stoploss-Market Order

*[**[Click here to VIEW Chapter 6 Jupyter Notebook on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter06/CHAPTER%206.ipynb)**]*
<br>
*[**[Click here to RUN Chapter 6 Jupyter Notebook in the cloud using binder. No installation needed on your end.](https://mybinder.org/v2/gh/PacktPublishing/Python-Algorithmic-Trading-Cookbook/master?filepath=Chapter06/CHAPTER%206.ipynb)**]*
Expand Down
20 changes: 20 additions & 0 deletions Chapter07/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ order status in real-time. Learn about target, stoploss and trailing stoploss.
Also, learn about the possible order states supported by the broker and the
order life-cycle for both Bracket and Cover Orders.

### List of Recipes in this chapter
1. Placing a Bracket Limit Order
- Buy, Bracket, Intraday, Limit Order (without Trailing Stoploss)
- Sell, Bracket, Intraday, Limit Order (without Trailing Stoploss)
2. Placing a Bracket Stoploss-Limit Order
- Buy, Bracket, Intraday, Stoploss-Limit Order (without Trailing Stoploss)
- Sell, Bracket, Intraday, Stoploss-Limit Order (without Trailing Stoploss)
3. Placing a Bracket Limit Order with Trailing Stoploss
- Buy, Bracket, Intraday, Limit Order with Trailing Stoploss
- Sell, Bracket, Intraday, Limit Order with Trailing Stoploss
4. Placing a Bracket Stoploss-Limit Order with Trailing Stoploss
- Buy, Bracket, Intraday, Stoploss-Limit Order with Trailing Stoploss
- Sell, Bracket, Intraday, Stoploss-Limit Order with Trailing Stoploss
5. Placing a Cover Market Order
- Buy, Cover, Intraday, Market Order
- Sell, Cover, Intraday, Market Order
6. Placing a Cover Limit Order
- Buy, Cover, Intraday, Limit Order
- Sell, Cover, Intraday, Limit Order

*[**[Click here to VIEW Chapter 7 Jupyter Notebook on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter07/CHAPTER%207.ipynb)**]*
<br>
*[**[Click here to RUN Chapter 7 Jupyter Notebook in the cloud using binder. No installation needed on your end.](https://mybinder.org/v2/gh/PacktPublishing/Python-Algorithmic-Trading-Cookbook/master?filepath=Chapter07/CHAPTER%207.ipynb)**]*
Expand Down
14 changes: 14 additions & 0 deletions Chapter08/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
Learn how to code your own algorithmic trading strategy from scratch using
two strategy coding examples involving Regular and Bracket orders respectively.

### List of Recipes in this chapter
1. EMA-Regular-Order Strategy: Coding the `__init__`, `initialize`, `name` and `versions_supported` methods
2. EMA-Regular-Order Strategy: Coding the `strategy_select_instruments_for_entry` method
3. EMA-Regular-Order Strategy: Coding the `strategy_enter_position` method
4. EMA-Regular-Order Strategy: Coding the `strategy_select_instruments_for_exit` method
5. EMA-Regular-Order Strategy: Coding the `strategy_exit_position` method
6. EMA-Regular-Order Strategy: Uploading the strategy on AlgoBulls Trading Platform
7. MACD-Bracket-Order Strategy: Coding the `__init__`, `initialize`, `name` and `versions_supported` method
8. MACD-Bracket-Order Strategy: Coding the `strategy_select_instruments_for_entry` method
9. MACD-Bracket-Order Strategy: Coding the `strategy_enter_position` method
10. MACD-Bracket-Order Strategy: Coding the `strategy_select_instruments_for_exit` method
11. MACD-Bracket-Order Strategy: Coding the `strategy_exit_position` method
12. MACD-Bracket-Order Strategy: Uploading the strategy on AlgoBulls Trading Platform

*[**[Click here to VIEW Chapter 8 Jupyter Notebook on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter08/CHAPTER%208.ipynb)**]*

### Requirements
Expand Down
14 changes: 14 additions & 0 deletions Chapter09/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ strategy coding examples involving Regular and Bracket orders respectively.
Also, learn to fetch execution logs and various types of Backtesting reports
including P&L report, statistics report and order history log for your strategy.

### List of Recipes in this chapter
1. EMA-Regular-Order Strategy: Fetching the Strategy
2. EMA-Regular-Order Strategy: Backtesting the Strategy
3. EMA-Regular-Order Strategy: Fetching Backtesting Logs in real time
4. EMA-Regular-Order Strategy: Fetching Backtesting Report - Profit-&-Loss Table
5. EMA-Regular-Order Strategy: Fetching Backtesting Report - Statistics Table
6. EMA-Regular-Order Strategy: Fetching Backtesting Report - Order History
7. MACD-Bracket-Order Strategy: Fetching the Strategy
8. MACD-Bracket-Order Strategy: Backtesting the Strategy
9. MACD-Bracket-Order Strategy: Fetching Backtesting Logs in real time
10. MACD-Bracket-Order Strategy: Fetching Backtesting Report - Profit-&-Loss Table
11. MACD-Bracket-Order Strategy: Fetching Backtesting Report - Statistics Table
12. MACD-Bracket-Order Strategy: Fetching Backtesting Report - Order History

*[**[Click here to VIEW Chapter 9 Jupyter Notebook on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter09/CHAPTER%209.ipynb)**]*
<br>
*[**[Click here to RUN Chapter 9 Jupyter Notebook in the cloud using binder. No installation needed on your end.](https://mybinder.org/v2/gh/PacktPublishing/Python-Algorithmic-Trading-Cookbook/master?filepath=Chapter09/CHAPTER%209.ipynb)**]*
Expand Down
14 changes: 14 additions & 0 deletions Chapter10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ orders respectively. Also, learn to fetch execution logs and various
types of Paper Trading reports including P&L report, statistics report
and order history log in real-time for your strategy.

### List of Recipes in this chapter
1. EMA-Regular-Order Strategy: Fetching the Strategy
2. EMA-Regular-Order Strategy: Paper Trading the Strategy
3. EMA-Regular-Order Strategy: Fetching Paper Trading Logs in real time
4. EMA-Regular-Order Strategy: Fetching Paper Trading Report - Profit-&-Loss Table
5. EMA-Regular-Order Strategy: Fetching Paper Trading Report - Statistics Table
6. EMA-Regular-Order Strategy: Fetching Paper Trading Report - Order History
7. MACD-Bracket-Order Strategy: Fetching the Strategy
8. MACD-Bracket-Order Strategy: Paper Trading the Strategy
9. MACD-Bracket-Order Strategy: Fetching Paper Trading Logs in real time
10. MACD-Bracket-Order Strategy: Fetching Paper Trading Report - Profit-&-Loss Table
11. MACD-Bracket-Order Strategy: Fetching Paper Trading Report - Statistics Table
12. MACD-Bracket-Order Strategy: Fetching Paper Trading Report - Order History

*[**[Click here to VIEW Chapter 10 Jupyter Notebook on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter10/CHAPTER%2010.ipynb)**]*
<br>
*[**[Click here to RUN Chapter 10 Jupyter Notebook in the cloud using binder. No installation needed on your end.](https://mybinder.org/v2/gh/PacktPublishing/Python-Algorithmic-Trading-Cookbook/master?filepath=Chapter10/CHAPTER%2010.ipynb)**]*
Expand Down
12 changes: 12 additions & 0 deletions Chapter11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ involving Regular and Bracket orders respectively. Also, learn to fetch
execution logs and various types of Real Trading reports including P&L
reports and statistics reports in real-time for your strategy.

### List of Recipes in this chapter
1. EMA-Regular-Order Strategy: Fetching the Strategy
2. EMA-Regular-Order Strategy: Real Trading the Strategy
3. EMA-Regular-Order Strategy: Fetching Real Trading Logs in real time
4. EMA-Regular-Order Strategy: Fetching Real Trading Report - Profit-&-Loss Table
5. EMA-Regular-Order Strategy: Fetching Real Trading Report - Statistics Table
6. MACD-Bracket-Order Strategy: Fetching the Strategy
7. MACD-Bracket-Order Strategy: Real Trading the Strategy
8. MACD-Bracket-Order Strategy: Fetching Real Trading Logs in real time
9. MACD-Bracket-Order Strategy: Fetching Real Trading Report - Profit-&-Loss Table
10. MACD-Bracket-Order Strategy: Fetching Real Trading Report - Statistics Table

*[**[Click here to VIEW Chapter 11 Jupyter Notebook on nbviewer](https://nbviewer.jupyter.org/github/PacktPublishing/Python-Algorithmic-Trading-Cookbook/blob/master/Chapter11/CHAPTER%2011.ipynb)**]*
<br>
*[**[Click here to RUN Chapter 11 Jupyter Notebook in the cloud using binder. No installation needed on your end.](https://mybinder.org/v2/gh/PacktPublishing/Python-Algorithmic-Trading-Cookbook/master?filepath=Chapter11/CHAPTER%2011.ipynb)**]*
Expand Down

0 comments on commit 0275a61

Please sign in to comment.