This file contains hidden or 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
| import re | |
| def uses_python_26(path): | |
| """Does this path need 2.6?""" | |
| match = re.search('20[0-9][0-9]', path) | |
| assert match, 'Could not figure out Python version' | |
| return int(match.group(0)) < 2016 | |
This file contains hidden or 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
| MARKET = acm.FMarketPlace['IM'] | |
| TICK = acm.FTickSizeList['1000'] | |
| assert TICK | |
| def CreateOrderBook(ins): | |
| # Pick appropriate market and tick size list for the convertible | |
| # market = | |
| # tickSizeList = | |
| info = acm.FMarketOrderBookCreateInfo(MARKET) |
This file contains hidden or 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
| START-OF-FILE | |
| DATALOADER_LOAD=['Instrument', 'PriceLinkDefinition', 'Latest Prices'] | |
| RUNDATE=20140714 | |
| PROGRAMFLAG=oneshot | |
| CLOSINGVALUES=yes |
This file contains hidden or 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
| """ | |
| Update the quotation to per 100 unit instead of Pound | |
| Workaround for AR682829 | |
| """ | |
| import acm,ael | |
| import FLogger | |
| logger = FLogger.FLogger(__name__) | |
| POUND = ael.Quotation['Pound'] |
This file contains hidden or 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
| """ | |
| Convert CSV string to fixed width text table. Supports multi-line rows, column width limits, and creates a header row automatically | |
| @author Tony Landis | |
| @link http://www.tonylandis.com | |
| @license GPL | |
| """ | |
| from math import ceil | |
| class CsvToTxt(): |
This file contains hidden or 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
| C++ Challenge |
This file contains hidden or 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
| import re | |
| RE_NULL = re.compile('\[NULL\]',re.IGNORECASE) | |
| def removeNull(s): | |
| return RE_NULL.sub('',s) |
This file contains hidden or 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
| print 'This is a test, yes it is' | |