Created
July 13, 2023 04:53
-
-
Save MtkN1/eadd734b9c423342d5f6d9b387b9890f to your computer and use it in GitHub Desktop.
Get Oanda OHLC via REST API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
r = requests.get( | |
"https://widget.oanda.jp/api/ohlc-rate?instrument=USD_JPY", | |
headers={"x-oanda-widget-api": "ohlc-rate"}, | |
) | |
ohlc = r.json() | |
print(ohlc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requirements