-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
36 lines (31 loc) · 1.21 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from preparation_data import *
from utils import *
from back_filling import *
from simulation import *
from scraping import *
crypto_pair = ''
def start_at_step(answer):
if start_case == 'y':
crypto_pair_test = input("Enter crypto pair: ex. ETH-BTC ")
scrape(crypto_pair_test)
elif start_case == 'n':
crypto_pair = input("Enter crypto pair: ex. ETH-BTC ")
get_binance_selector()
check_if_crypto_pair_exists(crypto_pair)
create_dir(crypto_pair)
period = input("Enter period you are interested in: YYYYMMDD-YYYYMMDD ")
generate_backfill_commands(period, crypto_pair)
get_strategy_names()
get_binance_sim_commands_list(generate_backfill_commands.start_date,
generate_backfill_commands.end_date, 'binance', crypto_pair,
strategies)
zenbot_simulate_now(binance_sim_commands_final_list)
scrape(crypto_pair)
else:
print ('Unknown command')
return
if __name__ == "__main__":
read_info_file('readme.txt')
start_case = input(" Do you want to scrape simulation files and see " +
" them in a table and skip first two steps? y/n ")
start_at_step(start_case)