Signal Exports
vBase
Introduction
validityBase enables you to create a globally credible, independently verifiable audit trail for trading track records, models and signals. This ensures anyone viewing your results can confirm that your results are point-in-time, complete, free from cherry-picking and fully out-of-sample.
QuantConnect users can use validityBase to publish live, verifiable, indices of their trading strategies and signals - increasing their credibility with allocators, clients and potential employers, and significantly increasing their commercial value. Integration is simple. With a single function call from your QuantConnect code, you can automatically build an immutable blockchain-backed audit trail for your signals and models.
Add Providers
To export signals to vBase from your algorithm, during initialization, add a vBase signal export provider.
SignalExport.AddSignalExportProvider(new VBaseSignalExport(apiKey, collectionName, storeStampedFile = true, idempotent = false));
self.signal_export.add_signal_export_provider(VBaseSignalExport(api_key, collection_name, store_stamped_file=True, idempotent=False))
The VBaseSignalExport constructor accepts the following arguments:
Argument: |
Argument: |
Argument: |
Argument: |
You can add multiple signal export providers to a single algorithm.
Send Portfolio Targets
To send targets, pass a list of PortfolioTarget objects to the
SetTargetPortfolioset_target_portfolio method.
The method returns a boolean value indicating whether the targets were successfully sent to vBase.
What gets stamped? The provider builds a sym,wt (symbol-weight) CSV and, under the hood,
uses PortfolioTarget.Percent to convert your absolute target quantities into portfolio weights.
This ensures the stamp reflects the weighted sizing of your positions at the time of export.
Default behavior can be customized by overriding the BuildCsv method of the VBaseSignalExport class.
var success = SignalExport.SetTargetPortfolio(targets);
success = self.signal_export.set_target_portfolio(targets)