Lean  $LEAN_TAG$
QuantConnect.Algorithm.Framework.Portfolio.SignalExports.NumeraiSignalExport Class Reference

Exports signals of the desired positions to Numerai API. Accepts signals in percentage i.e numerai_ticker:"IBM US", signal:0.234 More...

Inheritance diagram for QuantConnect.Algorithm.Framework.Portfolio.SignalExports.NumeraiSignalExport:
[legend]

Public Member Functions

 NumeraiSignalExport (string publicId, string secretId, string modelId, string fileName="predictions.csv")
 NumeraiSignalExport Constructor. It obtains the required information for Numerai API requests More...
 
override bool Send (SignalExportTargetParameters parameters)
 Verifies all the given holdings are accepted by Numerai, creates a message with those holdings in the expected Numerai API format and sends them to Numerai API More...
 
- Public Member Functions inherited from QuantConnect.Algorithm.Framework.Portfolio.SignalExports.BaseSignalExport
void Dispose ()
 If created, dispose of HttpClient we used for the requests to the different 3rd party API's More...
 

Protected Member Functions

bool ConvertTargetsToNumerai (SignalExportTargetParameters parameters, out string positions)
 Verifies each holding's signal is between 0 and 1 (exclusive) More...
 

Protected Attributes

override HashSet< SecurityTypeAllowedSecurityTypes => _allowedSecurityTypes
 Hashset property of Numerai allowed SecurityTypes More...
 
- Protected Attributes inherited from QuantConnect.Algorithm.Framework.Portfolio.SignalExports.BaseSignalExport
HttpClient HttpClient => _lazyClient.Value
 Property to access a HttpClient More...
 

Properties

override string Name = "Numerai" [get]
 The name of this signal export More...
 
- Properties inherited from QuantConnect.Algorithm.Framework.Portfolio.SignalExports.BaseSignalExport
abstract string Name [get]
 The name of this signal export More...
 
virtual HashSet< SecurityTypeAllowedSecurityTypes [get]
 Default hashset of allowed Security types More...
 

Detailed Description

Exports signals of the desired positions to Numerai API. Accepts signals in percentage i.e numerai_ticker:"IBM US", signal:0.234

It does not take into account flags as NUMERAI_COMPUTE_ID (https://github.com/numerai/numerapi/blob/master/numerapi/signalsapi.py#L164) and TRIGGER_ID(https://github.com/numerai/numerapi/blob/master/numerapi/signalsapi.py#L164)

Definition at line 34 of file NumeraiSignalExport.cs.

Constructor & Destructor Documentation

◆ NumeraiSignalExport()

QuantConnect.Algorithm.Framework.Portfolio.SignalExports.NumeraiSignalExport.NumeraiSignalExport ( string  publicId,
string  secretId,
string  modelId,
string  fileName = "predictions.csv" 
)

NumeraiSignalExport Constructor. It obtains the required information for Numerai API requests

Parameters
publicIdPUBLIC_ID provided by Numerai
secretIdSECRET_ID provided by Numerai
modelIdID of the Numerai Model being used
fileNameSignal file's name

Definition at line 100 of file NumeraiSignalExport.cs.

Member Function Documentation

◆ Send()

override bool QuantConnect.Algorithm.Framework.Portfolio.SignalExports.NumeraiSignalExport.Send ( SignalExportTargetParameters  parameters)
virtual

Verifies all the given holdings are accepted by Numerai, creates a message with those holdings in the expected Numerai API format and sends them to Numerai API

Parameters
parametersA list of portfolio holdings expected to be sent to Numerai API and the algorithm being ran
Returns
True if the positions were sent to Numerai API correctly and no errors were returned, false otherwise

Reimplemented from QuantConnect.Algorithm.Framework.Portfolio.SignalExports.BaseSignalExport.

Definition at line 115 of file NumeraiSignalExport.cs.

Here is the call graph for this function:

◆ ConvertTargetsToNumerai()

bool QuantConnect.Algorithm.Framework.Portfolio.SignalExports.NumeraiSignalExport.ConvertTargetsToNumerai ( SignalExportTargetParameters  parameters,
out string  positions 
)
protected

Verifies each holding's signal is between 0 and 1 (exclusive)

Parameters
parametersA list of portfolio holdings expected to be sent to Numerai API
positionsA message with the desired positions in the expected Numerai API format
Returns
True if a string message with the positions could be obtained, false otherwise

Definition at line 145 of file NumeraiSignalExport.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ AllowedSecurityTypes

override HashSet<SecurityType> QuantConnect.Algorithm.Framework.Portfolio.SignalExports.NumeraiSignalExport.AllowedSecurityTypes => _allowedSecurityTypes
protected

Hashset property of Numerai allowed SecurityTypes

Definition at line 91 of file NumeraiSignalExport.cs.

Property Documentation

◆ Name

override string QuantConnect.Algorithm.Framework.Portfolio.SignalExports.NumeraiSignalExport.Name = "Numerai"
getprotected

The name of this signal export

Definition at line 86 of file NumeraiSignalExport.cs.


The documentation for this class was generated from the following file: