alpacahq / Alpaca-API

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

Making buy and sell automatic #69

Closed Pennylofers closed 5 years ago

Pennylofers commented 5 years ago

Screenshot from 2019-06-06 17-05-15

So i was trying to see how the code can interact with eachother, can anyone tell me what i might be doing wrong? The stock is 2 cents under what i bought it at. So it shouldnt make the sell order.. however it keeps doing it. I have my api key in there i just took it out for the screen shot. Any support would be nice.

Thank you

Pennylofers commented 5 years ago

I am dumb, I was doing that math for getting the number + 4% as bought .04 when in reality i should have been doing it as bought 1.04, so sorry about that, thank you! it works fine now