FIX 4.0 Demo 1.0
Loading...
Searching...
No Matches
main.cpp File Reference

FIX 模拟交易服务端入口点 More...

#include "server/server.hpp"
#include "base/config.hpp"
#include "base/logger.hpp"
#include "app/simulation_app.hpp"
#include "app/model/instrument.hpp"
#include "storage/sqlite_store.hpp"
#include <iostream>
#include <csignal>
#include <filesystem>
#include <thread>
#include <atomic>
#include <fstream>
#include <map>
Include dependency graph for main.cpp:

Functions

void printUsage (const char *programName)
 打印使用帮助
 
int main (int argc, char *argv[])
 服务端主函数
 

Detailed Description

FIX 模拟交易服务端入口点

启动流程:

  1. 加载配置文件(config.ini 和 simnow.ini)
  2. 连接 CTP 交易前置,查询合约列表
  3. 连接 CTP 行情前置,订阅行情
  4. 启动 FIX 服务器,等待客户端连接
  5. 行情驱动撮合和账户价值更新

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

服务端主函数

Here is the call graph for this function:

◆ printUsage()

void printUsage ( const char *  programName)

打印使用帮助

Here is the caller graph for this function: