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);
204 #pragma warning disable CS1574
218 #pragma warning restore CS1574
224 decimal? targetValue,
227 HashSet<OptimizationParameter> parameters,
228 IReadOnlyList<Constraint> constraints);
230 #pragma warning disable CS1574
247 #pragma warning restore CS1574
253 decimal? targetValue,
256 HashSet<OptimizationParameter> parameters,
257 IReadOnlyList<Constraint> constraints,
258 decimal estimatedCost,
380 bool DownloadData(
string filePath,
string organizationId);
474 void SendStatistics(
string algorithmId, decimal unrealized, decimal fees, decimal netProfit, decimal holdings, decimal equity, decimal netReturn, decimal volume,
int trades,
double sharpe);
482 void SendUserEmail(
string algorithmId,
string subject,
string body);
492 string Download(
string address, IEnumerable<KeyValuePair<string, string>> headers,
string userName,
string password);
502 byte[]
DownloadBytes(
string address, IEnumerable<KeyValuePair<string, string>> headers,
string userName,
string password);
511 public bool GetObjectStore(
string organizationId, List<string> keys,
string destinationFolder =
null);