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

Setting take profit and stop loss #164

Closed turbonerd123 closed 4 years ago

turbonerd123 commented 4 years ago

I was wondering if anyone knew how to set the current market price to a variable. That way I can make the stop loss value something like price+0.001.

hootnot commented 4 years ago

it is all in the docs, see for instance: https://developer.oanda.com/rest-live-v20/order-df/#OrderRequest

and oandapyV20: https://oanda-api-v20.readthedocs.io/en/latest/contrib/orders/stoplossorderrequest.html

Pls. drop this kind of question on stackoverflow (or alike). Github is for issues and not for support. This clearly is not an issue.