fix-protocol - How to identify an average pricing AllocationInstruction in FIX 4.4?
问题描述
I am trying to parse a FIX 4.4 AllocationInstruction (J) message, I want to identify whether an allocation is to be average priced. Unable to figure out which tag to use for that.
I've tried searching on https://fiximate.fixtrading.org/ and saw 2 tags AvgPxIndicator (field 819) and TrdType (field 828), none of these are part of FIX 4.4 AllocationInstruction.
解决方案
官方 FIX4.4 规范文档第 5 卷第 37 页的另一个引用:
交易后分配
交易后分配可以通过以下两种方法之一计算:
- 使用平均价格:每个 AllocAccount 都有一个 AllocAvgPx(例如美国和欧洲)(参见示例 1-1、2-1、3-1)
- 使用执行价格:每个 AllocAccount 和 AllocPrice 的组合(唯一的 LastPx)(例如日本)(参见示例 1-2、2-2、3-2)
但是,如果不询问您的交易对手,这只是猜测。
推荐阅读
- gitlab-ci - gitlab runner 不适用于特定项目
- authentication - 使用 OAuth2 进行身份验证时看起来如何
- apollo - apollo-link-http 包中的 new HttpLink 和 createHttpLink 的区别
- java - 用逗号分割字符串并将所有分割字符串居中
- symfony - Symfony 为单一语言使用多个翻译文件
- antlr - ANTLR4 带有贪婪 * 量词的谓词:避免不必要的谓词调用(lexing)
- python - 如何在 docx 中使列宽动态化?
- php - 带有 Stripe 的 Laravel 返回“没有这样的计划:1 错误”
- scheme - 使用 lisp 中的两个命名空间编写测试函数
- c++ - 如何计算 int64_t 的平均值