Mariner Backtesting - Managing User Data

client.strategy_download() & client.strategy_delete()

Listing Strategies

The following functions are used to list available strategies:

  • client.strategy_list(): Return a dictionary of all strategy names that this token can access along with the last time the strategy was updated
  • client.strategy_guids(): Return a dictionary of the strategy name with its associated guids

Downloading a Strategy

client.strategy_download(name) returns any scripts with the given name as a list. The following code outputs the text of our BasicStrategy and outputs it to the console. Note that the strategy name is the name defined within the strategy, and not the filename itself.

 %pycat client.strategy_download('BasicCounter')[0]

Deleting a Strategy

To delete a strategy, simply call client.strategy_delete(name) with the name of the script you want to delete.

 client.strategy_delete('BasicCounter')