Open jon-esperanza opened 3 years ago
When making sure that the cap amount is not exceeded before placing an order, the amount after placing the order is not taken into consideration.
if (amount >= 300): twenty_pct = amount / 20 data['Desired Shares'][x] = round(twenty_pct / df['Close'][x], None) data['Ticker'][x] = df['Ticker'][x] amount = amount - (data['Desired Shares'][x] * df['Close'][x])
Code drop - fixed in dev Awaiting review from next job batch 06/21/19 @ 6pm
When making sure that the cap amount is not exceeded before placing an order, the amount after placing the order is not taken into consideration.
if (amount >= 300): twenty_pct = amount / 20 data['Desired Shares'][x] = round(twenty_pct / df['Close'][x], None) data['Ticker'][x] = df['Ticker'][x] amount = amount - (data['Desired Shares'][x] * df['Close'][x])