Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]Oanda module no longer has the fwd () #5194

Closed
Jephpico opened this issue Jul 3, 2023 · 1 comment · Fixed by #5196
Closed

[Bug]Oanda module no longer has the fwd () #5194

Jephpico opened this issue Jul 3, 2023 · 1 comment · Fixed by #5196

Comments

@Jephpico
Copy link

Jephpico commented Jul 3, 2023

Describe the bug
I used a method from the documentation. check the code below.

@router.get("/detailedfxdata")
def detailed_fx_data(
#to_symbol: str,
#from_symbol:str,
):

fwd_usdeur = openbb.forex.fwd('EUR', 'USD')

fwd_jpyeur = openbb.forex.oanda.fwd('JPY', 'EUR')
fwd_pairs = fwd_jpyeur.join(fwd_usdeur, on = ['Expiration'], lsuffix = ' JPY/EUR', rsuffix=' USD/EUR')

To Reproduce
hit the endpoint that uses openbb.forex.oanda.fwd()

Screenshots
Screenshot 2023-07-03 at 15 24 15

Desktop (please complete the following information):

  • OS: [e.g. Mac Sierra]
  • Python version [e.g. 3.6.8]

Additional context
Add any other information that you think could be useful for us.

@deeleeramone
Copy link
Contributor

deeleeramone commented Jul 3, 2023

The fwd function doesn't actually come from Oanda, it comes for FX Empire. Thanks for highlighting the error in the example.

Screenshot 2023-07-03 at 9 37 17 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants