This repository was archived by the owner on Sep 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
59 lines (41 loc) · 2.43 KB
/
README
File metadata and controls
59 lines (41 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
For #spawnfest:
I'm sorry about the size of this project. I was expecting something
a lot smaller. 600 lines of code. 100,000 lines of generated code.
There is a diary of my progress in DIARY.txt
"make test" returns "TESTFILE: PERCENT SUCCESS". As you can see
it's nowhere close to 100% everywhere. This is by design. Many of
the tests are created to test proper error behaviour. If a test
exits via throw with a reasonable exit value I consider the test
successful. Note that FIXT is in many ways broken. Full test
results can be viewed in full_test_results.txt
Files written by me are fix.erl, fix_generate.erl, fix_generate.aux,
fix_read_data.erl, and fix_test.erl. The rest are automatically
generated. They all look the same, so read one of them and be happy
with that.
Rules.mk can be fun to read as well. If you are masochistic.
This is a FIX parser written in Erlang. Support is more or less
complete for FIX versions 4.0 to 4.4. It is still pending for FIX
5.0.
See http://en.wikipedia.org/wiki/Financial_Information_eXchange for
more information about FIX. You can download the specification from
http://fixprotocol.org/ (needs free registration).
It is a library and not really a runnable system. If you want to run
it anyway you can do:
> make
> bin/run
(2566@hellboy)1> fix:decode("8=FIX.4.2\x019=178\x0135=8\x0149=PHLX\x0156=PERS\x0152=20071123-05:30:00.000\x0111=ATOMNOCCC9990900\x0120=3\x01150=E\x0139=E\x0155=MSFT\x01167=CS\x0154=1\x0138=15\x0140=2\x0144=15\x0158=PHLX EQUITY TESTING\x0159=0\x0147=C\x0132=0\x0131=0\x01151=15\x0114=0\x016=0\x0110=128\x01").
(2566@hellboy)2> fix:decode("8=FIX.4.2\x019=65\x0135=A\x0149=SERVER\x0156=CLIENT\x0134=177\x0152=20090107-18:15:16\x0198=0\x01108=30\x0110=062\x01").
Differences from specification:
FIX 4.4:
According to the specification 139/MiscFeeType is of type CHAR but
has enum valees that don't fit in a char. This implementation has
changed the type to STRING. (This is also consistent with later
versions of FIX.)
MassCancelRejectReason is of type CHAR according to spec but has an
enumeration value that is out of range (99). Thus this
implementation uses STRING. (This is also consistent with later
versions of FIX.)
Acknowledgements:
This product includes software developed by quickfixengine.org
(http://www.quickfixengine.org/). More specifically the xml
specifications and the test files. I.e. everything in lib/fix/priv/