FIX 4.0 Demo 1.0
Loading...
Searching...
No Matches
fix_message_builder.hpp File Reference

FIX 消息构建辅助函数 More...

#include "fix/fix_codec.hpp"
#include "fix/fix_tags.hpp"
#include "app/model/order.hpp"
#include <sstream>
#include <iomanip>
#include <ctime>
Include dependency graph for fix_message_builder.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fix40
 

Functions

std::string fix40::formatTransactTime (std::chrono::system_clock::time_point tp)
 格式化 UTC 时间为 FIX 格式
 
std::string fix40::sideToFix (OrderSide side)
 将 OrderSide 转换为 FIX 字符串
 
std::string fix40::ordTypeToFix (OrderType type)
 将 OrderType 转换为 FIX 字符串
 
std::string fix40::ordStatusToFix (OrderStatus status)
 将 OrderStatus 转换为 FIX 字符串
 
std::string fix40::execTransTypeToFix (ExecTransType type)
 将 ExecTransType 转换为 FIX 字符串
 
FixMessage fix40::buildExecutionReport (const ExecutionReport &report)
 ExecutionReport 转换为 FIX 消息
 

Detailed Description

FIX 消息构建辅助函数

提供将内部数据结构转换为 FIX 消息的辅助函数。