public ChartRangeInfoRecord(string symbol, PERIOD_CODE period, long? start, long? end, long? ticks) { this.symbol = symbol; this.period = period; this.start = start; this.end = end; this.ticks = ticks; }
public ChartLastInfoRecord(string symbol, PERIOD_CODE period, long? start) { this.symbol = symbol; this.period = period; this.start = start; }
public static ChartLastCommand createChartLastCommand(string symbol, PERIOD_CODE period, long? start, bool prettyPrint) { JSONObject args = new JSONObject(); args.Add("info", (new ChartLastInfoRecord(symbol, period, start)).toJSONObject()); return new ChartLastCommand(args, prettyPrint); }
public static ChartRangeResponse executeChartRangeCommand(SyncAPIConnector connector, string symbol, PERIOD_CODE period, long? start, long? end, long? ticks, bool prettyPrint) { return new ChartRangeResponse(connector.executeCommand(createChartRangeCommand(symbol, period, start, end, ticks, prettyPrint)).ToString()); }