alexaxbreadbytes commited on
Commit
bc5a4bb
·
verified ·
1 Parent(s): 0f3a83a

sub account updates

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -217,9 +217,9 @@ def load_data(filename, account, exchange, otimeheader, fmat):
217
  else:
218
  newdf = pd.DataFrame([], columns=['Trade','Signal','Entry Date','Buy Price', 'Sell Price','Exit Date', 'P/L per token', 'P/L %'])
219
 
220
- if account == 'Pure Bread':
221
  tvdata = pd.read_csv('pb-history-old.csv',header = 0).drop('Unnamed: 0', axis=1)
222
- elif account == 'Pumpernickel':
223
  tvdata = pd.read_csv('pn-history-old.csv',header = 0).drop('Unnamed: 0', axis=1)
224
  else:
225
  tvdata = pd.DataFrame([])
@@ -331,11 +331,11 @@ def runapp() -> None:
331
  if bot_selections == "Pumpernickel":
332
  lev_cap = 5
333
  dollar_cap = 1000000000.00
334
- data = load_data('history.csv', 'Pumpernickel', 'Bybit Futures', otimeheader, fmat)
335
  if bot_selections == "Pure Bread":
336
  lev_cap = 5
337
  dollar_cap = 1000000000.00
338
- data = load_data('history.csv', 'Pure Bread', 'Bybit Futures', otimeheader, fmat)
339
  df = data.copy(deep=True)
340
 
341
  dateheader = 'Date'
 
217
  else:
218
  newdf = pd.DataFrame([], columns=['Trade','Signal','Entry Date','Buy Price', 'Sell Price','Exit Date', 'P/L per token', 'P/L %'])
219
 
220
+ if account == 'Pure Bread (ByBit)':
221
  tvdata = pd.read_csv('pb-history-old.csv',header = 0).drop('Unnamed: 0', axis=1)
222
+ elif account == 'PUMPernickel (ByBit)':
223
  tvdata = pd.read_csv('pn-history-old.csv',header = 0).drop('Unnamed: 0', axis=1)
224
  else:
225
  tvdata = pd.DataFrame([])
 
331
  if bot_selections == "Pumpernickel":
332
  lev_cap = 5
333
  dollar_cap = 1000000000.00
334
+ data = load_data('history.csv', 'PUMPernickel (ByBit)', 'Bybit Futures', otimeheader, fmat)
335
  if bot_selections == "Pure Bread":
336
  lev_cap = 5
337
  dollar_cap = 1000000000.00
338
+ data = load_data('history.csv', 'Pure Bread (ByBit)', 'Bybit Futures', otimeheader, fmat)
339
  df = data.copy(deep=True)
340
 
341
  dateheader = 'Date'