2.5. Hàm theo dõi huỷ lệnh
from FiinQuantX import FiinSession
username = "REPLACE_WITH_YOUR_USERNAME"
password = "REPLACE_WITH_YOUR_PASSWORD"
client = FiinSession(username=username, password=password).login()
order_book = client.OrderBook()
ticker_config = {
"VJC": {"min_volume": 100_000},
"VNM": {"min_volume": 100_000},
"VPB": {"min_volume": 100_000},
"VRE": {"min_volume": 100_000}
}
def process_data(data: dict):
print(data)
# Theo dõi hủy lệnh bất thường
order_book.track_order_book_changes(ticker_config=ticker_config, action="add", accumulate_window=60, callback=process_data)

Ứng dụng thực tế:
Last updated