2dp for percent change

This commit is contained in:
Neythen Treloar
2022-03-06 18:36:03 +00:00
parent 5cf29c80e4
commit b896914edf
3 changed files with 26 additions and 13 deletions

View File

@@ -29,8 +29,8 @@ import sys
#api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py")
api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 database_caller.py")
time.sleep(3)
#api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 database_caller.py")
#time.sleep(3)
#api_caller.sendline('A')
@@ -558,6 +558,7 @@ def save_trade_settings(input_settings):
filename = input_settings['feature'].lower() + '_settings.json'
f = open('csv/' + filename, 'r')
current_settings = json.load(f)
print(current_settings)
f.close()
current_settings['speed'] = input_settings['speed'].lower()