Historical¶
Get the historical price data of a stock ticker.
Example:
Use equity.price.historical() with default parameters: provider (TCBS), interval (1d), end_date (current date), start_date (current date - 60).
from vietfin import vf
# Get the historical price data of company CTG
vf.equity.price.historical(symbol="ctg")
Parameters¶
param_name |
type |
description |
default_value |
is_required |
|---|---|---|---|---|
symbol |
str |
Symbol to get data for. |
TRUE |
|
start_date |
str |
Start date of the data, in YYYY-MM-DD format. |
None |
FALSE |
end_date |
str |
End date of the data, in YYYY-MM-DD format. |
None |
FALSE |
interval |
str |
Time interval of the data to return. |
1d |
FALSE |
provider |
Literal |
The provider to use for the query |
tcbs |
FALSE |
Data Model¶
field_name |
type |
description |
|---|---|---|
date |
date |
The date of the data. |
open |
float |
The open price. |
high |
float |
The high price. |
low |
float |
The low price. |
close |
float |
The close price. |
volume |
int |
The trading volume. |
field_name |
type |
description |
|---|---|---|
date |
date |
The date of the data. |
open |
float |
The open price. |
high |
float |
The high price. |
low |
float |
The low price. |
close |
float |
The close price. |
volume |
int |
The trading volume. |
field_name |
type |
description |
|---|---|---|
date |
date |
The date of the data. |
open |
float |
The open price. |
high |
float |
The high price. |
low |
float |
The low price. |
close |
float |
The close price. |
volume |
int |
The trading volume. |
Data Sources¶
DNSE: banggia.dnse.com.vn
SSI: iboard.ssi.com.vn