Skip to main content

load

Load stock ticker to perform analysis on. When the data source is syf', an Indian ticker can be loaded by using '.NS' at the end, e.g. 'SBIN.NS'. See available market in https://help.yahoo.com/kb/exchanges-data-providers-yahoo-finance-sln2310.html.

Usage​

load -t TICKER [-s START] [-e END] [-i {1,5,15,30,60}] [-p] [-f FILEPATH] [-m] [-w] [-r {ytd,1y,2y,5y,6m}]

Parameters​

NameDescriptionDefaultOptionalChoices
tickerStock tickerNoneFalseNone
startThe starting date (format YYYY-MM-DD) of the stock2020-01-01TrueNone
endThe ending date (format YYYY-MM-DD) of the stock2023-01-05TrueNone
intervalIntraday stock minutes1440True1, 5, 15, 30, 60
prepostPre/After market hours. Only works for 'yf' source, and intraday dataFalseTrueNone
filepathPath to load custom file.NoneTrueNone
monthlyLoad monthly dataFalseTrueNone
weeklyLoad weekly dataFalseTrueNone
iexrangeRange for using the iexcloud api. Longer range requires more tokens in accountytdTrueytd, 1y, 2y, 5y, 6m

Examples​

txt
2022 Feb 16, 08:29 (🦋) /stocks/ $ load TSLA

Loading Daily TSLA stock with starting period 2019-02-11 for analysis.

Datetime: 2022 Feb 16 08:30
Timezone: America/New_York
Currency: USD
Market: OPEN

2022 Feb 16, 08:30 (🦋) /stocks/ $ load AAPL

Loading Daily AAPL stock with starting period 2019-02-11 for analysis.

Datetime: 2022 Feb 16 08:30
Timezone: America/New_York
Currency: USD
Market: OPEN

2022 Feb 16, 08:30 (🦋) /stocks/ $ load AMZN

Loading Daily AMZN stock with starting period 2019-02-11 for analysis.

Datetime: 2022 Feb 16 08:30
Timezone: America/New_York
Currency: USD
Market: OPEN