|
| enum class | OrderEventType { NEW_ORDER
, CANCEL_REQUEST
, SESSION_LOGON
, SESSION_LOGOUT
} |
| | 订单事件类型 More...
|
| |
| enum class | RejectReason {
NONE = 0
, INSTRUMENT_NOT_FOUND = 1
, INSUFFICIENT_FUNDS = 2
, PRICE_OUT_OF_LIMIT = 3
,
INSUFFICIENT_POSITION = 4
, NO_COUNTER_PARTY = 5
, ORDER_NOT_FOUND = 6
} |
| | 订单拒绝原因代码 More...
|
| |
| enum class | OffsetFlag { OPEN = 0
, CLOSE = 1
} |
| | 开平标志 More...
|
| |
| enum class | OrderSide { BUY = 1
, SELL = 2
} |
| | 买卖方向 More...
|
| |
| enum class | OrderType { MARKET = 1
, LIMIT = 2
} |
| | 订单类型 More...
|
| |
| enum class | TimeInForce { DAY = 0
, GTC = 1
, IOC = 3
, FOK = 4
} |
| | 订单有效期 More...
|
| |
| enum class | OrderStatus {
NEW = 0
, PARTIALLY_FILLED = 1
, FILLED = 2
, CANCELED = 4
,
REJECTED = 8
, PENDING_NEW = 10
, PENDING_CANCEL = 6
} |
| | 订单状态 More...
|
| |
| enum class | ExecTransType { NEW = 0
, CANCEL = 1
, CORRECT = 2
, STATUS = 3
} |
| | 执行事务类型 (FIX 4.0) More...
|
| |
| enum class | EventType : uint32_t { READ = 1
, WRITE = 2
} |
| | I/O 事件类型 More...
|
| |
| enum class | MdAdapterState {
DISCONNECTED
, CONNECTING
, CONNECTED
, LOGGING_IN
,
READY
, ERROR
} |
| | 行情适配器状态 More...
|
| |
|
| std::string | formatTransactTime (std::chrono::system_clock::time_point tp) |
| | 格式化 UTC 时间为 FIX 格式
|
| |
| std::string | sideToFix (OrderSide side) |
| | 将 OrderSide 转换为 FIX 字符串
|
| |
| std::string | ordTypeToFix (OrderType type) |
| | 将 OrderType 转换为 FIX 字符串
|
| |
| std::string | ordStatusToFix (OrderStatus status) |
| | 将 OrderStatus 转换为 FIX 字符串
|
| |
| std::string | execTransTypeToFix (ExecTransType type) |
| | 将 ExecTransType 转换为 FIX 字符串
|
| |
| FixMessage | buildExecutionReport (const ExecutionReport &report) |
| | 将 ExecutionReport 转换为 FIX 消息
|
| |
| FixMessage | create_logon_message (const std::string &sender, const std::string &target, int seq_num=1, int heart_bt=Config::instance().get_int("fix_session", "default_heartbeat_interval", 30), bool reset_seq_num=false) |
| | 创建 Logon 消息
|
| |
| FixMessage | create_heartbeat_message (const std::string &sender, const std::string &target, int seq_num, const std::string &test_req_id="") |
| | 创建 Heartbeat 消息
|
| |
| FixMessage | create_test_request_message (const std::string &sender, const std::string &target, int seq_num, const std::string &test_req_id) |
| | 创建 TestRequest 消息
|
| |
| FixMessage | create_logout_message (const std::string &sender, const std::string &target, int seq_num, const std::string &text="") |
| | 创建 Logout 消息
|
| |
| FixMessage | create_resend_request_message (const std::string &sender, const std::string &target, int seq_num, int begin_seq_no, int end_seq_no) |
| | 创建 ResendRequest 消息
|
| |
| FixMessage | create_sequence_reset_message (const std::string &sender, const std::string &target, int seq_num, int new_seq_no, bool gap_fill=true) |
| | 创建 SequenceReset 消息
|
| |
| bool | is_admin_message (const std::string &msg_type) |
| | 判断消息类型是否为管理消息
|
| |
| ExecutionReport | buildRejectReport (const Order &order, RejectReason reason, const std::string &text) |
| |