Skip to content

Commit

Permalink
updated minor changes in symbol recognizer
Browse files Browse the repository at this point in the history
  • Loading branch information
thinh-vu committed Nov 9, 2024
1 parent ca622aa commit 18c03cf
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified assets/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
# Metadata Information
[project]
name = "vnstock3"
version = "0.3.0.9"
version = "3.1.0"
description = "A comprehensive and transparent solution for Vietnamese stock market analysis."
authors = [
{ name = "Thinh Vu", email = "vnstock.hq@gmail.com" },
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="vnstock3",
version="0.3.0.9",
version="3.1.0",
description="A comprehensive and transparent solution for Vietnamese stock market analysis.",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down
Binary file modified vnstock3/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion vnstock3/core/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_asset_type(symbol: str) -> str:
- 'coveredWarr' nếu mã chứng khoán là mã chứng quyền.
"""
symbol = symbol.upper()
if symbol in ['VN30', 'HNX30', 'VNINDEX', 'HNXINDEX', 'UPCOMINDEX']:
if symbol in ['VNINDEX', 'HNXINDEX', 'UPCOMINDEX', 'VN30', 'VN100', 'HNX30', 'VNSML', 'VNMID', 'VNALL', 'VNREAL', 'VNMAT', 'VNIT', 'VNHEAL', 'VNFINSELECT', 'VNFIN', 'VNENE', 'VNDIAMOND', 'VNCONS', 'VNCOND']:
return 'index'
elif len(symbol) == 3:
return 'stock'
Expand Down

0 comments on commit 18c03cf

Please sign in to comment.