Re_client is a Command Line Interface (CLI) application designed to convert FIX messages from RE to the Financial Information eXchange (FIX) format
Pre-requisites
A Unix/Linux terminal (Mac, Ubuntu, CentOS, etc.)
Clone the repository:
git clone https://github.com/jim380/re_client.git
Navigate to the cloned directory and build the application:
cd re_client && make build
Install the Application
Run the following command to install the executable:
sudo make install
Usage
Run Re_client in your terminal to see the list of available commands and options:
Re_client
Available Commands
Re_client order [chainID] [address] [flags]
Re_client orders [chainID] [flags]
Re_client execution-report [chainID] [address] [flags]
Re_client execution-reports [chainID] [flags]
Re_client trade-capture [chainID] [address] [flags]
Re_client trade-captures [chainID] [flags]
8=FIX4.4|9=0|35=D|49=cosmos1nvcgd368m4pm5mm3ppzawhsq6grra4ejnppplx|56=cosmosvaloper1zqgheeawp7cmqk27dgyctd80rd8ryhqs6la9wc|34=16801684|52=2023-08-31T10:19:49Z|11=07C038FC655EDDEBE0F5E99BAEB05E47FF2DD5FCFE422C4B14D0DF5078417693|55=uatom|54=2|44=117401|59=1|
8=FIX4.4|9=0|35=D|49=cosmos1tfrmhsw9hymfe7vfcxaly8xvrqtaaaxm9648ry|56=cosmosvaloper1zqgheeawp7cmqk27dgyctd80rd8ryhqs6la9wc|34=16801845|52=2023-08-31T10:36:14Z|11=08EC92BF1B03C1C5E07412B0254203C76118FA97F2B6CDBD91CCD62F02C5C5E3|55=uatom|54=2|44=2916090|59=1|
Interpretation of the First Message
8=FIX4.4: BeginString (Indicates the beginning of the message; the value is the FIX version, 4.4 in this case)
9=0: BodyLength (Length of the message body, should actually be calculated)
35=D: MsgType (Type of message, D indicates a New Order - Single)
49=cosmos1nvcgd368m4pm5mm3ppzawhsq6grra4ejnppplx: SenderCompID (The ID of the message sender)
56=cosmosvaloper1zqgheeawp7cmqk27dgyctd80rd8ryhqs6la9wc: TargetCompID (The ID of the message receiver)
34=16801684: MsgSeqNum (Message sequence number, the blockchain height is used in this case)
52=2023-08-31T10:19:49Z: SendingTime (Time the message was sent)
11=07C038FC655EDDEBE0F5E99BAEB05E47FF2DD5FCFE422C4B14D0DF5078417693: ClOrdID (Client Order ID)
55=uatom: Symbol for the financial instrument (cryptocurrency in this case)
54=2: Side (The side of the market, 2 is for Sell)
44=117401: Price (The price for the order)
59=1: TimeInForce (The time in force for the order, 1 is for Good Till Cancel (GTC))
-
Fork the Project
-
Create your Feature Branch (git checkout -b feature/NewFeature)
-
Commit your Changes (git commit -m 'Add some NewFeature')
-
Push to the Branch (git push origin feature/NewFeature)
-
Open a Pull Request
Distributed under the Apache License 2.0. See LICENSE for more information.