forked from JinJis/arbitrage-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_db_fixer.py
More file actions
19 lines (16 loc) · 1.09 KB
/
Copy pathrun_db_fixer.py
File metadata and controls
19 lines (16 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import logging
from config.shared_mongo_client import SharedMongoClient
from config.db_fixer import DbFixer
from config.global_conf import Global
Global.configure_default_root_logging(should_log_to_file=False, log_level=logging.INFO)
SharedMongoClient.initialize(should_use_localhost_db=False)
start_time = Global.convert_local_datetime_to_epoch("2018.09.08 12:00:00", timezone="kr")
end_time = Global.convert_local_datetime_to_epoch("2018.09.09 01:10:00", timezone="kr")
DbFixer.add_missing_item_with_plain_copy_prev("bithumb", "xrp_orderbook", "okcoin", "xrp_orderbook",
start_time, end_time)
# DbFixer.fill_empty_orderbook_entry("bithumb", "xrp_orderbook", start_time, end_time)
# DbFixer.update_rq_diff_by_control_db("coinone", "bch_orderbook", "gopax", "bch_orderbook",
# start_time, end_time)
"""IYO 돌릴때 사용하는 것들"""
# DbFixer.check_empty_data_by_rq_time("okcoin", "xrp_orderbook", start_time, end_time)
# DbFixer.match_request_time_in_orderbook_entry("bithumb", "okcoin", "xrp_orderbook", start_time, end_time)