Skip to content

Commit

Permalink
adjust fidelity limit price difference
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonDane committed Dec 22, 2023
1 parent a4dd048 commit 76996a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fidelityAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ def fidelity_transaction(fidelity_o: Brokerage, orderObj: stockOrder, loop=None)
value="#market-no > s-root > div > label > s-slot > s-assigned-wrapper",
)
limit_button.click()
# Set price
difference_price = 0.01 if float(ask_price) > 0.1 else 0.005
# Set price
difference_price = 0.01 if float(ask_price) > 0.1 else 0.001
if orderObj.get_action() == "buy":
wanted_price = round(float(ask_price) + difference_price, 3)
else:
Expand Down

0 comments on commit 76996a2

Please sign in to comment.