this API is seriously lacking in many ways. this limit order for example.
limit_order_data = LimitOrderRequest(
symbol=x,
qty=B_qty,
limit_price=round(current_price_x+0.01, 2),
side=OrderSide.SELL,
time_in_force=TimeInForce.GTC
)
# Limit order
limit_order = trading_client.submit_order(
order_data=limit_order_data
)
id imagine that every time the while loop goes through this limit sell order would change as the price of X changes. it stays the same all day no matter what the price of x is. so eventually the orders run into the built in sell price and star selling at a loss. is there any way to update the limit stop price more efficiently? any help is appreciated?