MarkGalloway / wealthsimple-trade

Unofficial API docs for the Wealthsimple Trade API
MIT License
98 stars 14 forks source link

Place order gives HTTP `<Response [400]>` #15

Open K4LCIFER opened 3 years ago

K4LCIFER commented 3 years ago

The error that <Response [400]> yields is b'{"error":"quantity is invalid."}'.

What's interesting is that I if i copy paste the exact same order information that wealthsimple sends in the payload directly from the site (which of course works), it still doesn't go through.

I suspect that it may be because that I am trying to purchase outside of market hours, so its throwing some weird error that the API can't handle, but of course I won't be able to test that until Monday.

phuzybuny commented 3 years ago

Is the account's available balance sufficient for the order?

alik604 commented 2 years ago

I think you need to look at this, its a closed issue here