From f90d8d9fc246b3db5ccb7be56ac9ff89eb650ee7 Mon Sep 17 00:00:00 2001 From: Anton Osenenko <418868+a0s@users.noreply.github.com> Date: Tue, 25 Aug 2020 01:50:42 +0300 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 77f3c17..2943004 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Streaming Data Saver [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) -Working with [Tinkoff Invest OpenAPI](https://github.com/TinkoffCreditSystems/invest-openapi). Allows to dump realtime streams of orderbooks and candles to JSON file. +Working with [Tinkoff Invest OpenAPI](https://github.com/TinkoffCreditSystems/invest-openapi). Dumps realtime streams of orderbooks and candles to JSON file for ML purposes. Releases -------- @@ -39,6 +39,12 @@ tinkoff-invest-dumper --help --version show version info ``` + +File rotation +------------- + +You can split and rotate JSON-files using `--time-suffix-enabled`. For e.g, if you start `tinkoff-invest-dumper` as `systemd` service, you may use `cron` to restart this service at a certain time during an inactive part of a trading day. During restarting, `tinkoff-invest-dumper` closes previous files and opens a new one with a new-day-prefix. The inactive period for Tinkoff Invest is `2:00-10:30 MSK`. + Run as Docker image -------------------