Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2022-06-28T16:03:49 [INFO]: neurket.package: Found bot package '/media/hdd/data/bots/sleepy_bot'
- Running backtest from 2020-01-01 00:00:00 to 2022-06-23 00:00:00 on device cpu...
- 2022-06-28T16:03:50 [INFO]: swap.hood.binance.api_base: GET /api/v3/exchangeInfo -> {'timezone': 'UTC', 'serverTime': 1656432229875, 'rateLimits': [{'rateLimitType': 'REQUEST_WEIGHT', 'interval': 'MINUTE', 'intervalNum': 1, 'limit': 1200}, {'r …
- 2020-01-01T00:00:00 [INFO]: symbols = ['BTCBUSD', 'BNBBUSD']
- /home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py:132: UserWarning: Conversion from `Decimal` to `Float64` may lose precision
- warnings.warn("Conversion from `Decimal` to `Float64` may lose precision")
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: PID=13345, 1 connection(s)
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BTCBUSD/bar/1min` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 0 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/1min` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 1 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/1min` WHERE timestamp >= '2019-12-23 07:40:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: PID=13345, 2 connection(s)
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BNBBUSD/bar/1min` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 2 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1min` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 3 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1min` WHERE timestamp >= '2019-12-23 07:40:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: PID=13345, 3 connection(s)
- 2022-06-28T16:03:50 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 4 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1min` WHERE timestamp >= '2019-12-14 15:20:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:51 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BNBBUSD&interval=1m&startTime=1656432060001&limit=1000 -> [[1656432120000, '234.80000000', '234.90000000', '234.20000000', '234.20000000', '1132.16500000', 1656432179999, '265419.79720000', 253, '63.89600000', '14991. …
- 2022-06-28T16:03:51 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 5 INSERT INTO `crypto/binance/BNBBUSD/bar/1min` VALUES
- 2022-06-28T16:03:51 [INFO]: tesoro.storages.clickhouse_event_storage: INSERTING 5 Bar(timestamp=2022-06-28T16:02:00, open=Decimal('234.8'), high=Decimal('234.9'), low=Decimal('234.2'), close=Decimal('234.2'), volume=Decimal('1132.165'), quolume=Decimal('265419.7972'))
- 2022-06-28T16:03:51 [INFO]: tesoro.storages.clickhouse_event_storage: END 5
- 2022-06-28T16:03:51 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BTCBUSD&interval=1m&startTime=1656432120001&limit=1000 -> [[1656432180000, '20564.18000000', '20575.00000000', '20564.16000000', '20572.54000000', '10.68851000', 1656432239999, '219858.48838550', 263, '5.46248000', '1 …
- 2022-06-28T16:03:51 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 6 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1min` WHERE timestamp >= '2019-12-05 23:00:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:52 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BNBBUSD&interval=1m&startTime=1656432120001&limit=1000 -> [[1656432180000, '234.30000000', '234.40000000', '234.10000000', '234.30000000', '745.51600000', 1656432239999, '174616.73790000', 255, '236.17000000', '55324. …
- /home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py:132: UserWarning: Conversion from `Decimal` to `Float64` may lose precision
- warnings.warn("Conversion from `Decimal` to `Float64` may lose precision")
- 2022-06-28T16:03:52 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BTCBUSD/bar/15min` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:52 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 7 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/15min` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:52 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 8 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/15min` WHERE timestamp >= '2019-08-23 19:03:45.000000' ORDER BY timestamp {}
- /home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py:132: UserWarning: Conversion from `Decimal` to `Float64` may lose precision
- warnings.warn("Conversion from `Decimal` to `Float64` may lose precision")
- 2022-06-28T16:03:53 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BNBBUSD/bar/15min` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:53 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 9 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/15min` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:53 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 10 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/15min` WHERE timestamp >= '2019-08-23 19:03:45.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:54 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BTCBUSD&interval=15m&startTime=1656431100001&limit=1000 -> [[1656432000000, '20581.79000000', '20605.26000000', '20564.16000000', '20572.57000000', '82.64005000', 1656432899999, '1700849.85989240', 1672, '41.13778000', …
- 2022-06-28T16:03:55 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BNBBUSD&interval=15m&startTime=1656431100001&limit=1000 -> [[1656432000000, '234.60000000', '234.90000000', '234.10000000', '234.30000000', '2877.51900000', 1656432899999, '674642.27820000', 941, '690.50100000', '16193 …
- 2022-06-28T16:03:56 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 11 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/15min` WHERE timestamp >= '2019-04-15 14:22:30.000000' ORDER BY timestamp {}
- /home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py:132: UserWarning: Conversion from `Decimal` to `Float64` may lose precision
- warnings.warn("Conversion from `Decimal` to `Float64` may lose precision")
- 2022-06-28T16:03:56 [INFO]: tesoro.storages.clickhouse_event_storage: PID=13345, 4 connection(s)
- 2022-06-28T16:03:56 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BTCBUSD/bar/1h` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:56 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 12 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/1h` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:56 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 13 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/1h` WHERE timestamp >= '2018-07-29 04:15:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:57 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 14 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/15min` WHERE timestamp >= '2019-04-15 14:22:30.000000' ORDER BY timestamp {}
- /home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py:132: UserWarning: Conversion from `Decimal` to `Float64` may lose precision
- warnings.warn("Conversion from `Decimal` to `Float64` may lose precision")
- 2022-06-28T16:03:57 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BNBBUSD/bar/1h` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:57 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 15 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1h` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:57 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 16 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1h` WHERE timestamp >= '2018-07-29 04:15:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:58 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BTCBUSD&interval=1h&startTime=1656428400001&limit=1000 -> [[1656432000000, '20581.79000000', '20605.26000000', '20564.16000000', '20571.36000000', '82.91494000', 1656435599999, '1706504.72351700', 1685, '41.41165000', …
- 2022-06-28T16:03:58 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BTCBUSD&interval=15m&startTime=1656431100001&limit=1000 -> [[1656432000000, '20581.79000000', '20605.26000000', '20564.16000000', '20571.36000000', '82.91494000', 1656432899999, '1706504.72351700', 1685, '41.41165000', …
- 2022-06-28T16:03:58 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 17 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1h` WHERE timestamp >= '2017-02-23 09:30:00.000000' ORDER BY timestamp {}
- /home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py:132: UserWarning: Conversion from `Decimal` to `Float64` may lose precision
- warnings.warn("Conversion from `Decimal` to `Float64` may lose precision")
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BNBBUSD/bar/4h` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 18 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/4h` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 19 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/4h` WHERE timestamp >= '2014-04-18 17:00:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:59 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BNBBUSD&interval=15m&startTime=1656431100001&limit=1000 -> [[1656432000000, '234.60000000', '234.90000000', '234.10000000', '234.50000000', '3042.71100000', 1656432899999, '713369.38990000', 990, '794.98800000', '18642 …
- 2022-06-28T16:03:59 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BNBBUSD&interval=1h&startTime=1656428400001&limit=1000 -> [[1656432000000, '234.60000000', '234.90000000', '234.10000000', '234.50000000', '3042.71100000', 1656435599999, '713369.38990000', 990, '794.98800000', '18642 …
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 20 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/1h` WHERE timestamp >= '2017-02-23 09:30:00.000000' ORDER BY timestamp {}
- /home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py:132: UserWarning: Conversion from `Decimal` to `Float64` may lose precision
- warnings.warn("Conversion from `Decimal` to `Float64` may lose precision")
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BTCBUSD/bar/4h` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 21 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/4h` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 22 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/4h` WHERE timestamp >= '2014-04-18 17:00:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 23 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/4h` WHERE timestamp >= '2008-08-04 14:00:00.000000' ORDER BY timestamp {}
- /home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py:132: UserWarning: Conversion from `Decimal` to `Float64` may lose precision
- warnings.warn("Conversion from `Decimal` to `Float64` may lose precision")
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BNBBUSD/bar/1d` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 24 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1d` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 25 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1d` WHERE timestamp >= '2013-09-30 12:00:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 26 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/4h` WHERE timestamp >= '2008-08-04 14:00:00.000000' ORDER BY timestamp {}
- /home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py:132: UserWarning: Conversion from `Decimal` to `Float64` may lose precision
- warnings.warn("Conversion from `Decimal` to `Float64` may lose precision")
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: CREATE TABLE IF NOT EXISTS `crypto/binance/BTCBUSD/bar/1d` (timestamp DateTime64 CODEC(Delta, ZSTD), open Float64 CODEC(Delta, ZSTD), high Float64 CODEC(Delta, ZSTD), low Float64 CODEC(Delta, ZSTD), close Float64 CODEC(Delta, ZSTD), volume Float64 CODEC(Delta, ZSTD), quolume Float64 CODEC(Delta, ZSTD)) ENGINE ReplacingMergeTree ORDER BY timestamp
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 27 SELECT * FROM (SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/1d` ORDER BY timestamp DESC LIMIT %(limit)s) ORDER BY timestamp ASC {'limit': 1}
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 28 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/1d` WHERE timestamp >= '2013-09-30 12:00:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 29 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1d` WHERE timestamp >= '2007-07-02 00:00:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 30 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BNBBUSD/bar/1min` WHERE timestamp >= '2020-01-01 00:00:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:59 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BNBBUSD&interval=4h&startTime=1656417600001&limit=1000 -> [[1656432000000, '234.60000000', '234.90000000', '234.10000000', '234.50000000', '3042.71100000', 1656446399999, '713369.38990000', 990, '794.98800000', '18642 …
- 2022-06-28T16:03:59 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BTCBUSD&interval=4h&startTime=1656417600001&limit=1000 -> [[1656432000000, '20581.79000000', '20605.26000000', '20564.16000000', '20586.74000000', '84.92694000', 1656446399999, '1747911.71466350', 1743, '42.69362000', …
- 2022-06-28T16:03:59 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BTCBUSD&interval=1h&startTime=1656428400001&limit=1000 -> [[1656432000000, '20581.79000000', '20605.26000000', '20564.16000000', '20586.74000000', '84.92694000', 1656435599999, '1747911.71466350', 1743, '42.69362000', …
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 31 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/1d` WHERE timestamp >= '2007-07-02 00:00:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:03:59 [INFO]: tesoro.storages.clickhouse_event_storage: BEGIN 32 SELECT DISTINCT ON (timestamp) * FROM `crypto/binance/BTCBUSD/bar/1min` WHERE timestamp >= '2019-12-31 23:59:00.000000' ORDER BY timestamp {}
- 2022-06-28T16:04:00 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BNBBUSD&interval=1d&startTime=1656288000001&limit=1000 -> [[1656374400000, '233.60000000', '242.30000000', '230.30000000', '234.50000000', '223226.57500000', 1656460799999, '52829177.34000000', 101560, '111008.7190000 …
- 2022-06-28T16:04:00 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BTCBUSD&interval=1d&startTime=1656288000001&limit=1000 -> [[1656374400000, '20721.63000000', '21191.07000000', '20500.00000000', '20586.74000000', '17813.67881000', 1656460799999, '371447236.04847840', 316161, '8831.4 …
- 2022-06-28T16:04:00 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BNBBUSD&interval=1m&startTime=1656432120001&limit=1000 -> [[1656432180000, '234.30000000', '234.50000000', '234.10000000', '234.50000000', '913.41400000', 1656432239999, '213977.86540000', 308, '341.56000000', '80027. …
- 2022-06-28T16:04:00 [INFO]: swap.hood.binance.api_base: GET /api/v3/klines?symbol=BTCBUSD&interval=1m&startTime=1656432120001&limit=1000 -> [[1656432180000, '20564.18000000', '20586.74000000', '20564.16000000', '20586.74000000', '13.06298000', 1656432239999, '268722.08803620', 338, '7.10590000', '"/home/romanbilyi/work/neurket/neurket/exchanges/binance/backtest_exchange.py", line 438, in run
- batch = await asyncio.gather(*(anext(it) for it in sample_iterators))
- File "/home/romanbilyi/work/neurket/neurket/exchanges/binance/backtest_exchange.py", line 542, in _fixed_step_sample_range
- datapoint = await anext(seq)
- File "/home/romanbilyi/work/neurket/neurket/exchanges/binance/backtest_exchange.py", line 280, in _batched_process_symbol
- async for batch_list in _create_batches(samples, self.batch_size):
- File "/home/romanbilyi/work/neurket/neurket/exchanges/binance/backtest_exchange.py", line 522, in _create_batches
- async for item in seq:
- File "/home/romanbilyi/work/neurket/neurket/utils/data/data_sampler.py", line 81, in samples
- async for bar in self.__1m_bars(symbol, now):
- File "/home/romanbilyi/work/neurket/neurket/utils/data/data_sampler.py", line 105, in __1m_bars
- async for bar in self._vendor.historical_bars(symbol, tf_1m, now):
- File "/home/romanbilyi/work/neurket/neurket/vendors/cached_data_vendor.py", line 171, in historical_bars
- async for bar in cache.get_events(start):
- File "/home/romanbilyi/work/neurket/neurket/vendors/cached_data_vendor.py", line 105, in get_events
- for event in self._storage.select(start=start):
- File "/home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py", line 176, in select
- for row in rows:
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/client.py", line 160, in iter_receive_result
- for rows in result:
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/result.py", line 114, in __next__
- packet = next(self.packet_generator)
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/client.py", line 167, in packet_generator
- packet = self.receive_packet()
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/client.py", line 181, in receive_packet
- packet = self.connection.receive_packet()
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/connection.py", line 485, in receive_packet
- packet.block = self.receive_data(may_be_use_numpy=True)
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/connection.py", line 560, in receive_data
- return reader.read(use_numpy=use_numpy)
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/streams/native.py", line 74, in read
- column = read_column(self.context, column_type, n_rows,
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/columns/service.py", line 144, in read_column
- return col.read_data(n_items, buf)
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/columns/base.py", line 102, in read_data
- return self._read_data(n_items, buf, nulls_map=nulls_map)
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/columns/base.py", line 105, in _read_data
- items = self.read_items(n_items, buf)
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/columns/base.py", line 146, in read_items
- return s.unpack(buf.read(s.size))
- File "clickhouse_driver/bufferedreader.pyx", line 40, in clickhouse_driver.bufferedreader.BufferedReader.read
- File "clickhouse_driver/bufferedreader.pyx", line 237, in clickhouse_driver.bufferedreader.BufferedSocketReader.read_into_buffer
- ConnectionResetError: [Errno 104] Connection reset by peer
- Unhandled exception
- Exception ignored in: <generator object ClickHouseEventStorage.select at 0x7f51e5b79000>
- Traceback (most recent call last):
- File "/home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py", line 170, in select
- with self._connection_manager.connect() as client:
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/contextlib.py", line 153, in __exit__
- self.gen.throw(typ, value, traceback)
- File "/home/romanbilyi/work/tesoro/tesoro/storages/clickhouse_event_storage.py", line 79, in connect
- client.cancel()
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/client.py", line 602, in cancel
- self.connection.send_cancel()
- File "/home/romanbilyi/miniconda3/envs/py310/lib/python3.10/site-packages/clickhouse_driver/connection.py", line 627, in send_cancel
- self.fout.flush()
- File "clickhouse_driver/bufferedwriter.pyx", line 46, in clickhouse_driver.bufferedwriter.BufferedWriter.flush
- File "clickhouse_driver/bufferedwriter.pyx", line 127, in clickhouse_driver.bufferedwriter.BufferedSocketWriter.write_into_stream
- ConnectionResetError: [Errno 104] Connection reset by peer
Advertisement
RAW Paste Data
Copied
Advertisement