alpacahq / Alpaca-API

The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.
https://alpaca.markets/
143 stars 13 forks source link

Limit order fills regardless of the limit price #244

Closed Elangovan4ever closed 1 year ago

Elangovan4ever commented 1 year ago

Describe the bug Limit order works like market order

To Reproduce Steps to reproduce the behavior:

  1. Under Paper Trading, Go TSLA symbol page. Current trading price is around $211.
  2. Select Buy, Limit, enter quantity 10, enter price $300
  3. Preview order and submit.
  4. The order is getting filled at the market price i.e. around $211.
  5. Same issue for all symbols on paper trading from the web portal and also by using the alpaca API.

Expected behavior It supposed to be filled at only $300 which is the limit price. I have tried with other symbols, same issue. This is in paper trading.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context This is main feature of trading i.e. filling at limit price instead of some random price. Please look at this urgently. thank you!

sshcli commented 1 year ago

This is the normal behavior. This is not a bug

spazmodius commented 1 year ago

Is this a tracer, to detect whether Aplaca is even looking at issues?

sshcli commented 1 year ago

@spazmodius join the Alpaca slack community, they are more active there than here.

spazmodius commented 1 year ago

"For a buy limit order, if the market price is within your specified limit price, you can expect the order to be filled."

Elangovan4ever commented 1 year ago

thanks for the comments. I just realized this bug is completely wrong. Obviously, it will execute the order when the limit price is higher than the market price. not sure what I was thinking while raising this as bug. my apologies.