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

API Timeout #161

Closed vinitshetty closed 4 years ago

vinitshetty commented 4 years ago

Hi, Is there a way to configure API timeout? I am trying to pull candle stick data every 5 mins. and it just freezes after some time and no exception thrown.

vinitshetty commented 4 years ago

Sorry figured it out - api = oandapyV20.API(access_token=access_token,request_params={"timeout": 30})

hootnot commented 4 years ago

Hi, pls. also note that OANDA might have services down during weekend hours,