Mariner Backtesting - client.validate_client_strategy()

Validate the client strategy for common sources of errors.

Checks include the following: - There should be only one class defined within 'filename'. - The one class should be derived from Strategy, in cloudquant.interfaces. - The strategy script should conform to valid Python syntax. - All Strategy and Order method calls should provide the proper number of arguments.

If any of these checks fail, a StrategyError exception will be raised.

Interface
 client.validate_client_strategy(filename, depends_on, data_files)
Parameters
Name Type Default Description
filename string required The filename containing strategy to be validated.
depends_on list required Strategies that the uploaded strategy will be able to call during execution.
data_files list required Data files which the uploaded strategy will be able to call 'service.read_*()' methods on during execution.
Returns
  • None