Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

nexusfixnexusfix 开发

Agent Skill

nexusfix 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,913

周安装

119

GitHub Stars

公开资料未说明

下载量

942
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nexusfix(nexusfix 开发)
来源仓库:https://github.com/alan-stratcraftsai/nexusfix
安装命令:
openclaw skills install nexusfix
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install nexusfix

简介

nexusfix 用于 C++ FIX 协议代码开发与调试,适合金融交易系统开发。

  • 覆盖会话管理、订单输入和市场数据订阅等核心功能。
  • 通过 clawhub 安装后,辅助构建符合 NexusFIX 标准的程序。
  • 安装前需确认编译环境和依赖库版本,避免链接错误。
  • 建议在模拟环境中测试消息流,确保协议合规性。

SKILL.md

name
nexusfix
description
Use when building, reviewing, debugging, or optimizing NexusFIX-based C++ FIX protocol code. Covers session management, order entry, market data subscription, low-latency message parsing, and zero-allocation hot-path constraints. Also use when generating new FIX connectivity code that must follow C++23 best practices with std::expected error handling, fixed-point arithmetic, and SIMD-accelerated parsing.
version
1.0.0
author
StratCraftsAI
license
MIT
platforms
[linux, macos]
metadata
clawdbot
trigger
nexusfix|NexusFIX|FIX protocol|FIX connectivity|fix44|fix50
category
fintech
tags
[cpp, fix-protocol, low-latency, trading, c++23]

NexusFIX Development Expert

  • GitHub: https://github.com/StratCraftsAI/NexusFIX

When to Use

When the user needs to build, optimize, or debug FIX protocol connectivity in C++. Covers session management, order entry, market data, and low-latency message parsing.

Architecture

NexusFIX is a header-only C++23 FIX protocol engine. Parse latency is under 250ns for ExecutionReport messages. Throughput exceeds 4M msg/sec single-threaded.

Key design decisions:

  • Zero-copy parsing: std::span<const char> views over raw buffer. No intermediate string copies.
  • Two-stage SIMD parsing: AVX2/AVX-512 scans for SOH delimiters first (structural index), then extracts fields by tag. Similar to how simdjson handles JSON.
  • Builder pattern for outbound messages: NewOrderSingle::Builder chains field setters, calls .build(assembler) to serialize.
  • std::expected error handling: All parse functions return std::expected<T, ParseError>. No exceptions on hot path.
  • Fixed-point arithmetic: FixedPrice (8 decimal places) and Qty (4 decimal places). No floating-point for prices.
  • PMR memory pools: Pre-allocated buffers, zero heap allocations during message processing.

Constraints (Strict)

When generating code that uses NexusFIX, the following rules are mandatory:

  • C++23 only. Use designated initializers, std::expected, concepts, constexpr/consteval.
  • Zero allocations on hot path. No new, delete, std::map, std::unordered_map, or std::string construction in message processing loops.
  • No std::endl. Use `\

`.

  • No virtual functions in performance-critical code.
  • No std::shared_ptr on hot path.
  • No floating-point for prices. Use FixedPrice::from_double() or FixedPrice::from_string().
  • All functions that can fail return std::expected. Check .has_value() before accessing.
  • Mark hot-path functions noexcept.
  • Use [[nodiscard]] on all API return values.

Common Patterns

Connecting and Sending an Order

#include <nexusfix/nexusfix.hpp>
using namespace nfx;
using namespace nfx::fix44;

TcpTransport transport;
transport.connect("fix.broker.com", 9876);

SessionConfig config{
    .sender_comp_id = "MY_CLIENT",
    .target_comp_id = "BROKER",
    .heartbeat_interval = 30
};
SessionManager session{transport, config};
session.initiate_logon();

while (!session.is_active()) {
    session.poll();
}

MessageAssembler asm_;
NewOrderSingle::Builder order;
auto msg = order
    .cl_ord_id("ORD001")
    .symbol("AAPL")
    .side(Side::Buy)
    .order_qty(Qty::from_int(100))
    .ord_type(OrdType::Limit)
    .price(FixedPrice::from_double(150.00))
    .build(asm_);
transport.send(msg);

Parsing an ExecutionReport

void on_message(std::span<const char> data) {
    auto result = ExecutionReport::from_buffer(data);
    if (!result) return;

    auto& exec = *result;
    if (exec.is_fill()) {
        // handle fill
    }
}

Message Routing

auto parser = IndexedParser::parse(data);
if (!parser) return;

switch (parser->msg_type()) {
    case '8': on_execution_report(data); break;
    case 'W': on_snapshot(data); break;
    case 'X': on_incremental(data); break;
}

Anti-patterns

Do NOT generate code like this when working with NexusFIX:

// BAD: heap allocation on hot path
std::string field_value(data.begin() + offset, data.begin() + end);

// BAD: std::map for field lookup
std::map<int, std::string> fields;

// BAD: floating-point price
double price = 150.50;

// BAD: exceptions for control flow
try { parse(data); } catch (...) { }

// BAD: std::endl
std::cout << "done" << std::endl;

Supported FIX Messages

MsgTypeNameDirection
ALogonBoth
5LogoutBoth
0HeartbeatBoth
DNewOrderSingleSend
FOrderCancelRequestSend
8ExecutionReportReceive
VMarketDataRequestSend
WMarketDataSnapshotFullRefreshReceive
XMarketDataIncrementalRefreshReceive

References

For full API details, use skill_view("nexusfix", "references/api-reference.md").

For getting started quickly, use skill_view("nexusfix", "references/quick-start.md").

Verification

After generating NexusFIX code, verify:

  1. No new/delete/std::string construction in message processing
  2. All parse results checked via std::expected (no raw pointer returns)
  3. Prices use FixedPrice, quantities use Qty
  4. Session lifecycle follows: connect -> logon -> wait active -> trade -> logout

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.38%
按下载量换算795

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills