18 using System.Collections.Generic;
19 using System.ComponentModel.Composition;
31 [InheritedExport(typeof(IApi))]
32 public interface IApi : IDisposable
37 void Initialize(
int userId,
string token,
string dataFolder);
211 decimal? targetValue,
214 HashSet<OptimizationParameter> parameters,
215 IReadOnlyList<Constraint> constraints);
238 decimal? targetValue,
241 HashSet<OptimizationParameter> parameters,
242 IReadOnlyList<Constraint> constraints,
243 decimal estimatedCost,
291 LiveLog ReadLiveLogs(
int projectId,
string algorithmId, DateTime? startTime =
null, DateTime? endTime =
null);
325 bool DownloadData(
string filePath,
string organizationId);
356 LiveAlgorithm CreateLiveAlgorithm(
int projectId,
string compileId,
string serverType, Dictionary<string, object> baseLiveAlgorithmSettings,
string versionId =
"-1", Dictionary<string, object> dataProviders =
null);
425 void SendStatistics(
string algorithmId, decimal unrealized, decimal fees, decimal netProfit, decimal holdings, decimal equity, decimal netReturn, decimal volume,
int trades,
double sharpe);
433 void SendUserEmail(
string algorithmId,
string subject,
string body);
443 string Download(
string address, IEnumerable<KeyValuePair<string, string>> headers,
string userName,
string password);
452 public bool GetObjectStore(
string organizationId, List<string> keys,
string destinationFolder =
null);