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
402 stars 107 forks source link

PositionClose #177

Closed quaid281 closed 3 years ago

quaid281 commented 3 years ago

Silly Question.

How can I just close my position at current price. For the data in PositionClose is it necessary I input takeProfitOnFill and stopLossOnFill or is there a workaround for this?

quaid281 commented 3 years ago

Disregard, I figured it out data = { "longUnits": "ALL" }

hootnot commented 3 years ago

... since you figured it out, I'll close the issue