Python with OANDA's API | Pricing, Trading

preview_player
Показать описание
This video demonstrates how to connect to OANDA's API and to perform all kinds of requests from there.

Рекомендации по теме
Комментарии
Автор

A few summations in the background. We have ourselves a fine gentleman here. Subscribed.

gibson
Автор

Has something changed with the API? I was going through your video and found the following error working on getting historical data. Everything worked well up until defining the "json_to_pandas function, but on the next line, when I run the GBPJPY_df = json_to_pandas(response), I get the following error message:

KeyError Traceback (most recent call last)
Cell In[22], line 1
----> 1 GBPJPY_df = json_to_pandas(response)

Cell In[21], line 3, in json_to_pandas(json)
1 def json_to_pandas(json):
2 json_file = json.json()
----> 3 price_json = json_file["candles"]
4 times = []
5 close_price, high_price, low_price, open_price = [], [], [], []

KeyError: 'candles'

I know it's been 3 years, but can you rerun your code and determine what is causing the error?

EricMiller-dd
Автор

You skip back and forth between the API and the v20 python wrapper. Each example done in both formats would be more helpful.

jhendric
Автор

Hi please can you help me to get the mid currency rate from the aggregated dataset is it through pricing path then what is the request string for a time like 2020-6-1 to 2020-12-31 monthly average data. thanks so much

Kabisen
Автор

Thank You,
Question, Did you use the Math equations in your strategy or is that just another topic on your board?

SolidBuildersInc
Автор

Great video!

When I run api.stream_data("EUR_USD", stop =10) I get :

TypeError: 'NoneType' object is not subscriptable.

Would you give me a suggestion how to fix it please?

Thank you.

wg
Автор

Hello! Thank you for the video. It would be great if you could shows us a bit how to you use it. I mean after you set it up and everything, how do you write a strategy there, if the signals are displayed on V20 platform, backtesting maybe execute a few trades. You know.. essentially a demonstration and use of having a Python API set up. Many thanks! :)

epo
Автор

Hi, do all applications (trading bots) have to be registered with Oanda first before you can send and receive requests? What is the process for this? If you can explain this process a little future.

brazillionnaire
Автор

Hi, thank you for the video. It is very well explained. Is there a path in OANDA REST API for getting the server time? I know that in Binance REST API this is equal to "/api/v3/time". But this is of course not recognized in OANDA, and I was not able to find the path in the documentation. I was wondering if there is a specific path for that.

hadiseyedhosseini
Автор

Hi, thank you for the great explanation, I tried it several times but I receive the below message. could you please take a look and advise. Thnx
{'errorCode': 'oanda::rest::core::InvalidParameterException',
'errorMessage': "Invalid value specified for 'Authorization'"}

HomeSeeekers
Автор

Do you have a discord or any way to chat? I'm doing a similar project and wanted to bounce some ideas off you!

ClarityCoders
Автор

Heloo, can anyone please tell me how to fetch multiple stock data from oanda ?

swagatikarout