Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
raikov committed Apr 29, 2016
1 parent bbebad3 commit 7ff0fbf
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FIX() is a liteweight library for parsing and manipulating FIX protocol based messages.
--------------

*Basic Usage:*
**Basic Usage:**


<script type="text/javascript" src="fix.js"></script>
Expand All @@ -20,16 +20,17 @@ FIX() is a liteweight library for parsing and manipulating FIX protocol based me
</script>

FIX functions creates an instance with the specified configuration.
Parameters:JSON
Parameters:Object Literal

version: String - FIX protocol version - Default: '4.4'
delimitter: String - Message delimetter - Default: '\x01'
Methods:
version: //String - FIX protocol version - Default: '4.4'
delimitter: //String - Message delimetter - Default: '\x01'

.translateToJSON(FIXstring) - Translates a FIX string to Object Literal
**Methods:**

.translateToJSON(FIXstring) - //Translates a FIX string to Object Literal
(e.g. - 44=1.234 becomes { Price:1.234 } )

.translateJSONToFIX(JSONobject) - Opposite to translateToJSON method. Converts translated Object to fix message
.translateJSONToFIX(JSONobject) - Opposite to translateToJSON method. Converts translated Object to fix message
(e.g. - { Price:1.234 } becomes 44=1.234 ).

.toJSON(FIXstring) - Converts Fix string to Object Literal.
Expand All @@ -42,30 +43,30 @@ Methods:

.JSONtoFIX(JSONobject) - Converts Object Literal to Fix string

*Examples:*
**Examples:**


var msg = MyFix.parse('28=N|55=SPMI.MI|54=2|27=200000');
// returns a Object Literal;

var js = MyFix.translateToJSON('28=N|55=SPMI.MI|54=2|27=200000');
var js = MyFix.translateToJSON('28=N|55=SPMI.MI|54=2|27=200000');


*Create New Methods:*
**Create New Methods:**



FIX.add.MyNewMethod = function(){

}

MyFix.MyNewMethod();
//usage:
MyFix.MyNewMethod();


*Versions:*
**Versions:**

Currently versions 4.1, 4.4, 5.0 are added FIX Specifications

*Compatibility:*
**Compatibility:**

FIX is supported by all major browsers and Node.js
FIX is supported by all major browsers and Node.js

0 comments on commit 7ff0fbf

Please sign in to comment.