-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed spread calc; fixed market snapshot output; added test
- Loading branch information
Dmitry Shabanov
committed
Mar 20, 2017
1 parent
772b412
commit e260eb0
Showing
2 changed files
with
41 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import FIX44 | ||
import unittest | ||
|
||
|
||
class TestCalculations(unittest.TestCase): | ||
def testSpread(self): | ||
self.assertEqual(FIX44.calculate_spread('113', '113.015'), 15) | ||
self.assertEqual(FIX44.calculate_spread('1.09553', '1.09553'), 0) |