launch_financial_process

Description

This endpoint submits a financial process to the experiment queue.

Every experiment (financial processes) that runs on the system is started by the user using this endpoint. The system launches experiments from the queue when resources are available.

Arguments:

'api_key'
'name_prefix' -- this is the beginning of the experiment's name (the rest of the name will be appended by the system) 'process_settings' 'launch_settings' 'network_def' 'code' -- the program's code

Simple Example

financialNetworkDef,codeString = self.create_realtime_process(minutes,record_steps)
        q = { 'api_key' : api_key,'name_prefix' : 'test_financial_process_simulation','process_settings' : {},
    'launch_settings' : {'mode':'jef'},'network_def' : financialNetworkDef,'code' : codeString,}
        dat = pq.launch_financial_process(q,remote=True)

Simple Example Output

Failure Examples

        # no API key
        q = {'name_prefix' : 'test_financial_process_simulation','process_settings' : {},
    'launch_settings' : {'mode':'jef'},'network_def' : financialNetworkDef,'code' : codeString,}
        dat = pq.launch_financial_process(q,remote=True)

Failure Examples Output

Three Examples

         # API key = None
        q = {'api_key' : None, 'name_prefix' : 'test_financial_process_simulation','process_settings' : {},
    'launch_settings' : {'mode':'jef'},'network_def' : financialNetworkDef,'code' : codeString,}
        dat = pq.launch_financial_process(q,remote=True)


#########################################

        # random API key        
        q = {'api_key' : "pkey-"+str(uuid.uuid1()), 'name_prefix' : 'test_financial_process_simulation','process_settings' : {},
    'launch_settings' : {'mode':'jef'},'network_def' : financialNetworkDef,'code' : codeString,}
        dat = pq.launch_financial_process(q,remote=True)


##########################################
        #empty code string
        financialNetworkDef,codeString = self.create_realtime_process(minutes,record_steps)
        codeString = ""   
        q = { 'api_key' : api_key,'name_prefix' : 'test_financial_process_simulation','process_settings' : {},
    'launch_settings' : {'mode':'jef'},'network_def' : financialNetworkDef,'code' : codeString,}

Three Examples Output