thinh-vu / vnstock

A powerful Python library for getting rich data from the Vietnam Stock Market using just a few lines of code
https://vnstocks.com
Other
499 stars 130 forks source link

Cash FLow khi không có kết quả trả về bị lỗi #133

Open yellow1912 opened 2 months ago

yellow1912 commented 2 months ago

Đây là lỗi nếu tìm cách lấy Cash Flow của một symbol không có thông tin này (vnstock3 bản mới nhất) Unexpected error occurred while fetching Cash Flow: "None of [Index(['ticker', 'yearReport', 'lengthReport'], dtype='object')] are in the [columns]"

Theo mình thì nên đưa về 1 empty result thì đúng hơn.

thinh-vu commented 1 month ago

Hi @yellow1912 Cám ơn bạn đã báo lỗi, Bạn cho mình xin chi tiết 1 số mã mà bạn bắt gặp lỗi nhé. Việc này giúp mình kiểm tra và sửa lỗi đơn giản hơn thay vì ngồi test để tìm ra đâu là mã không có thông tin Cash Flow như bạn mô tả.

yellow1912 commented 1 month ago

Bạn có thể lấy subsidiaries của ACM

company = Vnstock().stock(symbol='ACM', source='TCBS').company
subsidiaries = company.subsidiaries()
print(subsidiaries)