Skip to content

EPS

Overview

Sync from Vietstock

Idea

Handle by get the exchange then out immediately

First get the metadata of exchange that expectly in.

Exchange code Rejected to submit task
HOSE No
HOSE No
OTC Yes

Reject by the financial instrument type

Exchange code Rejected to submit task
Common Stock No
Funds Yes
Derivaties Yes. Can be filter by URL [https://finance.vietstock.vn/derivatives/VN30F1M/futures.htm]
Bond Yes

Example: IPAAM VN100 (HOSE: FUEIP100

Wait time of sequences approach

When the task has been run (aka 30 times) then call a process to wait

Detect accepted ranges of updated data

At the current value, find the fiscal updated data, then build the accepted ranges of updated dataset.

Example:

At June 19th, 2024, the fiscal updated data is 2024-Q1, then construct the accepted range of [2024-Q1, 2023-Q3, 2023-Q1]

Compare 2 stage of numbers:

  • First get the latest updated data point, mark as FROM_SOURCE

  • Then get the latest updated data point in the database, mark as FROM_INTERNAL

If the period is the same then out of the task and mask ALIGN_WITH_SOURCE

If not, validate the FROM_SOURCE is in UPDATE_WITH_MARKET

This supported fast updated time of component

Has the report of each run sequences

At the each flow, then build a updated reports with following metadata

Code Description
ALIGN_WITH_SOURCE There is no update from source
UPDATE_WITH_MARKET Updated with market
NOT_EXISTED_RUN_LAST_7D Not existed run last 7D

Build reject values in any style (memory, file, database)

This will reject the value

Troubleshooting

Crash: OTC not has metadata of the fundamental snapshot

Example: YSC in OTC

selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash

This case can be the true case of a requried run.

This can be filter by the errors then re-updated if in the required updated case.

Example: VPB has failed