Esempio n. 1
0
 public Task <TTDailySnapshotReport> GetDailySnapshotsAsync(TTDailySnapshotRequest request)
 {
     return(PrivateHttpPostAsync <TTDailySnapshotReport, TTDailySnapshotRequest>("api/v1/dailysnapshots", request));
 }
Esempio n. 2
0
 /// <summary>
 /// Get daily account snapshots
 /// </summary>
 /// <remarks>
 /// New daily account snapshots request is described by the filling following fields:
 /// - **TimestampFrom** - Lower timestamp bound of the daily account snapshot request
 /// - **TimestampTo** - Upper timestamp bound of the daily account snapshot request
 /// - **RequestDirection** (optional) - Request paging direction ("Forward" or "Backward"). Default is "Forward".
 /// - **RequestPageSize** (optional) - Request page size. Default is 100.
 /// - **RequestFromId** (optional) - Request paging from Id
 ///
 /// If timestamps fields are not set daily account snapshots will be requested from the begin or from the current timestamp
 /// depending on **RequestDirection** value.
 ///
 /// Snapshots are returned by chunks by paging size (default is 100). You can provide timestamp bounds (from, to)
 /// and direction of access (forward or backward). After the first request you'll get a list of daily account snapshots
 /// records with Ids. The next request should contain **RequestFromId** with the Id of the last processed trade
 /// history record. As the result you'll get the next chunk of snapshot records. If the last page was reached
 /// response flag **IsLastReport** will be set.
 /// </remarks>
 /// <param name="request">Daily account snapshots request</param>
 /// <returns>Daily account snapshots report</returns>
 public TTDailySnapshotReport GetDailySnapshots(TTDailySnapshotRequest request)
 {
     return(ConvertToSync(() => GetDailySnapshotsAsync(request).Result));
 }