[Vnpy Quantitative Investment from Scratch] 10. Use simnow for simulated trading

[Vnpy Quantitative Investment from Scratch] 10. Use simnow for simulated trading

overview

Before officially starting real trading, how do we verify whether the strategy is really the same as the backtest performance. At this time, we need to use the same method as the real offer for testing. The main purpose of the simulated disk server is to provide an interactive mode that is completely consistent with the official trading server. Verify that the software is running normally by subscribing to the market from the server and initiating a transaction request.
In terms of use, except that the funds in the account are virtual, other aspects of the simulated server are almost the same as the real server. The simulated market generally supports two forms of market prices, one is the internal matching of the simulated market, and the other is the market that is completely consistent with the real market. Generally, we recommend using the same market price as the real market for testing. The internal matching market server is basically to provide developers with API verification methods during non-trading hours.

understand simnow

simnow is a futures simulation trading platform specially created for investors by Shangqi Technology Company, a wholly-owned subsidiary of Shanghai Futures Exchange, and a futures simulation system certified by Shanghai Futures Exchange Investor Education Network. Since it is a service provided by domestic official exchanges, it can basically guarantee reliable functions. Of course, simnow also has some usage restrictions similar to the real offer, for example, the network of the server may be disconnected during the closing time of each day. And before the early simnow official website was upgraded, even the website could not be accessed during non-trading hours. Later, the web service should be separated from the transaction server after the upgrade. Currently, the author can also access the website during non-trading hours.
Official website https://www.simnow.com.cn/
access document https://www.simnow.com.cn/product.action
access document contains a lot of information we need, such as server information, handling fee and margin information, etc. If you find that the simnow server cannot be connected, you can visit this interface to check whether the server has been updated to another address.
insert image description here

Guess you like

Origin blog.csdn.net/u011687355/article/details/130379530