fix-protocol 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -1
- data/lib/fix/protocol/repeating_message_part.rb +1 -0
- data/lib/fix/protocol/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eaeccdfef785de62e4ba4d4c3fdf35f9b5e7deb
|
4
|
+
data.tar.gz: d39b8458438d5d4fbb1bd4ebd4e0f2bec636ff96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 522826d4dccc9a32ded210c8ca7b1409221091e78c456550217d0543ee401c37cfaac28505ea9d2b49fa5bf4da92913ecda49edc34b2ae81c975891750fd519a
|
7
|
+
data.tar.gz: 97d715b60b8e49ab80d917d28f380e232c3e7fe5e7d469bd8875edcd6255bf1a7db44d9bf810252f56e5a1fce76eef9753dca683153f3d7c04e1e3035585301f
|
data/README.md
CHANGED
@@ -1,4 +1,26 @@
|
|
1
|
-
FIX Protocol [](http://travis-ci.org/Paymium/fix-protocol)
|
1
|
+
FIX Protocol [](http://travis-ci.org/Paymium/fix-protocol) [](http://badge.fury.io/rb/fix-protocol)
|
2
2
|
=
|
3
3
|
|
4
4
|
This library aims to provide a set of useful tools to generate, parse and process messages FIX standard.
|
5
|
+
|
6
|
+
Currently it only supports the FIX messages needed for our own use. Additional messages support should however be quite easy to add.
|
7
|
+
|
8
|
+
## Example usage
|
9
|
+
|
10
|
+
````ruby
|
11
|
+
require 'fix/protocol'
|
12
|
+
|
13
|
+
msg = FP::Messages::Logon.new
|
14
|
+
msg.header.sender_comp_id = 'MY_ID'
|
15
|
+
msg.header.target_comp_id = 'MY_COUNTERPARTY'
|
16
|
+
msg.username = 'MY_USERNAME'
|
17
|
+
|
18
|
+
if msg.valid?
|
19
|
+
msg.dump
|
20
|
+
else
|
21
|
+
puts msg.errors.join(", ")
|
22
|
+
end
|
23
|
+
````
|
24
|
+
|
25
|
+
Which would output the sample message : `8=FIX.4.4\x019=105\x0135=A\x0149=MY_ID\x0156=MY_COUNTERPARTY\x0134=0\x0152=20141021-10:33:15\x0198=0\x01108=30\x01553=MY_USERNAME\x01141=\x0110=176\x01`
|
26
|
+
|
data/lib/fix/protocol/version.rb
CHANGED