Errata

Python for Algorithmic Trading

Errata for Python for Algorithmic Trading

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Page 14
line 3 to 4

It says:
Canonical examples throughout the book, when it comes to financial instruments traded, are a stock index, a single stock, or a crypto‐currency (denominated in a fiat currency).

But, since there is no explanation of cryptocurrency in this book, I think the phrase cryptocurrency should be removed.

Note from the Author or Editor:
The original manuscript for the book has a chapter about cryptocurrency trading, that is why it is listed in the mentioned sentence. But I agree, given the chapter didn't make it in the published version "cryptocurrency" should be removed.

Ryoko  Oct 05, 2021 
Page 44
last paragraph

To sign up on DigitalOcean with a 10 USD starting balance ... This pays for two months of usage for the smallest Droplet.

->

To sign up on DigitalOcean with a 100 USD starting balance ... This pays for 60-days of usage for the smallest Droplet.

Because when I actually access DigitalOcean, I get the following message:
"Free credit active: Get started on DigitalOcean with a $100, 60-day credit for new users."

Note from the Author or Editor:
These offerings change every once in a while. In this case, clearly to the benefit of the user (100 USD instead of just 10 USD).

Ryoko  Oct 22, 2021 
Page 62
circle 2

It says "…one hour is chosen (due to data retrieval limits).", but in the code on page 61, the time interval is 30 minutes from 15:00 to 15:30, as below.

```
In [48]: %%time
data = ek.get_timeseries(symbols[0],
start_date='2020-08-14 15:00:00',(1)
end_date='2020-08-14 15:30:00',(2)
interval='tick',(3)
fields=['*'])
CPU times: user 257 ms, sys: 17.3 ms, total: 274 ms
Wall time: 2.31 s
```

Note from the Author or Editor:
Indeed, the time interval in the code was later changes to 30 minutes (from 1 hour previously).

Ryoko  Oct 22, 2021 
Page 76
1st paragraph

There seems to be some inconsistency between the explanation in the text and the SQL code below.
The text says "consider a query that selects for column No1 all those rows where the value in that row lies between 105 and 108", while the SQL code mean "No1 is greater than 105 and No2 is less than 108".

Note from the Author or Editor:
True, text should read: "No1 is greater than 105 and No2 is less than 108".

Ryoko  Nov 09, 2021 
Page 177
last paragraph

It says:
First, the initial amount available is stored twice, both in a private attribute _amount
that is kept constant and in a regular attribute amount that represents the running bal‐
ance

"_amount" should be "initial_amount" or "_initial_amount"?
Because "_amount" does not appear in the source code.

Note from the Author or Editor:
Indeed, the text should read: "... in a private attribute initial_amount"

Ryoko  Dec 12, 2021