Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Clean-up of African market data in VNPY market data

Shulou Source: shulou.com Published: 2022-06-03 00:17:51 10月03日 Update

In the previous article, a friend left a message and asked that sometimes after 3 p.m., vnpy could not strive to generate indicator data in the night market. Because I failed to answer the message, I wrote a special article.

In fact, the reason is that trading ends at 3pm, and night trading is actually the next day. After that, the ctp interface will send some non-market data, such as futures market notification, margin adjustment, some information about your trading account, and so on.

How to eliminate it? in fact, the best thing is to close vnpy after 3 o'clock and manually run it in examples\ DataRecording\ runDataRecording.py; and python runDataRecording.py directly.

Before running, first write down the varieties to be cleaned, in DR_setting.json, add the varieties to be cleaned.

Tags: Data variety trading operation market margin information reason that is market manual index interface time best sometimes friends futures market article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Xiaomi vpn NVidia MySQL