hootnot / oanda-api-v20

OANDA REST-V20 API wrapper. Easy access to OANDA's REST v20 API with oandapyV20 package. Checkout the Jupyter notebooks!
MIT License
398 stars 107 forks source link

Short Order failed to work #151

Closed peironggg closed 4 years ago

peironggg commented 4 years ago

Thank you for the awesome work.

I understand we change the units from 100 to -100 when we want to create a short order. I did so on your MarketOrderRequest example and Oanda managed to open the trade. However, it was closed immediately due to what I presume is an error. This 'immediate closing' problem repeats itself without fail for short orders but not for long orders. May I know if you face a similar issue? Thank you.

hootnot commented 4 years ago

Hi, Just a description of a problem doesn't give much info.

But the error you got from OANDA tell's you probably that you have some issue with your price.